popcodeorg / popcodeorg/popcode

Expanding an editor should focus it

Open
#1,080 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ux
Dominant language
JavaScript
Stars
191
Forks
143
Avg merge
4d 11h
Merged PRs (30d)
5

Description

If an editor is collapsed, and the coder expands it, it should automatically be focused (this is the natural expectation).

I think we can just use the existing ui.editors.requestedFocusedLine mechanism to do this.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading src/reducers/ui.js, especially the existing ui.editors.requestedFocusedLine mechanism at lines 66-76, and trace where expanding an editor is handled. Done means expanding a collapsed editor automatically focuses it, using that mechanism where appropriate; verify the behavior in the editor UI.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.