refactor(ui): shared UI foundation (tokens, theming, Inter, primitives)#389
Open
patschmittdev wants to merge 1 commit into
Open
refactor(ui): shared UI foundation (tokens, theming, Inter, primitives)#389patschmittdev wants to merge 1 commit into
patschmittdev wants to merge 1 commit into
Conversation
Isolated foundation layer split out of feat/webgl-ambient-background so the verticals can branch off a clean base instead of one 50-commit branch: - index.css design-token system (light/dark palettes, single reserved accent, global reduced-motion kill-switch) plus the Inter variable font - shared UI primitives: ui/tabs, ui/skeleton; tooltip/dialog token fixes - generic hooks: useTheme, useResponsiveLayout, useDelayedFlag, useCopyToClipboard, useResizableWidth (+ barrel exports) - lib/utils: relative-time, ISO-date display, skill-context parsing Fold in the P1 accessibility fix: the resizable-panel grip is now keyboard operable (focusable, Arrow Left/Right resize by 16px, aria-value*), matching the hand-rolled separator in MindSidebar, covered by a focused test. Scope notes: test/helpers.ts and the shared declaration files are intentionally left for the verticals (their final shapes depend on per-vertical types). No upstream push. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Jun 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Extracts the shared UI foundation off
masteras a clean, standalone base so the UX verticals (voice, ambient, chatroom sessions, settings, agent profile, chat polish) can each branch off it instead of one 50-commit kitchen-sink branch.This is commit
bb8b482, already validated as the base of the voice PR #387. Promoting it to its own PR lets the rest of the work stack cleanly off a small, reviewable base.Contents (19 files, +1021)
Design system / tokens (
index.css).darkpalette (monochrome with one reservedgenesisaccent), elevation shadows, lit surfaces (.surface-panel/.surface-card), restyled scrollbars, day/night crossfade,prefers-reduced-motion, entry animations.Theming
useTheme.ts-- day/night state, persistence, andsetThemebridge.env.d.ts--@fontsource-variable/intermodule decl +setThemeonwindow.desktop.Typography
@fontsource-variable/inter) wired inrenderer.tsx; optical legibility + tabular figures.Primitives
ui/skeleton.tsx,ui/tabs.tsx. Token adoption:ui/dialog.tsx,ui/tooltip.tsx.Foundation hooks
useResizableWidth,useResponsiveLayout,useCopyToClipboard,useDelayedFlag(+lib/utils).Stack
Validation
npm run lint-- green:tsc --noEmit, eslint, dependency-cruiser (520 modules, 0 violations), yaml, md.useResizableWidth,useResponsiveLayout,utils).No behavior beyond the shared base; each vertical adopts these tokens in its own PR.