Skip to content

Inbox: "Which view do you prefer?" offers Agents, Smart groups and Simple list - #3785

Merged
backnotprop merged 7 commits into
mainfrom
feat/inbox-view-choice-dialog
Nov 20, 2026
Merged

backnotprop merged 7 commits into
mainfrom
feat/inbox-view-choice-dialog

Conversation

@backnotprop

@backnotprop backnotprop commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

What a person sees

The one-time "Which view do you prefer?" dialog now has three choices instead of two (layout C):

  • Agents first, with the larger picture and a "New" tag: "Your agents, each with its threads."
  • Smart groups ("Recommended"): "Puts what needs you on top and sorts the rest for you."
  • Simple list: "Every thread, newest first, like email."

The three pictures are the picture the owner designed and approved (C-r3), the same for everyone, never the person's own list: four made-up agents (Ops with Claude Code's mark, Review with Codex's, Tide wearing Blastoise, Search index in pink Glass) and their threads, drawn by the real Agents view, rows and groups. Times are offsets from the moment the dialog opens, so the picture never shows a stale day. Inside the pictures a small context (pictureWorld.ts) hands the demo's agents and faces to the agents hooks, so nothing of the person's (agents, faces, folds, row marks) reaches them.

Blastoise ships with the Inbox: PokeAPI's sprite #9 (the same picture the fetchable Pokémon set gets), trimmed as the Inbox trims that set, bundled in packages/inbox/assets/view-choice/ with a NOTICE crediting PokeAPI's sprites. It is drawn through the set-face path with no request and without the Pokémon set installed.

In the Agents picture, Review and then Tide fold and open again by themselves in a calm loop, to show that agents fold. It goes through the view's own fold (the folded head with its count; AgentsList's new folded, never kept) with the picture's own height-and-fade motion. It never folds Ops, which is waiting on you. It runs only while the dialog is open and the picture is on screen, pauses while the tab is hidden, and stays still with every agent open under reduced motion. The real Agents view's folds still do not animate.

The dialog follows the view in use: that choice is tagged "In use" and its filled button reads "Keep Smart groups" or "Keep Simple list" (a press keeps the view); the others read "Use …". Someone on Simple list sees no "Recommended" on Smart groups. One click picks and closes. Escape or a click outside keeps the current view and counts as the line's Not now. There is no new shortcut and no new setting.

It no longer waits for a list taller than the screen: it shows once the person has 5 threads, first day included. Escape counts as Not now, as before.

On a phone (bottom sheet), Agents runs across the top and the other two sit side by side below it. Each column is a CSS subgrid, so the two columns' lines and buttons line up even when the Smart groups tags wrap.

Who sees it

  • A new line entry, view_choice (an offer, five threads, no tenure, ahead), takes List view's place in the queue: after the tab icon and themes dialogs, before list options.
  • list_view is retired. Its old inboxReveals.list_view stamps stay in config.json but nothing reads them, so people who saw the two-choice dialog are offered this one once.
  • The page skips it for people already on the Agents view. The view is a per-browser cookie the server never sees.
  • It stays ahead so that someone on Agents, who never claims it, never holds up the rest of the line.

How it was checked

  • Typecheck: packages/shared, packages/server, packages/inbox, apps/inbox.
  • The demo: listViewReveal.test.tsx checks the pictures are the same demo whether the person has no agents, one, or 150 (bounded DOM), that nothing in the dialog reads or writes the person's agent folds, that no request goes out for Blastoise, and that the in-use view's button is the Keep one and keeps the view. The fold loop (fake timers): only Review and Tide fold, in order, never Ops; nothing moves under reduced motion; closing leaves no timer; the person's folds are never read or written.
  • Run locally, one file at a time in a sandbox:
    • packages/inbox/listViewReveal.test.tsx (DOM, reworked)
    • packages/inbox/lineLatch.test.tsx (DOM)
    • packages/inbox/agentsView/agentsList.test.tsx (DOM)
    • packages/shared/inbox/reveals.test.ts, reveals-schedule.test.ts and theme-chooser.test.ts
    • packages/inbox/agentMarkScale.test.ts
  • Edited but not run locally: tests/e2e/inbox-list-view-intro.spec.ts (release-binary e2e, the Keep button). Edited but not run locally, because it starts an Inbox (CI runs it): packages/server/inbox-reveal.test.ts. Its world now settles the view choice by default. New cases cover: an old list_view stamp does not close it; it is ahead beside the Board and claimed once; it is next when alone and Not now holds the line; it is not offered under five threads; the retired id is refused.
  • Pictures: the built component in a throwaway static page (not committed): Smart groups in use at desktop light and dark and on a phone, Simple list in use, and with the person's own list empty and with one agent. They match the approved C-r3 pictures, apart from the clock times and the Keep label. No request was made.

