Repository navigation
feat(review): lead the Review strip with the Git lane graph; git-history row fixes - #1609
Merged
Merged
Conversation
…e stripe The Git history is drawn under the conversation's own top bar, which already carries a back button. The panel repeated it: on the list the two were the same action in the same corner, and on a patch they were two arrows stacked one under the other. The panel now draws no back control at all, and instead hands the bar a stepper, so the single visible arrow walks back the way the reader came — from a patch to the list, from the list out of the history. Android's system back already worked that way. The rows also carried a 2px hairline of the lane's colour pinned to their left edge. It was not a lane: it sat at the row's edge rather than on the lane column, changed colour from row to row, and stopped short of the threads it echoed, so it read as a stray border beside the graph. The picture already says which column a commit is on, and the row's spoken hint says it in words.
The lane graph is what a reader opens the Review panel to see, and it was the last of four tabs behind branch, uncommitted and last run. It now leads the strip, and a Git workspace opens on it. The opening view has to be seeded after mount: a thread's workspace path arrives with its first context refresh, and the history read is rooted at that path. Until it resolves the panel stays on the branch delta rather than highlighting a tab that is not in the strip yet. A view the reader picked by hand is recorded per thread, so a late path cannot yank it away; a new thread starts unchosen.
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.
Two changes to how Git history is reached and drawn, both from the same review of the feature.
Commits
feat(review): lead the Review strip with the Git lane graph — the graph is what the panel is opened for, so it now sits first and a Git workspace opens on it. The opening view is seeded after mount because a thread's workspace path arrives with its first context refresh; until it resolves the panel stays on the branch delta instead of highlighting a tab that is not in the strip yet. A view picked by hand is recorded per thread so a late path cannot yank it away, and a new thread starts unchosen.fix(git-history): drop the duplicated back arrow and the row-edge lane stripe — the history is drawn under the conversation's own top bar, which already carries a back button, so the panel drew the same press twice in the same corner (and two stacked arrows on a patch). The panel now draws no back control and hands the bar a stepper instead, so the single visible arrow walks back the way the reader came. The 2px hairline pinned to each row's left edge is also gone: it sat at the row edge rather than on the lane column, changed colour row to row, and read as a stray border beside the graph.Verification
Run in a detached worktree at
319047c7awithulimit -n 8192. No Rust crate is touched, so the checks are the TypeScript ones by scope:npx tsc --noEmitclean;npx eslinton the four changed sources clean;npx vitest runonGitHistoryPanel.test.tsx+ReviewPanel.test.tsx→ 36 passed.npx tsc --noEmitclean;npx eslinton the four changed sources clean;npx jestonChatScreen.test.ts+GitGraphPanel.test.ts→ 83 passed.scripts/screenshots/scenarios.jsonparses; itschat-menuscenario assertions were extended to require the new back-control and lane-stripe behaviour.User-visible changes
3aeb5fdbf.16de12450.Notes
None: no migration, no setting, no default-value change, no wire change.