From 7330d64c5ab0693a6e6275421c72d6ccc90b4422 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sat, 18 Apr 2026 13:37:53 -0500 Subject: [PATCH] feat(contacts): surface tropo duct count and suggest-edit hint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Propagation analysis panel now adds a "Tropo duct detected at N/M HRRR samples along the path" line whenever any HRRR sample flags ducting, even if the overall mechanism classification doesn't end up pointing at the duct (e.g. short paths, clear-LoS contacts). Also rewords the map caveat to invite users with better coordinates to file a suggested edit — clickable when logged in, otherwise a login link. --- .../live/contact_live/show.ex | 36 +++++++++++++++++-- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/lib/microwaveprop_web/live/contact_live/show.ex b/lib/microwaveprop_web/live/contact_live/show.ex index 7c5aabf6..21c7b909 100644 --- a/lib/microwaveprop_web/live/contact_live/show.ex +++ b/lib/microwaveprop_web/live/contact_live/show.ex @@ -895,7 +895,25 @@ defmodule MicrowavepropWeb.ContactLive.Show do <%= if @contact.pos1 && @contact.pos2 do %>

- Locations approximate, in the center of the grid squares + Locations approximate, in the center of the grid squares. + <%= if current_user(assigns) do %> + Have more detailed position information? + + <% else %> + Have more detailed position information? + <.link + navigate={~p"/users/log-in"} + class="link link-hover not-italic text-base-content/70" + > + Log in to suggest an edit + + <% end %>

0 do + "Tropo duct detected at #{ducting}/#{total} HRRR samples along the path." + end + end + + defp path_duct_count_detail(_), do: nil + defp refractivity_detail(%{min_refractivity_gradient: grad}) when is_number(grad) do g = round(grad) label = refractivity_label(g)