Skip to content

refactor(connection-form): show General by default, rest behind disclosures - #4410

Merged
datlechin merged 2 commits into
mainfrom
refactor/connection-form-progressive-disclosure
Nov 22, 2026
Merged

datlechin merged 2 commits into
mainfrom
refactor/connection-form-progressive-disclosure

Conversation

@datlechin

Copy link
Copy Markdown
Member

The connection editor opened on every section at once: a simple connection had to scroll past SSL, every transport and Appearance to reach its five core fields. This keeps the one scrolling window but shows only General by default and moves the rest behind disclosures.

Changed

  • The form opens on General (identity, connection, authentication). Network (transport + SSL), Appearance and Advanced Options each sit behind a disclosure, matching the one that already held Advanced.
  • A section opens on load when the connection already uses it: a transport or a chosen SSL mode opens Network, a color/icon/tag/group opens Appearance. So editing an SSH or TLS connection never hides what is being edited.
  • A validation error opens the section that holds it, so Save is never blocked by a hidden control.
  • The collapsed Network header summarizes the route, e.g. Direct · SSL.

Why

HIG and the native clients (TablePlus, Postico, Sequel Ace) converge on one form with the core fields visible and SSL/SSH/appearance behind on-demand disclosure, not a wall of sections or a tab bar.

Tests

  • ConnectionFormDisclosureStateTests covers the reveal signals: a transport or client cert marks Network configured, an icon marks Appearance customized, the Network summary names the transport.

Verification

  • macOS build, SwiftLint clean on the changed files, the new unit suite.

Screenshots

Same window size. Before overflows at SSL and certificates with Appearance and Advanced still below the fold; after fits the whole form with Network, Appearance and Advanced collapsed.

Before After
Light Before, light After, light
Dark Before, dark After, dark

@datlechin
datlechin enabled auto-merge (squash) November 22, 2026 00:52
@datlechin
datlechin merged commit e62f9c7 into main Nov 22, 2026
11 checks passed
@datlechin
datlechin deleted the refactor/connection-form-progressive-disclosure branch November 22, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant