feat(map): dense per-article blip layer from /api/news/blips (T2 frontend) #65
Loading…
Reference in a new issue
No description provided.
Delete branch "wt/t_305683a2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Kanban T2 (t_305683a2). Additive Article Blips layer on the HUD map —
app/static/index.htmlonly (+132/−1). Critical-news pins and/api/news/mapconsumption are byte-unchanged.What ships
syncHudwiring.GET /api/news/blips?bbox=${currentBBox()}&limit=1000— the frozen T1 wire contract, exact keys only. OwnarticlesReqsuperseded-counter +overlayFetch/overlayAborthandling; refresh on pan/zoom (existing 500ms moveend debounce) and on aNEWS_REFRESH_MS(3-min) timer while enabled.#a06cd5)L.circleMarkerfield in a vendoredL.markerClusterGroup(maxClusterRadius: 40,chunkedLoading, bulkaddLayers), custom violet cluster icons sized sm/md/lg. Distinct from the cyan critical pins..blip-poppopup: headline, domain · category, time-ago · location_name (confidence) · score,source ↗link (target=_blank rel=noopener).esc()on every field; defensive dedup by id + finite-lat/lon filter.console.warn+ idle at 0; map and critical pins unaffected. Toggle-off clears timer, layer, and renderer.Two fixes found during browser verification
.leaflet-heatmap-layer { pointer-events: none; }— the FIRMS heat canvas is visual-only (no listeners) but is appended last to the overlay pane withpointer-events: auto, eating every click meant for vector overlays below. This blocked blip clicks and (pre-existing) critical-pin clicks whenever fires were on. One CSS line; rendering unchanged.L.svg({padding:0.5})renderer for the blip field instead of a fresh renderer per refresh (which leaks a full-viewport container per pan/zoom — ~19 MB each at retina). SVG paths are individually clickable and thepointer-events:noneroot lets clicks fall through to the canvas pins below (Leaflet stacks svg z200 over canvas z100) — so both layers stay clickable simultaneously, in either toggle order.Premise corrections (measured at
5ea43a3)index.htmlis 4673 lines, not ~3576.#35e0ffcircleMarkers (radius 6), not magenta diamonds — the magenta diamond is the NEWS HUD chip. Violet blips remain clearly distinct.newsIntervalonly starts after the News view is opened, so the blip layer keeps its own timer at the sameNEWS_REFRESH_MScadence (works even if News is never opened).loadNewsPins()callspointCanvas()inside the per-pin map callback — one full-viewport canvas per pin, leaking ~5 canvases per refresh; only the topmost pin's canvas receives clicks. Follow-up card filed.Verification (local mock of the frozen contract, real browser, 1440×900)
Mock: 1398-row fixture (16 city hotspots + world scatter + XSS/null/duplicate edge rows), exact contract keys, created_at DESC, bbox/limit/422 behavior, switchable ok/404/slow/empty modes; real GIBS Blue Marble basemap.
1,000+ HUD chip update.window.__pwnedundefined), link href preserved incl.&b=<2>,target=_blank rel=noopener; all-null-fields row showsARTICLE / no location label, no link/score.Evidence screenshots attached to the kanban card. Live deploy + end-to-end proof is T3 (t_bcadd420, devops). Merge-on-green per card; CI runs on master after merge.