From c6780c369c606534d1c502d0f519255737e5569f Mon Sep 17 00:00:00 2001 From: Dylan Trotter Date: Wed, 28 Oct 2026 13:34:28 +0000 Subject: [PATCH 1/2] stewards: use bb theme tokens for the sidebar glyph and phrase (BB-99) --- plugins/stewards/app.tsx | 34 +++++++++--------- plugins/stewards/sidebar-app.test.tsx | 51 +++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 17 deletions(-) diff --git a/plugins/stewards/app.tsx b/plugins/stewards/app.tsx index 3e17f294..def2369e 100644 --- a/plugins/stewards/app.tsx +++ b/plugins/stewards/app.tsx @@ -177,7 +177,7 @@ function ThreadLink({ threadId, children }: { threadId: string; children: ReactN function Badge({ children, tone = "muted" }: { children: ReactNode; tone?: "muted" | "warn" | "bad" }) { const colors = - tone === "bad" ? "border-destructive/40 text-destructive" : tone === "warn" ? "border-amber-500/40 text-amber-600 dark:text-amber-500" : "border-border text-muted-foreground"; + tone === "bad" ? "border-destructive/40 text-destructive" : tone === "warn" ? "border-amber-500/40 text-attention" : "border-border text-muted-foreground"; return {children}; } @@ -210,7 +210,7 @@ function StatusSection() {
{overview.paused ? (

- + Stewards are paused: nothing is woken or adopted. Changes queue up until you turn Pause stewards off.

) : null} @@ -237,7 +237,7 @@ function ProjectStatus({ project: p, now }: { project: Project; now: number }) {

{p.name} @@ -421,7 +421,7 @@ function StewardRow({ steward: s, now }: { steward: Steward; now: number }) {

)} {s.blockedOn !== null ?

Blocked on {s.blockedOn}

: null} - {s.hold !== null ?

On hold: {s.hold}

: null} + {s.hold !== null ?

On hold: {s.hold}

: null} {s.escalations.map((x, i) => (

{x.kind} escalation with {x.route === "me" ? "you" : x.route === "parent" ? "the parent steward" : "the project steward"}: {x.question} @@ -693,7 +693,7 @@ function ProjectView({ board: b, refetch }: { board: Board; refetch: () => void

{b.paused ? (

- + Stewards are paused: nothing is woken or adopted.

) : null} @@ -800,7 +800,7 @@ function EffortDetail({ board: b, effortKey, refetch }: { board: Board; effortKe {s.actor === null ? "" : ` (${ACTOR_LABEL[s.actor] ?? s.actor})`}

{s.blockedOn !== null ?

Blocked on {s.blockedOn}

: null} - {s.hold !== null ?

On hold: {s.hold}{s.holdBehind.length > 0 ? ` (behind ${s.holdBehind.join(", ")})` : ""}

: null} + {s.hold !== null ?

On hold: {s.hold}{s.holdBehind.length > 0 ? ` (behind ${s.holdBehind.join(", ")})` : ""}

: null} {s.stuck ?

Stuck{stuck === null ? "" : `: ${stuck.why}`}

: null}

{s.kind === "ops" ? `Last wake ${ago(s.wokeAt, now)}` : `Reported ${ago(s.statusAt, now)} ยท adopted ${ago(s.createdAt, now)}`} @@ -983,7 +983,7 @@ function NeedsYouPrompt({ entry, now }: { entry: NeedsYouItem; now: number }) {

{n.what}

{n.kind === "provide-secret" ?

The form opens in a thread; the value goes to {n.destination ?? "the destination the item names"}.

: null} {n.how !== null ?
: null} - {!n.actionable ?

Not actionable yet: {n.why ?? "the server cannot verify it now"}.

: null} + {!n.actionable ?

Not actionable yet: {n.why ?? "the server cannot verify it now"}.

: null} ); } @@ -1244,13 +1244,13 @@ function kindLabel(kind: string | null): string { return kind ?? "thread"; } -/** The phrase's colour follows the glyph's (BB-76): yellow, red, blue, muted. */ +/** The phrase's colour follows the glyph's (BB-76), in bb's theme tokens (BB-99): attention, destructive, timeline-accent, 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-attention ${transition}`; + if (state === "blocked") return `text-destructive ${transition}`; + if (state === "running") return `text-timeline-accent ${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