feat(nav): add EME menu item to map + weather sidebars

The top navbar in the root layout already linked to /eme, but the
in-page side sidebars on /map and /weather (mobile + desktop) skipped
straight from Path Calculator to Beacons. Adds the EME entry between
them in all four panels so the Earth-Moon-Earth calculator is reachable
without bouncing through the navbar.

Also demotes the LiveStashGuard "stash skipped" warning to debug. It's
the known OTP 28 / LiveStash 0.2.0 ArgumentError that fires on every
event triggering a stash; the guard already handles it, the noise was
adding nothing.
This commit is contained in:
Graham McIntire 2026-04-25 09:49:06 -05:00
parent 82a83977ca
commit 3e458fb76a
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59
3 changed files with 16 additions and 1 deletions

View file

@ -28,7 +28,10 @@ defmodule MicrowavepropWeb.LiveStashGuard do
LiveStash.stash(socket)
rescue
e in ArgumentError ->
Logger.warning("LiveStashGuard: stash skipped (#{Exception.message(e)})")
# Expected on OTP 28 with LiveStash 0.2.0 — fires on every event
# that triggers a stash. Log at debug so the cause stays
# observable without flooding prod logs.
Logger.debug("LiveStashGuard: stash skipped (#{Exception.message(e)})")
socket
end
end

View file

@ -1023,6 +1023,9 @@ defmodule MicrowavepropWeb.MapLive do
<.link navigate="/path" class="btn btn-xs btn-ghost justify-start">
Path Calculator
</.link>
<.link navigate="/eme" class="btn btn-xs btn-ghost justify-start">
EME
</.link>
<.link navigate="/beacons" class="btn btn-xs btn-ghost justify-start">
Beacons
</.link>
@ -1165,6 +1168,9 @@ defmodule MicrowavepropWeb.MapLive do
<li>
<.link navigate="/path">Path Calculator</.link>
</li>
<li>
<.link navigate="/eme">EME</.link>
</li>
<li>
<.link navigate="/beacons">Beacons</.link>
</li>

View file

@ -521,6 +521,9 @@ defmodule MicrowavepropWeb.WeatherMapLive do
<.link navigate="/path" class="btn btn-xs btn-ghost justify-start">
Path Calculator
</.link>
<.link navigate="/eme" class="btn btn-xs btn-ghost justify-start">
EME
</.link>
<.link navigate="/beacons" class="btn btn-xs btn-ghost justify-start">
Beacons
</.link>
@ -671,6 +674,9 @@ defmodule MicrowavepropWeb.WeatherMapLive do
<li>
<.link navigate="/path">Path Calculator</.link>
</li>
<li>
<.link navigate="/eme">EME</.link>
</li>
<li>
<.link navigate="/beacons">Beacons</.link>
</li>