feat(hud): Blue Marble default basemap + constant-speed readable news ticker #67

Merged
sirius merged 1 commit from wt/t_88bfa75f into master 2026-11-20 04:45:54 +00:00
Owner

Card t_88bfa75f — two user-requested HUD fixes, app/static/index.html only (+13/−3). Branched from a268eefb (includes t_40da439a renderer fix + article-blips layer).

Fix 1 — Blue Marble default basemap

User: satellite true-color tiles "aren't fully filled out" (cloud/coverage gaps). initMap() preferred chain now puts BlueMarble_ShadedRelief_Bathymetry FIRST; VIIRS/MODIS remain in the map-layer select. Persistence check: osint.mapDefaults stores only overlay prefs (firesSince/blipsSince/camsOn/blipsOn/firesOn) — no basemap preference exists, so the chain reorder is the whole fix. Blue Marble has_time:false → time/date controls hide via existing mapLayerChanged.

Fix 2 — readable news ticker

Preferred robust approach: renderNewsTicker() now sets animation-duration = groupWidth / 28 from the rendered scrollWidth (track = two identical .tick-group copies, keyframe −50%), so pixel speed is a constant 28 px/s regardless of headline count, recomputed on every 3-min rebuild. CSS fallback raised 90s → 240s. Seamless loop preserved; market ticker untouched (60s CSS, no inline override); hover-pause and reduced-motion unaffected.

Real-browser verification (mock API + live GIBS tiles, 1440×900)

  • Fresh load: map-layer = Blue Marble, 8/8 tiles loaded, all URLs BlueMarble_ShadedRelief_Bathymetry, time controls hidden, hint "static basemap".
  • Satellite round-trip: MODIS Terra selected → 8/8 tiles render, time controls visible, date from times domain; back to Blue Marble → controls hidden again. (Note: VIIRS S-NPP TrueColor currently 404s upstream at GIBS for all zooms/dates probed — pre-existing data gap, exactly the user's complaint; selection machinery verified with Terra.)
  • Ticker: computed duration 284.86s for the 12-headline fixture; measured 28.01 px/s over a timed frame-driven interval (old fixed 90s ≈ 88 px/s for same content). Two identical groups, equal widths → seamless −50% loop. Rebuild via loadNews() recomputes duration, speed unchanged. Market track: no inline duration, computed 60s.
  • Regression: critical-news toggle → 5 pins on ONE shared canvas (t_40da439a fix intact), article blips → 1,000 markers, count chips correct; toggles off → 0 canvases, groups null; boot token intact + single navigation entry across all steps (no reload); zero console errors/warnings.

Evidence screenshots attached to the kanban card (orphan branch, not in this diff).

Card t_88bfa75f — two user-requested HUD fixes, `app/static/index.html` only (+13/−3). Branched from a268eefb (includes t_40da439a renderer fix + article-blips layer). ## Fix 1 — Blue Marble default basemap User: satellite true-color tiles "aren't fully filled out" (cloud/coverage gaps). `initMap()` preferred chain now puts `BlueMarble_ShadedRelief_Bathymetry` FIRST; VIIRS/MODIS remain in the `map-layer` select. **Persistence check:** `osint.mapDefaults` stores only overlay prefs (firesSince/blipsSince/camsOn/blipsOn/firesOn) — no basemap preference exists, so the chain reorder is the whole fix. Blue Marble `has_time:false` → time/date controls hide via existing `mapLayerChanged`. ## Fix 2 — readable news ticker Preferred robust approach: `renderNewsTicker()` now sets `animation-duration = groupWidth / 28` from the rendered `scrollWidth` (track = two identical `.tick-group` copies, keyframe −50%), so pixel speed is a **constant 28 px/s** regardless of headline count, recomputed on every 3-min rebuild. CSS fallback raised 90s → 240s. Seamless loop preserved; market ticker untouched (60s CSS, no inline override); hover-pause and reduced-motion unaffected. ## Real-browser verification (mock API + live GIBS tiles, 1440×900) - Fresh load: `map-layer` = Blue Marble, 8/8 tiles loaded, all URLs `BlueMarble_ShadedRelief_Bathymetry`, time controls hidden, hint "static basemap". - Satellite round-trip: MODIS Terra selected → 8/8 tiles render, time controls visible, date from times domain; back to Blue Marble → controls hidden again. (Note: VIIRS S-NPP TrueColor currently 404s upstream at GIBS for all zooms/dates probed — pre-existing data gap, exactly the user's complaint; selection machinery verified with Terra.) - Ticker: computed duration 284.86s for the 12-headline fixture; **measured 28.01 px/s** over a timed frame-driven interval (old fixed 90s ≈ 88 px/s for same content). Two identical groups, equal widths → seamless −50% loop. Rebuild via `loadNews()` recomputes duration, speed unchanged. Market track: no inline duration, computed 60s. - Regression: critical-news toggle → 5 pins on ONE shared canvas (t_40da439a fix intact), article blips → 1,000 markers, count chips correct; toggles off → 0 canvases, groups null; boot token intact + single navigation entry across all steps (no reload); **zero console errors/warnings**. Evidence screenshots attached to the kanban card (orphan branch, not in this diff).
- initMap preferred chain: BlueMarble_ShadedRelief_Bathymetry first (static,
  gap-free); VIIRS/MODIS satellite remain selectable. No basemap persistence
  exists (osint.mapDefaults stores overlay prefs only), so first-load default
  is the whole change. has_time=false hides time controls via mapLayerChanged.
- News ticker: animation-duration computed from rendered group width for a
  constant 28 px/s regardless of headline count, recomputed on every 3-min
  rebuild; CSS fallback raised 90s -> 240s. Seamless two-copy -50% loop kept;
  market ticker untouched (60s CSS, no inline override).

Verified in real browser vs mock API + live GIBS tiles: fresh load selects
Blue Marble (8/8 tiles), Terra satellite round-trip renders with time controls,
measured ticker speed 28.01 px/s (was ~88), critical-news/blips toggles clean
(1 shared canvas -> 0, no reload), zero console errors.
sirius merged commit 915f6cbe25 into master 2026-11-20 04:45:54 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/osint-dashboard!67
No description provided.