Chat stack groups: the dragged chat shrinks onto a drop target; notes
Over another item's middle the lifted item shrinks (as over the close button), so the target's grown ring stays visible; a group's pile is 0.88 of a chat's disc. Notes for groups and the open-chat group field. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+38
-1
@@ -60,13 +60,50 @@ starts each chat test on Quick switch (`debugUse`); the stack's tests pick it.
|
||||
square corners and no shadow under flat designs (Terminal, Paper); label
|
||||
pills take the design radius and frame.
|
||||
|
||||
## Groups
|
||||
|
||||
- A group is a named set of open chats (`ChatStackGroups`, sessionId → name);
|
||||
it travels with the open-chat set as each entry's `group`, so it persists
|
||||
and syncs across devices like the order. Two chats at least: one left
|
||||
alone leaves its group. Its chats stay together in the open-chat order.
|
||||
- Top level: each group is one item where its first chat is, its chats piled
|
||||
as the collapsed stack piles (0.88 scale, the chat on screen on top), the
|
||||
pill showing its name and count, the bell aggregated. A tap opens it: the
|
||||
top level fades out (no input) and the group's chats rise from its pile
|
||||
(280 ms, the same motion as the stack), under a header (back arrow, the
|
||||
name, a ⋯ menu). The header, the scrim, Back and Escape return to the top
|
||||
level; a second tap outside folds the stack. Folding always ends on the
|
||||
top level.
|
||||
- Drag: the middle half of another item is a drop onto it (it grows 1.14x
|
||||
and rings in the primary colour, a selection tick); its outer quarters
|
||||
move the gap (`chatStackDropTarget`: the gap holds within half a slot, so
|
||||
an item sliding aside never lands back under the finger). Chat onto chat:
|
||||
a new group ("Group N", the name dialog opens at once, selected); chat
|
||||
onto group: joins, last; group onto chat: takes it in; group onto group:
|
||||
merges. In an open group a chat dropped on the header leaves the group
|
||||
(placed right after it), and the close button removes it from the open
|
||||
chats. A group dropped on the close button is ungrouped, with Undo.
|
||||
- Menu (header ⋯) and semantic actions on a group: Rename group, Ungroup,
|
||||
Close all chats in group (with Undo, restoring order and group). On a
|
||||
chat: Move up / Move down (within its level), Move to group… (when groups
|
||||
exist), Remove from group (in a group), Remove from open chats.
|
||||
- Server: `internal/protocol/chat_open_workspace.go` (`Group`),
|
||||
`internal/pipeline/chat_open_workspace.go` (validation, stored in the
|
||||
entries JSON, compared as part of the entry), `internal/server` (copied
|
||||
through). Needs a server restart.
|
||||
|
||||
## Structure
|
||||
|
||||
- `lib/features/chat/stack/`: setting, pose, motion, disc/label, column and
|
||||
its items, drag (session, shift render object, handles, remove target), FAB,
|
||||
anchor (a `LayerLink` the active pane's transcript marks; the one stack
|
||||
above the workspace follows it, so it survives switching chats).
|
||||
- `lib/features/chat/chat_screen_stack.dart`: entries, open/add/remove.
|
||||
- Groups: `chat_stack_groups.dart` (model), `chat_stack_node.dart` (top-level
|
||||
items), `chat_stack_group_ops.dart` (orders after a drop),
|
||||
`chat_stack_drop_target.dart`, `chat_stack_group_pile.dart`,
|
||||
`chat_stack_group_dialogs.dart`, `chat_stack_column_groups.dart`.
|
||||
- `lib/features/chat/chat_screen_stack.dart`: entries, open/add/remove;
|
||||
`chat_screen_stack_groups.dart`: join/leave/rename/ungroup/close all.
|
||||
- `chat_thread_view.dart`: anchor target, bottom clearance, Jump offset.
|
||||
- `tool/search_selection_probe_entry.dart`: `?chatNav=stack`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user