From c88f2bbf963f22eea3e66f41622f3ca793e0d77c Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sat, 17 Jan 2026 12:55:03 -0600 Subject: [PATCH] Make active alerts the default tab Change the default filter from 'all' to 'active' on the alerts page. This shows only active alerts by default, which is more useful for monitoring current issues. Users can still click 'All Alerts' to see the complete history. --- lib/towerops_web/live/alert_live/index.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/towerops_web/live/alert_live/index.ex b/lib/towerops_web/live/alert_live/index.ex index ef857421..f731ebdc 100644 --- a/lib/towerops_web/live/alert_live/index.ex +++ b/lib/towerops_web/live/alert_live/index.ex @@ -18,13 +18,13 @@ defmodule ToweropsWeb.AlertLive.Index do {:ok, socket |> assign(:page_title, "Alerts") - |> assign(:filter, "all") + |> assign(:filter, "active") |> load_alerts(organization.id)} end @impl true def handle_params(params, _url, socket) do - filter = Map.get(params, "filter", "all") + filter = Map.get(params, "filter", "active") {:noreply, socket