Skip to content

feat(pr-page): one-row header, files toolbar and status strip - #52184

Merged
orca-remote-automation[bot] merged 10 commits into
mainfrom
orca-remote-automation/task-351-design-c
Nov 29, 2026
Merged

orca-remote-automation[bot] merged 10 commits into
mainfrom
orca-remote-automation/task-351-design-c

Conversation

@orca-remote-automation

@orca-remote-automation orca-remote-automation Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

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.

Files Added Deleted Net
Test 0 0 0 0
Prod 33 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1661 $\color{#cf222e}{\Huge{\mathbf{−}}}$​909 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​752

What Changed

  • Header: one row: back, 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.
  • Files toolbar (40px): file tree toggle, viewed progress, Unified | Split, Hide whitespace, and a Diff options menu (Hide whitespace, Wrap lines, Collapse all, layout).
  • Viewed: ticking Viewed folds the file once GitHub confirms it, unticking reopens it, and keyboard focus stays on the checkbox. Already-viewed files open folded.
  • Status strip: a 44px strip directly under the tabs on every tab, replacing the Conversation tab's actions card. Squash and merge split button when open; Ready for review on drafts; Fix checks (primary, merge turns outline) when checks fail; Open on GitHub on conflicts; Reopen when closed; "Merged into main" when merged; merge disabled with "Needs a local repo" when there is no local repo. Nothing is pinned to the bottom of the window.
  • One control height: every control is 28px and hugs its label; the w-[180px], w-20 and w-24 buttons are gone. Every row shares the same 24px left and right edge.
  • Narrow widths: below about 670px the file tree hides; below 512px the repo name and secondary labels hide and the workspace action becomes an icon with a tooltip.
  • New merge button 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.

Dev build, 1700px window, dark Dev build, 700px, light
c-app-window-1700-dark c-app-700-light
State Screenshot
Ready to merge, 1600px, dark c-open-1600-dark
Checks failing, 1600px, light c-failing-1600-light
Long title and branch, 420px, light c-long-420-light
Checks tab, failing, 420px, dark c-checks-failing-420-dark
No local repo, 420px, dark c-no-repo-420-dark
Draft, 420px, light c-draft-420-light
Merge menu (keyboard) c-merge-menu

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below
  • Every added test fails without this change and avoids the test anti-patterns

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

  • The Conversation tab's fixed 300px side column leaves the main column too narrow at about 420px. This predates this PR.
  • Per-file diff headers and the file tree keep their shared 12px inset; the diff area stays full-bleed by design.

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.

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.
@greptile-apps

greptile-apps Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge; no actionable issues remain from this review.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues remain from this review.

Summary

This PR compacts the pull request header, combines the Files controls, and moves PR actions into a shared status strip.

  • A status strip shows each pull request’s state and next action below the tabs.
  • The pull-request header puts navigation and actions in one compact row.
  • The Files tab puts diff controls and viewed progress in one toolbar.

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.
@orca-remote-automation orca-remote-automation Bot changed the title feat(pr-page): one-row header, files toolbar and sticky status bar feat(pr-page): one-row header, files toolbar and status strip Nov 29, 2026
…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.
@orca-remote-automation
orca-remote-automation Bot merged commit 9a1728b into main Nov 29, 2026
56 checks passed
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.

0 participants