prop/lib/microwaveprop_web/live
Graham McIntire eedd91c6ee
Fix /map prod crash on reconnect and redraw reach polygon on band change
Two bugs on the propagation map:

1. LiveStash reconnect path crashed the LiveView with KeyError on
   :initial_scores_json. stash_assigns/2 only persists selected_band and
   selected_time, but the recovered-socket branch returned early without
   rebuilding any of the other mount-time assigns (bands, bounds, the
   initial score JSON payload, grid/radar toggles, antenna height).
   Users on the Phoenix longpoll fallback — or anyone whose websocket
   reconnected after a brief network blip — saw a blank page and a
   server-side 500. Refactor mount/3 to always compute ephemeral assigns,
   using recovered selected_band / selected_time when present and
   falling back to defaults otherwise.

2. The propagation reach polygon shown after clicking a point never
   redrew when the user changed bands or scrubbed the forecast timeline.
   The redraw logic only ran inside the point_detail handler and was
   gated on `hull.length >= 3`, so the stale polygon from the old band
   stuck around whenever the new band had no coverage at the clicked
   point. Extract a redrawReachPolygon/0 helper on the Leaflet hook that
   always clears the previous polygon first and pulls the tier color
   from the current score at the clicked location, then call it from
   update_scores (band change + server time scrub) and the cached
   timeline-scrub path. The point_detail handler delegates to the same
   helper so the polygon stays in sync with both the score grid and the
   detail panel.
2026-04-12 15:42:45 -05:00
..
admin Add contact edit approval system with admin review queue 2026-04-11 16:15:49 -05:00
beacon_live Use daisyUI components for stats, alerts, cards, and tabs 2026-04-12 09:20:20 -05:00
contact_live Force 24h timestamps and let logged-in owners edit their contacts directly 2026-04-12 15:18:47 -05:00
user_management_live Add /beacons CRUD and /users admin page 2026-04-08 12:01:45 -05:00
about_live.ex Note CONUS-only coverage on the about page 2026-04-12 14:31:30 -05:00
algo_live.ex Merge auth links into main nav and lower password min to 8 2026-04-08 10:39:51 -05:00
backfill_live.ex Cache /weather grid, defer contact show mount, cache stats 2026-04-12 12:55:50 -05:00
contact_map_live.ex Nudge HRRR scores with live ASOS obs between runs 2026-04-12 14:27:27 -05:00
map_live.ex Fix /map prod crash on reconnect and redraw reach polygon on band change 2026-04-12 15:42:45 -05:00
path_live.ex Improve light mode contrast for score colors and map controls 2026-04-11 14:55:21 -05:00
privacy_live.ex Trim footer and privacy copy 2026-04-09 12:30:10 -05:00
rover_live.ex Remove grid squares toggle from rover planner page 2026-04-10 17:31:23 -05:00
submit_live.ex Force 24h timestamps and let logged-in owners edit their contacts directly 2026-04-12 15:18:47 -05:00
weather_map_live.ex Add MRMS rain mosaic, fix beacons crash, fix UTC clock flash 2026-04-12 14:49:20 -05:00