From a676b30ff082a65714454ee196b59057d69439dd Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Mon, 19 Oct 2026 21:56:12 +0100 Subject: [PATCH] web: label only the executed routes in a run graph Every stage declares error/blocked/retry outcomes, so a run graph labelled all of them and the chips buried the nodes. In run mode only routes that actually happened are labelled; a pipeline definition (no run state) still labels every route. --- web/src/graph.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/src/graph.js b/web/src/graph.js index 7aed5a14..55e20c90 100644 --- a/web/src/graph.js +++ b/web/src/graph.js @@ -1008,8 +1008,12 @@ export function mount(container, graph, options = {}) { content.append(svg); // Label layer: the outcome chips, so a neighbouring edge never crosses one. + // In a RUN, label only the routes that actually happened: every stage declares + // error/blocked/retry outcomes too, and labelling all of them buried the graph + // under a wall of chips. A definition (no runState) still labels every route. const labelLayer = el("div", "graph-label-layer"); for (const edge of layout.edges) { + if (runState && !edgeIsExecuted(edge, runState)) continue; const chip = el("span", "graph-edge-label", edge.label); chip.style.left = `${edge.labelPoint.x}px`; chip.style.top = `${edge.labelPoint.y}px`;