Repository navigation
Inbox: an Agents view for the thread list - #3764
Merged
Merged
Conversation
A third choice in the list's View menu: each agent with its threads under it. Agents with something for the person come first and open; the others fold, and a fold is kept per agent. A thread with several agents shows once, under the agent it was sent to. Ended agents sit under an Ended band and threads with no agent under No agent. Rows keep everything a row does today and hold their places until the list settles. The agent's face is drawn at 44 px with its picker. The server's agents list keeps a week of ended sessions so their threads keep their agent; ended_today still counts today's only.
Archived rows keep Unarchive; Select all picks only drawn rows; a fold gives way to a new waiting row and Show opens the agents its rows land under; a list read redraws only the changed row and its agent; ordering, keep, focus after N more, Ended aria-owns, agent heads slide on settle; the 44 px face picker stays inside the list pane; look fixes.
Nothing clips the face picker or anything above its plate again (the clip stopped its blur, the sidebar's too); a face in the list keeps its choices inside the pane. No agent's rows count in what a Show brings; a Show that sorted nothing opens nothing later; a fold holds against the rows it was made over; other-agent icons drop whole; a folded agent's marks carry no one thread's details.
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.
Adds a third list view, Agents, to the list's ⋮ View menu. The list then shows the person's agents, with each agent's threads under it. Smart groups stays the default. A choice is remembered in the same cookie the other views use.
What it draws
Server (Bun only): the agents list now keeps ended sessions from the last seven days instead of today only, so their threads keep their agent's name and face.
ended_todaystill counts today's sessions only. The sidebar already leaves ended agents out.Structure: the row parts moved out of
InboxList.tsxintocomponents/rowParts.tsxwithout changes, so the list file shrinks (its size ceiling is lowered to match). The new code is inpackages/inbox/agentsView/.Tests: the grouping model, folds, the view cookie, a DOM test of the list in this view (added to
tests/dom-test-list.txt), the 44 px face and its picker, and the server's week of ended sessions. The existing menu tests now expect three view options.