feat: improve connect screen with interactive setup wizard#16
Open
liuxiaopai-ai wants to merge 1 commit intoibelick:mainfrom
Open
feat: improve connect screen with interactive setup wizard#16liuxiaopai-ai wants to merge 1 commit intoibelick:mainfrom
liuxiaopai-ai wants to merge 1 commit intoibelick:mainfrom
Conversation
Closes ibelick#6 - Add interactive connection form with fields for Gateway URL, Token, and Password - Add 'Test Connection' button that validates credentials server-side before saving - Show clear success/error states with actionable feedback - Auto-generate a copy-paste .env.local snippet pre-filled with user's values - Move existing manual setup instructions into a collapsible section - Add /api/connect-test POST endpoint for testing arbitrary gateway credentials - Add gatewayConnectTest() helper in gateway.ts for dynamic credential testing
50870c3 to
6d8caa5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #6
The current connect screen only shows static instructions telling users to manually create
.env.localfiles and restart the dev server. This is confusing — users don't understand what values to use or that they need to restart.Changes
New: Interactive connection form
ws://127.0.0.1:18789), Token (recommended), and Password (fallback).env.localsnippet pre-filled with the user's valuesNew:
/api/connect-testendpoint{ url, token, password }and tests the gateway connection with those credentialsgatewayConnectTest()helper ingateway.ts— same WebSocket handshake logic but with caller-provided credentials instead of env varsImproved: Manual setup as collapsible
.env.localinstructions moved into a collapsible "Manual setup instructions" section for advanced usersDesign decisions
.env.localand restart. Clean and simple.Button,Collapsible,CodeBlock) and Tailwind patterns@hugeicons/reacticons consistent with the rest of the app