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.
This commit is contained in:
@@ -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`;
|
||||
|
||||
Reference in New Issue
Block a user