From 4e3f732f212d0d80a2bc847b5fb0809f792c4dbf Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Mon, 9 Mar 2026 15:32:42 -0500 Subject: [PATCH] ui: comprehensive button styling audit - convert all text-styled actions to proper buttons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed 10 text-styled action buttons across 7 files: Agent Management: - Delete Agent buttons (2x) → danger variant - View Setup links (already fixed) → secondary variant Organization Settings: - Remove Member button → danger variant Admin Pages: - Edit Overrides button → secondary variant - Delete Organization button → danger variant - Remove IP/CIDR button → danger variant - Delete User button → danger variant Device Management: - Delete Backup button → danger variant All action buttons now use proper .button component with appropriate variants (danger for destructive actions, secondary for neutral actions). This provides consistent visual hierarchy and makes destructive actions more clearly identifiable. --- lib/towerops_web/live/admin/org_live/index.html.heex | 12 ++++++------ .../live/admin/security_live/index.html.heex | 6 +++--- .../live/admin/user_live/index.html.heex | 6 +++--- lib/towerops_web/live/agent_live/index.html.heex | 12 ++++++------ lib/towerops_web/live/device_live/show.html.heex | 6 +++--- lib/towerops_web/live/org/settings_live.html.heex | 6 +++--- 6 files changed, 24 insertions(+), 24 deletions(-) diff --git a/lib/towerops_web/live/admin/org_live/index.html.heex b/lib/towerops_web/live/admin/org_live/index.html.heex index 3d9a1304..c7500bdc 100644 --- a/lib/towerops_web/live/admin/org_live/index.html.heex +++ b/lib/towerops_web/live/admin/org_live/index.html.heex @@ -95,15 +95,15 @@ <:col :let={org} label="">
- - +
diff --git a/lib/towerops_web/live/admin/security_live/index.html.heex b/lib/towerops_web/live/admin/security_live/index.html.heex index ba2be32c..32915e15 100644 --- a/lib/towerops_web/live/admin/security_live/index.html.heex +++ b/lib/towerops_web/live/admin/security_live/index.html.heex @@ -108,14 +108,14 @@ {ToweropsWeb.TimeHelpers.format_date(entry.inserted_at, @timezone)} <:col :let={entry} label=""> - + <% end %> diff --git a/lib/towerops_web/live/admin/user_live/index.html.heex b/lib/towerops_web/live/admin/user_live/index.html.heex index fae7cba7..9d1bef46 100644 --- a/lib/towerops_web/live/admin/user_live/index.html.heex +++ b/lib/towerops_web/live/admin/user_live/index.html.heex @@ -28,15 +28,15 @@ {t("Impersonate")} - + diff --git a/lib/towerops_web/live/agent_live/index.html.heex b/lib/towerops_web/live/agent_live/index.html.heex index b3937d3f..769aaafc 100644 --- a/lib/towerops_web/live/agent_live/index.html.heex +++ b/lib/towerops_web/live/agent_live/index.html.heex @@ -150,7 +150,7 @@ > {t("View Setup")} - + <% else %> Disabled @@ -266,7 +266,7 @@ > {t("View Setup")} - + <% else %> Disabled diff --git a/lib/towerops_web/live/device_live/show.html.heex b/lib/towerops_web/live/device_live/show.html.heex index 3f51b9d5..f4f8a083 100644 --- a/lib/towerops_web/live/device_live/show.html.heex +++ b/lib/towerops_web/live/device_live/show.html.heex @@ -2090,7 +2090,7 @@ <.icon name="hero-arrow-down-tray" class="h-4 w-4" /> Download <%= if ToweropsWeb.Permissions.owner?(@current_scope) do %> - + <% end %> diff --git a/lib/towerops_web/live/org/settings_live.html.heex b/lib/towerops_web/live/org/settings_live.html.heex index d502bc2b..50158759 100644 --- a/lib/towerops_web/live/org/settings_live.html.heex +++ b/lib/towerops_web/live/org/settings_live.html.heex @@ -840,15 +840,15 @@ - + <% end %>