From 2d3d9744664b8dffa1e95d5ac69eba2ee3316fca Mon Sep 17 00:00:00 2001 From: Guillem Arias Fauste Date: Mon, 15 Jun 2026 20:11:36 +0200 Subject: [PATCH] fix(ds): canonical separators and destructive tokens in usage/rules tables (#2332) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The LLM usage table (Settings → AI usage) and the rules recent-runs table used hardcoded color classes instead of design-system tokens: - `divide-gray-100` separators — a fixed light gray with no dark-theme variant, so the row dividers render wrong in dark mode. - Raw reds for failed rows (`bg-red-50`/`bg-red-950`, `text-red-500/600`). Swap to the canonical tokens used by every other table (settings/debugs, admin/users, …): - divide-gray-100 -> divide-alpha-black-200 theme-dark:divide-alpha-white-200 - bg-red-50 / bg-red-950/30 -> bg-red-tint-5 / bg-red-tint-10 - text-red-* -> text-destructive (via the icon helper's color: param) Token-only; no structural or behavior change. Co-authored-by: Guillem Arias --- app/views/rules/index.html.erb | 6 +++--- app/views/settings/llm_usages/show.html.erb | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/rules/index.html.erb b/app/views/rules/index.html.erb index 57fc04e12..847c04204 100644 --- a/app/views/rules/index.html.erb +++ b/app/views/rules/index.html.erb @@ -133,9 +133,9 @@ - + <% @recent_runs.each do |run| %> - "> + "> <%= run.executed_at.strftime("%b %d, %Y %I:%M %p") %> @@ -155,7 +155,7 @@ <% end %> <% if run.failed? && run.error_message.present? %>
- <%= icon("info", size: "sm", class: "text-red-500") %> + <%= icon("info", size: "sm", color: "destructive") %>
<% end %> diff --git a/app/views/settings/llm_usages/show.html.erb b/app/views/settings/llm_usages/show.html.erb index 50d05f649..681aa2341 100644 --- a/app/views/settings/llm_usages/show.html.erb +++ b/app/views/settings/llm_usages/show.html.erb @@ -115,9 +115,9 @@ <%= t(".col_cost") %> - + <% @llm_usages.each do |usage| %> - "> + "> <%= usage.created_at.strftime("%b %d, %Y %I:%M %p") %> @@ -131,8 +131,8 @@ <% if usage.failed? %>
- <%= icon "alert-circle", class: "w-4 h-4 text-red-600 theme-dark:text-red-400" %> - <%= t(".failed") %> + <%= icon "alert-circle", size: "sm", color: "destructive" %> + <%= t(".failed") %>