Skip to content

Design Roken refactor#1569

Merged
Douglasymlai merged 6 commits intofeat/eigent-new-designfrom
design-refactor
Apr 21, 2026
Merged

Design Roken refactor#1569
Douglasymlai merged 6 commits intofeat/eigent-new-designfrom
design-refactor

Conversation

@Douglasymlai
Copy link
Copy Markdown
Contributor

Related Issue

Closes #

Description

Testing Evidence (REQUIRED)

  • I have included human-verified testing evidence in this PR.
  • This PR includes frontend/UI changes, and I attached screenshot(s) or screen recording(s).
  • No frontend/UI changes in this PR.

What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Contribution Guidelines Acknowledgement

Douglasymlai and others added 6 commits April 18, 2026 16:13
Moves shared UI under Dashboard/, animate-ui under components/ui/,
relocates ThemeProvider and AnimationJson under Layout/, replaces
WorkspaceMenu/BottomBar with WorkforceMenu, and introduces themeTokens
with semantic Tailwind color tokens.

Made-with: Cursor
Migrates component styling to the element/tone/emphasis/state token system
and adds a standalone verifier (`npm run verify:theme`) plus vitest coverage
that exercises every mode × theme × contrast-grid variant.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- tokens/ -> src/style/tokens/ so all style configuration lives together
- ThemeProvider/engine.v2/verifier tests -> test/unit/... to match the
  project's test layout

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Declare missing contrastPairs for all status/surface/fixed tones so the
  verifier no longer flags undeclared badge pairs; grouped single-agent
  and workforce with browser/terminal/document as fixed tones.
- Add 'transparent' emphasis variant: renders the tone's main color at
  per-state opacities (default 10%, hover 30%, selected 70%, disabled 50%).
  Engine emits rgba and short-circuits the OKLCH pipeline for this branch.
- Memoize buildThemeV2 via WeakMap<catalog, Map<contractKey, result>> with
  per-catalog LRU eviction; large win for live contrast slider edits.
- Make unknown-theme fallback explicit via a dev-gated, dedup'd console
  warning pointing at the resolved fallback id.
- Expose getRecommendedContrast() driven by prefers-contrast media queries;
  use as the initial themeContrast default and surface a "Use recommended"
  affordance on the Appearance settings slider.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Douglasymlai Douglasymlai marked this pull request as ready for review April 21, 2026 15:11
@Douglasymlai Douglasymlai merged commit d604be3 into feat/eigent-new-design Apr 21, 2026
1 check 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