From 2e308476080fcc22ea8bf8fe1a9b4e5725af9094 Mon Sep 17 00:00:00 2001 From: gitomarcourt Date: Fri, 3 Jul 2026 18:10:53 +0200 Subject: [PATCH] ui: remove connection status dot entirely --- dashboard/static/index.html | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/dashboard/static/index.html b/dashboard/static/index.html index 5f34ff8..ab28cb5 100644 --- a/dashboard/static/index.html +++ b/dashboard/static/index.html @@ -21,12 +21,9 @@
-
-
-

SNEK Dashboard

-

Live Sens'it uplink decoding

-
- +
+

SNEK Dashboard

+

Live Sens'it uplink decoding

@@ -241,22 +238,8 @@ async function bootstrap() { renderMessages(); } -function setConn(state) { - const dot = document.getElementById('conn-dot'); - const map = { - live: ['bg-emerald-500', 'connected'], - off: ['bg-rose-500', 'disconnected'], - idle: ['bg-slate-300', 'connecting'], - }; - const [color, title] = map[state] || map.idle; - dot.className = `w-2 h-2 rounded-full ${color}`; - dot.title = title; -} - function connectSSE() { const es = new EventSource('/events'); - es.onopen = () => setConn('live'); - es.onerror = () => setConn('off'); es.onmessage = (ev) => { try { const msg = JSON.parse(ev.data);