Skip to content

fix: Standardize status icons and colors app-wide - #67

Open
marekdano wants to merge 1 commit into
mainfrom
62-update-status-icons
Open

fix: Standardize status icons and colors app-wide#67
marekdano wants to merge 1 commit into
mainfrom
62-update-status-icons

Conversation

@marekdano

Copy link
Copy Markdown
Contributor

Closes #62

Summary

Standardizes the four status severities (success/info/warning/error) on the icon set already used in ui/sonner.tsx (CircleCheckIcon/InfoIcon/TriangleAlertIcon/OctagonXIcon), and adds semantic --success/--warning CSS tokens alongside the existing --destructive, so color and glyph choices no longer drift per call site.

  • Added src/lib/status.ts — a single STATUS_ICON / STATUS_TONE_CLASS lookup keyed by severity; most call sites now consume it instead of picking an icon/color ad hoc.
  • Added --success / --warning tokens (light + dark) in index.css, wired into badge.tsx and StatusDot.tsx.
  • Fixed a real bug in StatusHeadline.tsx where warning and error rendered the identical AlertTriangle icon.
  • Consolidated deprecated/inconsistent lucide imports (CheckCircle2, AlertTriangle, AlertCircle, XCircle, CircleAlert) onto the canonical set, and replaced raw Tailwind shades (green-500, emerald-500, yellow-300/500/600, red-500) with the semantic tokens across 17 components.
  • Fixed one semantically-wrong glyph: the informational hint next to the MCP server URL field used an alert icon (CircleAlert); it's now InfoIcon.

Test plan

  • npm run lint, tsc -b, npm run format:check all clean
  • vitest run — 184 files / 3062 tests passing (updated 2 tests that asserted old raw color classes; added src/lib/status.test.ts for the new lookup)

Signed-off-by: Marek Dano <mk.dano@gmail.com>
@marekdano marekdano self-assigned this Aug 21, 2026

@vishu-bh vishu-bh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid PR!!

One thing to check src/components/mcp-servers/AdvancedSettings.tsx: still uses TriangleAlert. Should it use STATUS_ICON.warning?

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.

[Bug] Standardize status icons and colors app-wide

2 participants