mirror of
https://github.com/we-promise/sure.git
synced 2026-07-18 15:55:22 +00:00
* fix(ds): dark-parity for bespoke green status badges (#2134) The status/type badges in recurring transactions, admin SSO providers, and the categorize group title used solid light-green tints (bg-green-50/100 + text-green-700/800) with no dark variant, so they rendered as pale "stickers" on dark. Add theme-dark variants mirroring DS::Pill's soft recipe (bg-green-tint-10 + text-green-200); dark text contrast 9.5-14.2:1. Their neutral siblings were already token-based. Audit-named _status_pill / _maturity_badge already render via DS::Pill; remaining solid-tint spots are alpha icon-containers (bg-*-500/5,/10) that composite fine on dark. Full DS::Pill consolidation tracked separately. * fix(ds): dark-parity for bespoke amber/blue notices + SSO badge (#2134) Continues the bespoke-badge tail: the raw-amber warning notices (securities SSO warning, admin SSO legacy-providers notice) + the env-configured badge, and the AI tool-call info box, were solid light tints (bg-amber-50/100 / bg-blue-50) with no dark variant -> pale "stickers" on dark. Add theme-dark variants mirroring the soft recipe: alpha-tint bg (amber/blue-500/10-15), lightened border, light text/icon (amber-200/400). Verified legible on dark. Pre-auth (sessions/new) + infra (redis error) amber notices render light-only, left as-is. Broader: these warning boxes want a shared DS notice/callout component (#2137).
20 lines
871 B
Plaintext
20 lines
871 B
Plaintext
<%# locals: (message:) %>
|
|
|
|
<details class="my-2 group mb-4">
|
|
<summary class="text-secondary text-xs cursor-pointer flex items-center gap-2">
|
|
<%= icon("chevron-right", class: "group-open:transform group-open:rotate-90") %>
|
|
<p><%= t(".tool_calls") %></p>
|
|
</summary>
|
|
|
|
<div class="mt-2">
|
|
<% message.tool_calls.each do |tool_call| %>
|
|
<div class="bg-blue-50 border-blue-200 px-3 py-2 rounded-lg border mb-2 theme-dark:bg-blue-500/10 theme-dark:border-blue-500/30">
|
|
<p class="text-secondary text-xs"><%= t(".function") %></p>
|
|
<p class="text-primary text-sm font-mono"><%= tool_call.function_name %></p>
|
|
<p class="text-secondary text-xs mt-2"><%= t(".arguments") %></p>
|
|
<pre class="text-primary text-sm font-mono whitespace-pre-wrap"><%= tool_call.function_arguments %></pre>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</details>
|