Skip to content

refactor(app): merge Inspector and Studio into one Sidebar layout - #783

Merged
riccardoperra merged 1 commit into
mainfrom
refactor/appearance-panels
Nov 16, 2026
Merged

riccardoperra merged 1 commit into
mainfrom
refactor/appearance-panels

Conversation

@riccardoperra

Copy link
Copy Markdown
Owner

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

  • Settings → Experiments → Layout offers Sidebar (the default) and Dock.
  • Settings → Appearance has a new Sidebar group. "Navigation" picks Accordion or Rail through illustrated cards, and "Panel side" picks Left or Right for both. The illustrations mirror with the side.
  • The Accordion now shows Presets. Each section header has the rail's icon, the current value and the chevron.
  • The Rail works on the right too.
  • The command menu has entries for the navigation and the side.
  • A stored inspector layout reads as the Accordion on its saved side. A stored studio layout reads as the Rail on the left. Existing users keep their look.

What changes in the code

  • variants/inspector and variants/studio become variants/sidebar. index.tsx renders Accordion.tsx or Rail.tsx for preferences.panelNav().
  • Both navigations render the sections of panels.tsx, placed by places.ts, with shared styles in panels.css.ts. Section summaries live on the panel descriptors.
  • Removed: Inspector's primaryControls order and its ControlRow wrapper, the presets switcher's own title and close button (the wrapper owns the title), and four styles that were already unused on main.
  • The preferences are panelNav and panelSide, replacing inspectorSide. The page root carries data-layout="sidebar|dock", data-panel-nav and data-panel-side.
  • Ids moved from the inspector-/studio- prefixes to sidebar-. Accordion sections are themes|frame|window|code|presets.
  • Translations exist in the four locales. DESIGN.md, the folder README and the verify-codeimage skill are updated. The skill's scenarios still save inspector/studio, which now map to the Sidebar navigations.

Verification

  • tsc --noEmit is clean for apps/codeimage. vitest run src/pages/UnifiedEditor passes 134 tests.
  • These verify-codeimage audit 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.
  • Screenshots were checked by eye for the Accordion on both sides, the Rail on the right, the Settings cards, a legacy studio record and both navigations on a phone.

Not in this PR

  • The three phone sheets (Accordion, Rail, Dock) are still separate implementations.
  • Dock's More panel does not use the shared sections yet.
  • The Code section's Theme select renders empty. Studio rendered the same content, so this is probably on main too, but that is not verified.

🤖 Generated with Claude Code

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>
@changeset-bot

changeset-bot Bot commented Nov 16, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f11b14d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

@riccardoperra
riccardoperra merged commit e56fe3c into main Nov 16, 2026
12 checks passed
@riccardoperra
riccardoperra deleted the refactor/appearance-panels branch November 16, 2026 09:32

This branch was successfully deployed

1 active deployment
Preview — f11b14d0 Deployed Nov 16, 2026 by riccardoperra via Deploy preview #2205
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