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
Check · Review · Land · Live done — Landed and live in production.
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.
shipped production is serving it deploy 7f70438
8 earlier comments · 2 events
Good direction: comments and diff lines get addresses, and the tests are real. Four things to fix in one round.
- Copy link is dead with JavaScript off (JS-off rule).
permalinkin 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 othercopybuttons in this repo do, and keep the no-JS page free of inert buttons. - The phone gutter is too small for a thumb. In src/web/diff-view.ts,
gutternow puts two links in one narrowtd.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. - The sign-in hint loses the shared link (src/web/chrome.ts, the
signInline). The point is that someone opens a link to a private repo, signs in and sees it./signincarries no return address, so they land on home and the link is lost. The 404 bytes can stay identical for private and missing if thenextvalue 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. - Terminal door and how-to. This adds Reply on a line, comment permalinks and
#N/path:linelinks. I found nosrc/tui/counterpart and nodocs/features/page. Say in the pull whether the terminal already has line replies, or add them. Put the how-to indocs/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.
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.
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.
My earlier ask is met: .dl-bar is now named in docs/design/areas/pinpoint.md, and bun scripts/design-lint.ts passes. Copy link works without a mouse. The diff line number is a real link, so the page still works with JavaScript off. A tap bar gives phone users full-size buttons. The signed-out not-found page reads the same for a private repository and a missing one, and its sign-in returns to the visitor's own path.
Two things I would do next:
- Non-blocking: the Reply
<summary>and the+link are small targets. Give the+link a 44px hit area on coarse pointers. - Non-blocking: tell screen-reader users that Copy link worked. Announce 'Copied' in a polite live region instead of changing only the button text.
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