Make the open chat unmistakable in the chat list

The open chat's row now has a strong fill in its colour, a full outline
with a thick leading bar, a bold title and a pointer on its trailing
edge toward the conversation shown beside the list. A selected chat
that is not shown keeps a lighter fill; a chat visible in another pane
keeps its thin bar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 00:10:13 +00:00
parent bfccf39671
commit f72c46d599
5 changed files with 98 additions and 39 deletions
@@ -63,11 +63,8 @@ void main() {
final highlight = tester.widget<AnimatedContainer>(
find.byKey(ValueKey('chat-visibility-$id')),
);
final gradient =
(highlight.decoration as BoxDecoration).gradient!
as LinearGradient;
expect(gradient.colors.first.a > 0, active);
expect(gradient.colors.last.a > 0, active);
final fill = (highlight.decoration as BoxDecoration).color;
expect(fill != null && fill.a > 0, active);
}
expectRow('a', true);
@@ -215,14 +215,11 @@ void main() {
final highlight = tester.widget<AnimatedContainer>(
find.byKey(const ValueKey('chat-visibility-s1')),
);
final gradient =
(highlight.decoration as BoxDecoration).gradient! as LinearGradient;
expect(gradient.colors.first.a, greaterThan(gradient.colors.last.a));
// The selected row is filled in its own colour.
final fill = (highlight.decoration as BoxDecoration).color!;
expect(fill.a, greaterThan(0));
final context = tester.element(find.byType(ChatSessionRow));
expect(
gradient.colors.first.withValues(alpha: 1),
chatColorShade(context, 'amber'),
);
expect(fill.withValues(alpha: 1), chatColorShade(context, 'amber'));
expect(find.byKey(appListRowAccentKey), findsNothing);
expect(find.byKey(const ValueKey('chat-visibility-s1')), findsOneWidget);
});
@@ -79,9 +79,9 @@ void main() {
await tester.pump();
await tester.pump(const Duration(milliseconds: 100));
expect(edge(tester, 'on').width, greaterThan(3));
expect(edge(tester, 'on').width, lessThan(10));
expect(edge(tester, 'on').width, lessThan(8));
await tester.pumpAndSettle();
expect(edge(tester, 'on').width, 10);
expect(edge(tester, 'on').width, 8);
update(() => active = false);
await tester.pumpAndSettle();
expect(edge(tester, 'on').width, 3);
@@ -128,7 +128,7 @@ void main() {
await tester.tap(find.byTooltip('New chat'));
expect(newChatPressed, isTrue);
expect(find.byTooltip('Expand chat list'), findsOneWidget);
expect(edge(tester, 'a').width, 10);
expect(edge(tester, 'a').width, 8);
expect(edge(tester, 'b').width, 3);
expect(edge(tester, 'c').style, BorderStyle.none);
final avatars = tester