Quieter transcript metadata: day dividers, time-only rows, muted meta rows

- Date once per calendar day: a muted centred divider above each day's
  first timed row (chatDayDividers); rows show only their time ("10:16"),
  with the full date and time kept in the tooltip and semantics. The user's
  time shares the delivery line; a harness notice's time trails its line.
- Activity line and turn chips are secondary: bodyMedium, regular weight,
  onSurfaceVariant (error colour kept for failures), a small chevron_right
  that turns down while its details are open (replaces expand_less).
- Copy / Read aloud: 18 px muted icons; on pointer devices shown only while
  the reply is hovered or an action is focused (also without the gutter);
  touch keeps them visible with a full tap target. The time leads the
  footer so hidden actions leave no gap.
- Settled questions: the question on one line, the operator's answer in
  full on its own line beneath it.
- Meta rows (activity, chips, notices, compaction line) start at the reply
  text's leading edge; turn chips sit in their own column under the answer.
- Scroll fixture: ?timestamps=1 spreads messages over two days.

Row keys are unchanged; the divider joins a row without replacing it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 11:10:51 +00:00
parent 33874005c4
commit a3a59adb30
23 changed files with 993 additions and 180 deletions
@@ -1,8 +1,11 @@
import 'package:flutter/material.dart';
import '../../../../core/api_gateway.dart';
import '../../domain/chat_transcript_days.dart';
import 'chat_message_bubble.dart';
import 'chat_message_timestamp.dart';
import 'chat_message_view.dart';
import 'chat_turn_activity_view.dart';
/// Content the harness delivered into the session, drawn on the agent's side:
/// an `agent_report` row (a delegated agent's report) and a `system_notice`
@@ -162,28 +165,50 @@ class ChatSystemNoticeLine extends StatelessWidget {
if (text.isEmpty) return const SizedBox.shrink();
final color = Theme.of(context).colorScheme.onSurfaceVariant;
final style = Theme.of(context).textTheme.bodySmall?.copyWith(color: color);
return Semantics(
container: true,
label: 'System notice',
value: text,
child: ExcludeSemantics(
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 6),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsetsDirectional.only(end: 8),
child: Icon(
Icons.info_outline,
size: style?.fontSize == null ? 16 : style!.fontSize! * 1.2,
color: color,
final time = chatRowCreatedAt(row);
// The icon starts at the reply text's edge, like the turn's activity line.
return Padding(
padding: const EdgeInsetsDirectional.fromSTEB(
chatAgentContentInset,
6,
chatAgentContentInset,
6,
),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(
child: Semantics(
container: true,
label: 'System notice',
value: text,
child: ExcludeSemantics(
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsetsDirectional.only(end: 8),
child: Icon(
Icons.info_outline,
size: style?.fontSize == null
? 16
: style!.fontSize! * 1.2,
color: color,
),
),
Expanded(child: Text(text, style: style)),
],
),
),
Expanded(child: Text(text, style: style)),
],
),
),
),
// Its time trails on the same line, as an answer's does.
if (time != null)
Padding(
padding: const EdgeInsetsDirectional.only(start: 8),
child: ChatMessageTimestamp(createdAt: time),
),
],
),
);
}