Skip to content

Commit 019bc07

Browse files
committed
Reconcile dashboard
1 parent 94e9d34 commit 019bc07

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

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

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@
888888
.op-node.filtered-out.not-running .active-indicator {
889889
opacity: 1 !important;
890890
}
891-
/* Queued for next pass indicator (pulse removed) */
891+
/* Queued for next iteration indicator (pulse removed) */
892892
/* queued-next styling removed (no visual border effect retained) */
893893
.op-node .name {
894894
font-weight: 600;
@@ -1628,13 +1628,13 @@ <h3>Phases</h3>
16281628
let operations = new Map(); // name -> IOperationInfo
16291629
// Dynamic execution state (IOperationExecutionState) keyed by name
16301630
let executionStates = new Map();
1631-
// Queued states for next pass (IOperationExecutionState) keyed by name
1631+
// Queued states for next iteration (IOperationExecutionState) keyed by name
16321632
let queuedStates = new Map();
16331633
let selection = new Set();
16341634
let sortKey = 'status';
16351635
let sortDir = 1; // 1 asc, -1 desc
16361636
let managerState = null;
1637-
// Stores last execution results (previous pass) keyed by name
1637+
// Stores last execution results (previous iteration) keyed by name
16381638
let lastExecutionResults = new Map();
16391639
const enabledStateDisplay = {
16401640
never: 'never',
@@ -1726,18 +1726,18 @@ <h3>Phases</h3>
17261726
}
17271727
// Update play/pause visual state
17281728
const ppIcon = playPauseBtn.querySelector('.codicon');
1729-
if (managerState.runNextPassBehavior === 'automatic') {
1729+
if (!managerState.pauseNextIteration) {
17301730
playPauseBtn.classList.add('playing');
17311731
playPauseBtn.setAttribute('aria-label', 'Switch to manual (pause)');
1732-
playPauseBtn.title = 'Pause automatic passes';
1732+
playPauseBtn.title = 'Pause automatic iterations';
17331733
if (ppIcon) {
17341734
ppIcon.classList.remove('codicon-debug-start', 'codicon-debug-continue');
17351735
ppIcon.classList.add('codicon-debug-pause');
17361736
}
17371737
} else {
17381738
playPauseBtn.classList.remove('playing');
17391739
playPauseBtn.setAttribute('aria-label', 'Switch to automatic (play)');
1740-
playPauseBtn.title = 'Resume automatic passes';
1740+
playPauseBtn.title = 'Resume automatic iterations';
17411741
if (ppIcon) {
17421742
ppIcon.classList.remove('codicon-debug-pause');
17431743
ppIcon.classList.add('codicon-debug-start');
@@ -1944,7 +1944,7 @@ <h3>Phases</h3>
19441944
}
19451945
case 'before-execute': {
19461946
applyExecutionStates(msg.executionStates);
1947-
// Starting pass invalidates queued states
1947+
// Starting iteration invalidates queued states
19481948
queuedStates.clear();
19491949
break;
19501950
}
@@ -2911,7 +2911,7 @@ <h3>Phases</h3>
29112911
// Apply dimming to border color for filtered states (search stronger than status filter)
29122912
if (isSearchFiltered) baseColor = dimColor(baseColor, 0.72);
29132913
else if (isFilteredOut) baseColor = dimColor(baseColor, 0.6);
2914-
else if (notRunning) baseColor = dimColor(baseColor, 0.35); // subtle dim for not-in-pass
2914+
else if (notRunning) baseColor = dimColor(baseColor, 0.35); // subtle dim for not-in-iteration
29152915
div.style.borderColor = baseColor;
29162916
// selection & run-state styling
29172917
if (selection.has(name)) div.classList.add('selected');
@@ -2929,7 +2929,7 @@ <h3>Phases</h3>
29292929
} else if (activeSpan) {
29302930
activeSpan.remove();
29312931
}
2932-
// Pending changes indicator (queued for pass) shows clock top-left
2932+
// Pending changes indicator (queued for iteration) shows clock top-left
29332933
let pendingSpan = div.querySelector('.pending-indicator');
29342934
if (isQueuedNext) {
29352935
if (!pendingSpan) {
@@ -2938,7 +2938,7 @@ <h3>Phases</h3>
29382938
pendingSpan.textContent = '🕒';
29392939
div.appendChild(pendingSpan);
29402940
}
2941-
pendingSpan.title = 'Pending changes (pass queued)';
2941+
pendingSpan.title = 'Pending changes (iteration queued)';
29422942
} else if (pendingSpan) {
29432943
pendingSpan.remove();
29442944
}
@@ -3546,9 +3546,9 @@ <h3>Phases</h3>
35463546
wrap.appendChild(sub);
35473547
return wrap;
35483548
};
3549-
addModifier(makePending, 'Pending changes', 'Pass queued');
3549+
addModifier(makePending, 'Pending changes', 'Iteration queued');
35503550
addModifier(makeActive, 'Active', 'In-memory state');
3551-
addModifier(makeDashed, 'Not in this pass', 'Excluded this iteration');
3551+
addModifier(makeDashed, 'Not in this iteration', 'Excluded this iteration');
35523552
addModifier(makeDotted, 'Filtered out', 'Hidden by view/search');
35533553
// Enabled state grouping heading
35543554
const enabledHead = document.createElement('div');
@@ -3668,8 +3668,9 @@ <h3>Phases</h3>
36683668
);
36693669
playPauseBtn.addEventListener('click', () => {
36703670
if (!managerState) return;
3671-
const next = managerState.runNextPassBehavior === 'automatic' ? 'manual' : 'automatic';
3672-
sendCommand({ command: 'set-run-next-pass-behavior', value: next });
3671+
const next = !!managerState.pauseNextIteration; // current boolean
3672+
// Toggle: if currently paused (true), set to false (resume automatic); otherwise set to true (pause)
3673+
sendCommand({ command: 'set-pause-next-iteration', value: !next });
36733674
});
36743675
window.addEventListener('keydown', (e) => {
36753676
if (e.key === 'a' && (e.metaKey || e.ctrlKey)) {

0 commit comments

Comments
 (0)