Repository navigation
feat(pr-page): one-row header, files toolbar and status strip - #52184
Merged
orca-remote-automation[bot] merged 10 commits intoNov 29, 2026
Merged
Conversation
Rework the pull request page so every row shares the same left and right edges and every control sits at one 28px height, with no fixed-width text buttons. - Header: back, owner/repo #n, Start or Resume workspace, and a More menu (Start new workspace, Copy GitHub link, Open on GitHub, Close pull request). Title clamps to two lines; branch chips truncate. - Files: one 40px toolbar with file tree toggle, viewed progress, Unified/Split, Hide whitespace and a Diff options menu. Marking a file Viewed folds it; already-viewed files open folded. - A sticky status bar replaces the Conversation actions card: merge split button, Ready for review on drafts, Fix checks when checks fail, Open on GitHub on conflicts, Reopen when closed. - Narrow widths hide the file tree, repo name and secondary labels.
- Status bar: an auto-merge action keeps its real name at narrow widths; failing checks make Fix checks primary and merge outline; Fix checks is disabled without a registered repo. - Fix checks request is dropped when leaving the Checks tab. - Viewed: fold only after the write lands, never over a fold the user changed meanwhile, and return focus to the checkbox after the row remounts. - Header, tabs and files toolbar: edge icons sit on the shared 24px edge; the narrow workspace action is a quiet icon with a tooltip.
orca-remote-automation
Bot
requested a review
from brennanb2025
as a code owner
November 29, 2026 02:11
[Medium impact] The PR appears safe to merge; no actionable issues remain from this review. SummaryThis PR compacts the pull request header, combines the Files controls, and moves PR actions into a shared status strip.
Reviews (9) · Last reviewed commit: "fix(pr-page): tree focus owner is the ac..." · Reviewed by Greptile |
- A viewed write folds its file only if no fold changed and the diff was not rebuilt while the write was in flight. - Focus returns to the checkbox that started the write (success, failure or remount), unless the user moved focus or clicked elsewhere meanwhile. - The Checks tab stays mounted while hidden, so a Fix checks launch keeps its setup dialog when the user switches tabs. - Status bar actions shrink and truncate instead of overflowing.
- A viewed write's fold is cancelled only by a fold of the same file, Collapse/Expand all, or a rebuilt diff; other files' folds no longer block it. - Focus returns through one layout effect after the commit that settles the write, replacing the document listeners and frame retries. - The Fix checks dialog renders in the loading and empty branches too, and the request is consumed only while the Checks tab is active. - A truncated merge action label shows its full text on hover.
…erge tooltip - One viewer-lifetime capture listener releases the pending focus return on any pointerdown or focus move away from that file's checkbox, so clicking a blank area during the write is respected. - The merge action shows its full label in a tooltip on hover and keyboard focus instead of a native title.
- Status bar shows on all three tabs; the Checks tab row drops its own Fix checks since the bar carries it (also on drafts, as a secondary). - Checks header stays on one line at narrow widths: the count chips hide and the summary truncates instead of wrapping under the actions. - No local repo: the reason stays visible at narrow widths and the merge chevron dims with the button. - Start workspace is outline so each state has one primary; the narrow icon is a workspace icon, not an arrow. - Files toolbar shows Show file tree only while the tree is hidden and hands focus between the two tree toggles; Collapse all is inset. - Tabs start their box and underline on the 24px edge; the Checks badge shows the failing count in red. - Per-file link reads "Open file on GitHub" and opens that file's anchor.
…fix pending state - The tree focus handoff runs only after a toggle the user pressed, not when a saved collapsed tree is restored. - The red Checks badge carries screen-reader text saying it counts failing checks. - The status bar's Fix checks shows a spinner and is disabled while the request or launch is in flight.
- The bottom status bar becomes a 44px strip directly under the tabs on every tab, so the merge, Fix checks, Ready for review, Reopen and Open on GitHub actions sit near the top instead of a far bottom corner. - The header gets an outline Review button left of the workspace button. Orca cannot submit a review yet, so it opens the pull request's Files page on GitHub in the system browser. - The tree focus handoff now runs only when the pressed toggle had focus, and any later pointer or focus move releases it.
…s a web URL - The tree focus handoff compares the focused element with the control that was pressed (the toolbar button itself, or the tree's own collapse button), so a focused file row no longer counts as the owner. - The Review button is shown only when the pull request has an http(s) URL.
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.
ELI5
The pull request page had big fixed-width buttons, three header rows and the merge controls tucked in a side card. Now the header is one compact row, the Files tab has one toolbar, and a strip right under the tabs always shows where the PR stands and the next action.
What Changed
owner/repo #n, Review, Start/Resume workspace (both outline; the status strip holds the one primary action), and a More menu (Start new workspace, Copy GitHub link, Open on GitHub, Close pull request). The title clamps to two lines; long branch names truncate. Review opens this pull request's Files page on GitHub in the browser, where the review is submitted: Orca has no way to submit a review (Comment / Approve / Request changes) yet.w-[180px],w-20andw-24buttons are gone. Every row shares the same 24px left and right edge.mergebutton variant on an existing theme token; 12 orphaned translation keys removed from every catalog.Why
Fixed-width buttons clipped or wasted space, the header took three rows before any content, and merging meant scrolling the Conversation tab. Checked against how comparable products handle this. Submitting a review from Orca and a commit-scope picker are left out: there is no backend for either yet, so Review links to GitHub.
Linked Issue
Internal design item; no public issue.
Visual Proof
Fixture shots use synthetic data (
pull-request-page/page/surface-states); app shots are a dev build with a fresh profile, opened on this PR. Every row starts and ends 24px from the page edge at 420px and 1600px in both themes.Testing
macOS. A component fixture with synthetic data (
pull-request-page/page/surface-states) covers normal, long title/branch, draft, failing checks, conflict, no local repo, merged, closed, 842-file PR, file load failure, empty, Conversation and Checks, at 420px, 900px and 1600px in light and dark. A Playwright run against the fixture clicked every control: header and diff menus, Unified/Split, Collapse all, tree toggle, merge menu, Viewed via keyboard (folds after the write, focus kept; a failing write leaves the file open), and Fix checks (opens the fix dialog once, not again on a later visit). Dev build (isolated fresh profile, background launch) opened on this PR at 1700px and 700px in both themes. Merge and More menus are reachable with the keyboard (Enter opens, arrows reach every item, Escape returns focus to the trigger). The strip sits at the same position on all three tabs. The Checks tab stays mounted while hidden so a Fix checks launch keeps its setup dialog across tab switches; status strip actions shrink and truncate instead of overflowing (checked with a long label at 420px). No unit tests: the change is layout and wiring; the fixture covers the states.Follow-ups
Performance
Render-only changes. The status strip computes merge state and broken checks once per render, linear in check count (the old actions card and Checks tab already did this). Viewed progress filters the file list once per toolbar render, as before. Two new settings selectors (whitespace, wrap). No new polling, IPC or subprocess work; viewed seeding runs once per file set.