Skip to content

fix(design): migrate ContextBreakdown to semantic design tokens - #158

Merged
IchenDEV merged 4 commits into
mainfrom
fix/design-system-context-breakdown
Aug 26, 2026
Merged

fix(design): migrate ContextBreakdown to semantic design tokens#158
IchenDEV merged 4 commits into
mainfrom
fix/design-system-context-breakdown

Conversation

@IchenDEV

Copy link
Copy Markdown
Owner

Summary

  • Add --ds-color-chart-{1..6} foundation and semantic tokens with light/dark variants to tokens.css
  • Replace 6 hardcoded hex color values in ContextBreakdown.tsx with var(--ds-color-chart-*) references
  • Replace rounded-sm with rounded-(--ds-radius-micro) to use the design system radius scale
  • Replace duration-300 (2 occurrences) with duration-(--ds-motion-page) to use semantic motion tokens

Fixes the desktop-design-system CI workflow that has been failing on every push to main.

Test plan

  • bun run check:design passes locally with 0 new violations
  • CI desktop-design-system workflow passes on this PR

Made with Cursor

IchenDEV and others added 4 commits August 26, 2026 21:54
Replace hardcoded hex colors, Tailwind radius, and duration classes
with semantic design-system tokens to pass the check:design CI gate.

- Add --ds-color-chart-{1..6} foundation + semantic tokens (light/dark)
- Replace raw #hex values with var(--ds-color-chart-*) references
- Replace rounded-sm with rounded-(--ds-radius-micro)
- Replace duration-300 with duration-(--ds-motion-page)

Co-authored-by: Cursor <cursoragent@cursor.com>
The lucide-react package is not installed; ContextBreakdown imported X
from it, causing 12 test failures across both CI workflows. Switch to
the project's @/components/ui/icons module.

Co-authored-by: Cursor <cursoragent@cursor.com>
- split-button.tsx: replace lucide-react import with project icon system
- App.tsx: add missing breakdown field to satisfy ContextWindow type
- SourceControl.tsx: remove unused standalone push function

Co-authored-by: Cursor <cursoragent@cursor.com>
- desktop-design-system.yml: add macOS + Windows test matrix alongside
  the existing Ubuntu validate job (design check + tests + build)
- windows-desktop.yml: remove pull_request trigger; full Windows
  installer packaging now only runs on push to main or workflow_dispatch

PR feedback stays fast (~30s validate + parallel cross-platform tests).
Full 90-minute Windows build no longer blocks PR review.

Co-authored-by: Cursor <cursoragent@cursor.com>
@IchenDEV
IchenDEV merged commit 562bcc2 into main Aug 26, 2026
3 checks passed
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.

1 participant