diff --git a/AGENTS.md b/AGENTS.md index 8a4f455..98dd5f8 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -62,7 +62,6 @@ - Hide-nodes toggle hides markers, trails, heat, routes, and history layers. - Heat toggle hides the heatmap; it defaults on and the button turns green when heat is off. - History line weight was reduced for a lighter map overlay. -- HUD logo uses `SITE_ICON`; if missing/invalid it falls back to a small "Map" badge to keep the toggle usable. - Route styling now keys off payload type: 2/5 = Message (blue), 8/9 = Trace (orange), 4 = Advert (green). - 24h route history persists to `data/route_history.jsonl`, renders as a volume heatline, and defaults off (toggle in HUD). - History records routes for `path`, `direct`, and `fanout` modes by default; adjust with `ROUTE_HISTORY_ALLOWED_MODES`. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e88fffc..7776472 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -31,7 +31,6 @@ When adding UI controls: - Wire the toggle into `app.js`. - Add styles to `styles.css` (don’t inline). - Keep HUD layout stable on mobile (test at narrow widths). -- If `SITE_ICON` is optional, include a text fallback for the HUD toggle. ## API Changes - Document new endpoints in `docs.md`. diff --git a/README.md b/README.md index fa7fd5a..2b22c87 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,6 @@ Live example: https://live.bostonme.sh/ - Propagation panel lives on the right and keeps the last render until you generate a new one - Installable PWA (manifest + service worker) for Add to Home Screen - Click the logo to hide/show the left HUD panel while tools stay open -- If `SITE_ICON` is unset or fails to load, the HUD toggle falls back to a small “Map” badge. ## Project Structure - `backend/app.py`: FastAPI server wiring, MQTT lifecycle, WS broadcast diff --git a/backend/static/app.js b/backend/static/app.js index eae7195..2cba58c 100644 --- a/backend/static/app.js +++ b/backend/static/app.js @@ -68,25 +68,6 @@ const losPeaksMax = Number(config.losPeaksMax) || 4; const mqttOnlineSeconds = Number(config.mqttOnlineSeconds) || 300; const defaultDistanceUnits = config.distanceUnits || 'km'; - const hudToggle = document.getElementById('hud-toggle'); - const hudLogo = hudToggle ? hudToggle.querySelector('.hud-logo') : null; - const applyHudLogoFallback = () => { - if (hudToggle) { - hudToggle.classList.add('hud-toggle-fallback'); - } - if (hudLogo && hudLogo.parentNode) { - hudLogo.parentNode.removeChild(hudLogo); - } - }; - if (hudLogo) { - const siteIcon = String(hudLogo.dataset.siteIcon || '').trim(); - if (!siteIcon) { - applyHudLogoFallback(); - } else { - hudLogo.src = siteIcon; - hudLogo.addEventListener('error', applyHudLogoFallback, { once: true }); - } - } const heatLayer = L.heatLayer([], { radius: 28, blur: 22, diff --git a/backend/static/index.html b/backend/static/index.html index 64ea75f..4c690d5 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -48,8 +48,7 @@