From c3819112fef2d778432ed0a4f42a1a22200dee94 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Mon, 6 Apr 2026 12:46:07 -0500 Subject: [PATCH] Persist checkbox and limit state across backfill enqueue submissions --- lib/microwaveprop_web/live/backfill_live.ex | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/microwaveprop_web/live/backfill_live.ex b/lib/microwaveprop_web/live/backfill_live.ex index 3bb71f53..5d776266 100644 --- a/lib/microwaveprop_web/live/backfill_live.ex +++ b/lib/microwaveprop_web/live/backfill_live.ex @@ -31,6 +31,7 @@ defmodule MicrowavepropWeb.BackfillLive do assign(socket, page_title: "Backfill", limit: limit, + types: MapSet.new(~w(hrrr weather terrain iemre)), stats: stats, unprocessed: unprocessed, db_stats: db_stats, @@ -56,7 +57,10 @@ defmodule MicrowavepropWeb.BackfillLive do |> BackfillEnqueueWorker.new() |> Oban.insert() - {:noreply, socket |> assign(enqueuing: true, limit: limit) |> LiveStash.stash_assigns([:limit])} + {:noreply, + socket + |> assign(enqueuing: true, limit: limit, types: MapSet.new(types)) + |> LiveStash.stash_assigns([:limit])} end @impl true @@ -351,7 +355,13 @@ defmodule MicrowavepropWeb.BackfillLive do
<%= for type <- ~w(hrrr weather terrain iemre) do %> <% end %>