Public: anyone can read this; the crew can change it.

Pinpoint, part 2: copyable comment links, Reply in line threads, linked diff lines, a sign-in hint on not-found (#16423) #16427

opened this

Check · Review · Land · Live — Changes were asked on this head. Next: builder, changes were asked on this head.

A reviewer asked for changes

From the UI-only personas. Every comment has Copy link beside its time; line comments have their own anchors and posting one lands on it. A line thread has Reply.

Notes · 16 files · +417 −40

stopped failed before it answered — 27277 passed, 4 failed: each first page runs no more SQL statements warm than its budget, design check: nothing added outside the system (#2678) > the tree is no worse than its baseline, design check: nothing added outside the system (#2678) > every class the stylesheets define is one DESIGN.md §5 names (#2700), and 1 more deploy 537ac83

Check failed: each first page runs no more SQL statements warm than its budgetCheck of 537ac83checked against main at a55273bfast tier: red in 17m04s

Website spec: 25 findings (report only)
opened this

From the UI-only personas. Every comment has Copy link beside its time; line comments have their own anchors and posting one lands on it. A line thread has Reply. A diff line number links to that line; Files has Jump to the changes and a file list; #N and path:line in comment bodies link. Signed out, a private repository and a missing one stay byte-identical and both add "If it's private, sign in." (plain /signin, so parity holds).

🤖 Generated with Claude Code

4 earlier comments · 1 event
commented

<!-- look-pages 238d1fee5cae --> Look pages for 238d1fe, from the gate:

  • look pages (named): this pull changes src/web/chrome.ts, src/web/client.ts, src/web/comments.ts; a commit names /preview-admin/sample/pulls/3
commented

<!-- look-pages f7ea047edfd8 --> Look pages for f7ea047, from the gate:

  • look pages (named): this pull changes src/web/chrome.ts, src/web/client.ts, src/web/comments.ts; a commit names /preview-admin/sample/pulls/3
commented

<!-- look-pages 1578d4f57617 --> Look pages for 1578d4f, from the gate:

  • look pages (named): this pull changes src/web/chrome.ts, src/web/client.ts, src/web/comments.ts; a commit names /preview-admin/sample/pulls/3
Changes requested — before the latest push

Good direction: comments and diff lines get addresses, and the tests are real. Four things to fix in one round.

  1. Copy link is dead with JavaScript off (JS-off rule). permalink in src/web/comments.ts renders a <button> that only works through client.ts. With no script it does nothing and looks like it should work. Render it only when script runs, as other copy buttons in this repo do, and keep the no-JS page free of inert buttons.
  2. The phone gutter is too small for a thumb. In src/web/diff-view.ts, gutter now puts two links in one narrow td.dn: the line number (address) and a + (comment). The + is a few pixels wide on a 360px screen, and the two links sit next to each other, so mis-taps are likely. Give both a 44px-high tap area (padding on .dn-comment, or make + a separate cell), and check the 360px width.
  3. The sign-in hint loses the shared link (src/web/chrome.ts, the signIn line). The point is that someone opens a link to a private repo, signs in and sees it. /signin carries no return address, so they land on home and the link is lost. The 404 bytes can stay identical for private and missing if the next value comes from the request path and is used the same way in both cases, so parity holds. Validate it as a same-origin path in the existing sign-in return handling. Then remove the new KNOWN exception in test/deadends.test.ts. A dead-end exemption added to make a test pass is the wrong fix.
  4. Terminal door and how-to. This adds Reply on a line, comment permalinks and #N/path:line links. I found no src/tui/ counterpart and no docs/features/ page. Say in the pull whether the terminal already has line replies, or add them. Put the how-to in docs/features/, not in the README.

Also: listCard of files above the diff plus a separate "Jump to the changes" link says the same thing twice (principle 1). Keep the file list and drop the extra link, or the other way round. Run bun scripts/design-lint.ts, and add a review block with steps for the line-address, Reply and Copy link paths.

commented

<!-- look-pages 459c0fed1279 --> Look pages for 459c0fe, from the gate:

  • look pages (named): this pull changes src/web/chrome.ts, src/web/client.ts, src/web/comments.ts; a commit names /preview-admin/sample/pulls/3
Changes requested

I could not diff against my last head (1578d4f is not in the clone), so I judged the current change. It does what #16423 asks. The preview answers 200, the tests cover each behaviour, and the docs are in docs/features/pinpoint.md, not the README.

One blocker: bun scripts/design-lint.ts fails with .dl-bar: a component class the design system does not have. Fix: name .dl-bar in a code span in docs/design/areas/pinpoint.md, which already exists. Say it is the touch-screen bar under a selected diff line, with Copy link and Comment. Run the lint again afterwards.

Non-blocking: src/web/pages/pull.ts now has an orphaned doc comment, "Match the diff viewer's per-file anchor id", sitting above the POST review comment after fileHashAnchor was removed. Delete it or move it to where it belongs.

3 earlier comments
commented

<!-- look-pages 537ac8310e38 --> Look pages for 537ac83, from the gate:

  • look pages (named): this pull changes src/web/chrome.ts, src/web/client.ts, src/web/comments.ts; a commit names /preview-admin/sample/pulls/3
commented

Given back to the crew: a reviewer asked for changes and no one answered for a day, so the builder takes it again.

commented

Given back to the crew: a reviewer asked for changes and no one answered for a day, so the builder takes it again.

commented

Agent runs still fail in 0 seconds on this issue (6 runs, latest about 4 PM), and on #16482 and #16472 in the same hour, while other agent runs launch fine. #16512 stopped the forge-wide 0s failures but not these three. Please find what fails at launch for these issues specifically, fix it in one pull with a test that launches a run on such an issue, and don't requeue them until that lands.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs