Skip to content

Details in the Inbox's full review of a PR, and the PR title opens Details - #2735

Closed
backnotprop wants to merge 12 commits into
feat/pr-view-descriptionfrom
feat/inbox-review-details
Closed

backnotprop wants to merge 12 commits into
feat/pr-view-descriptionfrom
feat/inbox-review-details

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

Stacked on #2672 (the PR page's Details panel).

What a person sees

The full review of a thread handed one PR (the Inbox's full-window review, Walkthrough | All files):

  • A Details button next to the review's title in the top bar, with the same status as on the PR page: a dot for how the checks stand and the number of people's comments.
  • Clicking it, or clicking the review's title, opens the same Details panel as the PR page: description, comments, reviewers, checks and labels.
  • A comment's file:line opens that file in All files and closes the panel.
  • Escape or × closes the panel. Escape closes the panel first; it does not leave the review.
  • On a phone, a row under the top bar shows the PR's title. Tapping it opens Details full screen, as on the PR page.
  • A local review, or a thread handed more than one PR, shows no Details button, and its title stays plain text.

The PR page: clicking the PR's title (#N Title) opens Details too. The Details button stays next to it for now.

The title gets a light fill on hover and while Details is open. Its accessible name is the title on screen followed by ", opens details".

To drop the Details button

Set DETAILS_BUTTON to false in packages/inbox/pulls/PullDetails.tsx. The button then goes from both screens, and the title shows the checks dot and the comment count after its words.

How

  • No new endpoint. The panel uses the same reads as the PR page: the Inbox's PR list names the PR, then GET /api/inbox/pulls/details. Neither server changes.
  • The panel is PR view: the PR's description at the head of its diff #2672's PullDetails, not a copy. pulls/ThreadPullDetails.tsx holds the review's state for it, so ReviewPane changes only in its top bar and the panel's place.
  • No new settings, confirmations or shortcuts.

Tests

  • packages/inbox/reviewPane.test.tsx: Details shows for a thread with one PR, also when the review is read-only, and not for a local review or a thread with several PRs. The title opens it. Escape and × close it. A comment's file:line opens that file in All files.
  • packages/inbox/pulls/pullReview.test.tsx: the PR page's title opens and closes Details, and the Details button still opens it.

…pens Details

A thread's full-window review of a thread handed exactly one PR gets the PR page's Details button and panel
(description, comments, reviewers, checks, labels), from the same reads. A comment's file:line opens that file in
All files; Escape or the close button closes the panel; on a phone the PR title in a row under the bar opens it full
screen. On the PR page and in the full review, clicking the title opens Details too. DETAILS_BUTTON in
pulls/PullDetails.tsx keeps the Details button; set false, the title carries its checks dot and comment count.
…, a failed read

- Escape on the document, not the window's capture: a menu over the bar keeps its own Escape, and App's ladder finds it used.
- Tabbing out of the full review's Details closes them, as on the PR page.
- A failed details read in the full review never says "No description."; the note names the description.
- DETAILS_BUTTON = false (the owner's "title only"); a PR's title stays, shortened, in a 768-959 px bar; the title's words give way before its status; its tip says a click opens Details.
- Tests: a window-bubble stand-in for App's ladder, Escape in the chapter menu, tab-out, the short bar's hiding rules read from inbox.css, the failed read.
- Guide: the full review's Details and the title as the way in.
…tack/2735

# Conflicts:
#	docs/agent-guides/inbox-files-and-guides.md
#	packages/inbox/components/ReviewPane.tsx
#	packages/inbox/inbox.css
#	packages/inbox/reviewPane.test.tsx
…tack/2735

# Conflicts:
#	packages/inbox/components/ReviewPane.tsx
#	packages/inbox/inbox.css
backnotprop added a commit that referenced this pull request Nov 8, 2026
backnotprop added a commit that referenced this pull request Nov 8, 2026
…s :has() part

softType.test: #2672's description body and #2735's Details panel set 26
bare font sizes. Each now goes through its --ib-fs token (same size at 14).

hasInvalidation.test: two rules ended in a part with nothing to key on after
a :has(), which restyles the whole page on any DOM change. Same elements,
:has() moved onto the styled element:
- #2886's two-line preview: the row line's parts beside .ib-pv.
- #2672's phone foot: the foot's parts beside .ib-prr-note.
backnotprop added a commit that referenced this pull request Nov 8, 2026
#2735 (approval inbox-review-details-panel, addendum "title only") set
DETAILS_BUTTON = false: on a computer the PR title opens the details and
carries the checks' dot and the comments' count; only a phone's title row
keeps [data-pull-details-button]. It updated the DOM tests, not this spec,
and #2735's stacked PR had no Inbox e2e run. openDetails and the two status
checks now use the title on a computer, the title row on a phone.
backnotprop added a commit that referenced this pull request Nov 8, 2026
inbox-code-review.spec.ts:709 fails on the train ("ib-rj-btn overlaps ib-vsep
ib-rv-titlesep") once a review is linked to a PR: #2735's title-only Details
keeps the PR title (9rem floor) and its separator at 768-959 px. The check
said neither the width nor by how much. Same assertion; the message now
gives both, for the owner's pick of what gives way.
Title-only Details keeps the PR title (9rem floor) and its separator at
768-959 px, where main hid both; nothing else in the bar shrinks, so with a
PR's destination the jump button ran 9 px under the title's separator at
800 (inbox-code-review.spec.ts:709). There the title's floor is 5rem. The
Walkthrough / All files switch always stays. (Owner's call via the train C
coordinator.)
backnotprop added a commit that referenced this pull request Nov 8, 2026
With the diff controls in the bar (#2732) and the PR's title at its 5rem
floor, "Overview" was still cut at 768 px. Under 800 px with a destination,
the title's separator goes, the gaps narrow to 4px and the verdict shows its
check (as under 768 px). The Walkthrough / All files switch stays.

The Overview check now says how much of the name shows, and at what width.
CI measured "Overview" at 59 px in 30 at 800 px: 29 px short with 6px
gaps. The bar's gaps are 2px across 768-959 px with a destination, as under
768 px (about 36 px back). Under 800 px the title's separator still goes
and the verdict shows its check. The 5rem title floor and the switch stay.
yermakoffivan pushed a commit to yermakoffivan/plannotator that referenced this pull request Nov 8, 2026
…w-details

# Conflicts:
#	docs/agent-guides/inbox-files-and-guides.md
#	packages/inbox/components/ReviewPane.tsx
@backnotprop backnotprop closed this Nov 9, 2026
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