Skip to content

Level pill: no ground-floor delete; hide compass in studio - #723

Merged
wass08 merged 1 commit into
mainfrom
fix/ground-level-and-studio-compass
Aug 26, 2026
Merged

Level pill: no ground-floor delete; hide compass in studio#723
wass08 merged 1 commit into
mainfrom
fix/ground-level-and-studio-compass

Conversation

@wass08

@wass08 wass08 commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Replaces #722 (auto-closed when its stacked base branch was deleted by the #721 merge; now rebased onto main).

What

  • Floating level selector: the kebab menu offered "Delete level" for the ordinal-0 ground floor — the vertical model's zero anchor — while the site panel and command palette already guard it. Now disabled with the same rule (level.level !== 0) and the same explanatory title as the site panel.
  • Compass in studio: the floorplan compass is portaled into the viewer area (so it survives the 2D panel being display:none), which also let it paint above the studio stage overlays — it showed in the gallery/materials/item-builder tabs. Now gated on the edit workspace, same pattern as HelperManager.

Verification

Playwright probe against the running community app: Ground Floor's Delete item renders disabled with the tooltip; compass hidden after switching to Studio; compass returns in Edit.

Note for reviewers

There is no store-layer guard for ground-floor deletion — deleteNode / deleteLevelWithFallbackSelection / MCP delete-node all delete it unconditionally; every guard is UI-level (site panel, command palette, now the pill). A core-level guard may be worth a follow-up.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SrRkPvd6AogVAbt3PNeLAw


Note

Low Risk
UI-only guards and visibility gating with no changes to delete APIs or scene store behavior.

Overview
Studio workspace no longer shows the floorplan compass overlay. The compass render is gated on not being in studio workspace mode, matching how other editor chrome (e.g. helpers) stays off the renders/materials/item-builder stage.

Floating level selector now applies the same ground-floor rule as the site panel and command palette: Delete level is disabled when level.level === 0, with a tooltip explaining the ground level cannot be deleted. Styling reflects the disabled state.

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

The floating level selector's kebab offered Delete for the ordinal-0
ground floor — the vertical model's zero anchor — while the site panel
and command palette already guard it; disable it with the same rule and
explanatory title. The floorplan compass portaled into the viewer area
outlived the studio stage overlays (gallery, materials, item builder);
gate it on the edit workspace like the rest of the editor chrome.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SrRkPvd6AogVAbt3PNeLAw
@wass08
wass08 merged commit 3e1991c into main Aug 26, 2026
3 checks passed
@wass08
wass08 deleted the fix/ground-level-and-studio-compass branch August 26, 2026 15:41
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