Skip to content

Fix CAD editor toolbar and panel button interactions#102

Merged
TopProjectsCreator merged 1 commit into
mainfrom
codex/fix-buttons-in-3d-cad-editor/2026-04-18
Apr 18, 2026
Merged

Fix CAD editor toolbar and panel button interactions#102
TopProjectsCreator merged 1 commit into
mainfrom
codex/fix-buttons-in-3d-cad-editor/2026-04-18

Conversation

@TopProjectsCreator
Copy link
Copy Markdown
Owner

Motivation

  • Make the CAD editor toolbar and side-panel buttons actually perform the expected actions and provide predictable toggle behavior for quick tools and panels.

Description

  • Introduced leftPanelOpen and rightPanelOpen state and added header toolbar buttons to toggle the Features and Properties panels with active visual states and tooltips in the CAD header.
  • Centralized quick-tool behavior behind a single runQuickTool handler and wired each quick-tool button to it so tools (Sketch, Extrude, Revolve, Loft, Boolean, Measure) reliably perform their intended action and toggle appropriately.
  • Conditionalized rendering of the left and right side panels with {leftPanelOpen && ...} and {rightPanelOpen && ...} so the new toggle buttons control visibility.
  • Removed an unused useThree import from @react-three/fiber and cleaned up toolbar click logic to use the new handler; changes are implemented in src/components/ide/CADEditor.tsx.

Testing

  • Ran npx eslint src/components/ide/CADEditor.tsx which completed successfully.

Codex Task

@TopProjectsCreator TopProjectsCreator added the codex This has been or will be assigned to codex for development label Apr 18, 2026 — with ChatGPT Codex Connector
@TopProjectsCreator TopProjectsCreator merged commit 6a2e644 into main Apr 18, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codex This has been or will be assigned to codex for development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant