Live wall: persist the Power Outages overlay in the saved-view hash (#184 follow-up) #269

Open
opened 2026-10-05 03:13:01 -04:00 by logan · 0 comments
Owner

The Power Outages overlay (server-26#184, branch feat/184-outage-map) is not saved in the live wall's URL hash or per-viewer memory (#234), so it always starts off and a copied link never carries it.

Why: overlay keys live in LAYER_NAMES in drb-frontend/lib/liveWall.ts, which #235 owned in the same batch, so #184 did not edit it.

Fix (after #235 merges):

  1. lib/liveWall.ts: add outage: "Power Outages" to LAYER_NAMES.
  2. components/MapView.tsx: set OVERLAY_OUTAGES = LAYER_NAMES.outage, change the overlay to checked={layerOn("outage")}, and seed outagesShown from startLayers.has("outage"), the same way aircraftShown is seeded.

Acceptance: #layers=...,outage opens the wall with the layer on, and toggling it updates the hash.

The Power Outages overlay (server-26#184, branch `feat/184-outage-map`) is not saved in the live wall's URL hash or per-viewer memory (#234), so it always starts off and a copied link never carries it. Why: overlay keys live in `LAYER_NAMES` in `drb-frontend/lib/liveWall.ts`, which #235 owned in the same batch, so #184 did not edit it. Fix (after #235 merges): 1. `lib/liveWall.ts`: add `outage: "Power Outages"` to `LAYER_NAMES`. 2. `components/MapView.tsx`: set `OVERLAY_OUTAGES = LAYER_NAMES.outage`, change the overlay to `checked={layerOn("outage")}`, and seed `outagesShown` from `startLayers.has("outage")`, the same way `aircraftShown` is seeded. Acceptance: `#layers=...,outage` opens the wall with the layer on, and toggling it updates the hash.
logan added the
type
feature
area/maparea/frontend
priority
p3
labels 2026-10-05 03:13:01 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: logan/server-26#269