Skip to content

fix(studio): make Badge identical to the prototype - #2212

Merged
kantord merged 1 commit into
mainfrom
fix/studio-badge-ink
Oct 8, 2026
Merged

kantord merged 1 commit into
mainfrom
fix/studio-badge-ink

Conversation

@peppescg

@peppescg peppescg commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Refs #2201

Summary

Badge is now identical to the design prototype's (stacklok/mecatl-prototypes, stack/08-tooling).

Variant Before After
success text-foreground text-success
warning text-foreground text-warning
info text-foreground text-info
destructive text-foreground text-destructive
muted text-foreground text-muted-foreground
  • Base classes match the prototype, including its focus: ring. Studio previously used focus-visible:.
  • Unchanged: the tints (bg-<status>/15), the default, secondary and outline variants, and the variant names.
  • Tokens: no new tokens; Studio already defines all of them.

Screenshots (before | after)

Component sheet with all variants, across the default, aztec, mono and solar palettes, in light and dark:
variants

Settings providers
providers

Scheduled
schedules

Learned skills
skills

Chat approvals
chat approval

Every surface, in light and dark (provider detail, storage, memory detail and consolidation, learning, schedule detail, learned skill detail, chat stop reason), is here.

The mock daemon returns empty data, so the BFF reads were stubbed in Playwright with fixtures shaped from apps/contracts.

Verification

  • task studio:lint and task studio:typecheck pass.
  • task studio:test: web 656 tests, server 182.
  • task studio:browser: 54 Playwright journeys.

Notes for review

  • Contrast: in light mode, the coloured ink on its 15% tint is about 3.8–4.2:1 at 0.72rem, below WCAG AA's 4.5:1. The prototype has the same values. Dark mode is 5.8–8.2:1. Worth a design follow-up.
  • Muted badges (paused, kinds, "Not ready") are visibly lighter now, following the prototype.
  • Approval badges: the "destructive" classification in approval-panel.tsx misses names like DeleteFile or delete_file, which get the warning badge. This was already the case; it is only visible now that the ink is coloured. It will be tracked separately.

🤖 Generated with Claude Code

Status badges now colour their text with the status token (success,
warning, info, destructive, and muted foreground for muted) instead of
the default foreground, and the base classes, including the focus ring,
match the design prototype (stacklok/mecatl-prototypes, stack/08-tooling)
exactly. Variant names are unchanged.

Refs #2201

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants