Skip to content

electron: move shell panel sizes into semantic tokens - #246

Merged
stuffbucket merged 1 commit into
mainfrom
shell-panel-tokens
Oct 3, 2026
Merged

stuffbucket merged 1 commit into
mainfrom
shell-panel-tokens

Conversation

@stuffbucket

Copy link
Copy Markdown
Owner

ShellLayout's default panel geometry now comes from SHELL_PANEL_SIZES (sidebar, inspector, drawer, canvas) in packages/maximal-electron/src/renderer/lib/panel-sizes.ts, which also owns PanelSize. The client AppFrame derives its sidebar size from the same token instead of duplicating it.

The tokens are TypeScript rather than CSS custom properties because react-resizable-panels reads unit strings on mount and cannot resolve var().

Verified locally: electron and client typecheck, verify:exports (53 renderer modules), and the panel-sizes, mutation-scope, exported-docs, shell-layout, export-checks and client AppFrame tests.

ShellLayout's default panel geometry now comes from SHELL_PANEL_SIZES
(sidebar, inspector, drawer, canvas) in lib/panel-sizes.ts, which also
owns PanelSize. The client AppFrame derives its sidebar size from the
same token. The module is exported, allowlisted as a contract, and
deferred from mutation testing under #125.

Co-authored-by: Copilot <[email protected]>
@stuffbucket
stuffbucket merged commit 1078841 into main Oct 3, 2026
6 checks passed
@stuffbucket
stuffbucket deleted the shell-panel-tokens branch October 3, 2026 21:30
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