Skip to content

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

Closed
wass08 wants to merge 1 commit into
chore/field-limit-sweepfrom
fix/ground-level-and-studio-compass
Closed

Level pill: no ground-floor delete; hide compass in studio#722
wass08 wants to merge 1 commit into
chore/field-limit-sweepfrom
fix/ground-level-and-studio-compass

Conversation

@wass08

@wass08 wass08 commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Stacked on #721 — retarget to main after it merges.

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 in two components; no changes to delete or scene APIs, though ground-floor deletion remains possible outside these UI paths.

Overview
Aligns two floorplan UI edges with existing rules elsewhere in the editor.

The floating level selector kebab menu now disables Delete level when the level ordinal is 0 (ground floor), with the same disabled styling and tooltip as the site panel — previously only the site panel and command palette blocked deleting the vertical model’s zero anchor.

The floorplan compass is now shown only in the edit workspace (!isStudioWorkspace), matching HelperManager, so it no longer appears over studio tabs (gallery, materials, item builder) after being portaled into the viewer.

Reviewed by Cursor Bugbot for commit 8b23ee8. 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 deleted the branch chore/field-limit-sweep August 26, 2026 14:00
@wass08 wass08 closed this Aug 26, 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.

1 participant