Repository navigation
feat(gui): Svelte app shell + Prepare/Machine workspace redesign (#216) - #223
Merged
Merged
Conversation
Replaces the #215 dev scaffold with the real Svelte shell (epic #214, strangler-on-main: React still ships; Svelte stays behind the dev-only entry and out of the production bundle). - Shell owns its regions directly (App.svelte composes MenuBar / WorkspaceTabs / Prepare+Machine workspaces / UtilityDrawer / StatusBar), retiring the React MainTab ReactNode-prop composition. - Prepare / Machine workspaces (renamed from Main / Stream); Alt+1/2 and the beforeunload dirty guard preserved. - Layer list consolidated into the left inspector (was a separate bottom panel); collapsible bottom Utility drawer, closed by default. - Restrained desktop redesign via component-scoped styles over existing tokens (1px borders not shadows, compact headers, no decoration); shared global CSS used by the live React app is untouched. - Shell UI state in src/state/ui-state.svelte.ts (runes), separate from the project document. Viewport / layer editing / streaming / dialogs are later slices and render placeholders; menu items for unmigrated actions are present but disabled. Production bundle unchanged (595.75 kB; Svelte not in the rollup input). Extends the css-var guard to scan .svelte scoped styles. Refs #214
7 tasks
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.
Closes #216. Builds the real Svelte app shell + the restrained desktop redesign, replacing the #215 dev scaffold. Part of epic #214 (strangler-on-
main: React still ships; Svelte lives behind the dev-onlyindex.svelte.htmland is tree-shaken out ofvite build).What changed
MainTabas fourReactNodeprops;src/App.sveltenow composes region components (MenuBar,WorkspaceTabs,PrepareWorkspace/MachineWorkspace,UtilityDrawer,StatusBar) that each own their layout. Indirection gone.beforeunloadguard preserved (via<svelte:window>).src/state/ui-state.svelte.tsrunes module (active workspace + panel/drawer flags), separate from the project document.Scope boundaries (placeholders, by design)
The viewport, real layer list/editors, machine/streaming, and dialogs are later slices. Their regions render clear placeholders; menu items whose slices haven't landed (Open/Save/Export, layer ops, About) are present but disabled so the menu structure is faithful without dead-ends. Wired now: New Project, workspace switch, panel/drawer toggles.
Verification
tsc,svelte-check(0 errors), 661 vitest tests (+18 shell tests), coverage 82/74/80/82 (> 60/65/50/60), stylelint,lint:css:vars,vite build, bundle budget.index-*.jsis 595.75 kB — byte-identical to before (Svelte shell not in the rollup input;index.svelte.htmlnot emitted).Notes for reviewers
http://localhost:5173/index.svelte.html.Part of #214.