Repository navigation
refactor(app): merge Inspector and Studio into one Sidebar layout - #783
Merged
Merged
Conversation
Inspector and Studio both showed one section at a time beside the canvas, but their contents had drifted apart: different groups, control order and font picker, and presets only in Studio. They are now one layout, Sidebar, whose navigation (Accordion or Rail) and side are Appearance preferences with their own illustrations. Both navigations render the same sections from variants/sidebar/panels.tsx, so presets reach the Accordion. A stored inspector or studio layout reads as the Accordion on its saved side or the Rail on the left, so existing users keep their look and the verify-codeimage scenarios keep working. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
riccardoperra
temporarily deployed
to
Preview
November 16, 2026 09:28 — with
GitHub Actions
Inactive
riccardoperra
temporarily deployed
to
Preview
November 16, 2026 09:28 — with
GitHub Actions
Inactive
riccardoperra
temporarily deployed
to
Preview
November 16, 2026 09:28 — with
GitHub Actions
Inactive
Contributor
Preview
Commit f11b14d |
This branch was successfully deployed
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.
Why
The appearance controls should not exist in several versions of the same thing. Inspector and Studio both showed one section at a time beside the canvas. They differed only in how you move between sections (an accordion or a rail), but their contents had drifted apart. They had different groups, a different control order, two font pickers, and presets only in Studio. The goal is one system where the wrapper can change and the content stays the same, so the accordion or the rail becomes a user preference.
What changes for users
inspectorlayout reads as the Accordion on its saved side. A storedstudiolayout reads as the Rail on the left. Existing users keep their look.What changes in the code
variants/inspectorandvariants/studiobecomevariants/sidebar.index.tsxrendersAccordion.tsxorRail.tsxforpreferences.panelNav().panels.tsx, placed byplaces.ts, with shared styles inpanels.css.ts. Section summaries live on the panel descriptors.primaryControlsorder and itsControlRowwrapper, the presets switcher's own title and close button (the wrapper owns the title), and four styles that were already unused onmain.panelNavandpanelSide, replacinginspectorSide. The page root carriesdata-layout="sidebar|dock",data-panel-navanddata-panel-side.inspector-/studio-prefixes tosidebar-. Accordion sections arethemes|frame|window|code|presets.DESIGN.md, the folder README and theverify-codeimageskill are updated. The skill's scenarios still saveinspector/studio, which now map to the Sidebar navigations.Verification
tsc --noEmitis clean forapps/codeimage.vitest run src/pages/UnifiedEditorpasses 134 tests.verify-codeimageaudit cases pass: editor, appearance, settings, presets, preset-management, settings-persistence, editor-options, whats-new-line-marks-dot, projects, export-screen-parity, frame-cold-start, animate-focus, animate-geometry, animate-phone and local-ai. The matrix cases cover the Accordion, Rail and Dock at 1440×900 and 390×844.studiorecord and both navigations on a phone.Not in this PR
maintoo, but that is not verified.🤖 Generated with Claude Code