Repository navigation
feat(settings): copy an existing connection when adding one - #43
Merged
Merged
Conversation
The Add connection modal gets a "Copy from" picker that prefills type, host, port, database, username, schemas and env from an existing connection. The ID is left blank and the name gets a " (copy)" suffix. Password and URI are never copied: the client never holds them, and the server already refuses to reuse a stored password at a new destination.
|
🎉 This PR is included in version 2.10.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
What
The Add connection modal now has a Copy from picker. Choosing an existing connection fills in type, host, port, database, username, default schema, schemas and env. The ID is left blank, and the name becomes
<name> (copy).Secrets
Password and URI are never copied, and the picker says so. The client never holds them (the API only reports
passwordSet/uriSet).mergeUpdateinserver/routes/settings.tsalready refuses to reuse a stored password at a new destination, so that stays the rule. There are no server changes.Tests
settings-page.connections.test.tsx:createConnectionpayload (new id, no password/URI)npm run verifypasses at 100% coverage.🤖 Generated with Claude Code