App: run tabs under the header on wide layouts, stable Artifacts tab, spelled-out pipeline status, shared list selection, code block header and edge fades

- Run detail: on a wide window (>= 840, pane >= 600) the tabs are Material
  segments under the run header; phones keep the floating bottom bar.
  Artifacts is always a tab, badged with its count and disabled with 0 (its
  tooltip says why), so Changes never moves.
- Pipelines list: 'Failed · last run 19 Oct' beside the status dot; facts on
  the next line; compact rows keep 'Failed · 19 Oct'.
- Settings: Disconnect is outlined beside a tonal Reconnect.
- Lists: one selection style (tonal fill plus one leading accent bar) for
  runs, pipelines and chats; chat's border, fill and pointer removed.
- Transcript: overflowing blocks fade at the edge with a chevron instead of
  a 'Scroll horizontally' line (semantics hint kept); code blocks get a
  header strip with language and Copy; lighter light-mode code fill.
- Runs list: rows under a day heading show only the time of day.
- Artifact search reveal re-centres once the lazy list's extent settles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 00:55:50 +00:00
parent accb9970b6
commit a6db4ba20e
37 changed files with 848 additions and 399 deletions
@@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
import '../../../core/api_gateway.dart';
import '../../../core/transport/pipelines_client.dart';
import '../domain/artifact_chat_context.dart';
import '../domain/artifact_groups.dart';
import 'artifact_external_open.dart';
import 'artifact_gallery_page.dart';
@@ -28,6 +29,12 @@ List<JsonMap> runDetailArtifactSteps(JsonMap run) {
bool showRunArtifactsAction(JsonMap run) =>
runDetailArtifactSteps(run).isNotEmpty;
/// How many recorded entries the run's gallery lists (stage files plus
/// recorded turn documents), as the gallery header counts them.
int runArtifactCount(JsonMap run) => galleryGroups(
runDetailArtifactSteps(run),
).fold<int>(0, (sum, group) => sum + group.recordedCount);
/// Whether the run is still executing, so the page can say capture pending
/// instead of claiming nothing was recorded.
bool runDetailExecuting(JsonMap run) => _runExecuting(run);
@@ -28,7 +28,15 @@ class ArtifactVisitReveal {
final row = target.currentContext;
if (row != null && row.mounted) {
Scrollable.ensureVisible(row, alignment: 0.5);
onDone();
// The lazy list's extent is an estimate until the rows past the
// target are laid out; a row near the end, clamped to that estimate,
// is centred again once the next frame has measured them.
WidgetsBinding.instance.addPostFrameCallback((_) {
if (generation != _generation) return;
if (row.mounted) Scrollable.ensureVisible(row, alignment: 0.5);
onDone();
});
WidgetsBinding.instance.scheduleFrame();
return;
}
final anchorContext = anchor.currentContext;