Skip to content

feat(settings): native macOS Settings sidebar with pushed pages and history - #4413

Merged
datlechin merged 49 commits into
mainfrom
settings-sidebar-revamp
Nov 22, 2026
Merged

datlechin merged 49 commits into
mainfrom
settings-sidebar-revamp

Conversation

@datlechin

@datlechin datlechin commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Window

  • The 12-tab toolbar window is replaced by a sidebar window: an AppKit source-list sidebar with search, and one retained SwiftUI NavigationStack per pane for pushed pages.
  • Back/Forward is real history across panes and pages (toolbar group, View > Back/Forward, Edit > Find).
  • The window title is the current pane or page title. "Untitled" is gone.
  • On open, focus sits on the sidebar. Minimize works. Width is fixed at 740, height defaults to 700. The frame autosave name changed, so every window size resets once.
  • Sidebar uses Xcode-style accent glyphs with no tiles. Its search matches panes and pages.
  • Deep links: tablepro://settings/<pane>/<page> and plugins/<id>. Old ids still resolve.
  • 14 panes: General, Sidebar & Tabs, Connections, Appearance, Editor, Data, Keyboard, Profiles, Notifications, AI, MCP, Extensions, iCloud Sync, Account.

Panes (all rebuilt on one set of components: grouped Form, no colon labels, help as label subtitles, commit-once text and number fields, a list bar inside the list border)

  • General: Software Update and Command Line Tool are pages. Linked Folders and Trusted Links moved to Connections. Reset lists what it keeps.
  • Sidebar & Tabs and Connections are new panes, split out of General.
  • Appearance: Manage Themes is a page with a native +/−/actions bar. Undo works after going Back.
  • Editor: SQL Formatting is a page. A missing font shows "(Not Installed)" instead of a blank pop-up.
  • Data: regrouped. One "Query result limit" pop-up replaces the switch plus picker. Query History and Data Rewind are pages. A failed clear shows an error.
  • Keyboard: search is in the toolbar (Cmd-F). The recorder is a standard button. A refused shortcut is explained under its row. Rows have a context menu. Restore Defaults asks first.
  • Notifications: one switch with a subtitle. The "Notifications are off" notice shows only when macOS denied them.
  • AI: a provider opens as a page. Name, URL and key change in an Edit Connection sheet that never overwrites a key it did not load. Slash Commands is a page.
  • MCP: Tokens and Approved Connections are pages. Port and limits are real number fields that write once. Revoke and Forget All ask first.
  • Extensions: plugins grouped by kind, a page per plugin, Couldn't Load pages with repair actions. Uninstall moves to the Trash. The filter is in the toolbar.
  • Profiles: "SSH Servers" is now "SSH Profiles". Rows have an info button and a context menu (Edit, Duplicate, Delete). A locked Keychain no longer wipes a stored secret on save.
  • iCloud Sync: What Syncs is inline and editable before the first sync. The switch can be turned off with a lapsed license.
  • Account: Features, Devices, Teams and Offline File and License Key are pages. Sign Out and Remove device ask first.

App-wide

  • Settings are stored as per-category slices. About 30 views observe only the slice they read, so a Settings write no longer re-renders the sidebar, grid and editor.
  • Fixes: plugin notifications play the system sound. {{body}} slash commands fill in the typed text. AI Policy shows while AI is off. The connection form shows the real global query timeout. The list add/remove bar is native app-wide.

Integration (done)

  • Old shims deleted: SettingsSubpage, SettingsDrillInChrome, SettingsPagePlaceholder. AppSettingsManager no longer forwards slice changes and is not an ObservableObject.
  • New SwiftLint rules: settings_label_trailing_colon and settings_caption_font, both errors, 0 hits.
  • Localization: 359 keys extracted. 87 translations carried from the old colon keys ("Language:" to "Language").
  • Search only finds visible labels. AI pages are hidden from navigation while AI is off, and MCP pages while the server is off.
  • 36 changelog fragments. main is merged in.

Still open in this PR

Before (main)

The 12-tab toolbar window on main, captured with the same sandbox.

Pane Light Dark
General General before, light General before, dark
Appearance Appearance before, light Appearance before, dark
Keyboard Keyboard before, light Keyboard before, dark
Extensions Extensions before, light Extensions before, dark
AI AI before, light AI before, dark
Account Account before, light Account before, dark

Screenshots

The Debug build at this head, in a fresh sandbox. Each shot is the Settings window alone, taken by window id. MCP Tokens and Approved Connections need the server on, so they are not here.

