Repository navigation
emrg: open the GUI's right column only when the host asks for it - #3305
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The right-hand column starts closed, so the conversation gets the window's width until the host asks for the editor.
What changed:
Shell.tsxopensrightOpenatfalseinstead oftrue. Nothing remembers the choice: every launch begins closed, and the status band's right toggle opens and closes it in the same press.editorRef.currentisnulland the click would have been handed to nothing. The request waits in a ref for the one render the column takes to mount, and an effect flushes it — the panel receives the file it was asked for rather than a click that vanished.Tests: the #3070 seam test now asserts the panel is absent before the row is clicked, so its appearance is witness to the click's own work rather than to a column that was already there. A new test pins the fresh state, one press opening the column and a second press closing it.
The reviewer's reading:
1283renderer tests (npm run typecheckclean,npm testgreen),272GUI tests with8skipped,tests/test_doc_counts.py82 passed, andscripts/check-node-test-count.pyagreeing with theAgent.mdbreakdown.