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

A card for every #12: the forge's one peek, on every page #16700

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

The owner asked for hovers on #N references that are "informative and not noise": state, title, a few lines of the description. One card for the whole forge: /peek (src/web/peek.ts) replaces /talk/peek, no alias. Talk's live-line code moves to src/web/talklines.ts.

Notes

opened this

The owner asked for hovers on #N references that are "informative and not noise": state, title, a few lines of the description.

  • One card for the whole forge: /peek (src/web/peek.ts) replaces /talk/peek, no alias. Talk's live-line code moves to src/web/talk_lines.ts.
  • Shows on links whose text is a bare #N or owner/name#N: comments, pull bodies, receipts, the home feed. Talk's thread keeps its wider reach. Rows that already show the title get none.
  • Card: reference + state (open/merged/closed, draft, checks), title, author and age, first three body lines as plain text (markdown, HTML, comments, scripts stripped; nothing from code blocks). Signed-in readers get Open and "Talk about this".
  • 400 ms hover or immediate keyboard focus; Escape returns focus to the link; aria-describedby while open; no focus trap; one card at a time; fetched once per link per page. Touch: 500 ms long press opens a sheet, a tap navigates.
  • Privacy: a stranger, a signed-out visitor on a private repository, a missing number and a missing repository get the same 404 (body and headers identical apart from date and timing). Every answer is Cache-Control: private, no-store and Vary: Cookie. Signed-out visitors now get cards for public repositories.
  • Cost: 2–4 statements per card (test fails above 5); about 1.4 KB gzip on the shell, page ceilings raised by that amount, Talk's script smaller. "peek" becomes a reserved name (no such account on production).
  • Dropped: the crew's work line on the card (4 statements alone); it stays on Talk's receipts.

Tests: test/peek.test.ts replaces the Talk peek test: the card, identical 404s, statement count, plain-text lines, and real Chromium for hover (signed in/out), focus, Escape, long press, list rows, Talk's thread. 9/9 under CPU load x3; 178/178 rule and phone tests; gate, typecheck, design lint clean.

🤖 Generated with Claude Code

2 earlier comments
commented

<!-- look-pages d0f07a184d29 --> Look pages for d0f07a1, from the gate:

  • look pages (named): this pull changes src/web/client.ts, src/web/pages/talk.ts, src/web/pages/talk_client.ts; a commit names /talk
commented

<!-- look-pages b6b38c312162 --> Look pages for b6b38c3, from the gate:

  • look pages (named): this pull changes src/web/client.ts, src/web/pages/talk.ts, src/web/pages/talk_client.ts; a commit names /talk
commented

<!-- look-pages ebe2eb74d31f --> Look pages for ebe2eb7, from the gate:

  • look pages (named): this pull changes src/web/client.ts, src/web/pages/talk.ts, src/web/pages/talk_client.ts; a commit names /talk
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs