Repository navigation
Inbox: "Which view do you prefer?" offers Agents, Smart groups and Simple list - #3785
Merged
Merged
Conversation
…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
marked this pull request as ready for review
November 20, 2026 22:13
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What a person sees
The one-time "Which view do you prefer?" dialog now has three choices instead of two (layout C):
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 newfolded, 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
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_viewis retired. Its oldinboxReveals.list_viewstamps stay in config.json but nothing reads them, so people who saw the two-choice dialog are offered this one once.aheadso that someone on Agents, who never claims it, never holds up the rest of the line.How it was checked
packages/shared,packages/server,packages/inbox,apps/inbox.listViewReveal.test.tsxchecks 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.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.tsandtheme-chooser.test.tspackages/inbox/agentMarkScale.test.tstests/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 oldlist_viewstamp 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.Not decided yet (one switch each)
viewChoiceWantedinpackages/inbox/reveal.tsreturn true.RECOMMEND_SMART_ON_SIMPLEinListViewIntro.tsxto true to show it.