From 3dc3d9234c86611b51adedeaa8b3eec15ce1f599 Mon Sep 17 00:00:00 2001 From: Dylan Trotter Date: Wed, 28 Oct 2026 13:34:03 +0000 Subject: [PATCH 1/2] stewards: space every class before a template substitution (BB-98) --- plugins/stewards/app.tsx | 22 ++++----- plugins/stewards/class-names.test.ts | 69 ++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+), 11 deletions(-) create mode 100644 plugins/stewards/class-names.test.ts diff --git a/plugins/stewards/app.tsx b/plugins/stewards/app.tsx index 3e17f294..0760442d 100644 --- a/plugins/stewards/app.tsx +++ b/plugins/stewards/app.tsx @@ -1246,11 +1246,11 @@ function kindLabel(kind: string | null): string { /** The phrase's colour follows the glyph's (BB-76): yellow, red, blue, muted. */ function phraseClass(state: SidebarEffortState): string { - const transition = " motion-safe:transition-colors duration-300"; - if (state === "you") return `text-amber-600 dark:text-amber-500${transition}`; - if (state === "blocked") return `text-destructive${transition}`; - if (state === "running") return `text-blue-600 dark:text-blue-400${transition}`; - return `text-muted-foreground${transition}`; + const transition = "motion-safe:transition-colors duration-300"; + if (state === "you") return `text-amber-600 dark:text-amber-500 ${transition}`; + if (state === "blocked") return `text-destructive ${transition}`; + if (state === "running") return `text-blue-600 dark:text-blue-400 ${transition}`; + return `text-muted-foreground ${transition}`; } /** @@ -1260,10 +1260,10 @@ function phraseClass(state: SidebarEffortState): string { * CSS only and stops under `prefers-reduced-motion`. */ function StewardGlyph({ kind }: { kind: SidebarEffortState }) { - const transition = " motion-safe:transition-colors duration-300"; - if (kind === "you") return