Not decided yet (one switch each)

  1. Who sees it again. Now: everyone once, except people already on Agents. To include them, make viewChoiceWanted in packages/inbox/reveal.ts return true.
  2. "Recommended" for people on Simple list. Now: no tag for them. Set RECOMMEND_SMART_ON_SIMPLE in ListViewIntro.tsx to true to show it.

…mple list

The one-time view dialog becomes three choices in layout C: Agents first with the
larger picture (tagged New), then Smart groups and Simple list. Each picture is the
person's own list drawn by the real rows; the Agents picture is the real AgentsList
over their own agents, and opens every agent when it would otherwise show fewer than
three threads, so one agent or none is never an empty frame.

It follows the view in use: that choice is tagged "In use" and has the filled button;
someone on Simple list sees no "Recommended" on Smart groups. A pick switches the view
at once; Escape or a click outside keeps it and is the line's Not now.

It is a new line entry, view_choice (five threads, no tenure, ahead), in List view's
old place; list_view is retired and its old stamps are not read, so people who saw the
two-choice dialog get this one once. The page skips it for people already on Agents.
The two phone columns are a subgrid, so their lines and buttons line up.
view_choice is open for anyone with five threads, no tenure, and armed ahead of
the offers, so worlds that set the rest of the line behind the person met it
where they expect another dialog or none. The Bro mode world stamps it shown (merged
into any inboxReveals a case brings), as inbox-reveal.test.ts does; so do every
DOM-server world and the release-build e2e worlds with six or more threads
(Board, Checklist, Rows, voice).
…ruthful docs

- The Agents picture draws only the view's top (PICTURE_LINES heads, bands and
  threads), fill mode included, so 150 ended agents and 400 threads mount a few
  faces and rows; App takes the three pictures once as the dialog opens
  (viewChoicePictures), so a render never lays the whole list out again.
- An ahead offer's wait starts when it is first armed (revealWaitStarts), so the
  view choice for someone on Agents retires 14 days on and stops keeping the
  grill-me tip away for good (voice next forever). No other dialog's day moves.
- listViewReveal tests: no copy assertions; behaviour instead of echoes.
- reveals.ts and inbox-window.md say the real rule: the same-day group, the view
  choice included, has no tenure. App.tsx's size ceiling follows it down.
…e view in use

The three pictures are a fixed demo (the owner's C-r3 design), never the person's
own list: four made-up agents (Ops, Review, Tide wearing Blastoise, Search index)
and their threads, times as offsets from the moment the dialog opens. They draw
through the real AgentsList, LineRow and PreviewList inside a PictureWorld context
that hands the demo's agents and faces to useInboxAgents, useRowSessions and
useAgentFace, so nothing of the person's (agents, faces, folds, row marks) reaches
the picture. Blastoise is bundled (assets/view-choice, PokeAPI sprite, trimmed as
the Inbox trims the Pokemon set) and drawn through the set-face path with no request.

The in-use view's button reads "Keep <view>"; the others "Use <view>".

Removed: AgentsList's picture mode (fill for 0-1 agents, the 20-line cap) and
App's memo of the person's sections for the dialog.
In the dialog's Agents picture, Review and then Tide fold and open again in a calm
loop (hold open, fold one, fold the other, hold, open them in turn), to show that
agents fold. It goes through the view's own fold (AgentsList's new `folded`, never
kept), so the picture shows the folded head with its count; the motion is the
picture's own: the agent's height closes while its few rows fade and slide up, so
the agents below ride up and the frame never jumps. Never Ops, which waits on the
person. Runs only while the dialog is open and the picture on screen, pauses while
the tab is hidden, stays still under reduced motion, and leaves no timer on close.
The real Agents view's folds do not animate.
The view choice now reaches anyone with five threads, on a phone too. Its
calm moment (a thread left, then 2.5 s settled) never looked at the list's
swipe: a person who goes back to the list and swipes a row could get the
dialog under their finger, or over a row open on Archive. Every one-time
dialog's hold (listIntroHeldBack) now includes a row holding the swipe
layer (rowSwipe.ts rowSwipeInHand).
@backnotprop
backnotprop marked this pull request as ready for review November 20, 2026 22:13
@backnotprop
backnotprop merged commit 3898fed into main Nov 20, 2026
49 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