Skip to content

feat(web): onshape project form skips the connection picker when only one exists - #234

Merged
AadiJo merged 1 commit into
mainfrom
auto-select-onshape-connection
Nov 9, 2026
Merged

AadiJo merged 1 commit into
mainfrom
auto-select-onshape-connection

Conversation

@AadiJo

@AadiJo AadiJo commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

The "New Onshape project" form always asked the user to pick a connection, even when only one was saved. That was an extra step with only one possible answer.

The form now hides the Connection field when exactly one connection exists and creates the project with that connection. With two or more, the picker shows as before and "Create project" stays disabled until a choice is made. If a user picks a connection and it is then removed, the picker comes back instead of switching to another connection.

One connection Two connections
One connection: no picker Two connections: picker shown

Proved by running the app against a throwaway home with seeded connections: with one, the picker was hidden and the created project stored that connection's ID; with two, the picker showed. Form tests cover both cases plus the removed-connection guard, and the web test suite (1900 tests) and typecheck pass.

Reviewed with sol-loop: 1 round 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 9, 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 9, 2026 5:32am UTC

@AadiJo
AadiJo merged commit 6ca9e89 into main Nov 9, 2026
8 checks passed
@AadiJo
AadiJo deleted the auto-select-onshape-connection branch November 26, 2026 19:48

This branch was previously deployed

1 inactive deployment
Preview — 53b5c604 Deployed Nov 9, 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