Repository navigation
editor: improve cabinet resizing and wall alignment - #503
Conversation
Items (e.g. solar panels) can now be placed on sloped roof surfaces. The placement system computes euler rotation from the roof surface normal so items sit flush on the slope instead of going inside. - Add roofStrategy to placement-strategies with enter/move/click/leave - Wire roof:enter/move/click/leave events in the placement coordinator - Add calculateRoofRotation in placement-math using surface normals - Support full 3D cursor rotation for sloped surfaces - Items on roofs are parented to the level with world-space rotation Co-Authored-By: Claude Opus 4.6 <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 908d581. Configure here.
| const rawNode = useScene((state) => { | ||
| if (!selectedId) return null | ||
| const selectedNode = state.nodes[selectedId as AnyNodeId] | ||
| return selectedNode ? resolveDirectManipulationNode(selectedNode, state.nodes) : null |
There was a problem hiding this comment.
3D run rotate unavailable
Medium Severity
3D handle rendering now uses the selected node directly instead of resolveDirectManipulationNode, so choosing a base cabinet-module only shows module width/depth handles and hides the parent run’s rotate control. Floorplan ctrl/meta rotate still resolves to the rotatable parent run, so the same selection rotates in 2D but not via 3D gizmos.
Reviewed by Cursor Bugbot for commit 908d581. Configure here.


What does this PR do?
How to test
bun run check,bun run lint,bun run check-types, andbun run build; confirm every command completes successfully.Screenshots / screen recording
To be added — this is a visual and interactive change.
Checklist
bun devbun checkto verify)mainbranchNote
Medium Risk
Large editor interaction and cabinet scene-graph changes affect undo, snapping, and multi-node resize commits, though behavior is heavily covered by new tests.
Overview
Extends the handle registry so linear resize handles can publish
previewOverrideson related nodes during drag, apply kind-ownedmagneticSnap, and resolve handle lists with optionalsceneApi. Quick actions gainquickActionNodeScope(family/level) andblockedFeedbackfor disabled-but-clickable actions.The editor wires those hooks: resize snapping follows the active mode (grid vs lines) via
resolveResizeSnapValue, live previews merge/clear companion overrides, andcommitHandleDragPatchrecords the final composite write as one undo step after preview history resumes. Move from menus/inspector usesresolveMoveActionNodeso same-kind nested modules move their host run. Floating menus collect the scoped node graph for quick-action availability and play red jiggle feedback when a blocked action is clicked. Handle-drag snap context is derived from the dragged node’s profile (not rotation drags). Group bbox helpers depend onuseMeshSettleEpochvia an explicitnodesread instead of biome ignores.Straight-wall miter frames now use a consistent segment direction so left/right boundary points stay on the correct physical faces at free ends.
Cabinets shift default box size to 0.5×0.5 m, split countertop/plinth geometry per module depth, and add side-specific width resize with neighbor compensation, back-aligned group depth, and L/U corner depth handles that target derived legs with preview/commit fan-out. Corner ops, continuous placement, and quick actions are updated for context-aware depth, overlap checks for add wall, and outer-module selection after L-corner actions. Schema default width/depth in core align with the new defaults.
Reviewed by Cursor Bugbot for commit 908d581. Bugbot is set up for automated code reviews on this repo. Configure here.