From a7bea4a7f28de83d0d6ec3df396c991b84985828 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Mon, 20 Apr 2026 14:12:18 -0500 Subject: [PATCH] feat(status): show radar enrichment progress alongside HRRR/Weather/Terrain/IEMRE --- lib/microwaveprop_web/live/status_live.ex | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/microwaveprop_web/live/status_live.ex b/lib/microwaveprop_web/live/status_live.ex index b75c03f9..bb895fea 100644 --- a/lib/microwaveprop_web/live/status_live.ex +++ b/lib/microwaveprop_web/live/status_live.ex @@ -91,6 +91,7 @@ defmodule MicrowavepropWeb.StatusLive do hrrr = count_incomplete(:hrrr_status, incomplete) weather = count_incomplete(:weather_status, incomplete) iemre = count_incomplete(:iemre_status, incomplete) + radar = count_incomplete(:radar_status, incomplete) narr_candidates = count_narr_candidates() narr_done = count_narr_done() @@ -102,6 +103,7 @@ defmodule MicrowavepropWeb.StatusLive do hrrr: hrrr, weather: weather, iemre: iemre, + radar: radar, narr_candidates: narr_candidates, narr_done: narr_done, remaining: max(terrain, max(hrrr, max(weather, iemre))), @@ -380,6 +382,9 @@ defmodule MicrowavepropWeb.StatusLive do UNION ALL SELECT 'iemre', iemre_status, count(*) FROM contacts GROUP BY iemre_status + UNION ALL + SELECT + 'radar', radar_status, count(*) FROM contacts GROUP BY radar_status ORDER BY 1, 2 """) @@ -484,6 +489,7 @@ defmodule MicrowavepropWeb.StatusLive do {"weather", "Weather", @unprocessed.total - @unprocessed.weather, @unprocessed.total}, {"terrain", "Terrain", @unprocessed.total - @unprocessed.terrain, @unprocessed.total}, {"iemre", "IEMRE", @unprocessed.total - @unprocessed.iemre, @unprocessed.total}, + {"radar", "Radar", @unprocessed.total - @unprocessed.radar, @unprocessed.total}, {"narr", "NARR", @unprocessed.narr_done, @unprocessed.narr_candidates} ] do %> <% pct = if denom > 0, do: round(complete * 100 / denom), else: 0 %> @@ -632,7 +638,7 @@ defmodule MicrowavepropWeb.StatusLive do

Enrichment Status by Type

- <%= for {type, label} <- [{"hrrr", "HRRR"}, {"weather", "Weather"}, {"terrain", "Terrain"}, {"iemre", "IEMRE"}, {"narr", "NARR"}] do %> + <%= for {type, label} <- [{"hrrr", "HRRR"}, {"weather", "Weather"}, {"terrain", "Terrain"}, {"iemre", "IEMRE"}, {"radar", "Radar"}, {"narr", "NARR"}] do %>
{label}
<%= for {status, count} <- Map.get(@db_stats.statuses, type, []) do %>