Skip to content

feat(review): lead the Review strip with the Git lane graph; git-history row fixes - #1609

Merged
huichen merged 3 commits into
mainfrom
pr/huichen
Nov 14, 2026
Merged

huichen merged 3 commits into
mainfrom
pr/huichen

Conversation

@huichen

@huichen huichen commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator

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 319047c7a with ulimit -n 8192. No Rust crate is touched, so the checks are the TypeScript ones by scope:

  • desktop: npx tsc --noEmit clean; npx eslint on the four changed sources clean; npx vitest run on GitHistoryPanel.test.tsx + ReviewPanel.test.tsx → 36 passed.
  • mobile (node 22): npx tsc --noEmit clean; npx eslint on the four changed sources clean; npx jest on ChatScreen.test.ts + GitGraphPanel.test.ts → 83 passed.
  • scripts/screenshots/scenarios.json parses; its chat-menu scenario assertions were extended to require the new back-control and lane-stripe behaviour.

User-visible changes

  • Desktop Review panel: a Git workspace now opens the strip on the Git lane graph. Before: the strip opened on the branch delta and the graph was the last of four tabs. Revert 3aeb5fdbf.
  • Desktop and mobile Git history: the panel no longer shows its own back arrow; the conversation bar's single arrow now steps back through the history (patch → list → leave). The coloured 2px lane stripe on each row's left edge is removed. Revert 16de12450.

Notes

None: no migration, no setting, no default-value change, no wire change.

…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.
@huichen
huichen enabled auto-merge (squash) November 14, 2026 09:17
@huichen
huichen merged commit f23dedd into main Nov 14, 2026
12 checks passed
@huichen
huichen deleted the pr/huichen branch November 14, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant