Skip to content

fix(web): settings opens over the chat and cad panel instead of replacing them - #222

Merged
AadiJo merged 1 commit into
mainfrom
settings-menu-overlay
Nov 8, 2026
Merged

AadiJo merged 1 commit into
mainfrom
settings-menu-overlay

Conversation

@AadiJo

@AadiJo AadiJo commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Opening settings hid the chat window and the CAD side panel behind it. Settings was its own route, so opening it unmounted the page underneath, and closing it rebuilt that page from scratch.

Settings is now an overlay. Its state lives in a root search param (?settings=providers) on whatever page is showing, and the page behind stays mounted. Back, Escape, the close button, a backdrop click, or navigating anywhere else closes it. The /settings/* routes are gone, and every link into settings opens the overlay instead.

Two details came with keeping the chat mounted:

  • The modal marks itself as an open dialog, so typing in settings no longer lands in the chat composer behind it.
  • / forwards to a draft and now keeps the settings param, so removing the active project still lands on CAD storage.

Settings open over a project's chat and CAD panel

Proof: apps/server/scripts/settings-overlay-e2e.ts runs the real app. It opens and closes settings each way over a draft with its CAD panel showing, and checks that the composer, CAD panel, and canvas are the same DOM nodes before and after (10/10 steps pass). Typecheck and the web unit tests also pass.

Reviewed with sol-loop: 2 rounds with gpt-6.1-sol. Sol verdict: approved


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@vercel

vercel Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cadsense Skipped Skipped Nov 8, 2026 9:11pm UTC

@AadiJo
AadiJo force-pushed the settings-menu-overlay branch from 5607035 to b725e4a Compare November 8, 2026 21:11
@AadiJo
AadiJo merged commit d45e649 into main Nov 8, 2026
12 checks passed
@AadiJo
AadiJo deleted the settings-menu-overlay branch November 26, 2026 19:52

This branch was previously deployed

1 inactive deployment
Preview — b725e4a8 Deployed Nov 8, 2026 by vercel[bot]
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