mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 10:48:20 +01:00
fix(ui): extract "Next best" CTA to ui-btn-nextbest (warm-tinted, no inline utilities)
The most prominent Control CTA was raw inline Tailwind (bg-accent-primary/[0.07] + arbitrary opacities) — a Layer-4 violation that also meant the warm accent never reached it. Extract to a ui-btn-nextbest @layer class, warm-tinted (soft, not a solid slab). Recurring pattern now lives in one place and inherits the brand accent. Token/class-only. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
60fb2647e4
commit
ba00e85d4f
2 files changed
+7
-1
No files matched your search
@@ -1940,6 +1940,12 @@
|
||||
.ui-btn-ready-primary {
|
||||
@apply inline-flex min-h-11 sm:min-h-0 items-center rounded-lg bg-accent-warm px-3 py-2 text-sm font-medium text-white transition-colors hover:bg-accent-warm-hover;
|
||||
}
|
||||
/* "Next best" primary CTA — full-width, warm-tinted (soft x.ai accent, not a
|
||||
solid slab). Extracted from inline utilities so the recurring pattern lives
|
||||
in one place and inherits the warm brand accent. */
|
||||
.ui-btn-nextbest {
|
||||
@apply w-full rounded-xl border border-accent-warm/40 bg-accent-warm/[0.10] px-4 py-2.5 text-sm font-semibold text-accent-warm transition-colors hover:border-accent-warm/60 hover:bg-accent-warm/[0.16] disabled:opacity-50;
|
||||
}
|
||||
.ui-btn-ready-action {
|
||||
@apply inline-flex min-h-11 sm:min-h-0 items-center rounded-lg border border-border-default bg-surface-overlay px-3 py-2 text-sm font-medium text-text-primary transition-colors hover:bg-surface-raised;
|
||||
}
|
||||
|
||||
@@ -203,7 +203,7 @@ export function IntentButtonPanel({
|
||||
title={queueBlockedReason
|
||||
? `${queueBlockedReason}: Next best stays on recovery work and will not consume the queue. Use a queue row's send button to run that item now.`
|
||||
: "The agent re-reads ground truth (git, types, lint, TODOs, roadmap, session handoff), picks the single highest-impact task, and executes. Dispatches immediately, no preview."}
|
||||
className="w-full rounded-xl border border-accent-primary/30 bg-accent-primary/[0.07] px-4 py-2.5 text-sm font-semibold text-text-primary transition-colors hover:border-accent-primary/50 hover:bg-accent-primary/[0.12] disabled:opacity-50"
|
||||
className="ui-btn-nextbest"
|
||||
>
|
||||
{sending === primary.id
|
||||
? "…"
|
||||
|
||||
Reference in new issue
Block a user