commit a5e24bec9dd0c704467320380a049d0e7cc00dde parent 84ec1ae887588480d95bbd782f8e37852ade4887 Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st> Date: Wed, 14 Oct 2026 18:01:05 -0400 umtool: no Signal outline, no red button, labels in sentence case The colour roles, on every action: - `buttonVariants` loses `primary` (a Signal outline) and `destructive` (the reject word) and gains `pressed` (the panel ground, for a toggle that is on). A delete, a removal, a cancel and Settings · system's Prune… are ink outlines, their plan and confirm the guard; a pressed Rejected wears the panel ground like a pressed Approved. - Create's article form submit is the page's one filled action ("Start sweep" / "Start research"), and so is the /projects new-project submit; ActionPlan's confirm is an outline. - Hand-rolled Signal and verdict colours go: the find page's Find, pager and chips; TrimBench's Play selection, Save/Clear trim and trimmed hooks; FaceDeck's Commit, pressed verdicts and reasons, the preview's frame; MixBench's Play and Render; Deck's Play whole window, Keep it, Drop it anyway and its toggle; PhraseConsole's timecodes and stars; ShortlistBar's chip; ClaimBench's and TakesBench's toggles; BuildChain's Run the chain and running; TimedNotes' Mark; the article reader's filter; a run's and a refresh's status; the compare page's change bars. Signal stays on focus, the lit line, a selection and one filled action. Labels name the result in sentence case: the Build tab's Show the command / Build / Cancel build / Stamp it aside and build, the Sources tab's Tag N videos, the song benches' Mark this moment, Promote … to …, Retire / Restore, Save note, /projects' + New project, Filter, Work, Inbox, Copy the whole picture, the deck's, the trim bench's and the mix bench's. "Draft with" reads whole: Draft, then "with" before the model. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Diffstat:
41 files changed, 100 insertions(+), 102 deletions(-)
diff --git a/umtool/app/articles/[report]/compare/page.tsx b/umtool/app/articles/[report]/compare/page.tsx @@ -98,7 +98,7 @@ function Side({ side, other, both }: { side: CompareSide; other: CompareSide; bo key={j} data-finding data-changed={changed ? "yes" : undefined} - className={`border-l-2 pl-2 text-[13px] ${changed ? "border-[var(--color-sel)]" : "border-transparent text-[var(--color-dim)]"}`} + className={`border-l-2 pl-2 text-[13px] ${changed ? "border-muted" : "border-transparent text-[var(--color-dim)]"}`} > {f.text} {f.cites > 0 && <span className="num ml-1 text-[11px] text-[var(--color-dim)]">[{f.cites}]</span>} @@ -120,7 +120,7 @@ function Side({ side, other, both }: { side: CompareSide; other: CompareSide; bo {side.cut.entries.map((e, i) => { const changed = !otherCut.has(`${e.type}:${e.id}:${e.narration ?? e.quote ?? ""}`); return ( - <li key={i} data-cut-entry={e.id} data-changed={changed ? "yes" : undefined} className={`border-l-2 pl-2 ${changed ? "border-[var(--color-sel)]" : "border-transparent"}`}> + <li key={i} data-cut-entry={e.id} data-changed={changed ? "yes" : undefined} className={`border-l-2 pl-2 ${changed ? "border-muted" : "border-transparent"}`}> {e.type === "card" ? ( <> <span className="font-semibold">▌ {e.heading}</span> diff --git a/umtool/app/projects/page.tsx b/umtool/app/projects/page.tsx @@ -172,11 +172,11 @@ export default async function BrowsePage({ className="w-60 font-mono text-[12.5px]" /> <button type="submit" className={buttonVariants({ size: "md" })}> - filter + Filter </button> {q && ( <Link href={qs({ q: "" })} className="ink-link text-[12px]"> - clear + Clear </Link> )} </form> @@ -184,13 +184,13 @@ export default async function BrowsePage({ <NewProjectMenu kinds={KINDS.map((k) => ({ id: k.id, label: k.label, scaffold: k.scaffold }))} open={!!sp.new} /> <div className="ml-auto flex items-center gap-2"> <Link href={workHref()} className={buttonVariants({ size: "md" })}> - work + Work </Link> <Link href={homeHref()} className={buttonVariants({ size: "md" })}> - inbox + Inbox </Link> <CopyButton - label="copy the whole picture" + label="Copy the whole picture" title="every project as markdown — spec, cuts, verdicts, notes and resolved marks" url="/api/browse/context" className={buttonVariants({ size: "md" })} diff --git a/umtool/app/tools/find/page.tsx b/umtool/app/tools/find/page.tsx @@ -119,9 +119,9 @@ export default async function FindPage({ searchParams }: { searchParams: Promise )} <button type="submit" - className="rounded border border-[var(--color-sel)] px-2.5 py-1 font-mono text-[12px] text-[var(--color-sel)]" + className="rounded border border-seam-2 px-2.5 py-1 text-[12px] text-text hover:border-muted" > - find + Find </button> <span className="micro"> strictly adjacent · up to {MAX_TERMS} terms · <kbd>/</kbd> to focus @@ -213,13 +213,13 @@ export default async function FindPage({ searchParams }: { searchParams: Promise <nav className="mt-3 flex items-center gap-2" aria-label="pages"> {query.page > 1 && ( <Link href={href({ page: String(query.page - 1) })} - className="rounded border border-[var(--color-line)] px-2 py-0.5 font-mono text-[11px] text-[var(--color-sel)]"> + className="rounded border border-[var(--color-line)] px-2 py-0.5 font-mono text-[11px] text-text hover:border-muted"> ← previous </Link> )} {query.page < pages && ( <Link href={href({ page: String(query.page + 1) })} data-next - className="rounded border border-[var(--color-line)] px-2 py-0.5 font-mono text-[11px] text-[var(--color-sel)]"> + className="rounded border border-[var(--color-line)] px-2 py-0.5 font-mono text-[11px] text-text hover:border-muted"> next → </Link> )} @@ -251,7 +251,7 @@ function Chip({ href, on, label }: { href: string; on: boolean; label: string }) aria-current={on ? "true" : undefined} className={`rounded border px-1.5 py-0.5 font-mono text-[11px] ${ on - ? "border-[var(--color-sel)] text-[var(--color-sel)]" + ? "border-muted bg-panel-2 text-text" : "border-[var(--color-line)] text-[var(--color-dim)] hover:text-[var(--color-text)]" }`} > diff --git a/umtool/components/BuildChain.tsx b/umtool/components/BuildChain.tsx @@ -129,15 +129,15 @@ export default function BuildChain({ setId }: { setId: string }) { onClick={() => post(true)} className="rounded border border-[var(--color-line)] px-2.5 py-1 text-[12px] text-[var(--color-dim)] hover:text-[var(--color-text)] disabled:opacity-40" > - show the commands + Show the commands </button> <button type="button" disabled={busy || !body || job?.state === "running"} onClick={() => post(false)} - className="rounded border border-[var(--color-sel)] px-2.5 py-1 text-[12px] text-[var(--color-sel)] disabled:opacity-40" + className="rounded border border-seam-2 px-2.5 py-1 text-[12px] text-text hover:border-muted disabled:opacity-40" > - run the chain + Run the chain </button> </div> @@ -159,7 +159,7 @@ export default function BuildChain({ setId }: { setId: string }) { <div className="micro mb-1"> step {i + 1} · {s.label} {job && job.stepIndex === i && job.state === "running" && ( - <span className="ml-2 text-[var(--color-sel)]">running</span> + <span className="ml-2 text-text-2">running</span> )} </div> <pre diff --git a/umtool/components/CutBench.tsx b/umtool/components/CutBench.tsx @@ -454,7 +454,7 @@ export default function CutBench({ onClick={() => act("promote", chosen.rel)} className={buttonVariants({ size: "md" })} > - promote {chosen.tag} to {cut} + Promote {chosen.tag} to {cut} </button> <button type="button" @@ -462,7 +462,7 @@ export default function CutBench({ onClick={() => act(chosen.retired ? "restore" : "retire", chosen.rel)} className="rounded border border-[var(--color-line)] px-2.5 py-1 text-[12px] text-[var(--color-dim)] hover:text-[var(--color-text)] disabled:opacity-40" > - {chosen.retired ? "restore" : "retire"} + {chosen.retired ? "Restore" : "Retire"} </button> {/* Say what promote DOES before it is pressed. It is reversible only because the current cut is moved aside rather than overwritten, diff --git a/umtool/components/Deck.tsx b/umtool/components/Deck.tsx @@ -1185,15 +1185,15 @@ export default function Deck({ page, vocab: initialVocab, reasons }: Props) { type="button" onClick={playView} disabled={!detail || detail.sourceMissing} - className="rounded border border-[var(--color-sel)] px-1.5 py-0.5 text-[var(--color-sel)] disabled:opacity-30" + className="rounded border border-seam-2 px-1.5 py-0.5 text-text hover:border-muted disabled:opacity-30" > - <kbd>A</kbd> play whole window + <kbd>A</kbd> Play whole window </button> <label title="after submitting, keep this window instead of advancing — for a second sound in the same stretch" className={`flex cursor-pointer items-center gap-1.5 rounded border px-1.5 py-0.5 ${ moreHere - ? "border-[var(--color-sel)] text-[var(--color-sel)]" + ? "border-muted bg-panel-2 text-text" : "border-[var(--color-line)]" }`} > @@ -1204,7 +1204,7 @@ export default function Deck({ page, vocab: initialVocab, reasons }: Props) { disabled={!detail} className="accent-[var(--color-sel)]" /> - <kbd>M</kbd> another sound in this window + <kbd>M</kbd> Another sound in this window </label> {captured.length ? ( <span className="num rounded border border-[var(--color-good)] px-1.5 text-[var(--color-good)]"> @@ -1370,17 +1370,17 @@ export default function Deck({ page, vocab: initialVocab, reasons }: Props) { setConfirmDrop(null); setPending(null); }} - className="rounded-md border border-[var(--color-sel)] px-3 py-2 text-sm text-[var(--color-sel)]" + className="rounded-md border border-seam-2 px-3 py-2 text-sm text-text hover:border-muted" > - <kbd>Esc</kbd> keep it + <kbd>Esc</kbd> Keep it </button> <button type="button" data-confirm-drop onClick={() => void commit(confirmDrop.verdict, confirmDrop.code, confirmDrop.text)} - className="rounded-md border border-[var(--color-bad)] px-3 py-2 text-sm text-[var(--color-bad)]" + className="rounded-md border border-seam-2 px-3 py-2 text-sm text-text hover:border-muted" > - drop it anyway + Drop it anyway </button> </div> </div> diff --git a/umtool/components/DeletePlan.tsx b/umtool/components/DeletePlan.tsx @@ -86,7 +86,7 @@ export default function DeletePlan({ if (phase.at === "closed") { return ( - <Button size={size} variant="destructive" onClick={() => void ask(false)}> + <Button size={size} variant="outline" onClick={() => void ask(false)}> {label} </Button> ); @@ -188,7 +188,7 @@ export default function DeletePlan({ {forceLabel} </label> )} - <Button size="sm" variant="destructive" disabled={blocked.length > 0 || phase.at === "deleting"} onClick={() => void confirm(plan)}> + <Button size="sm" variant="outline" disabled={blocked.length > 0 || phase.at === "deleting"} onClick={() => void confirm(plan)}> {phase.at === "deleting" ? "Deleting…" : "Confirm delete"} </Button> <Button diff --git a/umtool/components/FaceDeck.tsx b/umtool/components/FaceDeck.tsx @@ -584,7 +584,7 @@ export default function FaceDeck({ {idx + 1} of {queue.length} </span> {entry.onAccepted ? ( - <span className="text-[11px] text-[var(--color-sel)]" data-on-accepted="1"> + <span className="text-[11px] text-text" data-on-accepted="1"> on the shipped {entry.accepted.join(" + ")} cover </span> ) : ( @@ -634,7 +634,7 @@ export default function FaceDeck({ data-face-preview width={CORNER_PX} height={CORNER_PX} - className="h-[300px] w-[300px] rounded border border-[var(--color-sel)] bg-[var(--color-panel-2)]" + className="h-[300px] w-[300px] rounded border border-muted bg-[var(--color-panel-2)]" /> <p className="micro">the corner, at the size it is cut</p> @@ -734,7 +734,7 @@ export default function FaceDeck({ aria-pressed={pending === v} className={`rounded border px-2 py-0.5 font-mono text-[12px] ${ pending === v - ? "border-[var(--color-sel)] text-[var(--color-sel)]" + ? "border-muted bg-panel-2 text-text" : "border-[var(--color-line)] text-[var(--color-dim)] hover:text-[var(--color-text)]" }`} > @@ -763,9 +763,9 @@ export default function FaceDeck({ disabled={!pending || busy} onClick={() => void commit()} data-commit - className="rounded border border-[var(--color-sel)] px-2 py-0.5 font-mono text-[12px] text-[var(--color-sel)] disabled:opacity-40" + className="rounded border border-seam-2 px-2 py-0.5 text-[12px] text-text hover:border-muted disabled:opacity-40" > - {busy ? "saving…" : "commit"} <span className="micro">↵</span> + {busy ? "Saving…" : "Commit"} <span className="micro">↵</span> </button> </div> @@ -781,7 +781,7 @@ export default function FaceDeck({ aria-pressed={code === i + 1} className={`rounded border px-1.5 py-0.5 font-mono text-[11px] ${ code === i + 1 - ? "border-[var(--color-sel)] text-[var(--color-sel)]" + ? "border-muted bg-panel-2 text-text" : "border-[var(--color-line)] text-[var(--color-dim)] hover:text-[var(--color-text)]" }`} > @@ -795,7 +795,7 @@ export default function FaceDeck({ aria-pressed={code === OTHER_CODE} className={`rounded border px-1.5 py-0.5 font-mono text-[11px] ${ code === OTHER_CODE - ? "border-[var(--color-sel)] text-[var(--color-sel)]" + ? "border-muted bg-panel-2 text-text" : "border-[var(--color-line)] text-[var(--color-dim)] hover:text-[var(--color-text)]" }`} > diff --git a/umtool/components/MixBench.tsx b/umtool/components/MixBench.tsx @@ -548,9 +548,9 @@ export default function MixBench({ preset = null }: { preset?: MixPresetProp }) type="button" onClick={() => (playing ? stop() : void play())} disabled={!body} - className="rounded border border-[var(--color-sel)] px-2 py-1 text-[var(--color-sel)] disabled:opacity-30" + className="rounded border border-seam-2 px-2 py-1 text-text hover:border-muted disabled:opacity-30" > - <kbd>space</kbd> {playing ? "stop" : "play"} + <kbd>space</kbd> {playing ? "Stop" : "Play"} </button> <button type="button" @@ -558,17 +558,17 @@ export default function MixBench({ preset = null }: { preset?: MixPresetProp }) disabled={!body} className="rounded border border-[var(--color-line)] px-2 py-1 disabled:opacity-30" > - <kbd>h</kbd> hear the handover + <kbd>h</kbd> Hear the handover </button> <button type="button" onClick={zoomHandover} className="rounded border border-[var(--color-line)] px-2 py-1"> - zoom to handover + Zoom to handover </button> <button type="button" onClick={() => setView({ from: 0, to: Math.max(4, duration) })} className="rounded border border-[var(--color-line)] px-2 py-1" > - fit + Fit </button> <span className="num"> playhead {playhead != null ? fmt(playhead) : "—"} · bg gain{" "} @@ -610,7 +610,7 @@ export default function MixBench({ preset = null }: { preset?: MixPresetProp }) type="button" onClick={() => void submit(false)} disabled={!body || job?.state === "running"} - className="rounded border border-[var(--color-good)] px-3 py-2 text-[13px] text-[var(--color-good)] hover:bg-[color-mix(in_srgb,var(--color-good)_14%,transparent)] disabled:opacity-30" + className="rounded border border-seam-2 px-3 py-2 text-[13px] text-text hover:border-muted hover:bg-panel-2 disabled:opacity-30" > {job?.state === "running" ? "rendering…" : "render"} </button> diff --git a/umtool/components/MomentMarks.tsx b/umtool/components/MomentMarks.tsx @@ -96,7 +96,7 @@ export default function MomentMarks({ data-mark className={buttonVariants({ size: "sm" })} > - mark this moment + Mark this moment </button> {marks.length > 0 && ( <CopyButton diff --git a/umtool/components/NewProjectMenu.tsx b/umtool/components/NewProjectMenu.tsx @@ -118,7 +118,7 @@ export default function NewProjectMenu({ if (!open) { return ( <Button type="button" size="sm" variant="outline" disabled={!hydrated} onClick={() => setOpen(true)} data-new-project className="border-dashed"> - + new project + + New project </Button> ); } @@ -241,7 +241,7 @@ export default function NewProjectMenu({ </label> )} <div className="flex items-center gap-2 pb-px"> - <Button type="submit" variant={inline ? "go" : "primary"} disabled={!hydrated || busy || !slug.trim()} data-new-create> + <Button type="submit" variant="go" disabled={!hydrated || busy || !slug.trim()} data-new-create> {busy ? "Creating…" : submitLabel} </Button> <Button type="button" variant="quiet" disabled={!hydrated} onClick={cancel}> diff --git a/umtool/components/NoteField.tsx b/umtool/components/NoteField.tsx @@ -130,7 +130,7 @@ export default function NoteField({ onClick={save} className={buttonVariants({ size: "sm" })} > - save + Save note </button> <button type="button" @@ -140,7 +140,7 @@ export default function NoteField({ }} className="text-[11px] text-[var(--color-dim)] hover:text-[var(--color-text)]" > - cancel + Cancel </button> <span className="num ml-auto text-[10px] text-[var(--color-dim)]"> {draft.length}/{NOTE_LIMIT} · <kbd>⌘⏎</kbd> diff --git a/umtool/components/PhraseConsole.tsx b/umtool/components/PhraseConsole.tsx @@ -289,7 +289,7 @@ export default function PhraseConsole({ void play(h, false); }} aria-label={`play ${h.text}`} - className="num rounded border border-[var(--color-line)] px-1.5 py-0.5 font-mono text-[11px] text-[var(--color-sel)] hover:border-[var(--color-sel)]" + className="num rounded border border-[var(--color-line)] px-1.5 py-0.5 font-mono text-[11px] text-text hover:border-muted" > {fmtTime(h.start)} </button> @@ -315,7 +315,7 @@ export default function PhraseConsole({ title={list ? `${stars.has(h.id) ? "remove from" : "add to"} ${list}` : "no shortlist selected"} className={`rounded border px-1.5 py-0.5 font-mono text-[11px] ${ stars.has(h.id) - ? "border-[var(--color-sel)] text-[var(--color-sel)]" + ? "border-muted bg-panel-2 text-text" : "border-[var(--color-line)] text-[var(--color-dim)] hover:text-[var(--color-text)]" }`} > diff --git a/umtool/components/ShortlistBar.tsx b/umtool/components/ShortlistBar.tsx @@ -112,7 +112,7 @@ export default function ShortlistBar({ aria-current={list?.slug === s.slug ? "true" : undefined} className={`num rounded border px-1.5 py-0.5 font-mono text-[11px] ${ list?.slug === s.slug - ? "border-[var(--color-sel)] text-[var(--color-sel)]" + ? "border-muted bg-panel-2 text-text" : "border-[var(--color-line)] text-[var(--color-dim)] hover:text-[var(--color-text)]" }`} > diff --git a/umtool/components/TrimBench.tsx b/umtool/components/TrimBench.tsx @@ -199,23 +199,23 @@ export default function TrimBench({ setId, label, hooks, initialTrims, hookNotes <button type="button" onClick={() => play(sel.from, sel.to)} - className="rounded border border-[var(--color-sel)] px-2.5 py-1 text-[12px] text-[var(--color-sel)]" + className="rounded border border-seam-2 px-2.5 py-1 text-[12px] text-text hover:border-muted" > - play selection + Play selection </button> <button type="button" onClick={() => play(Math.max(0, view.from), view.to)} className="rounded border border-[var(--color-line)] px-2.5 py-1 text-[12px] text-[var(--color-dim)] hover:text-[var(--color-text)]" > - play view + Play view </button> <button type="button" onClick={stop} className="rounded border border-[var(--color-line)] px-2.5 py-1 text-[12px] text-[var(--color-dim)] hover:text-[var(--color-text)]" > - stop + Stop </button> <span className="num text-[11px] text-[var(--color-meter)]"> {sel.from.toFixed(3)} – {sel.to.toFixed(3)}s ({(sel.to - sel.from).toFixed(3)}s) @@ -225,9 +225,9 @@ export default function TrimBench({ setId, label, hooks, initialTrims, hookNotes disabled={saving} onClick={commit} data-commit - className="ml-auto rounded border border-[var(--color-good)] px-2.5 py-1 text-[12px] text-[var(--color-good)] disabled:opacity-40" + className="ml-auto rounded border border-seam-2 px-2.5 py-1 text-[12px] text-text hover:border-muted disabled:opacity-40" > - {unchanged ? "clear trim" : "save trim"} + {unchanged ? "Clear trim" : "Save trim"} </button> </div> @@ -268,7 +268,7 @@ export default function TrimBench({ setId, label, hooks, initialTrims, hookNotes i === idx ? "border-[var(--color-sel)] text-[var(--color-sel)]" : e - ? "border-[var(--color-good)] text-[var(--color-good)]" + ? "border-muted text-text" : "border-[var(--color-line)] text-[var(--color-dim)] hover:text-[var(--color-text)]" }`} > diff --git a/umtool/components/VerdictChip.tsx b/umtool/components/VerdictChip.tsx @@ -135,7 +135,7 @@ export default function VerdictChip({ type="submit" className={buttonVariants({ size: "sm" })} > - save + Save note </button> </form> ) : ( diff --git a/umtool/components/WordSelector.tsx b/umtool/components/WordSelector.tsx @@ -115,7 +115,7 @@ export default function WordSelector({ {!value && token ? ( <span className="text-[11px] text-[var(--color-dim)]">from ASR</span> ) : value ? ( - <span className="text-[11px] text-[var(--color-sel)]">labelled</span> + <span className="text-[11px] text-text-2">labelled</span> ) : null} {/* The binding, VISIBLE. It has always existed and lived only in a title attribute, so it was discoverable by hovering a control you diff --git a/umtool/components/articles/ArticleReader.tsx b/umtool/components/articles/ArticleReader.tsx @@ -433,7 +433,7 @@ export default function ArticleReader({ type="button" aria-pressed={filter === f} onClick={() => setFilter(f)} - className={`rounded border px-1.5 py-0.5 font-mono text-[11px] ${filter === f ? "border-[var(--color-sel)] text-[var(--color-sel)]" : "border-[var(--color-line)] text-[var(--color-dim)]"}`} + className={`rounded border px-1.5 py-0.5 font-mono text-[11px] ${filter === f ? "border-muted bg-panel-2 text-text" : "border-[var(--color-line)] text-[var(--color-dim)]"}`} > {f} {counts[f]} </button> diff --git a/umtool/components/articles/NewArticleForm.tsx b/umtool/components/articles/NewArticleForm.tsx @@ -324,8 +324,8 @@ export default function NewArticleForm({ /> </label> )} - <Button type="submit" variant="primary" size="lg" disabled={sending || !policy}> - {sending ? "Starting…" : "Start"} + <Button type="submit" variant="go" size="lg" disabled={sending || !policy}> + {sending ? "Starting…" : begin === "research" ? "Start research" : "Start sweep"} </Button> {onCancel && ( <Button type="button" variant="quiet" size="lg" onClick={onCancel}> diff --git a/umtool/components/articles/RefreshDialog.tsx b/umtool/components/articles/RefreshDialog.tsx @@ -253,7 +253,7 @@ export function RefreshHost({ article, initialOpen = false, href }: { article: s }} /> {said && ( - <p role="status" data-refresh-started="" className="px-4 pt-2 text-[12.5px] text-signal-text"> + <p role="status" data-refresh-started="" className="px-4 pt-2 text-[12.5px] text-text-2"> {said} </p> )} diff --git a/umtool/components/articles/ResearchSlot.tsx b/umtool/components/articles/ResearchSlot.tsx @@ -189,7 +189,7 @@ function ProposalRow({ <Button size="sm" variant="outline" disabled={busy} aria-label={`Yes to ${p.id}`} onClick={() => decide(p.id, true)}> Yes </Button> - <Button size="sm" variant="destructive" disabled={busy} aria-label={`No to ${p.id}`} onClick={() => decide(p.id, false, why)}> + <Button size="sm" variant="outline" disabled={busy} aria-label={`No to ${p.id}`} onClick={() => decide(p.id, false, why)}> No </Button> <input aria-label={`why not ${p.id}`} className={`${field} w-64`} placeholder="why not (optional)" value={why} onChange={(e) => setWhy(e.target.value)} /> diff --git a/umtool/components/notes/TimedNotes.tsx b/umtool/components/notes/TimedNotes.tsx @@ -128,7 +128,7 @@ export default function TimedNotes({ data-action="mark" disabled={!video} onClick={mark} - className="rounded border border-[var(--color-sel)] px-2 py-0.5 text-[11px] text-[var(--color-sel)] disabled:opacity-40" + className="rounded border border-seam-2 px-2 py-0.5 text-[11px] text-text hover:border-muted disabled:opacity-40" > Mark <kbd>n</kbd> </button> diff --git a/umtool/components/projects/ClaimBench.tsx b/umtool/components/projects/ClaimBench.tsx @@ -115,7 +115,7 @@ function Choice({ className={ "rounded border px-2 py-1 text-[11px] " + (value === o - ? "border-[var(--color-sel)] bg-[var(--color-sel)]/15 text-[var(--color-sel)]" + ? "border-muted bg-panel-2 text-text" : "border-[var(--color-line)] text-[var(--color-dim)] hover:text-[var(--color-fg)]") } > diff --git a/umtool/components/projects/DraftPanel.tsx b/umtool/components/projects/DraftPanel.tsx @@ -156,8 +156,10 @@ export function DraftControl({ ) : ( <div className="flex flex-wrap items-center gap-2"> <Button size="sm" variant="outline" aria-label={`Draft ${row.label}`} disabled={!policy || sending || active} onClick={() => void start()}> - Draft with + Draft </Button> + {/* "Draft with <model>": the button names the result, the model is chosen beside it. */} + <span className="text-[11.5px] text-muted">with</span> <select aria-label={`model for ${row.label}`} className={`${field} font-mono`} value={model} onChange={(e) => setModel(e.target.value)} disabled={!policy}> {models.map((m) => ( <option key={m} value={m}> diff --git a/umtool/components/projects/MediaDrafts.tsx b/umtool/components/projects/MediaDrafts.tsx @@ -190,7 +190,7 @@ function FieldLine({ aria-pressed={row.state === "rejected"} disabled={busy} title="reject this draft; the note says what is wrong" - className={buttonVariants({ variant: row.state === "rejected" ? "destructive" : "outline", size: "sm" })} + className={buttonVariants({ variant: row.state === "rejected" ? "pressed" : "outline", size: "sm" })} onClick={() => void run(row.state === "rejected" ? "clear" : "reject", row.state === "rejected" ? {} : { note })} > {row.state === "rejected" ? "Rejected" : "Reject"} diff --git a/umtool/components/projects/NarrationReview.tsx b/umtool/components/projects/NarrationReview.tsx @@ -371,7 +371,7 @@ function NarrationCard({ aria-pressed={r.state === "rejected"} disabled={!ready || busy || dirty} title="reject these words; the note says what is wrong" - className={buttonVariants({ variant: r.state === "rejected" ? "destructive" : "outline", size: "sm" })} + className={buttonVariants({ variant: r.state === "rejected" ? "pressed" : "outline", size: "sm" })} onClick={() => void run(() => act(r.id, r.state === "rejected" ? "clear" : "reject", r.state === "rejected" ? {} : { note }))} > {r.state === "rejected" ? "Rejected" : "Reject"} diff --git a/umtool/components/projects/OnscreenSection.tsx b/umtool/components/projects/OnscreenSection.tsx @@ -1987,10 +1987,10 @@ export default function OnscreenSection({ <button type="button" data-testid="onscreen-rerender-cancel" - className={buttonVariants({ variant: "destructive", size: "sm" })} + className={buttonVariants({ variant: "outline", size: "sm" })} onClick={() => void fetch(`/api/report/build?cancel=${job.id}`, { method: "POST" })} > - cancel + Cancel </button> )} </div> diff --git a/umtool/components/projects/ReportBuildChain.tsx b/umtool/components/projects/ReportBuildChain.tsx @@ -182,7 +182,7 @@ export default function ReportBuildChain({ if (j) setDry(j.steps as StepView[]); }} > - show the command + Show the command </button> <button type="button" @@ -199,16 +199,16 @@ export default function ReportBuildChain({ } }} > - run + Build </button> {job?.state === "running" && ( <button type="button" data-action="cancel" - className={buttonVariants({ variant: "destructive", size: "sm" })} + className={buttonVariants({ variant: "outline", size: "sm" })} onClick={() => void fetch(`/api/report/build?cancel=${job.id}`, { method: "POST" })} > - cancel + Cancel build </button> )} </div> @@ -296,7 +296,7 @@ export default function ReportBuildChain({ <button type="button" data-action="replace" - className={buttonVariants({ variant: "destructive", size: "sm" })} + className={buttonVariants({ variant: "outline", size: "sm" })} onClick={async () => { const j = await post("?replace=1"); if (j?.job) { @@ -307,7 +307,7 @@ export default function ReportBuildChain({ } }} > - stamp it aside and build + Stamp it aside and build </button> </> )} diff --git a/umtool/components/projects/StructureEditors.tsx b/umtool/components/projects/StructureEditors.tsx @@ -247,7 +247,7 @@ function PostRow({ post, fresh = false, busy, save, remove }: { post: Post; fres {fresh ? "Add post" : "Save post"} </button> {remove && ( - <button type="button" data-testid="post-remove" disabled={busy} onClick={remove} className={buttonVariants({ variant: "destructive", size: "sm" })}> + <button type="button" data-testid="post-remove" disabled={busy} onClick={remove} className={buttonVariants({ variant: "outline", size: "sm" })}> Remove </button> )} diff --git a/umtool/components/projects/TagCitedButton.tsx b/umtool/components/projects/TagCitedButton.tsx @@ -171,8 +171,8 @@ export default function TagCitedButton({ project }: { project: string }) { onClick={() => void run()} > {busy - ? "asking the editor…" - : `${op === "add" ? "tag" : "untag"} ${scopeVideos} video${scopeVideos === 1 ? "" : "s"}`} + ? "Asking the editor…" + : `${op === "add" ? "Tag" : "Untag"} ${scopeVideos} video${scopeVideos === 1 ? "" : "s"}`} </button> </> )} diff --git a/umtool/components/projects/TakesBench.tsx b/umtool/components/projects/TakesBench.tsx @@ -63,7 +63,7 @@ const TONES = { off: "border-[var(--color-line)] text-[var(--color-dim)] hover:border-[var(--color-bad)] hover:text-[var(--color-bad)]", }, sel: { - on: "border-[var(--color-sel)] bg-[color-mix(in_srgb,var(--color-sel)_18%,transparent)] text-[var(--color-sel)]", + on: "border-muted bg-panel-2 text-text", off: "border-[var(--color-line)] text-[var(--color-dim)] hover:border-[var(--color-sel)] hover:text-[var(--color-sel)]", }, } as const; diff --git a/umtool/components/projects/drafts.tsx b/umtool/components/projects/drafts.tsx @@ -162,7 +162,7 @@ export function DraftBadge({ address, view, act, compact = false }: { address: s aria-pressed={row.state === "rejected"} disabled={!ready || busy} title="reject this draft; the note says what is wrong" - className={buttonVariants({ variant: row.state === "rejected" ? "destructive" : "outline", size: "sm" })} + className={buttonVariants({ variant: row.state === "rejected" ? "pressed" : "outline", size: "sm" })} onClick={() => void run(row.state === "rejected" ? "clear" : "reject", row.state === "rejected" ? {} : { note })} > {row.state === "rejected" ? "Rejected" : "Reject"} diff --git a/umtool/components/research/BoardView.tsx b/umtool/components/research/BoardView.tsx @@ -723,7 +723,7 @@ export default function BoardView({ initial }: { initial: CaseView }) { type="submit" data-confirm="" disabled={ask?.kind !== "remove-quote" && ask?.kind !== "remove-section" && !askText.trim()} - className={buttonVariants({ variant: ask?.kind === "remove-quote" || ask?.kind === "remove-section" ? "destructive" : "go" })} + className={buttonVariants({ variant: ask?.kind === "remove-quote" || ask?.kind === "remove-section" ? "outline" : "go" })} > {ask?.kind === "add-section" ? "Add section" : ask?.kind === "remove-quote" ? "Remove quote" : ask?.kind === "remove-section" ? "Remove section" : "Rename"} </button> diff --git a/umtool/components/research/QuoteSlip.tsx b/umtool/components/research/QuoteSlip.tsx @@ -244,7 +244,7 @@ export default function QuoteSlip({ <button type="button" disabled={busy} className={buttonVariants({ variant: "quiet", size: "sm" })} onClick={() => onPatch({ speakerChecked: !q.speakerChecked })}> {q.speakerChecked ? "Mark speaker not checked" : "Mark speaker checked"} </button> - <button type="button" disabled={busy} className={buttonVariants({ variant: "destructive", size: "sm" })} onClick={onRemove}> + <button type="button" disabled={busy} className={buttonVariants({ variant: "outline", size: "sm" })} onClick={onRemove}> Remove </button> </div> diff --git a/umtool/components/research/RunView.tsx b/umtool/components/research/RunView.tsx @@ -500,7 +500,7 @@ export default function RunView({ initial }: { initial: View }) { )} <span> <span className="mr-2 text-seam-2">·</span> - <span className={view.status === "failed" ? "text-reject-text" : view.status === "done" ? "text-text-2" : "text-signal-text"} data-run-status={view.status}> + <span className={view.status === "failed" ? "text-reject-text" : view.status === "done" ? "text-text-2" : "text-text"} data-run-status={view.status}> {view.status} </span> </span> diff --git a/umtool/components/system/ActionPlan.tsx b/umtool/components/system/ActionPlan.tsx @@ -50,7 +50,6 @@ export default function ActionPlan({ subject, endpoint, body, - variant = "outline", }: { /** The trigger's words ("Move out", "Prune"). */ label: string; @@ -58,7 +57,6 @@ export default function ActionPlan({ subject: string; endpoint: string; body: Record<string, unknown>; - variant?: "outline" | "destructive"; }) { const router = useRouter(); const hydrated = useHydrated(); @@ -107,7 +105,7 @@ export default function ActionPlan({ if (phase.at === "closed") { return ( <span className="inline-flex flex-wrap items-center gap-2"> - <Button ref={trigger} size="sm" variant={variant} disabled={!hydrated} onClick={() => void ask()} data-plan-trigger={subject}> + <Button ref={trigger} size="sm" variant="outline" disabled={!hydrated} onClick={() => void ask()} data-plan-trigger={subject}> {label} </Button> {phase.done && ( @@ -184,7 +182,7 @@ export default function ActionPlan({ <Button ref={first} size="sm" - variant={variant === "destructive" ? "destructive" : "primary"} + variant="outline" disabled={phase.at === "working"} onClick={() => void confirm(plan)} data-plan-confirm="" diff --git a/umtool/components/system/Maintenance.tsx b/umtool/components/system/Maintenance.tsx @@ -68,7 +68,7 @@ export function IndexPanel({ index }: { index: { ok: boolean; records: number; p {index.path && <p className="m-0 mt-1 truncate font-mono text-[11px] text-muted-2">{index.path}</p>} <div className="mt-2.5 flex flex-wrap items-start gap-2"> <ActionPlan label="Rebuild…" subject="index rebuild" endpoint="/api/system/index" body={{ action: "rebuild" }} /> - <ActionPlan label="Prune…" subject="index prune" endpoint="/api/system/index" body={{ action: "prune" }} variant="destructive" /> + <ActionPlan label="Prune…" subject="index prune" endpoint="/api/system/index" body={{ action: "prune" }} /> </div> </Panel> ); diff --git a/umtool/components/ui/button.tsx b/umtool/components/ui/button.tsx @@ -10,11 +10,12 @@ import { cn } from "@/lib/utils"; // operator came here to do. Never two on a screen. // - `outline` the default: every other action is an outline in ink. // - `quiet` no border; secondary moves like Park, prev / next. -// and three kept from before, restyled onto the roles: -// - `primary` an outline in Signal: an action that is interaction-led -// but not THE action (there are screens with several). -// - `destructive` an outline in the reject word; deletes are plan-then-confirm. -// - `ghost` an alias of `quiet`, for the call sites that already say it. +// and two more: +// - `pressed` a toggle that is on (aria-pressed): the panel ground, not a +// colour -- a state of a control is neither Signal nor a verdict. +// - `ghost` an alias of `quiet`, for the call sites that already say it. +// There is no Signal outline and no red button (P6b): a delete is guarded by +// its plan and its confirm, both outlines, never by a verdict colour. // // Hit sizes are the ones this app already uses. It is a bench somebody sits // with for hours, so nothing here is smaller than what the existing controls @@ -31,10 +32,7 @@ export const buttonVariants = cva( variant: { go: "border-signal bg-signal font-semibold text-on-signal hover:bg-[color-mix(in_srgb,var(--signal)_86%,var(--text))]", outline: "border-seam-2 text-text hover:border-muted hover:bg-panel-2", - primary: - "border-signal text-signal-text hover:bg-[color-mix(in_srgb,var(--signal)_14%,transparent)]", - destructive: - "border-reject-text text-reject-text hover:bg-[color-mix(in_srgb,var(--reject)_14%,transparent)]", + pressed: "border-muted bg-panel-2 text-text", quiet: "border-transparent text-muted-2 hover:text-text hover:bg-panel-2", ghost: "border-transparent text-muted-2 hover:text-text hover:bg-panel-2", }, diff --git a/umtool/components/ui/job-progress.tsx b/umtool/components/ui/job-progress.tsx @@ -152,7 +152,7 @@ export function JobProgress({ </span> )} {onCancel && live && ( - <Button size="sm" variant="destructive" className="ml-auto" aria-label={cancelName} onClick={onCancel}> + <Button size="sm" variant="outline" className="ml-auto" aria-label={cancelName} onClick={onCancel}> {cancelLabel} </Button> )} diff --git a/umtool/e2e/report-tag-via-editor.spec.ts b/umtool/e2e/report-tag-via-editor.spec.ts @@ -124,7 +124,7 @@ test("a section is its own scope, and the control on the project page uses it", await control.locator("[data-tag-cited-tag]").selectOption("eva-collab"); await control.locator("[data-tag-cited-scope]").selectOption("A"); const button = control.locator('[data-action="tag-cited"]'); - await expect(button).toContainText("tag 1 video"); + await expect(button).toContainText("Tag 1 video"); await button.click(); await expect(control.locator("[data-tag-cited-msg]")).toContainText("tagged"); diff --git a/umtool/e2e/usage.spec.ts b/umtool/e2e/usage.spec.ts @@ -93,7 +93,7 @@ test("dropping a clip that is in a build asks first, and Esc keeps it", async ({ await page.locator('[data-verdict="0"]').click(); await page.locator("[data-code]").first().click(); - await expect(page.getByRole("button", { name: /drop it anyway/ })).toBeVisible(); + await expect(page.getByRole("button", { name: /drop it anyway/i })).toBeVisible(); await expect(page.getByText(new RegExp(`sounding in ${n} finished builds?`))).toBeVisible(); await expect(page.locator('[data-verdict="0"]')).toBeHidden(); @@ -102,7 +102,7 @@ test("dropping a clip that is in a build asks first, and Esc keeps it", async ({ expect(during.counts.rejected).toBe(before.counts.rejected); await page.keyboard.press("Escape"); - await expect(page.getByRole("button", { name: /drop it anyway/ })).toHaveCount(0); + await expect(page.getByRole("button", { name: /drop it anyway/i })).toHaveCount(0); await expect(page.locator('[data-verdict="0"]')).toBeVisible(); const after = await (await request.get("/api/clips?mode=sort&limit=50")).json();