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:
parent
82a83977ca
commit
3e458fb76a
3 changed files with 16 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue