From 0894030754c4e927fd94f026ec745b0636c8540d Mon Sep 17 00:00:00 2001 From: iris Date: Thu, 4 Jun 2026 18:36:08 +0200 Subject: [PATCH] fix(#1285): handle restart queue kind in dashboard container row MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- frontend/packages/dashboard/src/tabs.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/packages/dashboard/src/tabs.js b/frontend/packages/dashboard/src/tabs.js index 9895687a..9b6fc238 100644 --- a/frontend/packages/dashboard/src/tabs.js +++ b/frontend/packages/dashboard/src/tabs.js @@ -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: '⏸',