Registry Mirror
Skip to content

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

Builds the approved "Ticks" design (.product/approved/inbox-row-delivery/): a small glyph before a list row's time tells where the person's latest sent item is.

  • Clock = queued, three dots = sending (still under reduced motion), ✓ = saved, ✓✓ = delivered (the time becomes the delivery time), warning triangle = not delivered.
  • Covers replies, threads the person started, New messages and a queued 👍. Wide rows, rows beside a thread, phone rows; light and dark.
  • A Sent row shows its real subject again. A reply that tags agents keeps its recipients words.
  • The state words are in the row's accessible name; the tooltip (ui's, not a native title) is the thread's own delivery line. Send now stays in the thread.

How row and thread stay in step: a new additive row field, delivery, is computed on the server by inboxDeliveryState (packages/core/inbox-delivery.ts). deliveryLine now delegates its state to the same rule. The store gathers the same inputs the thread does, and the server hands it the live sessions (setDeliveryPresence). Memory only, a few lookups per row.

Live updates: a turn starting or ending writes no store line. The server compares the live sessions' delivery signature once a second while a window listens, and sends event: deliveries (windows only, never the phone's door). The window reads the list again only while some row's delivery can still change.

Tests: bun run typecheck; bun test packages/core packages/shared packages/inbox packages/server/inbox (3236 pass); the inbox DOM list (478 pass, with the new rowTicks.test.tsx); new store-row-delivery.test.ts, inbox-row-delivery.test.ts, rowDelivery.test.ts. Playwright on the compiled binary: inbox-send-now (extended: row ticks, the tooltip, a live busy→idle change, shots), inbox, inbox-order, inbox-tags, inbox-ack, inbox-compose, inbox-ended-session, inbox-mobile, inbox-new-message, inbox-open-stays-put, inbox-tooltips, inbox-replaced, inbox-worst-case, inbox-mark-read all pass.

🤖 Generated with Claude Code

backnotprop and others added 4 commits October 20, 2026 15:14
A row whose latest sent item is the person's (a reply, a message they
addressed to a session, a 👍 Looks good) shows a glyph before its time:
a clock queued, dots sending, ✓ saved, ✓✓ delivered (the time becomes
the delivery time), a warning triangle not delivered (approval
"inbox-row-delivery", Ticks). A Sent row shows its own subject again.

The server puts an additive `delivery` field on each row, decided by
`inboxDeliveryState` (packages/core/inbox-delivery.ts), the rule the
thread's delivery line now delegates to, from the store plus the live
sessions it hands the store. A busy/idle change writes no store line, so
the server compares the sessions' delivery signature every second while
a window listens and sends `event: deliveries`; the window reads the list
again only while some delivery can still move.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The row picked the last agent message with an open or picked question as
the session that asked, while the thread (default skip, no picks) uses the
latest agent message, so a words-only reply to a second session read
'saved, the session that asked ended' on the row and 'Queued' in the
thread. Both now use inboxAskingMessage / inboxDefaultSkip (core), and the
row's ended tooltip names the asking session's agent (delivery.asking).
hasMovingDelivery skips saved-for-a-reader rows; listRow reads question
states in its one pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	packages/inbox/App.tsx
…ough inbox-types)

Like inbox-open-in and inbox-attachments, the module reaches every caller
through @plannotator/core/inbox-types, so core's export map stays equal to
the published 0.25.13 and the UI package smoke passes without a bump.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@backnotprop
backnotprop merged commit 3a24152 into main Oct 20, 2026
32 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