Skip to content

Show progress while the first connection is opening #799

Closed

Description

@EVWorth

Severity: P2

What happens

  1. Open ?mock, click +, choose "Staging" (the mock takes about 1.5 s).
  2. For the whole wait nothing changes. The sidebar still says "No connection selected", the status bar says "Disconnected", and there is no spinner or placeholder tab.
  3. With Staging connected, open + and choose "MariaDB sandbox". While it is in flight, the healthy Staging tab's icon pulses amber ("Connecting"), and the connection being attempted has no tab.

Cause

  • src/components/layout/ConnectionTabs.tsx:43-47: the "Connecting" state is the store-wide loading flag, applied to every existing tab. A tab exists only after a connect succeeds.
  • src/stores/connectionStore.ts: loading is also set by loadProfiles, saveProfile, deleteProfile and disconnect, so those flash "Connecting" too. Overlapping connects clear it early.

Fix

Track in-flight connects per profile id (connecting: string[]). Render a placeholder tab (spinner plus profile name, with a cancel X) as soon as a connect starts, and show "Connecting to Staging…" in the status bar. Don't reuse loading for the tab state.

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 23, 2026
    8abe3c7
  3. added a commit that references this issue on Oct 23, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions