Skip to content

Offer "Save & Connect" for a new connection #832

Closed

Description

@EVWorth

Severity: P2

What happens

  1. On ?mock, open + → "New Connection…". Focus lands on the dialog panel, not the Name field.
  2. Type a name and press Enter. Nothing happens.
  3. Click Save. The dialog closes with no feedback and no connection. To use the new profile, the user has to open + again and find it in the list.

DBeaver, DataGrip and TablePlus all offer connect-on-save (or "Connect" in the dialog).

Cause

  • src/components/connection/ConnectionDialog.tsx:141-165: the fields are not in a <form>, and there is only a Save button that calls handleSave(onClose).
  • src/components/common/Modal.tsx gives initial focus to the panel.

Fix

Make the primary button "Save & Connect" (save, then connect and select the new tab), and keep "Save" as a secondary button. Wrap the fields in a <form> so Enter submits, and focus the Name field on open.

Part of #783.

Activity

  1. added
    enhancement
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 24, 2026
    46b5bb6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions