refactor(connection-form): native HIG rebuild + categorized chooser sheet - #995
Merged
Conversation
…hot.ConnectionConfig
…type chooser sheet
…I Bindable can synthesize bindings
…alls main-actor PluginManager)
…se rawValue for snapshot lookups (MariaDB icon/tagline)
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Full rebuild of TablePro's Connection Form using native macOS SwiftUI patterns. Replaces the ~2200-line tab-based custom form with
NavigationSplitView+ per-pane@ObservableViewModels + Coordinator, and introduces a categorized database type chooser sheet that opens before the form.Relational,Document,Key-Value,Analytical,Wide-Column,Cloud Native,Coordination & Config),NSSearchField(wrapped viaNSViewRepresentable), brand-colored driver icons, single-click select / double-click commit. Apple "Add Account" pattern.NavigationSplitViewwith sidebar (General / SSH Tunnel / SSL/TLS / Customization / Advanced),.formStyle(.grouped)Form rows. Dynamic titleNew <DB> Connection. Test Connection moved inline below auth section.MySQL,MariaDB,PostgreSQL,Oracle,MongoDB,Redis,ClickHouse, etc.) tinted onto template-rendered icons.DatabaseCategoryenum,taglinefield added toPluginMetadataSnapshot.ConnectionConfig. Alias registration (MariaDB→MySQL,Redshift→PostgreSQL,ScyllaDB→Cassandra,Turso→libSQL) preserves per-alias displayName, icon, tagline, category.iconName/category/taglinenow userawValue(not aliasedpluginTypeId) so MariaDB shows its own icon and tagline.Files removed (legacy)
ConnectionFormView.swift(root)ConnectionFormView+Footer.swiftConnectionFormView+GeneralTab.swiftConnectionFormView+Helpers.swiftConnectionFormView+ClipboardBanner.swiftAction helpers (Keychain flow, MongoDB normalize, plugin install error handling, SSH tunnel test, URL parser fan-out) ported 1:1 into
ConnectionFormCoordinator.Files added
Test plan
swiftlint lint --strictexits 0