Pane Light Dark
General General, light General, dark
Appearance Appearance, light Appearance, dark
Notifications Notifications, light Notifications, dark
Keyboard Keyboard, light Keyboard, dark
Connections (see dark) Connections, dark
Profiles Profiles, light Profiles, dark
Sidebar & Tabs Sidebar & Tabs, light Sidebar & Tabs, dark
Editor Editor, light Editor, dark
Data Data, light Data, dark
AI AI, light AI, dark
MCP MCP, light MCP, dark
Extensions Extensions, light Extensions, dark
iCloud Sync iCloud Sync, light iCloud Sync, dark
Account Account, light Account, dark
Page Light Dark
General > Software Update General > Software Update, light General > Software Update, dark
Appearance > Manage Themes Appearance > Manage Themes, light Appearance > Manage Themes, dark
Connections > Linked Folders Connections > Linked Folders, light Connections > Linked Folders, dark
Connections > Trusted Links Connections > Trusted Links, light Connections > Trusted Links, dark
Editor > SQL Formatting Editor > SQL Formatting, light Editor > SQL Formatting, dark
Data > Query History Data > Query History, light Data > Query History, dark
AI > Slash Commands AI > Slash Commands, light AI > Slash Commands, dark
Extensions > SQLite plugin Extensions > SQLite plugin, light Extensions > SQLite plugin, dark
Account > Features Account > Features, light Account > Features, dark

Test plan

  • Full Unit plan after integration: 33,012 run, all unit tests pass.
  • Settings UI tests: SettingsWindowUITests, SettingsDeeplinkUITests, AppearanceSettingsUITests, WelcomeWindowUITests, EmacsKeyBindingsUITests, VimNormalModeChordUITests, AuxiliaryWindowCloseUITests, MCPConnectClientUITests, AccountSettingsUITests, KeyboardSettingsUITests, SignInWindowUITests and AgentModeRoundTripUITests all pass.
  • verify.sh lint on all 163 changed Swift files: 0 violations. Source ratchets did not grow (view-singleton-reads 453 -> 445).
  • Codex reviews:
    • Phase A: 4 findings, all closed by the pane rewrite.
    • CI found a real accessibility bug: a hidden pane host stacked above the shown one answered VoiceOver and XCUITest hit tests, so a re-shown pane's rows could not be reached. The shown host now moves to the top. Covered by reshownPaneAnswersAccessibilityHitTests.
    • Whole branch against main: 1 P2. A custom slash command picked from the menu ran the built-in when they shared a name. Fixed, with tests.
    • Security pass on AI, MCP, Profiles, Connections and Extensions: 1 medium. SSH secrets copied from a Keychain could be revealed without authentication. Fixed, with SSHSecretRevealProvenanceTests.
  • Tests changed on purpose, because the pinned behavior changed:
    • WindowOpenerTests: the presenter now takes a SettingsRequest.
    • SettingsWindowNavigationTests: backEnablementTracksDepth now checks history, and noLocationKeepsAVisibleWindowInPlace is new.
    • BareKeyValidationTests
    • ThemeLibraryModelTests: trashAndUndo and importSeveralFilesWithMixedResults.
    • AppearancePaneListTests, and both AppearanceSettingsUITests cases.
    • WelcomeViewModelTeamCatalogTests.folderPanelNamesTheConnectionsPage
    • MCPServerStoreTests.invalidConfigurationIsNotStored
    • SettingsSliceTests.facadeWritePublishesOnlyItsSlice: the manager no longer publishes.
    • LicensePresentationTests: deviceLimitGate and lapsedOfflineFileOpensSettings now open the Account pages.
    • GeneralSettingsTests reads the colonless "Language" key.
    • SettingsWindowUITests.testDarkAppearanceScreenshots removed. SettingsScreenshotUITests replaces it and runs only with TEST_RUNNER_TABLEPRO_SETTINGS_SHOTS=1.
  • Not verified yet: macOS 13 to 15 rendering (toolbar capsule, two-Text subtitles, list bar), VoiceOver pass.

… fan-out

- NULL display commits on submit/blur, not per character (was reformatting every open grid)
- equality guards on general/appearance/editor/dataGrid/tabs/keyboard/ai didSets
- gate language.apply() and dateFormat reformat behind the field that changed
- move NULL display and row-cap validation into the section footer
- drop the fake push chevron from the AI provider and Profiles rows (they open sheets)
- Notifications threshold reads "1 minute" not "1 minutes"
- distinct a11y id for the Keyboard shortcut search
- probe Apple Intelligence availability on appear, not every AI form pass
- Profiles loads once on appear instead of re-decoding connections.json on every visit
Picking a {{body}} slash command from the chat menu now puts "/name " in the composer instead of running it with an empty body.
@datlechin datlechin changed the title feat(settings): macOS Settings sidebar navigation feat(settings): native macOS Settings sidebar with pushed pages and history Nov 22, 2026
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