Skip to content

Agent Zero AI framework

Fix overlapping sync status indicator

Alessandro77349bd9a5a1
diff --git a/tests/test_a0_connector_launcher_gateway.py b/tests/test_a0_connector_launcher_gateway.py
index 0154247f4..417b5e78c 100644
--- a/tests/test_a0_connector_launcher_gateway.py
+++ b/tests/test_a0_connector_launcher_gateway.py
@@ -73,6 +73,7 @@ def test_launcher_gateway_indicator_joins_sync_status_without_visual_noise() ->
)
assert '<x-extension id="sync-status-end"></x-extension>' in sync_status
+ assert sync_status.count("<circle") == 1
assert ":title=" not in sync_status
assert 'x-for="(gateway, index)' in source
assert "launcher-gateway-trigger-label" not in source
diff --git a/webui/components/sync/sync-status.html b/webui/components/sync/sync-status.html
index a443abf09..8c5cea5ba 100644
--- a/webui/components/sync/sync-status.html
+++ b/webui/components/sync/sync-status.html
@@ -52,19 +52,13 @@
x-create="$store.sync.init()"
>
<svg viewBox="0 0 30 30" width="20" height="20" aria-label="sync status">
- <!-- HEALTHY (filled circle) -->
- <circle x-show="$store.sync.mode === 'HEALTHY'" cx="15" cy="15" r="8" fill="#00c340" />
-
- <!-- DEGRADED (filled circle) -->
- <circle x-show="$store.sync.mode === 'DEGRADED'" cx="15" cy="15" r="8" fill="#ff6b00" />
-
- <!-- HANDSHAKE_PENDING (pulsing outline) -->
- <circle x-show="$store.sync.mode === 'HANDSHAKE_PENDING'" class="pending-ring" cx="15" cy="15" r="12"
- fill="none" stroke="#f0a000" stroke-width="3" />
-
- <!-- DISCONNECTED (outline circle) -->
- <circle x-show="$store.sync.mode === 'DISCONNECTED'" cx="15" cy="15" r="12"
- fill="none" stroke="#e40138" stroke-width="3" />
+ <circle
+ cx="15" cy="15" r="12" fill="none" stroke="#e40138" stroke-width="3"
+ :class="{ 'pending-ring': $store.sync.mode === 'HANDSHAKE_PENDING' }"
+ :r="['HEALTHY', 'DEGRADED'].includes($store.sync.mode) ? 8 : 12"
+ :fill="$store.sync.mode === 'HEALTHY' ? '#00c340' : $store.sync.mode === 'DEGRADED' ? '#ff6b00' : 'none'"
+ :stroke="$store.sync.mode === 'HANDSHAKE_PENDING' ? '#f0a000' : $store.sync.mode === 'DISCONNECTED' ? '#e40138' : 'none'"
+ />
</svg>
<x-extension id="sync-status-end"></x-extension>
</div>