From 291214033a183d420b686b0c61876c33cb60db4c Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sun, 12 Apr 2026 13:38:16 -0500 Subject: [PATCH] Match /map sidebar layout on /weather Right-hand dark sidebar holds the layer selector, description, navigation links, and auth menu. Mobile floating panel mirrors the pattern used on /map so users get the same controls in both views. --- .../live/weather_map_live.ex | 245 +++++++++++++++--- 1 file changed, 202 insertions(+), 43 deletions(-) diff --git a/lib/microwaveprop_web/live/weather_map_live.ex b/lib/microwaveprop_web/live/weather_map_live.ex index efc25dfe..6b2633b6 100644 --- a/lib/microwaveprop_web/live/weather_map_live.ex +++ b/lib/microwaveprop_web/live/weather_map_live.ex @@ -213,30 +213,151 @@ defmodule MicrowavepropWeb.WeatherMapLive do @impl true def render(assigns) do ~H""" -
- <%!-- Full-page map --%> -
+
+ <%!-- Map container --%> +
+ <%!-- Full-page map --%> +
+
+ + <%!-- Mobile-only floating controls --%> +
+
+
+
+ NTMS +
Weather Map
+
+ <%= if @valid_time do %> + {Calendar.strftime(@valid_time, "%Y-%m-%d %H:%M UTC")} + <% else %> + No data available + <% end %> +
+
+
+
+
+ +
+
+ + +
+
+ + <%!-- Point detail panel --%> + + + <%!-- Sidebar expand button (visible when sidebar is collapsed) --%> +
- <%!-- Top-left control panel --%> + <%!-- Desktop right sidebar --%>
-
+
- - Weather -
+ NTMS +
Weather Map
+
<%= if @valid_time do %> {Calendar.strftime(@valid_time, "%Y-%m-%d %H:%M UTC")} <% else %> @@ -244,11 +365,21 @@ defmodule MicrowavepropWeb.WeatherMapLive do <% end %>
-
+
+
+
+
@@ -275,30 +406,58 @@ defmodule MicrowavepropWeb.WeatherMapLive do
<%!-- Layer description --%> -
+
{layer_description(@layers, @selected_layer)}
- <%!-- Links --%> -
- <.link navigate="/map" class="btn btn-xs btn-ghost justify-start"> - Propagation Prediction Map - -
-
-
+ <%!-- Navigation --%> + - <%!-- Point detail panel --%> -