feat: add copy connection URL button to database connection info drawers#11981
Conversation
Add a copy connection URL button to the MySQL, PostgreSQL, and Redis connection info drawers, allowing users to one-click copy the full connection URI for both container and remote connections.
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
What this PR does / why we need it?
When users need to connect to a database via external tools (e.g., DBeaver, Navicat, Redis Insight), they currently have to manually assemble the connection URL from the address, port, and password shown in the connection info drawer. This PR adds a "Copy connection URL" button so users can copy the full connection URL in one click.
Summary of your change
mysql://user:pass@host:port,postgresql://user:pass@host:port,redis://:pass@host:portencodeURIComponentto handle special charactersPlease indicate you've done the following: