Skip to content

editor: named side menu, one side column and a single Plugins entry - #1258

Closed
philpitus wants to merge 16 commits into
pascalorg:mainfrom
philpitus:filip/editor-layout
Closed

philpitus wants to merge 16 commits into
pascalorg:mainfrom
philpitus:filip/editor-layout

Conversation

@philpitus

@philpitus philpitus commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Reworks the v2 desktop layout so the 3D view stays the biggest thing on screen and every menu entry says what it is. It comes from Pascal's navigation plan for the hosted editor (items 4, 5, 6 and 14: tool names, finding chats, a clean layout, chat first).

  • Side menu with names. Entries are grouped under headings (a tab's section). Hide menu at the top hides the whole menu; a Menu button at the start of the view bar brings it back. The choice is remembered. Keyboard shortcuts (B, P, F), Paint following paint mode and the build-tool reset keep working while the menu is hidden.
  • One side column. A host can give one tab the column beside the menu (columnTabId, e.g. a chat), and the editor opens on it. Opening a tool puts its panel in that column instead of over the 3D view; the close button, Escape or picking the column's tab brings the tab back and puts a build tool down, so a click on the 3D view selects instead of drawing. Before, a tool panel next to the chat left the 3D view under half the window; with Build open it now keeps 904 of 1,440 px.
  • One Plugins entry. Plugins no longer get an entry each. Plugins opens a panel listing the project's plugins, plus Browse plugins for the directory. An open plugin's panel keeps Plugins lit, and clicking Plugins goes back to the list. The phone's tab bar folds the plugins under Plugins the same way. pluginsMenuSection lets the host put the entry under one of its own headings (Pascal puts it under Project, after Capture).
  • sideMenuFooter: host content right after the entries. Pascal uses it for the project's recent chats, in the space the plugin list used to take.
  • The camera frames each project once it has opened (including the next one opened in the same session), unless a saved view, an applied pose or the person has already moved it. A scanned house tens of metres across used to open on its roof.
  • New strings in every catalog. es, fr, ja and zh-CN are fuzzy drafts for review.

The v1 layout is unchanged. On a phone, the column's tab stays one of the tabs.

New props: columnTabId, sideMenuFooter, pluginsMenuSection (README updated). New SidebarTab fields: section and menuParent (an entry left out of the menu that lights its parent, used for the plugins).

How to test

  1. In a host with layoutVersion="v2", a columnTabId and a few installed plugins, open a project. It opens on the column's tab, and the camera frames the project.
  2. Click Build. Its panel takes the column's place and the 3D view keeps its width. Press Escape and the column's tab comes back.
  3. Click Plugins: the project's plugins are listed. Pick one: its panel opens and Plugins stays lit. Click Plugins again for the list; Browse plugins opens the directory.
  4. Click Hide menu. The Menu button at the start of the view bar brings the menu back, and a reload keeps the choice.

Ran locally: bun run check-types and bun test src in packages/editor (2,933 pass), and bun check (no errors; the same 172 warnings as main, none in these files).

Screenshots / screen recording

Taken in Pascal's hosted app on a local build that uses these props. The chat, recent chats and credits are the host's content.

Opens on the chat, with the menu named and grouped:

Chat column

Build takes the chat's place instead of covering the 3D view:

Build open

One Plugins entry, its list, and a plugin open:

Plugins list A plugin open
Plugins Plugin open

Menu hidden, with the Menu button first in the view bar:

Menu hidden

Recordings: before and after (download to play).

Checklist

  • I've tested this locally with bun dev (tested through Pascal's hosted app on a local build instead)
  • My code follows the existing code style (run bun check to verify)
  • I've updated relevant documentation (if applicable)
  • This PR targets the main branch

🤖 Generated with Claude Code


Note

Medium Risk
Touches core editor layout, sidebar persistence, and camera behavior on every project open; regressions could affect navigation, plugin discovery, and initial framing.

Overview
Refactors the v2 desktop layout from an icon rail plus one resizable panel into a named side menu, a dedicated column tab (e.g. chat), and a tool column that replaces that tab when a tool opens—so the stage keeps at most one sidebar column. Adds host props columnTabId, sideMenuFooter, and pluginsMenuSection, opens projects on the column tab after hydrate, and supports hiding the menu (persisted) with a Menu control on the view bar.

Plugins collapse to one Plugins menu entry with a new PluginsMenuPanel (list + browse); individual plugins use menuParent and stay out of the mobile tab bar while still lighting Plugins.

Camera: after load, CustomCameraControls optionally frames buildings/scans (or respects saved site/building views), follows streaming geometry briefly, and tracks openingCameraSettled so user moves and other camera commands stop the follow.

Also adds setColumnPanelId so shortcuts to the chat column don’t dismiss an open tool panel, plus sidebar tests and i18n/docs updates.

Reviewed by Cursor Bugbot for commit f7ed061. Bugbot is set up for automated code reviews on this repo. Configure here.

philpitus and others added 7 commits November 10, 2026 19:26
The v2 rail is icons only, with each name in a hover tooltip, and plugin tools
sit apart from the rest under a divider. Show names by default and list every
tool together. A small icon at the bottom closes the rail back to icons for more
room, and the choice is remembered.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The v2 layout put every surface in one sidebar: opening Build, Paint or Items
replaced the host's chat, and the rail could close to icons only. It now has
three columns on a desktop:

- A side menu that always shows each tool's name, grouped under the headings
  the host gives (`SidebarTab.section`); plugin panels list under Plugins, with
  the plugin directory as "Add plugin" at the end. A host footer
  (`sideMenuFooter`) is pinned under the entries. The icon-only toggle is gone.
- A column for one host tab (`columnTabId`, e.g. the chat), resizable and
  always on screen. Showing that tab leaves the tool panel as it is.
- The work area: the view tabs over the stage, with the picked tool's panel
  docked over the stage's left edge. The panel has a title and a close button,
  and Escape closes it once there is no tool in hand or selection to cancel.
  The level selector and hints move beside it, a host view in the first pane
  starts after it, and the tool menu stays centred on the pane under its foot.

On a phone the layout is unchanged: the column tab is one more sheet.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The camera started at a fixed pose 20 m from the origin, so a large project (a
scanned house about 28 m across) opened with the eye on its roof. Once the
scene reports ready, the camera now fits the bounds of the project's buildings
and scans at the opening angle, and follows them for a few seconds while scans
and models finish streaming in. A view saved on the site or a building is used
instead, and nothing moves once a pose has been applied (a followed
collaborator, a preview's return) or the person has moved the camera.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…hide

With the chat column always on screen, a tool panel docked over the stage left
the 3D view well under half the window. A tool's panel now takes the chat's
place in that column; closing it (or picking the chat in the menu, where it is
now listed) brings the chat back. The chat stays mounted while hidden, so a
running turn keeps streaming.

The side menu has a Hide menu button; a Menu button ahead of the view tabs
brings it back, and the choice is remembered. The stage offsets that existed
only for the floating panel are gone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The layout and the menu read the shown panel from the same tab list, so they
no longer pull it two ways. A project opens on the column's tab (the chat),
with the tools one click away, and the Menu button that brings a hidden menu
back leads the view bar row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ost's footer right after the entries

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

…set with the menu hidden

The opening frame reset only once per mount, so a second project never framed. The side menu's
shortcuts, Paint follow and build-tool reset lived in the menu, so hiding it stopped them, and
going back to the chat left a build tool in hand. They now run whether the menu shows or not,
and any return to no tool panel puts the build tool down.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

…mands; a lone column tab still shows

The load's fit-scene framed node bounds, without scans, and could override the opening frame,
whose follow then pulled the camera back. During the opening, a fit now runs through the opening
frame (a saved view stays the opening), and focus, view, frame, top view, orbit or capture end
the follow. A host passing only the column's tab now gets its column.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

…ad, across preview

Preview swaps the layout and camera controls out, so state kept in them reset on return: the
opening frame ran again and moved the camera, and the layout put the chat back over an open
tool. The opening's end now lives in the editor store (cleared by each load), and the editor
opens on the column's tab once per load, after the saved layout is restored.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

…pen on the chat as loading starts

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

philpitus and others added 2 commits November 11, 2026 15:17
# Conflicts:
#	packages/editor/src/components/editor/editor-layout-v2.tsx
#	packages/editor/src/components/editor/index.tsx
#	packages/editor/src/components/ui/sidebar/tab-bar.tsx
…e site's saved view opens first

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f7ed061. Configure here.

setMode('select')
}
}, [isCollapsed])
}, [enabled, toolOpen])

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Paint stays armed after panel closes

Medium Severity

Closing the tool column only puts down build mode. material-paint stays armed after the close button or picking the column tab, so painting continues on the 3D view with the Paint panel gone and Paint no longer lit.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit f7ed061. Configure here.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed and fixed in #1279 (e623d7a): with no tool panel open, any mode other than select now returns to select. That covers Paint's brush and the site editor, not just build.

className={cn(
'relative h-full shrink-0 flex-col border-border/50 border-r',
hidden ? 'hidden' : 'flex',
)}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hidden chat keeps keyboard focus

Medium Severity

The chat column stays mounted and is only CSS-hidden when a tool takes its place, so focus can remain in the off-screen composer. Keystrokes then go to the invisible chat, and Escape in an input is ignored, so the tool panel does not close.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit f7ed061. Configure here.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed and fixed in #1279 (e623d7a): the chat column is inert while a tool takes its place, and it blurs any focus inside it as it hides. Keystrokes no longer reach the hidden composer, and Escape closes the tool panel.

Aymericr added a commit that referenced this pull request Nov 12, 2026
…hilpitus) (#1279)

* editor: show tool names in the side rail

The v2 rail is icons only, with each name in a hover tooltip, and plugin tools
sit apart from the rest under a divider. Show names by default and list every
tool together. A small icon at the bottom closes the rail back to icons for more
room, and the choice is remembered.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* editor: side menu, chat column and docked tool panels in the v2 layout

The v2 layout put every surface in one sidebar: opening Build, Paint or Items
replaced the host's chat, and the rail could close to icons only. It now has
three columns on a desktop:

- A side menu that always shows each tool's name, grouped under the headings
  the host gives (`SidebarTab.section`); plugin panels list under Plugins, with
  the plugin directory as "Add plugin" at the end. A host footer
  (`sideMenuFooter`) is pinned under the entries. The icon-only toggle is gone.
- A column for one host tab (`columnTabId`, e.g. the chat), resizable and
  always on screen. Showing that tab leaves the tool panel as it is.
- The work area: the view tabs over the stage, with the picked tool's panel
  docked over the stage's left edge. The panel has a title and a close button,
  and Escape closes it once there is no tool in hand or selection to cancel.
  The level selector and hints move beside it, a host view in the first pane
  starts after it, and the tool menu stays centred on the pane under its foot.

On a phone the layout is unchanged: the column tab is one more sheet.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* editor: frame the project when it opens

The camera started at a fixed pose 20 m from the origin, so a large project (a
scanned house about 28 m across) opened with the eye on its roof. Once the
scene reports ready, the camera now fits the bounds of the project's buildings
and scans at the opening angle, and follows them for a few seconds while scans
and models finish streaming in. A view saved on the site or a building is used
instead, and nothing moves once a pose has been applied (a followed
collaborator, a preview's return) or the person has moved the camera.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* editor: drop the camera hint below the level selector when a tool panel is docked

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* editor: one column for the chat or the open tool, and a menu you can hide

With the chat column always on screen, a tool panel docked over the stage left
the 3D view well under half the window. A tool's panel now takes the chat's
place in that column; closing it (or picking the chat in the menu, where it is
now listed) brings the chat back. The chat stays mounted while hidden, so a
running turn keeps streaming.

The side menu has a Hide menu button; a Menu button ahead of the view tabs
brings it back, and the choice is remembered. The stage offsets that existed
only for the floating panel are gone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* editor: open on the column's tab, and put the Menu button first

The layout and the menu read the shown panel from the same tab list, so they
no longer pull it two ways. A project opens on the column's tab (the chat),
with the tools one click away, and the Menu button that brings a hidden menu
back leads the view bar row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* editor: one Plugins entry that lists the project's plugins, and the host's footer right after the entries

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* editor: frame each project that opens, and keep shortcuts and tool reset with the menu hidden

The opening frame reset only once per mount, so a second project never framed. The side menu's
shortcuts, Paint follow and build-tool reset lived in the menu, so hiding it stopped them, and
going back to the chat left a build tool in hand. They now run whether the menu shows or not,
and any return to no tool panel puts the build tool down.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* editor: keep each plugin out of the phone tab bar too, under Plugins

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* editor: the opening frame takes the load fit and yields to camera commands; a lone column tab still shows

The load's fit-scene framed node bounds, without scans, and could override the opening frame,
whose follow then pulled the camera back. During the opening, a fit now runs through the opening
frame (a saved view stays the opening), and focus, view, frame, top view, orbit or capture end
the follow. A host passing only the column's tab now gets its column.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* editor: walking or previewing during the opening ends it, so leaving them never reframes

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* editor: keep the opening frame and opening on the chat to once per load, across preview

Preview swaps the layout and camera controls out, so state kept in them reset on return: the
opening frame ran again and moved the camera, and the layout put the chat back over an open
tool. The opening's end now lives in the editor store (cleared by each load), and the editor
opens on the column's tab once per load, after the saved layout is restored.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* editor: the load fit applies when the opening has nothing to frame; open on the chat as loading starts

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* editor: open on the chat once the saved layout has finished restoring

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* editor: the side overlay renders in the column on screen only, and the site's saved view opens first

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* editor: sync i18n catalogs for the side menu strings

Generated by bun run i18n:extract: the side menu and Plugins panel drafts get
their Source-Hash and stay fuzzy with Review: required.

* editor: showing the column's tab brings the chat back in place of a tool

The chat and an open tool panel share one column, so ignoring a request for the
chat while a tool was open left the chat hidden. showSidebarPanel and
openSidebarPanel now pick it, which closes the tool in its place; they still
never reopen a closed tool panel for it.

* editor: closing the tool column disarms any tool, and the hidden chat lets go of focus

Closing the tool panel (or picking the chat) only put a build tool down, so
Paint's brush or the site editor stayed armed with their panel gone. Any mode
but select now returns to select.

The chat column stayed CSS-hidden behind an open tool with focus possibly still
in its composer, so typing went nowhere visible and Escape never closed the
tool panel. The hidden column is now inert and drops focus as it hides.

* editor: keep the side column from crowding out the stage on a narrow desktop

Beside the new 176px side menu, a persisted 600px chat or a 520px tool panel
left the stage a sliver just above the phone breakpoint. Both columns now take
at most 40% of the window, while resizing and on screen.

* editor: only plugin panels fold under the Plugins entry

The fold matched any rail panel whose heading read "Plugins", so a host
panel under a heading with the same text vanished into the Plugins list.
It now also needs a pluginId.

* editor: the opening frame leaves hidden objects out

Box3.expandByObject walks invisible objects too, so a hidden building or
hidden parts widened the opening frame to content that is not drawn. The
bounds now come from visible objects only.

* editor: a project opened on a phone keeps its tab when the window widens

The open-on-column effect skipped phones without recording the project, so
widening past the desktop breakpoint later forced the column tab and put the
tool in use down.

* editor: picking a floor while a project opens ends the opening frame

The level follow moved the camera without ending the opening, so a later
re-check could pull the camera back after the person chose a floor, level
mode or camera.

* editor: only a floor or level mode picked ends the opening frame

Fresh controls alone (drei swapping the camera) also took the level follow
path and ended the opening, leaving the load fit to frame hidden objects.
They now re-apply the opening frame instead; a level or level mode change
still ends it.

* editor: walking or previewing as a project opens settles its opening

With first person or preview already on when the scene became ready, the
opening never settled, so leaving that mode later started the follow and
pulled the camera away.

---------

Co-authored-by: F-PTS <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Cursor Agent <[email protected]>

Copy link
Copy Markdown
Member

Thanks a lot @philpitus, this landed in #1279 with all 16 of your commits and your authorship kept. On top of your work we fixed the i18n check, made closing the column return any armed tool to select, kept the hidden chat from holding focus, capped the column width, and made the opening camera ignore hidden objects. Closing this one since #1279 carried it to main.

@Aymericr Aymericr closed this Nov 12, 2026
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.

2 participants