Repository navigation
feat: make pair view one mode for the window with a draggable divider - #2748
Merged
Merged
Conversation
…or its record card
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.
Related: PRD lane-desk-pair-view (B16-B29), operator decisions D-44..D-49 (interview Addendum); follows #2722, part of the
feat/lane-deskmission.Summary
Problem
The operator tried pair view in the integration build and hit four problems.
Leaving pair view left the file View floating on the right.
Pair view was remembered per Agent tab: ⌃⇥ to another agent dropped it, and coming back to the first tab turned it on again by itself.
⌘E and several other gestures ended it, so it was unclear how to leave.
The split was fixed at half and half.
The pane head's two-cell button sat in a bordered box, heavier than the head's other icons.
In the installed build, closing the lane with ⌘E hid pair view without ending it, so pressing a View on the usual screen later jumped back into pair view.
Before → After
원래 화면으로, the pane closing or the last View closing end it; leaving closes the desk; a draggable divider whose ratio the mode keepsLook at the divider between the terminal and the desk (its ⇆ grip on hover), and the right side after leaving.
pair_view {on, ratio}inworkspace-views.json, next to the lane's own state; the left pane is runtime only and follows the operator's look.pairloads with the mode off.N viewsand ◧ cells are drawn without a box, like the head's other icons, with one hairline between them (Separator).LaneDivider(kind="pair"): a guide while dragging, one landing and one terminal resize on release.Decide
light-head-1-unfocused/light-head-2-in-pair-view(in the Evidence block). Does the hairline read in light mode?Not verified
Evidence
Verified:
web/e2e/pair-view.spec.ts3/3 pass, twice in a row; the 16 lane-related web specs (right-lane, lane-desk, s3/s4/s6/s7, close-policy, view-close-focus and others) 204/206 locally, the twos3misses timing out on the sidebar's project row while other runs loaded the machine and passing alone; corecargo nexteston the pair, desk, workspace view and migration suites (502 tests) pass;clippy -D warningson hide-core clean; web unit tests and the design contract check pass.Isolated candidate: the desktop host launched through
desktop/e2e/fixture.tson a private HOME, state folder and Electron profile, renderer captures of that window in dark and light: pair entered, sidebar follow, divider hover, drag and landing, leaving with no desk, ratio kept on re-entry.Light pane head:

Tests
hide-core/src/runtime/tests/desk_views.rs,workspace_views.rs) for the mode, its ratio, the follow and the ends; web unit (workspace.test.ts) for the split math; e2e (pair-view.spec.ts) for the flows only a page shows: the tab switch, ⌃⇥ and the sidebar keeping the mode, ⌘E and Escape not ending it, the divider drag with one resize, the desk closing on leave.quietFor300-500 ms where the spec proves something did not happen (⌘E, Escape, a second resize).Risky files
hide-core/src/runtime/look.rs: every completed selection now runsfollow_pair_look, which returns at once while the mode is off.hide-core/src/workspace_views.rs: saved file shape (pair_viewat the top level; trays losepair).hide-core/src/runtime/pair_view.rs: the mode, its ends and its follow.web/src/LaneDivider.tsx,web/src/workspace.ts: shared divider and lane frame;laneFramenow carries the paired pane's width in the expanded frame too.