From 2735c1a03296127561345119c5e7dbbb11e71442 Mon Sep 17 00:00:00 2001 From: Graham McIntie Date: Mon, 16 Feb 2026 10:14:32 -0600 Subject: [PATCH] Add onboarding flow for new organizations --- lib/towerops_web/components/consent_prompt.ex | 2 +- lib/towerops_web/components/layouts.ex | 2 +- .../components/marketing_layouts.ex | 2 +- .../controllers/error_html/404.html.heex | 2 +- .../controllers/error_html/500.html.heex | 2 +- .../controllers/page_html/home.html.heex | 6 +- .../live/alert_live/index.html.heex | 2 +- .../live/check_live/form_component.ex | 2 +- .../live/dashboard_live.html.heex | 2 +- .../live/device_live/show.html.heex | 4 +- .../live/maintenance_live/form.ex | 116 +++++++ .../live/maintenance_live/form.html.heex | 211 ++++++++++++ .../live/maintenance_live/index.ex | 66 ++++ .../live/maintenance_live/index.html.heex | 118 +++++++ .../live/maintenance_live/show.ex | 56 ++++ .../live/maintenance_live/show.html.heex | 122 +++++++ lib/towerops_web/live/onboarding_live.ex | 251 ++++++++++++++ .../live/onboarding_live.html.heex | 309 ++++++++++++++++++ .../live/site_live/show.html.heex | 2 +- lib/towerops_web/live/trace_live/index.ex | 2 +- .../live/trace_live/index.html.heex | 8 +- lib/towerops_web/router.ex | 6 + ..._onboarding_completed_to_organizations.exs | 9 + 23 files changed, 1283 insertions(+), 19 deletions(-) create mode 100644 lib/towerops_web/live/maintenance_live/form.ex create mode 100644 lib/towerops_web/live/maintenance_live/form.html.heex create mode 100644 lib/towerops_web/live/maintenance_live/index.ex create mode 100644 lib/towerops_web/live/maintenance_live/index.html.heex create mode 100644 lib/towerops_web/live/maintenance_live/show.ex create mode 100644 lib/towerops_web/live/maintenance_live/show.html.heex create mode 100644 lib/towerops_web/live/onboarding_live.ex create mode 100644 lib/towerops_web/live/onboarding_live.html.heex create mode 100644 priv/repo/migrations/20260216160000_add_onboarding_completed_to_organizations.exs diff --git a/lib/towerops_web/components/consent_prompt.ex b/lib/towerops_web/components/consent_prompt.ex index 6b622e86..0fb05279 100644 --- a/lib/towerops_web/components/consent_prompt.ex +++ b/lib/towerops_web/components/consent_prompt.ex @@ -25,7 +25,7 @@ defmodule ToweropsWeb.Components.ConsentPrompt do >
-
+
diff --git a/lib/towerops_web/components/layouts.ex b/lib/towerops_web/components/layouts.ex index 95363d02..34b4a6b9 100644 --- a/lib/towerops_web/components/layouts.ex +++ b/lib/towerops_web/components/layouts.ex @@ -154,7 +154,7 @@ defmodule ToweropsWeb.Layouts do <.link href={~p"/admin/impersonate"} method="delete" - class="px-3 py-1 bg-white text-yellow-900 hover:bg-yellow-50 rounded font-medium text-sm" + class="px-3 py-1 bg-white dark:bg-gray-900 text-yellow-900 dark:text-yellow-200 hover:bg-yellow-50 dark:hover:bg-gray-800 rounded font-medium text-sm" > Exit diff --git a/lib/towerops_web/components/marketing_layouts.ex b/lib/towerops_web/components/marketing_layouts.ex index ae28d68e..1a30a03b 100644 --- a/lib/towerops_web/components/marketing_layouts.ex +++ b/lib/towerops_web/components/marketing_layouts.ex @@ -30,7 +30,7 @@ defmodule ToweropsWeb.MarketingLayouts do assigns = Map.put(assigns, :requires_cookie_consent, requires_cookie_consent) ~H""" -
+