fix(hud): hide vessel and FIRMS rows when those feeds are unset #56

Merged
sirius merged 1 commit from wt/t_617c8a08 into master 2026-11-17 19:55:17 +00:00
Owner

Summary

  • Layer rail hides the .lp-layer for #lp-vessels-on and #lp-fires-on only when GET /api/stats has feeds.vessels.configured === false or feeds.fires.configured === false.
  • Missing feeds (old image) leaves both rows visible. Count 0 is not a hide signal.
  • #lp-incidents-on, #lp-perim-on, and #lp-trains-on are never hidden by this logic.
  • FIRMS checkbox id on master is lp-fires-on (label FIRMS Fires), not the WFIGS incidents toggle.
  • .lp-layer { display: flex } beats the UA [hidden] rule, so the hide also sets inline display: none and clears it when the row is shown again. No color, font, or neon change.

Test plan

  • pytest tests/test_feed_rail.py tests/test_hud_chrome.py tests/test_frontend_reliability.py -q — 25 passed
  • Browser: both configured: false computes display: none on those two rows; incidents and trains stay flex. No feeds restores flex.

Do not merge yet — inbox card rebases onto this branch if the PR is still open.
Known-red CI docker login 127.0.0.1:3000 is not this change.

## Summary - Layer rail hides the `.lp-layer` for `#lp-vessels-on` and `#lp-fires-on` only when `GET /api/stats` has `feeds.vessels.configured === false` or `feeds.fires.configured === false`. - Missing `feeds` (old image) leaves both rows visible. Count 0 is not a hide signal. - `#lp-incidents-on`, `#lp-perim-on`, and `#lp-trains-on` are never hidden by this logic. - FIRMS checkbox id on master is `lp-fires-on` (label FIRMS Fires), not the WFIGS incidents toggle. - `.lp-layer { display: flex }` beats the UA `[hidden]` rule, so the hide also sets inline `display: none` and clears it when the row is shown again. No color, font, or neon change. ## Test plan - [x] `pytest tests/test_feed_rail.py tests/test_hud_chrome.py tests/test_frontend_reliability.py -q` — 25 passed - [x] Browser: both `configured: false` computes `display: none` on those two rows; incidents and trains stay `flex`. No `feeds` restores `flex`. Do not merge yet — inbox card rebases onto this branch if the PR is still open. Known-red CI `docker login 127.0.0.1:3000` is not this change.
Read feeds.vessels.configured and feeds.fires.configured from /api/stats.
A missing feeds object leaves both rows visible. WFIGS and trains stay.
sirius merged commit 0ba9754e1a into master 2026-11-17 19:55:17 +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!56
No description provided.