Skip to content

refactor(connection-form): rebuild the macOS connection editor as a sidebar window - #4417

Merged
datlechin merged 15 commits into
mainfrom
refactor/connection-editor
Nov 23, 2026
Merged

datlechin merged 15 commits into
mainfrom
refactor/connection-editor

Conversation

@datlechin

@datlechin datlechin commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • The macOS connection editor is a window with a sidebar of sections: General, SSH & Proxies (Location for file databases), SSL/TLS, Appearance, Safe Mode, AI & MCP, Startup, Advanced. Sections that do not apply are hidden. Replaces the single scrolling form with hand-drawn disclosures.
  • New Connection picks the database type first; the editor opens on General with the cursor in Host. Name is optional and suggested from the address.
  • A section with a problem shows a warning mark; the bottom bar names the first problem and jumps to the field. Problems show once a field is edited or Save is tried, never on a fresh form.
  • Bottom bar: More (Copy as URL without passwords, Delete…), Test Connection with the server version and time, or a popover naming the step that failed; Cancel, Save, Save & Connect.
  • Closing, Escape, Cancel or Quit with unsaved changes asks Save / Don't Save / Cancel.
  • Pasting a connection URL into Host fills the form, with Undo. On a saved connection it never renames, lowers Safe Mode or weakens TLS.
  • Changing the type keeps what the new type supports and confirms what it drops.
  • Environment shows on Welcome rows and in the connection switcher; Production defaults a new connection's Safe Mode to Alert. env= in a URL sets Environment.
  • Model: one value draft, a pure engine (sections, rows, defaults, issues per row) and one store replace ConnectionFormCoordinator and 13 pane view models. Save writes only what the editor changed onto a fresh read, then enforces the record invariants in one place; Test uses the definition on screen.
  • Fixed: Save reverting a rename, group move, Safe Mode or Manual Commit made elsewhere; Test keeping "Connected" after edits; Test building a different record than Save; secrets deleted when a profile changed or a Keychain write failed; Save blocked by a field that was not on screen; port fields accepting 0, 99999 or " 5432 "; the file panel freezing while browsing Documents; copy naming another app, middle dots and tabs that no longer exist.
  • Stored SSH secrets can be shown from the editor, after authentication; "Save These as a Profile" keeps one profile id across retries.
  • TLS recovery messages in PluginKit and the ClickHouse, Trino, Qdrant and etcd plugins point at the SSL/TLS settings instead of a Network or Options tab. No ABI change.
  • Tests changed on purpose: the old reset-on-retype tests, ConnectionFormDisclosureUITests, SQLCodeFieldThemeTests (editor has no bezel), SSLHandshakeErrorTests (new label), WorkspaceRailStoreTests tile tint, and the old pane view model tests moved onto the engine and store.

Test plan

  • Unit plan: 33,204 tests pass locally (macOS 27) and in CI. New engine, store, shell and focus suites cover the merge (keep, overwrite, delete, no resurrection, transports), secret ordering and retries, approval and Test of the reviewed definition, issue visibility, retype, paste URL, ports and record invariants.
  • UI: NewConnectionCommandUITests and the new ConnectionEditorIssueJumpUITests (an issue on another section, jump, fix, Save) pass in CI's UI plan.
  • verify.sh plugins and verify.sh abi: PASS.
  • Typing with all eight sections visited: 32 ms per keystroke before, 9 ms after.
  • Not automated: VoiceOver pass over the sidebar, and macOS 13 to 15 rendering (built and run on macOS 27 only).

Screenshots

Before After
Before: type chooser After: type chooser
Before: new PostgreSQL connection After: General
Before: SSH tunnel After: SSH and Proxies
Before: Verify CA without a CA file After: SSL/TLS with the issue shown
Before: masking rules After: Safe Mode with masking rules
Before: Advanced Options After: Advanced

After, dark: General
After: a failed test with its details

Docs: TableProApp/docs#267 (merge after this one).

@datlechin
datlechin merged commit f67b55a into main Nov 23, 2026
20 of 22 checks passed
@datlechin
datlechin deleted the refactor/connection-editor branch November 23, 2026 01:00
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