Repository navigation
Diff display controls in every review header, shared settings - #2730
Merged
Merged
Conversation
- One Split / Unified button (ui DiffLayoutToggle) and the Diff display popover (ui DiffDisplayOptions) in code review's tab strip, the Inbox guided review (before Close) and the full-window review (top bar only; the chapter tabs and the docked switch are gone). - The Inbox popover hides Whole file and Hide whitespace. - POST/GET /api/inbox/settings carry diff_options (each field checked, diff_style kept as an alias); diffStyle.ts becomes diffOptions.ts and theme.ts forwards every diff field; the reader applies the tab size. - Collapse all in the Inbox through the guide host's optional collapseAll. - The pull request page keeps its tab for now.
…lobal comment in the strip
…eader, Global comment in the strip" This reverts commit a8bb782.
… the gear, remount only changed files on Collapse all - inbox-diff-options: look a field up only among the table's own keys, so toString or __proto__ answers 422 diff_options.<name>, not 500. - DiffDisplayOptions: the gear's hover text goes through HostTitle (a native title in code review as before, ui's tooltip in the Inbox), with an optional triggerTitleSide; the Inbox opens it below, like its neighbours. - GuideFileCard: Collapse all / Expand all mounts a file's viewer again only when its state changes, so an already open file keeps its opened context gaps and an open comment.
backnotprop
marked this pull request as ready for review
November 6, 2026 03:13
# Conflicts: # docs/agent-guides/server-and-storage.md
# Conflicts: # docs/agent-guides/inbox-files-and-guides.md # packages/inbox/inbox.css # tests/e2e/inbox-code-review.spec.ts
# Conflicts: # docs/agent-guides/inbox-files-and-guides.md # packages/inbox/inbox.css
…back restores each file's own layout
…estination, so Overview reads whole beside the diff controls
…279 px), chapters keep their cards
# Conflicts: # docs/agent-guides/inbox-files-and-guides.md # tests/e2e/inbox-code-review.spec.ts
The PR renamed the test ('Split | Unified' became 'and the diff controls'),
so the entry named a test that no longer exists and the quarantine guard
failed. The flaky step it quarantines (the jump name after the keys) is
unchanged; its line moves to 698.
backnotprop
added a commit
that referenced
this pull request
Nov 7, 2026
Every guide still opens the full-window review; main's Shape boards, Show me, #2730's diff controls in the bar and the board-link landing now ride along in it. GuidePane stays removed; its Shape landing and DiffControls already live in ReviewPane.
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.
yermakoffivan
pushed a commit
to yermakoffivan/plannotator
that referenced
this pull request
Nov 8, 2026
…eader Carries backnotprop#2730's commit (98c7c8a: one Split / Unified button, Collapse all and the Diff display gear in every review header, shared through config.json), with its conflicts against this branch resolved, and puts the same controls on the PR page's bar after Details. The docked Split | Unified switch and the first file's tab are gone; the Details panel is unchanged.
1 task
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.
Approval:
.product/approved/diff-controls-headers/approval.md.What changes
ReviewDockRightActions): the two words become the button, and the popover has no Split / Unified row;GETandPOST /api/inbox/settingscarrydiff_options:diff_style,overflow,indicators,line_diff_type,line_numbers,background,background_intensity,tab_size;422namesdiff_options.<field>;diff_stylestays as an alias;diffOptions, so a choice holds across code review and the Inbox, even on another host.packages/inbox/diffStyle.tsbecomesdiffOptions.ts.theme.tsforwards every diff field in one POST. The reader applies the tab size.collapseAllvalue. It is not remembered.packages/uichanges are additive only: two new components and a type export. Only the Bun server is touched (the Inbox is Bun-only).Tests
packages/server/inbox.test.ts: thediff_optionsround trip, every field check, an unknown key, the alias, and an alias that disagrees with the object.packages/inbox/guideDiffStyle.test.tsx(DOM, real Inbox server):reviewPane.test.tsx,ReviewDockRightActions.test.tsx.inbox-guides,inbox-code-review) but were not run locally.