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
@@ -28,6 +28,9 @@ import '../ui/sessions/chat_adaptive.dart';
import '../ui/transcript/chat_markdown_view.dart';
import '../ui/transcript/chat_message_bubble.dart';
import '../ui/transcript/chat_message_view.dart';
import '../ui/transcript/chat_message_timestamp.dart';
import '../ui/transcript/chat_turn_activity_view.dart';
import '../domain/chat_transcript_days.dart';
import '../ui/transcript/chat_transcript_selection.dart';
import '../ui/transcript/chat_injected_rows.dart';
import '../ui/transcript/shown/chat_shown_card.dart';
@@ -1271,6 +1274,9 @@ class _ChatThreadViewState extends State<ChatThreadView> {
// other row keeps to the column by insetting past it.
final gutter = chatCopyGutter(constraints.maxWidth);
final media = MediaQuery.paddingOf(context);
// The date shows once per calendar day, above that day's
// first row; each row itself shows only its time.
final days = chatDayDividers(rows);
final transcript = [
for (var index = 0; index < rows.length; index++)
Padding(
@@ -1286,25 +1292,33 @@ class _ChatThreadViewState extends State<ChatThreadView> {
// Slivers mount only visible rows. Defer constructing
// their chips and checking cached widgets until then,
// rather than visiting the entire history per delta.
child: ChatTranscriptRowSelection(
child: ChatCopyGutter(
width: rows[index]['kind'] == 'assistant'
? gutter
: 0,
child: Builder(
builder: (_) => _entering(
rows[index],
_transcriptRow(
child: ChatDayDivided(
day: days[index],
// An answer row starts at the gutter; the divider
// keeps to the reading column.
inset: rows[index]['kind'] == 'assistant'
? gutter
: 0,
child: ChatTranscriptRowSelection(
child: ChatCopyGutter(
width: rows[index]['kind'] == 'assistant'
? gutter
: 0,
child: Builder(
builder: (_) => _entering(
rows[index],
keys[index],
onDismissCompaction:
compactionNotice != null &&
chatNoticeActivityCondition(
rows[index],
) ==
compactionNotice.condition
? () => _dismiss(compactionNotice)
: null,
_transcriptRow(
rows[index],
keys[index],
onDismissCompaction:
compactionNotice != null &&
chatNoticeActivityCondition(
rows[index],
) ==
compactionNotice.condition
? () => _dismiss(compactionNotice)
: null,
),
),
),
),
@@ -2249,8 +2263,13 @@ class _ChatActivityLineState extends State<_ChatActivityLine> {
? Icons.check_circle_outline
: Icons.circle_outlined;
final label = '${widget.row['label'] ?? ''}'.trim();
// The icon starts at the reply text's edge, like the turn's activity line.
return Padding(
padding: const EdgeInsets.symmetric(vertical: 6),
padding: const EdgeInsetsDirectional.only(
start: chatAgentContentInset,
top: 6,
bottom: 6,
),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.stretch,