Registry Mirror
Skip to content

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

What changed

"You:" opens the thread where you decide. On a lane card in Your look and Your review, "You: …" is now a button of its own, separate from the card. It shows as a link: a small ↗ arrow at rest, and the link colour with an underline on hover and focus. Its accessible name is "Open the thread to merge #15". The title is still the button that opens the card, and a click anywhere else on the card opens it too. Keyboard: Tab reaches the title, then "You: …"; Enter on either does what it says. No new shortcuts.

Opened card. The You band gets a primary Open thread ↗ button that goes to the same thread. It is hidden when the card links no thread.

The way back is unchanged. A thread opened this way shows "‹ Board" and the card's chip, as a thread opened from the card's Threads list does.

Less padding under the lanes. The 24 px under the lanes came from two paddings of 12 px each: the lanes' own bottom padding and the Board body's. Now the lanes have none and the body keeps 10 px, the gap between lanes. The opened card's panel ends on the same line. On a phone, the stacked list's end padding goes from 24 px to 10 px (plus the safe area).

How the thread is chosen (youThread, packages/inbox/board/model.ts)

  1. The thread the card was sent in (card.sent.thread_id), while it is still linked or in the list.
  2. Else the linked thread with the latest message (last_at from the list row). When the list does not hold them, or on a tie, the one linked later.
  3. Else none: "You: …" opens the card, and its name says so ("Open the card to …").

Tests

  • packages/inbox/board/model.test.ts: the thread choice: sent first; then the latest, whatever order the threads were linked in; the later-linked one when the list does not hold them; a sent thread that is gone is passed over; none gives null. Also the link's names.
  • packages/inbox/boardPage.test.tsx (DOM): "You: …" and the title are separate targets. "You: …" opens the sent thread, else the latest, and never the card. With no thread it opens the card. The title and the rest of the card open the card and never a thread. The opened card's Open thread goes to the same thread and is absent with no thread.
  • Run here: bun run typecheck; the Board DOM and model tests (28 pass); the build in order (review, hook, opencode) and the compiled binary; tests/e2e/inbox-board.spec.ts headless against a scratch data dir (14 pass).

Screenshots

These are local files from a seeded scratch Inbox. They are not embedded here.

  • /tmp/board-lean/shots/you-link-hover-1440-{light,dark}.png: "You: …" on hover
  • /tmp/board-lean/shots/you-link-focus-1440-{light,dark}.png: "You: …" with keyboard focus
  • /tmp/board-lean/shots/you-link-thread-1440-{light,dark}.png: Enter on it lands in the thread, with "‹ Board" and the card chip
  • /tmp/board-lean/shots/you-link-opened-1440-{light,dark}.png, you-link-phone-opened-{light,dark}.png: the opened card's Open thread
  • /tmp/board-lean/shots/bottom-padding-{before,after}-{light,dark}.png (and -full-): the padding under the lanes, before and after

Approved by the owner in the Inbox, 2026-10-27

Owner, 2026-10-27: "When there's a You action, it should take me to the
thread where I need to make the call."

- Lane card: "You: ..." in Your look and Your review is its own button
  (a link: arrow, link colour on hover and focus), named "Open the thread
  to ...". It opens the card's sent thread, else the linked thread with
  the latest message (youThread), with the same way back to the Board;
  with no thread linked it opens the card. The title stays the button
  that opens the card; a click anywhere else on the card opens it too.
- Opened card: an Open thread button in the You band, to the same thread.
- Tests: youThread's choice (model.test.ts) and the separate targets and
  the panel's button (boardPage.test.tsx).
Owner, 2026-10-27: too much empty space under the lanes. The 24 px was
the lanes' own bottom padding (12 px) plus .ib-bmain's (12 px). Now the
lanes have none and .ib-bmain keeps 10 px, the gap between lanes; the
opened card's panel ends on the same line. Phone: the stacked list's end
padding 24 px -> 10 px (plus the safe area).
…lain text with no thread

Review of #2240:
- On a phone, "You: …" fills the card's bottom row and is at least 44 px tall (it was 18.8 px, so a slightly missed tap opened the card). The row takes the card's bottom padding and the gap above it. e2e asserts the height, the width and that it stays inside the card at the iPhone 15 size.
- The accessible name now starts with the visible words (WCAG 2.5.3): "You: Merge #15, open the thread". The first letter is no longer lowercased. The opened card's Open thread is named by its own words and described by the You line.
- With no thread linked, "You: …" is plain words, not a button, so there is no duplicate tab stop. A click on it still opens the card.
- youThread drops the unreachable rowOf(sent): a send always links its thread, and the wire drops a gone one.
- Tests check behaviour (the name holds the shown words, no second button with no thread) instead of echoing copy.
@backnotprop
backnotprop merged commit 684a9a2 into main Oct 27, 2026
29 checks passed
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