From 2a81b0ba53d81c5eae89109ca78b753d22bd2f4e Mon Sep 17 00:00:00 2001 From: Ken Simpson Date: Thu, 23 Apr 2026 16:36:50 -0700 Subject: [PATCH] fix: restore finalizing status color constant --- tests/test_web_modal_toggle.py | 3 +++ web/modal_toggle.js | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_web_modal_toggle.py b/tests/test_web_modal_toggle.py index 156f441..21e934f 100644 --- a/tests/test_web_modal_toggle.py +++ b/tests/test_web_modal_toggle.py @@ -81,11 +81,14 @@ def test_global_modal_status_badge_supports_setup_and_finalizing_details() -> No """The frontend should surface detailed setup and result-receive messages in the global pill.""" source = _modal_toggle_source() + assert 'const FINALIZING_BORDER_COLOR = "#3b82f6";' in source assert "detail.status_message ?? null" in source assert "detail.status_current ?? null" in source assert "detail.status_total ?? null" in source assert "setGlobalStatusPhase(promptId, STATE_SETUP, nodeIds.length, {" in source assert "if (detail.phase === STATE_FINALIZING) {" in source + assert "dot.style.background = FINALIZING_BORDER_COLOR;" in source + assert "READY_BORDER_COLOR" not in source assert 'text.textContent = activeState.statusMessage ?? "Receiving Modal outputs";' in source diff --git a/web/modal_toggle.js b/web/modal_toggle.js index 5a6f4a5..f347cba 100644 --- a/web/modal_toggle.js +++ b/web/modal_toggle.js @@ -8,6 +8,7 @@ const INTERNAL_NODE_PREFIX = "ModalUniversalExecutor"; const IDLE_BORDER_COLOR = "#1d9bf0"; const SETUP_BORDER_COLOR = "#f59e0b"; +const FINALIZING_BORDER_COLOR = "#3b82f6"; const READY_ACTIVE_COMPONENT_BORDER_COLOR = "#22c55e"; const READY_INACTIVE_COMPONENT_BORDER_COLOR = "#166534"; const ACTIVE_BORDER_COLOR = "#a855f7"; @@ -298,7 +299,7 @@ function refreshGlobalStatusElement() { } else if (activeState.phase === STATE_FINALIZING) { element.style.borderColor = "rgba(59, 130, 246, 0.55)"; element.style.background = "rgba(15, 23, 42, 0.94)"; - dot.style.background = READY_BORDER_COLOR; + dot.style.background = FINALIZING_BORDER_COLOR; dot.style.boxShadow = "0 0 0 6px rgba(59, 130, 246, 0.18)"; dot.style.animation = "modal-status-pulse 1.1s ease-in-out infinite"; text.textContent = activeState.statusMessage ?? "Receiving Modal outputs";