Real-time geospatial OSINT intelligence dashboard
  • Python 78%
  • HTML 21.5%
  • Shell 0.3%
  • Dockerfile 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Sirius DevOps 577a96658d fix(map): one persistent canvas renderer for critical-news pins
loadNewsPins() called renderer: pointCanvas() INSIDE the per-pin .map(),
giving every critical pin its own full-viewport L.canvas (~19 MB each at
retina 2x). Renderers were never removed on refresh (Leaflet keeps empty
renderers mounted), so canvases grew without bound (35 after 6 refreshes
measured) and stacked pointer-events:auto siblings at z100 meant only the
LAST pin's canvas received clicks — Kyiv (first) was dead, Kherson (last)
worked. This is the user-reported 'selecting Critical News reloads the
site': unbounded full-viewport canvases stall the GPU/main thread.

Fix (mirrors T2's articlesRenderer pattern):
- hoist one persistent L.canvas({padding:0.5}) into module-level
  newsRenderer, shared by all pins and reused across refreshes; L.Canvas
  hit-tests every drawn path so ALL pins are clickable
- remove the renderer on toggle-off (0 canvases when layer off)
- guard L.Canvas.prototype._redraw against detached renderers: Leaflet
  1.9.4's moveend-driven _updatePaths() calls _redraw() directly, nulling
  _redrawRequest without cancelling a pending animation frame; removing
  the renderer before that orphaned frame fires crashes on the deleted
  2d context ('clearRect of undefined'). No-op when detached, unchanged
  when live.

Verified in real browser against local mock of /api/news/map (5 pins) +
/api/news/blips (1398-row T2 fixture):
- all 5 pins open their popups on click, Article Blips ON and OFF
- canvas count flat at 1 across 12 pan/zoom refreshes (was +5/refresh);
  0 when toggled off, 1 when back on
- 6 toggle off/on cycles: every CDP eval 1-2 ms, no navigation/reload
  (boot sentinel + navigation entries unchanged), counts/HUD 0<->5
- 4 toggles mid-map-motion (race stress): zero errors
- article blips still clickable above the canvas (svg z200 pe:none)
- popup content, cyan styling, counts/HUD byte-identical; zero console
  errors across the full session

app/static/index.html only, +19/-2.
2026-11-19 23:29:48 -05:00
.forgejo/workflows ci: log in with a write:package PAT called REGISTRY_TOKEN 2026-11-17 15:10:13 -05:00
alembic news: per-article proximate geolocation + GET /api/news/blips 2026-11-19 22:50:59 -05:00
app fix(map): one persistent canvas renderer for critical-news pins 2026-11-19 23:29:48 -05:00
deploy chore: remove unused masscan scanner 2026-09-01 00:47:24 -04:00
docs feat(summarizer): collapse syndicated wire copies before selection 2026-11-13 22:14:44 -05:00
news news: per-article proximate geolocation + GET /api/news/blips 2026-11-19 22:50:59 -05:00
scripts fix(ingest): skip known KEV/FIRMS rows; CI skips unchanged images 2026-08-29 19:32:00 -04:00
tests news: per-article proximate geolocation + GET /api/news/blips 2026-11-19 22:50:59 -05:00
.dockerignore Containerize for Pi: env-var config, compose stack, CI workflow 2026-07-07 17:50:51 -04:00
.env.example feat(summarizer): collapse syndicated wire copies before selection 2026-11-13 22:14:44 -05:00
.gitignore Add NASA FIRMS active-fire ingest + /api/fires; API keys management page 2026-08-24 15:37:42 -04:00
alembic.ini Containerize for Pi: env-var config, compose stack, CI workflow 2026-07-07 17:50:51 -04:00
docker-compose.yml fix(ops): pin TiTiler digest, GIST bbox indexes, single uvicorn worker 2026-09-01 00:47:06 -04:00
Dockerfile cameras: RTSP preview via ffmpeg, stop opening VLC, drop masscan to 200pps 2026-08-24 23:36:34 -04:00
Dockerfile.pg Fix Dockerfile.pg: mkdir conf.d before writing timescaledb preload 2026-07-07 18:17:31 -04:00
IDEA.md ci: retrigger deploy (previous run raced the force-push) 2026-08-27 17:42:03 -04:00
pytest.ini fix: pipeline reliability — WS, summarizer, ingest, health 2026-08-28 21:49:05 -04:00