fix(#1285): handle restart queue kind in dashboard container row

The pending-label derivation had no case for op.kind === 'restart', so
it fell through to the rebuild/rebuild-queued else branch — showing a
misleading 'rebuild pending' badge when the operator issued a restart.

Add explicit 'restarting' / 'restart queued' cases alongside the
existing meta_update and destroy cases.

Also add restart / startup_sweep / perm_change to QUEUE_KIND_GLYPH so
they render with a meaningful glyph (↺ /  / 🔑) instead of '?' in
the rebuild-queue panel.
This commit is contained in:
iris 2026-06-04 18:36:08 +02:00 committed by mara
commit 0894030754

View file

@ -651,9 +651,11 @@ window.marked = marked;
|| (op && (op.state === 'running'
? (op.kind === 'meta_update' ? 'meta-updating'
: op.kind === 'destroy' ? 'destroying'
: op.kind === 'restart' ? 'restarting'
: 'rebuilding')
: (op.kind === 'meta_update' ? 'meta-update queued'
: op.kind === 'destroy' ? 'destroy queued'
: op.kind === 'restart' ? 'restart queued'
: 'rebuild queued')));
const opRunning = transientKind != null
|| (op != null && op.state === 'running');
@ -2177,6 +2179,9 @@ window.marked = marked;
meta_update: '◆',
spawn: '✨',
destroy: '🗑',
restart: '↺',
startup_sweep: '⚡',
perm_change: '🔑',
};
const QUEUE_STATE_GLYPH = {
queued: '⏸',