From c45b786e866ae04ff56a4f03c4e80aad879a0801 Mon Sep 17 00:00:00 2001 From: Guillem Arias Fauste Date: Thu, 11 Jun 2026 15:24:02 +0200 Subject: [PATCH] fix(ds): migrate SSO amber warning surfaces to DS::Alert / DS::Pill (#2246) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apply the resolved warning-hue decision (use --color-warning; no separate amber token) to the admin SSO surfaces flagged in #2198: - admin/sso_providers: the "legacy providers" notice → DS::Alert(:warning); the "ENV configured" badge → DS::Pill(tone: :warning). - settings/securities: the single-OIDC password warning → DS::Alert(:warning). Replaces hand-rolled bg-amber-50 / border-amber-200 / text-amber-800 boxes and an amber badge with the functional warning token via DS components. The DS::Alert warning recipe (warning tint + neutral text + alert-triangle) matches the prior look while clearing the literal-token drift. Part of #2198. --- app/views/admin/sso_providers/index.html.erb | 13 +++---------- app/views/settings/securities/show.html.erb | 7 ++----- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/app/views/admin/sso_providers/index.html.erb b/app/views/admin/sso_providers/index.html.erb index 6120b52ea..8ea545eb5 100644 --- a/app/views/admin/sso_providers/index.html.erb +++ b/app/views/admin/sso_providers/index.html.erb @@ -64,13 +64,8 @@ <% if @legacy_providers.any? %> <%= settings_section title: t("admin.sso_providers.index.legacy_providers_title"), collapsible: true, open: true do %> -
-
- <%= icon "alert-triangle", class: "w-5 h-5 text-amber-600 shrink-0 theme-dark:text-amber-400" %> -

- <%= t("admin.sso_providers.index.legacy_providers_notice") %> -

-
+
+ <%= render DS::Alert.new(message: t("admin.sso_providers.index.legacy_providers_notice"), variant: :warning) %>
@@ -90,9 +85,7 @@
- - <%= t("admin.sso_providers.index.env_configured") %> - + <%= render DS::Pill.new(label: t("admin.sso_providers.index.env_configured"), tone: :warning, marker: false) %>
<% end %> diff --git a/app/views/settings/securities/show.html.erb b/app/views/settings/securities/show.html.erb index f94878cd4..d1c0fc828 100644 --- a/app/views/settings/securities/show.html.erb +++ b/app/views/settings/securities/show.html.erb @@ -160,11 +160,8 @@ <% end %> <% if @oidc_identities.count == 1 && Current.user.password_digest.blank? %> -
-
- <%= icon "alert-triangle", class: "w-5 h-5 text-amber-600 shrink-0 mt-0.5 theme-dark:text-amber-400" %> -

<%= t(".sso_warning_message") %>

-
+
+ <%= render DS::Alert.new(message: t(".sso_warning_message"), variant: :warning) %>
<% end %> <% else %>