Files
pipelines/app/notes/graph-stage-popover.md
T
alan 413c923e77 Graph: stage popover with the prompt, tools, configs and run facts
Tapping or pressing Enter on a stage in the pipeline or run graph (inline
and full screen) opens a card anchored to the node: type, config chips,
tools, collapsed permissions, the prompt clamped with Show all (commands,
gate or operator instructions by type), limits and routes, and for runs
the status, visits, time, verdict, handoff and failure. Open definition
keeps the old tap target; Open visit the old run tap. It follows pan and
zoom, closes on outside tap, Escape or the same node, and opens as a
bottom sheet on a narrow viewport.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 23:19:18 +00:00

3.2 KiB
Raw Blame History

Graph stage popover

Change

  • Tapping (or pressing Enter on) a stage in the pipeline graph or the run graph, inline or full screen, opens a small card anchored to the node with a nub pointing at it. It no longer navigates straight to the definition page.
  • The card shows: the name, a type chip (Model, Check, Delivery gate, Findings gate, Human, End), config chips (harness, short model name, effort, timeout, retries, budget), tools as chips (the server's default set is labelled Tools · default when no block is declared), permission allow-lists behind a collapsed Permissions line, skills, then the prompt as markdown clamped to ten lines with a fade and Show all. A check stage lists its commands, a findings gate its severity and origin, a human stage its operator instructions. Limits and outgoing routes close it.
  • In a run it also shows the latest status, ×N visits, the latest visit's duration, reported tokens/cost over all visits, the latest verdict, the first line of the handoff and the failure diagnostic when the latest visit failed.
  • Actions: Open definition (the old tap target) and, for a visited run stage, Open visit (the old run-graph tap target). An unvisited run stage now opens its declaration too; it simply has no Open visit.
  • The open stage is marked selected and its routes get a soft highlight; edge hover and the edge tooltip work as before.

Decisions

  • Follows the node on pan and zoom instead of closing: the card lays out in the overlay against the live viewport transform, so a drag, wheel or pinch keeps it on its node. Only a tap (down and up within touch slop) outside the card and its node, Escape, the close button or tapping the node again closes it; tapping another node replaces it.
  • Placement: above, else below, else right, else left, else the roomier of above/below with the body scrolling. The card stays inside the viewport and clear of floating bars (the canvas's MediaQuery padding); 400 px wide and at most 560 px tall.
  • Below a 440 px wide (or 300 px tall) viewport the same content opens in a modal bottom sheet.
  • Surface follows the design tokens: Classic is a raised card with a hairline and 14 px corners; flat designs (Terminal, Paper, Compact) use their panel fill, frame and radius with no shadow. No blur. Route arrows are icons since the Terminal face has no U+2192.
  • Built lazily: nothing is built while closed, and the global pointer route and transform listener exist only while a card is open.

Changed paths (under app/): lib/features/graph/{domain/stage_summary.dart, domain/stage_run_facts.dart, painting/stage_edges_highlight.dart, painting/run_graph_edge_layer.dart, viewport/graph_viewport_scope.dart, viewport/graph_viewport.dart, widgets/graph_stage_popover.dart, widgets/stage_popover_position.dart, widgets/stage_popover_card.dart, widgets/stage_popover_parts.dart, widgets/stage_popover_chips.dart, widgets/run_graph_parts.dart, widgets/run_graph_canvas.dart, widgets/run_graph_view.dart, widgets/definition_graph_canvas.dart, widgets/definition_graph_view.dart}, tool/perf/perf_fixture.dart (the graph=1 fixture now has a prompt, configs, tools and a check stage).