Repository navigation
PR view: the PR's description at the head of its diff - #2672
Merged
Merged
Conversation
…im's pull request" The band above the diff was our own placeholder. The bar already has the title; the description comes first in the review's scroll, in the Inbox's read-only Markdown at the review app's compact sizes. A long one starts folded and opens into a box of its own height, so the first file stays on screen. An empty one draws nothing. Each layer shows its own. Whose PR it is reads "by kim" beside the title, or leads the foot where the bar is short. "No review thread yet" stays on the controls' row, or the foot; on a phone it no longer sits above the diff. The diff answer gains description, through the read a layer already makes for its head (GitHub --jq, GitLab's JSON): no extra call for a layer, one beside a whole stack's compare, nothing in the list. Remote images are their alt text in ui's chip, with no request; the CSP is unchanged. Co-Authored-By: Claude <[email protected]>
…eat/pr-view-description
From the independent review of this PR. - A path in a link opens the file on the forge at the PR's head, Markdown and raw HTML alike. It used to replace the review with this window's own address. - Only http, https and mailto stay links. vscode:, ssh: and the like are their words with no click. An in-page anchor never moves the window's route. - HTML comments go on the server, outside code, a blank line in them or not. A body with no words left (comments, a lone rule) is no description. - The head read ends in `| tojson`: gh colours an object answer under CLICOLOR_FORCE, whatever NO_COLOR says, which lost the description and Post. - Folded, only the first 4,000 characters are parsed, so a hostile body costs nothing until it is opened. - A wide table scrolls in its own box. A <details> opened in a short description stays open under the click. - A body's `data-pn-image-annotator-stage` no longer passes for the annotator: the guards read the stage on its overlay, a class no body can draw. - The words: a diagram can still name a remote picture; the CSP stops it. Co-Authored-By: Claude <[email protected]>
Co-Authored-By: Claude <[email protected]>
Co-Authored-By: Claude <[email protected]>
Co-Authored-By: Claude <[email protected]>
Keeps Open in and the Others read from main beside the description's reads. The sheet's Escape no longer asks about the selection toolbar. Co-Authored-By: Claude <[email protected]>
- Web links ui draws with no target (//host/a.md, HTTPS://host/a.md) open a new tab; an empty address goes nowhere. - Nothing inside a description stands for the window's own overlays, even through a diagram's label. - Lists no longer scroll the body 8 px sideways. - Show less stays folded on a resize after a summary click. - A closed <details> cut by the fold keeps its lines inside. - <!--> and <!---> are whole comments: they no longer eat the description. Co-Authored-By: Claude <[email protected]>
Co-Authored-By: Claude <[email protected]>
…les in the guide Co-Authored-By: Claude <[email protected]>
…eat/pr-view-description # Conflicts: # docs/agent-guides/inbox-files-and-guides.md # packages/inbox/pulls/PullReview.tsx # tests/e2e/inbox-pull-requests.spec.ts
…eat/pr-view-description
…l faces GET /api/inbox/pulls/details reads fetchPRContext (GitHub and GitLab, one shape) plus who is asked to review, kept a minute a push. The Details button, or the title's row on a phone, opens two columns over the code: the description and every comment, then reviewers, checks and labels; one column on a phone. The people it names join the avatar route's allow-list, past the next list, until the PR leaves it. Faces are round, on the Reviews list too. The first file's switch tab no longer peeks out behind the panel. Co-Authored-By: Claude <[email protected]>
…eat/pr-view-description # Conflicts: # docs/agent-guides/inbox-files-and-guides.md # docs/agent-guides/server-and-storage.md # packages/server/inbox-pulls.test.ts # packages/server/inbox-pulls.ts # tests/e2e/inbox-pull-requests.spec.ts
…ption with it Co-Authored-By: Claude <[email protected]>
On a fresh load the page asked from the URL's key before the Inbox had a list. The route refused a PR it had not listed, and the panel said the forge did not answer, with no status in the bar until Try again. Co-Authored-By: Claude <[email protected]>
…eat/pr-view-description # Conflicts: # docs/agent-guides/inbox-files-and-guides.md
…ed read Found by replaying real gh answers: - Avatar URLs without a size answer the whole upload, and real ones pass the 256 KB cap (527 KB), leaving a real face as a letter. Ask for a face's size. - gh answers an unfinished check with an empty conclusion, not null, so queued and running checks were counted as passed. - A second asker of a details read that fails got 500 internal_error. Co-Authored-By: Claude <[email protected]>
A real PR has up to 124 checks and every label under them, so past five the done ones fold into a line saying what passed and what was skipped. Skipped is grey, not a green tick. Failed and running names read whole, since real ones share their first words. A bot's heading stays a comment's size, no "0 comments" over a line of bots, the head branch gives way before the base, and a lone <br /> line (dependabot's) no longer draws as words. Co-Authored-By: Claude <[email protected]>
# Conflicts: # tests/e2e/inbox-pull-requests.spec.ts
… the holds - A check counts as done only when its status says so; STALE is not a pass. - Threads and their comments are read by paging. A failed page says so (threads_incomplete) and that answer is not kept. - The budget hold stops a details read, and a rate limit from any of its reads sets the hold. - A body of only HTML comments is no description. - A read goes an hour after it was made, with the people it named. Co-Authored-By: Claude <[email protected]>
…HTML comments - The details key on the PR's head and update, and read again on opening; what is on screen stays until the answer, and a failed read again leaves it. - HTML comments stay hidden in descriptions and comments, outside code. - A comment's markup can't pose as the window's overlay and trap Escape. - A note when comments on lines could not all be read, with Try again. - An answer without a comments list no longer crashes the bar. Co-Authored-By: Claude <[email protected]>
# Conflicts: # docs/agent-guides/inbox-files-and-guides.md
On a real next.js PR a deploy bot's comment led the reviewers and set the phone's summary to "Commented" while two people had not reviewed yet. Co-Authored-By: Claude <[email protected]>
…pt-comment tests A running check with an empty conclusion, a template for a body, a bot's hidden notes, a page of line comments that fails, a comment posing as the window's overlay, and a read on every opening. A failed check's name now reads whole. Co-Authored-By: Claude <[email protected]>
# Conflicts: # tests/e2e/inbox-pull-requests.spec.ts
The diagram draws late, above the note, and moved Try again under the click on a busy machine. Co-Authored-By: Claude <[email protected]>
…job's own name, passed and skipped in the count line; a held read says so; :shortcode: emoji in forge text; no real person in the repo
# Conflicts: # docs/agent-guides/inbox-files-and-guides.md
# Conflicts: # docs/agent-guides/inbox-files-and-guides.md # docs/agent-guides/server-and-storage.md # packages/inbox/pulls/PullReview.tsx # packages/server/inbox-pulls.ts # packages/server/inbox.ts
# Conflicts: # docs/agent-guides/inbox-files-and-guides.md
…ode in a link's address stays The checks' fixtures and a doc comment used another project's CI job names, and the emoji test its stats bot's heading. They are invented now, the same shape (a long shared start, the (…, 1/5) matrix end). A shortcode inside a link's address, an autolink or a bare URL became an emoji and broke the link; addresses are passed over now, and a link's words still get their emoji.
This was referenced Nov 6, 2026
…tack/2672 # Conflicts: # docs/agent-guides/inbox-files-and-guides.md # docs/agent-guides/server-and-storage.md # packages/inbox/api.ts # packages/inbox/inbox.css # packages/inbox/pulls/PullsPage.tsx # packages/inbox/pulls/pullReview.test.tsx # packages/server/inbox-pulls.ts # packages/server/inbox.ts # tests/e2e/inbox-pull-requests.spec.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: # packages/inbox/api.ts
# Conflicts: # packages/inbox/api.ts # packages/server/inbox-pulls.ts # packages/server/inbox.ts
Semgrep's TypeScript parser reads `<!--` and `-->` in a regex literal as
HTML-like comments, fails on the file, and the Semgrep CE job exits 3.
Write the dashes as `-{2}`: the regex matches exactly the same text.
backnotprop
added a commit
that referenced
this pull request
Nov 8, 2026
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
#2672 reads the PR as it is now with --jq '{sha: .head.sha, body: .body} | tojson' and changed inbox-pulls.test's fake to answer it, but: - inbox-pulls.test ghJq answered the plain '.head.sha' read (readHeadNow, which the whole diff a risk judgment reads) with '{}', so no judgment ever ran (the two risk ranking tests). - inbox-file-contents.test's fake still matched only '.head.sha', so the diff's head came back null (the two "a PR's file" tests). - The avatar test expected the picture URL as the forge gave it; #2672 asks github's picture host at s=96 (inbox-pull-avatars.ts sizeForAFace).
backnotprop
added a commit
that referenced
this pull request
Nov 8, 2026
#2672's diff reads the PR around its patch with --jq '{sha: .head.sha, body: .body} | tojson' (JSON), while the whole diff still reads --jq '.head.sha' (raw). The e2e fakes answered every --jq read one way: review-comments-phone, open-in-refs and pull-risk with a raw sha (the JSON read failed, head_sha was null, the phone's comments panel went read-only: 0 actions, not 6), pull-requests with JSON (the raw read failed). Each now answers the tojson read with JSON and the plain one raw.
backnotprop
added a commit
that referenced
this pull request
Nov 8, 2026
Main (423fa3b) moved Split | Unified into the bar; no section tab is left on the first file, and main's spec asserts none. #2672's Details test still waited for that tab to hide under the panel and come back after Escape (line 1413 could never pass; #2672 had no e2e run). It now hit-tests the panel's top band (nothing from the code shows through) and, after Escape, checks the first file's header is back.
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.
yermakoffivan
pushed a commit
to yermakoffivan/plannotator
that referenced
this pull request
Nov 8, 2026
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.
Stacked on #2639. Draft: the owner approves the look before merge.
The owner, on the band above the diff that said "kim's pull request": "If this is a PR, why not show the PR title and description at the top?" That band was our own placeholder. The owner then asked that the page look like a real GitHub PR, with real pictures and real data.
What the PR view shows now
COMPLETEDcheck with a conclusion other thanSTALEcounts./api/inbox/pulls/avatarroute, which is now asked for GitHub's face size (96 px) and not the full upload. Faces are round. While a picture loads, or when it cannot load, the face shows an initial. A deleted account is a grey person, and an app or a team is a soft square (a team asks for no picture). The window's CSP does not change:img-src 'self' data: blob:.Data
GET /api/inbox/pulls/details?key=…(Bun server only, like the rest of/api/inbox/pulls/*; the Pi server has no Inbox):{ description, labels, reviewers, checks, comments, threads_incomplete? }for GitHub and GitLab in one shape. It is asked for only once the list names the PR. It is read again when the PR's head or update time changes, and each time the panel opens. The server keeps a full answer for a minute.threads_incomplete, the panel says "GitHub did not answer for all the comments on lines." with Try again, and that answer is not kept.descriptionfrom the read that the layer already makes for its head commit, so a layer makes no extra forge call for it.A stranger's words
The description and every comment are someone else's words. They go through the same rules:
<br>lines go.data:image/one draws.http,httpsandmailtostay links. A path in a link opens the file on the forge at the PR's head; it never replaces the window.sanitizeBlockHtml. Markup in a comment, also in a diagram's label, cannot pose as the window's own overlays to switch off Escape or the selection toolbar (STRANGERS_MARKUPnow covers the Details panel).Tested
ghanswers for public PRs, played back to a sandboxed Inbox through a stand-inghthat refuses anything that is not a read. Pictures loaded through the avatar route. This found the queued checks drawn as passed, the full-size uploads, a "0 comments" heading over bot-only comments, and PR template comments shown as words. All are fixed here, and the server tests use answer shapes copied from those reads.tests/e2e/inbox-pull-requests.spec.ts(36 passed, 2 skipped),inbox-code-review. New guards: the details asghreally answers (a running check, a template body, a bot's hidden notes, a failed page of comments on lines and Try again, a comment posing as an overlay), the details from the forge, a failure, the description cases, and the details waiting for the list.inbox-pull-details,inbox-pull-avatars,pr-github,pr-gitlab,pr-provider.inbox-pulls.test.tsruns in CI.DOM_TESTS=1:pullDetails,pullReview,pullReviewKept,descriptionLinks.🤖 Generated with Claude Code