diff --git a/lib/towerops_web/live/alert_live/index.html.heex b/lib/towerops_web/live/alert_live/index.html.heex index 4f1c2408..2765f1c0 100644 --- a/lib/towerops_web/live/alert_live/index.html.heex +++ b/lib/towerops_web/live/alert_live/index.html.heex @@ -67,21 +67,27 @@ <%= if Enum.empty?(@alerts) do %> -
- <.icon name="hero-bell-slash" class="mx-auto h-12 w-12 text-gray-400 dark:text-gray-500" /> -

No alerts

-

- <%= case @filter do %> - <% "unresolved" -> %> - All clear — no unresolved alerts. - <% "critical" -> %> - No critical alerts. Nice work! - <% "resolved" -> %> - No resolved alerts yet. - <% _ -> %> - No alerts have been triggered yet. - <% end %> -

+
+
+
+
+ <.icon name="hero-check-circle-solid" class="h-12 w-12 text-green-500 dark:text-green-400" /> +
+

All Clear!

+

+ <%= case @filter do %> + <% "unresolved" -> %> + No active alerts. Your network is looking good! + <% "critical" -> %> + No critical alerts. Nice work keeping things healthy! + <% "resolved" -> %> + No resolved alerts yet. + <% _ -> %> + No active alerts. Your network is looking good! + <% end %> +

+
+
<% else %> <%!-- Grouped by Site --%> diff --git a/lib/towerops_web/live/dashboard_live.ex b/lib/towerops_web/live/dashboard_live.ex index 87a73db6..4185035d 100644 --- a/lib/towerops_web/live/dashboard_live.ex +++ b/lib/towerops_web/live/dashboard_live.ex @@ -2,6 +2,7 @@ defmodule ToweropsWeb.DashboardLive do @moduledoc false use ToweropsWeb, :live_view + alias Towerops.ActivityFeed alias Towerops.Alerts alias Towerops.Dashboard alias Towerops.Devices @@ -40,6 +41,12 @@ defmodule ToweropsWeb.DashboardLive do |> load_dashboard_data(organization.id)} end + @impl true + def handle_event("refresh_dashboard", _params, socket) do + organization = socket.assigns.current_scope.organization + {:noreply, load_dashboard_data(socket, organization.id)} + end + @impl true def handle_event("dismiss_insight", %{"id" => insight_id}, socket) do case Preseem.dismiss_insight(insight_id) do diff --git a/lib/towerops_web/live/insights_live/index.html.heex b/lib/towerops_web/live/insights_live/index.html.heex index 55198332..6bbc2212 100644 --- a/lib/towerops_web/live/insights_live/index.html.heex +++ b/lib/towerops_web/live/insights_live/index.html.heex @@ -142,29 +142,32 @@ <%!-- Insights list --%>
<%= if @insights == [] do %> -
- <.icon - name="hero-light-bulb" - class="mx-auto h-12 w-12 text-gray-400 dark:text-gray-500" - /> -

- No insights found -

-

- <%= cond do %> - <% @filter_status == "dismissed" -> %> - No dismissed insights. - <% @filter_source != nil -> %> - No {@filter_source} insights right now. - <% @filter_urgency != nil -> %> - No {@filter_urgency} insights right now. - <% true -> %> - No active insights. Your network is looking healthy! - <% end %> -

+
+
+
+
+ <.icon name="hero-light-bulb-solid" class="h-12 w-12 text-amber-500 dark:text-amber-400" /> +
+

No Insights Yet

+

+ <%= cond do %> + <% @filter_status == "dismissed" -> %> + No dismissed insights. + <% @filter_source != nil -> %> + No {@filter_source} insights right now. + <% @filter_urgency != nil -> %> + No {@filter_urgency} insights right now. + <% true -> %> + Connect Preseem or enable SNMP monitoring to get started. + <% end %> +

+
+ <.link navigate={~p"/settings"} class="btn btn-primary btn-sm"> + <.icon name="hero-cog-6-tooth" class="h-4 w-4" /> Connect Integration + +
+
+
<% else %> <%!-- Select all bar --%> diff --git a/lib/towerops_web/live/site_live/index.html.heex b/lib/towerops_web/live/site_live/index.html.heex index a2acba5c..2ffeef65 100644 --- a/lib/towerops_web/live/site_live/index.html.heex +++ b/lib/towerops_web/live/site_live/index.html.heex @@ -14,19 +14,22 @@ <%= if @sites == [] do %> -
- <.icon - name="hero-building-office" - class="mx-auto h-12 w-12 text-gray-400 dark:text-gray-500" - /> -

No sites

-

- Get started by creating your first site. -

-
- <.button navigate={~p"/sites/new"} variant="primary"> - <.icon name="hero-plus" class="h-5 w-5" /> New Site - +
+
+
+
+ <.icon name="hero-map-pin-solid" class="h-12 w-12 text-blue-500 dark:text-blue-400" /> +
+

No Sites Yet

+

+ Create your first site to organize devices by tower location. +

+
+ <.button navigate={~p"/sites/new"} variant="primary"> + <.icon name="hero-plus" class="h-4 w-4" /> Add Site + +
+
<% else %>