Repository navigation
Flat PR view: the review app's layering of background colours - #2639
Merged
Merged
Conversation
… Inbox The owner's decision: parity with the code review app's layering. On a clicked PR the review area stays on --background; top bar, stack strip and foot take the review app's half-card mix; the section and file cards draw nothing, so each file is its header, its code and a hairline, edge to edge. Split | Unified loses its tab shape on a plain row with Global comment, and the read-only note is quiet words on that row. A long file's box is as tall as the pane: GuideFileCard's fitted box takes max-height: var(--guide-file-fit-max, 620px), only the PR view sets it (100cqh), and hosts that do not fit are unchanged. In every .ib-gbody (also a thread's guided review and code review) --panel-header-h is set, so a file header keeps its 33 px, and a file's scrollbar shows only under the pointer or while dragged.
…the review app's fill The owner decided there is no height limit in the Inbox: #2635 removes the cap for fitted hosts, so this drops --guide-file-fit-max, its 100cqh rule, GuideFileCard's max-height and their tests. GuideFileCard is back to #2632's. The pane stays an inline-size container for the note's room on the controls' row. From REVIEW_FOLD_PANEL_BELOW up the comments column takes the review app's bg-card/30 over --background; folded, the sheet stays a card over the diff.
The owner: Plannotator is the baseline. Same diff in both apps: code, gutter, bands, hunk separators and the comment card already matched. What did not was the frame: three pale bars (150 px against 70), the controls on a row floating above the first file, and 19 px and a line between files. A 37 px bar; the rail to the window's foot; the column opens on a 33 px --muted row with the layers as tabs and Global comment and Split | Unified on it (GuideReader's controlsHost, through GuideView's additive actionsHost); the first file 16 px under it; one hairline between files; the foot beside the rail, the bar's recipe and height. The review app does not change. A phone keeps its rows.
Above the files, with the rail folded, the words and the empty-layer note keep the pane's margin and wrap.
…me line The rail uses the same builder and row atoms as the code review app's Changes tree (@plannotator/ui's buildDiffFileTree, review-editor's FileRowBits): folders that fold, sans 13/500, 28 px rows touching, the 14 px Viewed circle, the change letter, no zero count. The diffs follow its order. railRows goes. A new comment carries getIdentity() as its author, the review app's source, so the card's header has the name beside the time.
…eat/pr-view-one-surface
…; sheets cover the diff only The tree keeps one node per path segment, so a file like docs next to docs/index.md, or a symlink turned into a file, had no row and no diff. reviewFiles keeps them as rows of their own after the tree. Below 760 px of review the rail folds to a Files button and a sheet in place of the native picker. Both sheets cover the diff's grid area, so the strip and foot stay in reach. The Inbox now reads displayName from config.json. Layers fade and take the wheel when they overflow; names and the foot keep their ends. The sidebar takes a muted fill on this page only.
The viewer draws one diff per path, the path's last. Appending the half the tree dropped made that the deleted symlink. The rebuilt diff now keeps a path's halves in git's order.
The centring ran once, before the controls arrived on the row and took the layers' room: it now runs on every change of width. Escape closes the Files and Comments sheets and focus returns to the button, as ReviewPane's; the Files sheet opens on its first row. Focus crosses a fold with what held it. Also: the sidebar's fill only where the sidebar is beside this page, the loading pane's frame, sheet shadows kept off the strip and foot, a Tip on the header title, and a linear rebuild of the diff.
…nothing but a hairline between files A sheet only heard Escape from itself or its button, so a mouse open in WebKit, a click on nothing, a click beside it or a composer's Esc left it stuck. One window listener while it is open, with App's guards, in a small hook. The gap under a file with a separator: Pierre's spacing adds 8 px either side of a separator whose 32 px already holds its margins. A list that reports its height now says none (and keeps the code's bottom padding); the first estimate follows. Co-Authored-By: Claude <[email protected]>
Co-Authored-By: Claude <[email protected]>
… no guard nothing needs A menu consumes its own Escape, so the hook needs no menu rule. Co-Authored-By: Claude <[email protected]>
This was referenced Nov 5, 2026
The toolbar and its label picker listen on the window and mark nothing, so one Escape would have closed both. App's ladder already stands down for them. Co-Authored-By: Claude <[email protected]>
Keeps Open in on each file and in code spans, and the lazy reader part, beside the rail, the sheets and the strip. Co-Authored-By: Claude <[email protected]>
That toolbar never draws on the PR page, so the guard kept nothing safe. It trusted two attributes a description can carry, which would let a body switch the key off. Co-Authored-By: Claude <[email protected]>
The Inbox window must not load review-editor up front. The viewed circle, comment count and +/- columns move to ui's FileRowAtoms, and review-editor's FileRowBits re-exports them, as it already does for the change letter. Nothing draws differently. Co-Authored-By: Claude <[email protected]>
The sidebar stays open under this page, and its invisible edge sat over the rail's right side: it took clicks there and dragged the hidden sidebar. Co-Authored-By: Claude <[email protected]>
Co-Authored-By: Claude <[email protected]>
The layer strip, the foot and the scope radios go. A 37 px bar holds the sidebar toggle, the title, the Global comment globe and the ending's marks; the rail holds the stack and one column of file names with a drag handle; files are a soft head and their lines; Split | Unified is a tab on the first file and docks in the bar. The page now sits in flow beside the sidebar, so the toggle and its key are truthful at every width. Co-Authored-By: Claude <[email protected]>
An older fill kept the bar a shade lighter than the rail, once the rule that beat it lost its second class. Co-Authored-By: Claude <[email protected]>
# Conflicts: # docs/agent-guides/inbox-files-and-guides.md # packages/inbox/pulls/PostEnding.tsx # packages/inbox/pulls/PullReview.tsx
…ide the sidebar on a PR #2702's desktop guard took the window's edge and a 300 px sheet; on #2639's PR page the review sits beside the open sidebar, so the docked column needs a wider window, its edge is the review's, and at 800 the folded sheet is the diff's width when that is under 300 px. Co-Authored-By: Claude <[email protected]>
# Conflicts: # tests/e2e/inbox-code-review.spec.ts # tests/e2e/inbox-pull-requests.spec.ts
Main removed the custom top scrollbar (#2763): the PR page's hover rules for it go, and its tests check the 33 px file head alone. Flush files keep the 8 px foot main now counts for files that scroll with the page.
…s after it closes Since #2702 a phone's Comments sheet covers the window and hides the bar, so the Files button is not reachable while it is open. The step now checks that Comments closes the Files sheet and that closing Comments brings no Files sheet back.
…'s Escape The diff moved down 8 px per file when main merged in, so the click at a fixed point landed on a line number, whose composer took the first Escape. Click aaa.ts's context line by its row, and check focus left the sheet's button and no composer opened.
…r's + Pierre's hover + (the gutter utility, which opens a line's composer) overlaps the start of a line's code and took the click at x 4.
Conflicts, both sides kept: - server-and-storage.md: settings GET lists diff_options (main) and display_name (this branch). - App.tsx: adoptSavedDiffOptions (main) and the display name for comments (this branch). - GuideReader.tsx: main's single first-card tab; the PR page's bar host still draws it as marks. - DiffStyleSwitch.tsx: main's diffOptions writer, with the optional icons/name/label the PR page's tab and docked switch use (main kept the PR page's tab). - pullReview.test.tsx: main's New review box tests replace the old picker tests. - inbox-pull-requests.spec.ts: the phone test closes main's box, then checks this branch's row; the Post to GitHub test keeps the mark choice check and adds main's own-PR Approve check. The :1370 Escape test's click target fix is kept.
# Conflicts: # packages/inbox/guide/GuideReader.tsx
# Conflicts: # packages/review-editor/components/AllFilesCodeView.tsx
…text row, folder on phone headers The four fixes the owner approved on the side-by-side with the code review app: - File headers are flat, edge to edge, in the page colour with one hairline under them; the next file's header sits right under the last code row (guide host flushFiles: the box is exactly the renderer's height). - No band above the first file: Split | Unified is always in the bar. - An unread file's trailing "More unchanged context may be available" row is not drawn and its room is given back; once the file's text is read, what is left shows as "N unmodified lines". - A narrow (phone) header keeps the folder, dimmed and cut from its start, before the bold name. Also drops a duplicate data-file-header attribute.
# Conflicts: # docs/agent-guides/inbox-files-and-guides.md
…the file's length - Every width but a phone's: the rail and the code share the page's colour with a hairline between them and no sheet corner; the bar is the one strip that stands out, a hairline under it. - Flush files: when an unread file renders, its length is read with the arrows' own (cached) reader, and the row after its last hunk shows "N unmodified lines" only when N > 0 (its arrow opens them); unknown or none, it stays hidden and its room given back.
…ce, drop the last corner, fix the docs - An arrow clicked while a file's length is being read shares that read; the unmount cleanup also forgets the key, so StrictMode's second run reads again. - The server's file route finds the changed file in a per-diff-answer parse (inbox-pull-diff-files.ts) instead of parsing the whole patch per file. - The code area's 12px top-right corner is gone; the e2e checks both corners and that 'More unchanged context may be available' never shows. - Tests for a failed read, a re-render and cancel-on-unmount; docs updated.
…'s order, not the patch's Co-Authored-By: Claude <[email protected]>
…it | Unified, the pane frame, no row after the last hunk - The bar takes the review app's header fill (bg-card/50 on the page): lighter than the page in light. - A 33 px muted row over the code, as the review app's tab strip, holds Split | Unified at its right end. - The PR view is framed against the Inbox sidebar as the other main panes are (their corner and ring; flat window: the sidebar's rule), and edge to edge on a phone. - Flush files draw no row after an unread file's last hunk, whatever its length, and read nothing for it (the length read added in 144b191 is gone); an arrow above still opens the whole text. Co-Authored-By: Claude <[email protected]>
… after its one hunk, not drawn) Co-Authored-By: Claude <[email protected]>
# Conflicts: # packages/server/inbox-pulls.ts
backnotprop
added a commit
that referenced
this pull request
Nov 7, 2026
…/pr-view-diff-controls #2730 landed on main with the shared diff controls, and #2639 moved the PR page's Split | Unified into the review app's tab row over the code (owner, 11-07 19:08). Most of this branch is now in its base, so the tree takes #2672's, with one change left: the PR page's tab row draws DiffControls (every review header's one Split / Unified button, Collapse all, the Diff display gear; approval diff-controls-headers) in place of the two-mark switch, and Collapse all reaches the reader. The bar is unchanged.
backnotprop
added a commit
that referenced
this pull request
Nov 7, 2026
…/inbox-pr-launchpad Main's Reviews page replaced the stack page's picker (ReviewPicker, onLaunch) with the New review box, and a reviewed PR's row now opens its thread. The launchpad follows it: - Start a guided review opens the New review box filled in with the PR (onNewReview), as the stack view's Review with an agent; one review thread at a time, as before. The picker, its waits and the focus hand-back go with it. - A thread that only named the PR (the page's `mentioned`) is no review thread: the guided review reads as none yet and can start, and the Review thread card says Thread with the agent and offers Open thread. - A Reviews row opens the launchpad as the page opens a PR row; a reviewed PR's row stays its thread's, and the thread's line over its title leads here. - App passes stacked, onOpenGuide, shapes and onOpenShape to the Reviews list. Every other file takes #2672's; the launchpad's own changes are unchanged. Tests and the e2e flow follow the New review box.
# Conflicts: # docs/agent-guides/inbox-files-and-guides.md # tests/e2e/inbox-code-review.spec.ts
Since #2737 every guide opens in the full-window review, so signing on threadHeading signed a Code-review-off review's comments too. The review now signs only when it is a review with Code review on (isReview); the PR page still signs.
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.
Draft: the owner approves the look before merge. The owner's decision: "Idc about the exact color it's the layout layering of background colors I want parity with" (parity with Plannotator's code review app; take A, the review app's colours).
What changes
Measured against the real review app on one diff (same files, a comment, a stack), at 1440 light, 1440 dark and 800. Code, gutter, bands, hunk separators and the comment card already matched exactly. The frame did not: there were three pale bars (150 px against the review app's 70), the row controls floated above the first file, and there were 19 px and a line between files.
Pull requests → click a PR (at every width except a phone's):
buildDiffFileTreefrom@plannotator/uiand the review app'sViewedControl. That gives folders that fold, sans 13/500 at the window's Text size, 28 px rows with no gap, the 14 px Viewed circle (it toggles, and names its file), the change letter, the comment count, and no zero count. A long name is cut at its start. A folder that does not fit fades out at its end and gives way before the file name. The diffs follow the rail's order; within the section the viewer still draws tests after code.docsbesidedocs/index.md, or for one half of a symlink that became a file.pulls/reviewFiles.tskeeps those files in the review as rows of their own after the tree, with their full path.buildTriedoes not change, because the review app shares it.--mutedfill on this page only, where it is beside the page, for the owner to judge.getIdentity()as its author, so the card's header shows the name beside the time. The Inbox now also loadsdisplayNamefromconfig.json: the settings read returnsdisplay_name(not to a tailnet guest) and passes it toconfigStore.init. The forge post and the agent's feedback do not carry the name. This also shows in a thread's guided review and code review, because they shareGuideReader.--mutedrow, like the review app's tab row: the layers as tabs (the current one--background), the quiet words, This layer | Whole stack, Global comment, Split | Unified.bg-card/30. When it folds, its sheet stays a card over the diff.Every
.ib-gbody(also the thread's guided review and code review):--panel-header-h: 33px, so the file header does not collapse under the scrollbar.Shared packages: additive only. The review app does not change.
packages/ui:ViewedControlmoves tocomponents/FileRowAtoms.tsxwith an optionalname, and review-editor'sFileRowBitsexports it from there, so the review app's import stays.Tooltipgets aTooltipEscapePassesThroughcontext (unset: as before). The PR page sets it, so a tooltip inside the shared rows does not take a sheet's Escape.review-editor:AllFilesCodeViewgets an optionalflushFiles(no spacing around a hunk separator or at the foot of a file). Only the PR page's bareGuideReadersets it, so the thread's guided review and code review keep their spacing. Their file box heights are the same as on main.guide-viewer:GuideViewgetsactionsHost, and the host passesflushFilesto a content-fit box's height estimate. Only the PR review passes them.pulls/rail.ts(railRows) goes, replaced by the tree.Tested
tests/e2e/inbox-pull-requests.spec.ts,inbox-guides,inbox-code-review,inbox-worst-case,inbox-pull-sheets-webkit. Guards: the frame's numbers (37, 33, 16, rail to the foot, one hairline), the strip's--muted, the rail's row recipe and order, the card's name line, the words on the strip and above the files when the rail folds, a short strip, the column's fill and the folded sheet, the scrollbar at rest and on hover, every file kept on a realgit diffwith colliding paths, the diffs in the rail's order where git's differs, Viewed from the circle, the header and a reload, the sheets' bounds at 390, 800 and 1100, the Files sheet, Escape with a tooltip on screen, the stack's layers in view over 80 files, a folder that does not fit, "All 3 layers" and what it opens, and the note and the foot with long words. With Code review off, a thread's code review file box has the same height as on main.DOM_TESTS=1:GuideView(the new props and both estimates),Tooltip(the context),pullReview(All N layers: open layers only, counts, disabled, its click),pullReviewKept,GuideSectionCard,guideDiffStyle,useSheetEscape;tests/inbox-thread-css.test.ts;tests/agents-md-size.test.ts.Escape on a folded sheet. Escape closes an open sheet wherever focus is: after a mouse open in WebKit, after a click on nothing or beside it, and after a composer's or card's own Escape. A composer, a card edit or a menu keeps its own Escape, so the next Escape closes the sheet. Tabbing out of a sheet closes it, so focus never goes to something the sheet covers. No new shortcut.
🤖 Generated with Claude Code