Chat stack: groups of open chats, synced with the open-chat set
A chat dropped onto the middle of another makes a named group (asked at once, "Group N" by default); onto a group it joins, a group dropped onto a chat takes it in, groups merge. The top level shows each group as a small pile with its name and count; a tap opens it in place under a header that leads back (also the scrim, Back and Escape). In a group, dropping a chat on the header leaves the group; a group of one dissolves. The close button ungroups a dropped group with Undo. Rename, Ungroup, Close all (with Undo), Move to group and Remove from group are in the group menu and as semantic actions. Each open-chat entry carries its group name (protocol field "group", omitted when ungrouped; older clients ignore it), stored and pushed by the server like the order; names are trimmed, printable, at most 80 characters. Needs a server restart to keep groups. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,8 @@ class ChatStackMotion {
|
||||
required List<int?> depths,
|
||||
required this.reduced,
|
||||
required bool rtl,
|
||||
int originSlot = 0,
|
||||
double pileScale = 1,
|
||||
}) : count = depths.length {
|
||||
scrim = _curve(parent, const Interval(0, .7, curve: Curves.easeOut));
|
||||
close = reduced ? parent : _curve(parent, const Interval(0, .6));
|
||||
@@ -52,7 +54,15 @@ class ChatStackMotion {
|
||||
labelFrom.add(to);
|
||||
continue;
|
||||
}
|
||||
from.add(rtl ? layer.mirrored() : layer);
|
||||
// From its layer in the pile (a group's smaller pile [originSlot]
|
||||
// slots up the column).
|
||||
final pile = ChatStackPose(
|
||||
offset:
|
||||
layer.offset * pileScale + Offset(0, -originSlot * kChatStackPitch),
|
||||
turn: layer.turn,
|
||||
scale: layer.scale * pileScale,
|
||||
);
|
||||
from.add(rtl ? pile.mirrored() : pile);
|
||||
move.add(
|
||||
_curve(
|
||||
parent,
|
||||
|
||||
Reference in New Issue
Block a user