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`;