From e6ef6b79f9e24ae1be1abf4352d702ab8359c4b8 Mon Sep 17 00:00:00 2001 From: Sirius DevOps Date: Thu, 19 Nov 2026 22:52:32 -0500 Subject: [PATCH 1/6] feat(map): dense per-article blip layer from /api/news/blips MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Additive 'Article Blips' layer on the HUD map (default OFF), separate from the critical-news pins: - GET /api/news/blips?bbox=&limit=1000 (frozen T1 contract), own superseded-request counter + overlayAbort handling, bbox refresh on pan/zoom and a NEWS_REFRESH_MS timer while enabled - small radius-3 violet circleMarkers in a chunked markerClusterGroup (maxClusterRadius 40) with quiet violet cluster icons; one persistent SVG renderer (clickable paths, click-through root, no container leak) - click -> .blip-pop popup: headline, domain, category, location_name + confidence, score, source link (esc() on every field) - legend toggle + count, ARTICLES HUD chip, syncHud wiring - graceful 404/failure: warn + idle at 0, map and critical pins unaffected - .leaflet-heatmap-layer pointer-events:none — the visual-only FIRMS canvas sat on top of the overlay pane and ate clicks meant for vector blips/pins (pre-existing; fixes click-through for canvas pins too) Critical-news layer and /api/news/map consumption unchanged. --- app/static/index.html | 133 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 132 insertions(+), 1 deletion(-) diff --git a/app/static/index.html b/app/static/index.html index 1ad3bc7..0a359a6 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -274,6 +274,21 @@ .marker-cluster-medium div { font-size: 11px; } .marker-cluster-large div { font-size: 12px; } + /* ── Article blip clusters (quiet violet, matches the small blips) ── */ + .marker-cluster-articles { background-color: rgba(160, 108, 213, 0.16); } + .marker-cluster-articles div { + background-color: rgba(122, 74, 160, 0.88); + color: #efe6f9; + font-weight: 600; + box-shadow: 0 0 10px rgba(160, 108, 213, 0.35), 0 0 2px rgba(3, 6, 9, 0.9); + } + .articles-sm div { font-size: 10px; } + .articles-md div { font-size: 11px; } + .articles-lg div { font-size: 12px; } + /* FIRMS heat is visual-only (no listeners) but its canvas sits on top + of the overlay pane and eats clicks meant for vector blips/pins. */ + .leaflet-heatmap-layer { pointer-events: none; } + /* ── Map hint + HUD chips ── */ .map-hint { position: absolute; left: 12px; bottom: 12px; z-index: 500; @@ -299,6 +314,7 @@ .hud-chip .c.cams { background: #4ade80; box-shadow: 0 0 6px #4ade80; } .hud-chip .c.blips { background: var(--magenta); box-shadow: 0 0 6px var(--magenta); } .hud-chip .c.news { background: var(--magenta); box-shadow: 0 0 6px var(--magenta); border-radius: 1px; transform: rotate(45deg); } + .hud-chip .c.articles { background: #a06cd5; box-shadow: 0 0 6px rgba(160,108,213,0.6); } .hud-chip.off { opacity: 0.4; } #dvr-bar { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); @@ -357,6 +373,7 @@ .lp-dot.cams { background: #4ade80; box-shadow: 0 0 7px #4ade80; } .lp-dot.blips { background: var(--magenta); box-shadow: 0 0 7px var(--magenta); } .lp-dot.news { background: var(--cyan); box-shadow: 0 0 7px var(--cyan); } + .lp-dot.articles { background: #a06cd5; box-shadow: 0 0 7px rgba(160,108,213,0.6); } .lp-dot.weather { background: var(--amber); box-shadow: 0 0 7px var(--amber); } .lp-dot.flights { background: #7dd3fc; box-shadow: 0 0 7px #7dd3fc; } .lp-dot.mil { background: #f472b6; box-shadow: 0 0 7px #f472b6; } @@ -1017,6 +1034,12 @@ 0 +
+
+ + 0 +
+
@@ -1121,6 +1144,7 @@
CAMS —
BLIPS —
NEWS —
+
ARTICLES —