feat(ui): brand marks for worker delegation cards #47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/harness-marks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Port sweatshop's harness brand marks into tansweat, so each worker delegation card shows the worker's own logo instead of the generic hammer icon.
What
components/harness-marks.tsx—ClaudeMark(simple-icons "claude", CC0) andCodexMark(hand-drawn nested-hexagon knot), both drawn incurrentColorso the caller owns the colour.WorkerMark({tool, tint?})switches on the delegation tool name fromlib/agents.ts: Claude Code → Claude mark tinted with its brand orange (text-brand-claude,tint={false}for plain currentColor), Codex → the hexagon outline, Coder →BotIcon, child thread →MessagesSquareIcon, unknown → null. Marks and doc-comment style ported from sweatshop'sharness-logo.tsx.styles.css—--brand-claude: #d97757added once to:root(brand colour, not a theme token; same in light and dark,.darkinherits) and mapped into the@theme inlineblock.delegation-part.tsx— summary row'sHammerIcon→WorkerMark tool={call.name}. Claude keeps its tint; everything else inherits the row's text colour.One decision to flag: the old hammer icon was
text-primary. The new marks inherit the row colour instead (Claude excepted), which reads quieter and keeps brand colours meaningful — happy to restoretext-primaryon the call site if the brighter look was intentional.Verification
pnpm typecheckandpnpm test(1290 passed, 246 skipped — skips pre-existing) pass.pnpm buildoutput CSS confirmed to contain.text-brand-claude{color:var(--brand-claude)}with the var on:root.DelegationPartvia a temporary scratch page on the branch — Claude keeps its brand orange in dark mode.Screenshots
Before (live main, settled Codex card):
After (all four worker marks, light):
After (dark — Claude mark keeps its brand orange):