Skip to content

Commit dc61ba3

Browse files
committed
dashboard: dim inactive edges
1 parent 7f883b4 commit dc61ba3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

rush-plugins/rush-serve-plugin/dashboard.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,11 @@
10061006
stroke: var(--accent);
10071007
stroke-width: 2;
10081008
}
1009+
/* Dim edges that are not executing or failed to de-emphasize passive links */
1010+
.edge.dim {
1011+
opacity: 0.28;
1012+
filter: brightness(0.8);
1013+
}
10091014
.edge.not-running {
10101015
opacity: 0.55;
10111016
}
@@ -3079,7 +3084,15 @@ <h3>Phases</h3>
30793084
rec.path.setAttribute('stroke', strokeColor);
30803085
rec.path.setAttribute('marker-end', `url(#arrowhead-${depStatus})`);
30813086
} else {
3087+
// Clear any explicit opacity set by filtering rules
30823088
rec.path.style.opacity = '';
3089+
// Dim edges that are not semantically important (not executing or failed)
3090+
const semImportant = depStatus === 'Executing' || depStatus === 'Failure';
3091+
if (!semImportant && !rec.path.classList.contains('highlight')) {
3092+
rec.path.classList.add('dim');
3093+
} else {
3094+
rec.path.classList.remove('dim');
3095+
}
30833096
}
30843097
}
30853098
// Update phase pane after node/edge status refresh

0 commit comments

Comments
 (0)