Show loudly in the chat list when a chat is waiting on the operator
The server's chat activity now counts each session's unanswered approvals and questions (awaiting_operator) and pushes it to every connection when it changes. A waiting chat's list row pulses in the error colour with a solid bar on its leading edge, its avatar wears a ringing bell in place of the spinner, and its state line leads with a bold "Waiting for you". Reduced motion holds the pulse and the bell still. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -66,6 +66,7 @@ class ChatCompactSidebar extends StatelessWidget {
|
||||
final unread = controller.isUnseen(row);
|
||||
final running = row['running'] == true;
|
||||
final backgroundTasks = chatSessionBackgroundTasks(row);
|
||||
final awaitingOperator = chatSessionAwaitingOperator(row);
|
||||
final title = chatSessionTitle(row);
|
||||
final machineName =
|
||||
ServerContext.nameFor(context, '${row['_server_id'] ?? ''}') ??
|
||||
@@ -97,6 +98,7 @@ class ChatCompactSidebar extends StatelessWidget {
|
||||
active: selected,
|
||||
visible: visible,
|
||||
running: running,
|
||||
awaitingOperator: awaitingOperator,
|
||||
backgroundTasks: backgroundTasks,
|
||||
unread: unread,
|
||||
),
|
||||
@@ -141,6 +143,7 @@ class ChatCompactSidebar extends StatelessWidget {
|
||||
active: false,
|
||||
visible: false,
|
||||
running: running,
|
||||
awaitingOperator: awaitingOperator,
|
||||
backgroundTasks: backgroundTasks,
|
||||
unread: unread,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user