Render run list miniatures from compact per-stage route evidence

This commit is contained in:
2026-10-20 18:21:24 +01:00
parent 855de19a35
commit 34939edd0e
14 changed files with 501 additions and 40 deletions
+16 -7
View File
@@ -11,18 +11,27 @@ Status legend: `todo` · `partial` (some of it works) · `done` (working + captu
### List miniature follow-up (2026-10-20)
Workflow and run miniatures now share the existing graph layout, right-aligned
inside their SVG as well as their row, with a 6px extra trailing inset. Runs use
the shared status palette; recorded visits/routes override the aggregate tint,
and known untaken branches are hollow/dashed. With summaries only, the tint is
the **run status**, not a claim that every stage executed. Topology comes from
inside their SVG as well as their row, with a 6px extra trailing inset. Run LIST
nodes now use each stage's last visit: success green, failure red, running
accent, waiting amber and queued a distinct muted tint. Unvisited/unknown nodes
are neutral hollow/dashed; **no aggregate run-status tint is inherited**.
Taken edges use recorded outcome/target routes, including loops and branches.
The additive `graph_evidence` summary projection reads only five routing/status
fields from `run_steps`, compacts repeated loops, and batches 100 run IDs per
query (not N detail fetches). Subscribe snapshots seed the same evidence;
coalesced live frames preserve every changed visit in `graph_visits` and the
client maintains last-stage/distinct-route evidence without a detail fetch.
Older summaries remain honestly unknown. Topology comes from
the run's own graph, an exact-version pipeline summary, or one cached
`get_pipeline(id, version)` read per endpoint/version (never `get_run` per row,
never a fallback to latest). Unavailable graphs stay absent. No server changes.
never a fallback to latest). Unavailable graphs stay absent. No schema migration
or new private input/output/transcript payload is needed.
Scratch browser extension `test/miniatures-browser.mjs` verifies 390/420/1100px
alignment, distinct status colors, wrapped titles, separate applied filters and
alignment, two successful stages before failure plus never-visited branches,
waiting/running/queued states, legacy unknown evidence, wrapped titles, separate applied filters and
no document overflow; captures and `geometry.json` are in
`/private/var/folders/jp/q0qvjyg54fl_c5vhhk1ylz2m0000gn/T/opencode/status-miniature-captures/`.
`/private/var/folders/jp/q0qvjyg54fl_c5vhhk1ylz2m0000gn/T/opencode/per-stage-run-miniatures-captures/`.
These are deterministic fixture captures, not a new live-server parity claim.
Collapsed desktop navigation additionally gives Expand its own 40px flow slot