Skip to content

feat(onboarding): setup guide, import hand-off and shortcut presets on every app - #4482

Merged
datlechin merged 13 commits into
mainfrom
feat/onboarding-revamp
Nov 25, 2026
Merged

datlechin merged 13 commits into
mainfrom
feat/onboarding-revamp

Conversation

@datlechin

@datlechin datlechin commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Summary

  • A setup guide replaces the first-launch tour on macOS and iOS and the Get started cards on Windows, and is new on Linux. It shows once, only while the connection library is empty, with a seen flag kept on the device (core ADR 0057).
  • Each step is a hero (app icon or symbol, Step N of 4, large title, one sentence) over large choice cards, in each platform's style: SwiftUI cards with Liquid Glass footer buttons on macOS 26 and bordered ones before, card ListViews on Windows (Fluent), .card rows on Linux (libadwaita), grouped cards on iOS.
  • Steps: where you come from, import from the apps found, first connection or the sample, then appearance and keys. Every step can be skipped. The guide always opens on its first step; when a launch probe finds another app with data, "Import from Another App" is selected and names the apps found.
  • Help > Setup Guide (macOS, Windows), the main menu and Set Up… (Linux) and More > Setup Guide (iOS) open it again.
  • Import cards show each app's real icon, its counts and its password and saved-query options; apps not on the computer are listed in one line under the cards. The review and the Keychain notice open as sheets on macOS.
  • Every import, from the guide or a menu, hands off the same way: one connection written opens it, several are selected in the library, none stays. The core and the FFI return the ids each import wrote, the connections file included.
  • An import from a file or a link (a connections file, a tablepro:// import, a picked export) only selects what it wrote, one connection included, so a file someone sent never connects on its own.
  • Shortcut presets per source app on macOS, Linux and Windows, from one core/crates/core/keymaps.json (core ADR 0058). macOS copies a preset into the overrides once; Linux and Windows remember its id. A preset key wins, the command it displaces has no key, and a key the editor or the platform owns is never taken. Linux menus show the keys in force after a change.
  • The source list comes from the core (sources), with availability Available, NotFound or Unreadable, counts, and a preselection by count, pinned for Rust and Swift by one fixture.
  • The sample database moves to core/resources/Chinook.sqlite with its license, which every app ships.
  • Linux Flatpak reads the other apps' ~/.var/app/<id> folders read-only, with the four lint findings listed (Linux ADR 0048).
  • Fixed: an unreadable app read as 0 connections; an uninstalled app with data was hidden on macOS; Keychain write failures during an import were dropped on macOS and iOS; the Keychain prompt count was too low; a source with several projects imported only the first, and two projects sharing an id mixed their scripts; the source preselected ignored counts; Back reset the password choice; the Globe key made some Control shortcuts read as system shortcuts.

Screenshots

Light Dark
Before: first launch Before light Before dark
Step 1, an app found Origin light Origin dark
Step 2, import Import light Import dark
Step 2, reading Reading light Reading dark
Step 3, first connection First light First dark
Step 4, appearance and keys Options light Options dark

macOS 27, the real window captured while focused, with sample rows.

Windows Server 2025 (the x64 CI runner, SetupGuideTests; no other app is installed there, so Start fresh is selected):

Light Dark
Step 1 Windows origin light Windows origin dark
Step 2, import Windows import light Windows import dark
Step 3, first connection Windows first light Windows first dark
Step 4, appearance and keys Windows options light Windows options dark

iPhone 17 Pro, iOS 27:

Light Dark
First run iOS origin light iOS origin dark
Next page iOS usage light iOS usage dark

Linux (GTK 4.22, libadwaita 1.9, rendered in the dev container, whose accent is orange; stock GNOME shows blue):

Light Dark
Step 1, an app found Linux origin light Linux origin dark
Step 2, import Linux import light Linux import dark
Step 3, first connection Linux first light Linux first dark

Test plan

  • macOS: build PASS; 374 unit tests across the guide, scanner and importer suites PASS; SetupGuideUITests, WelcomeWindowUITests, ConnectionImportReviewUITests 5/5 PASS; SwiftLint 0 violations.
  • iOS: app and test bundle build (no simulator runtime here; CI runs the tests).
  • Core: tablepro-foreign-import, tablepro-storage, tablepro-ffi and tablepro-core tests PASS, clippy clean.
  • Linux (container): rustfmt and clippy with and without default features clean; 3711 lib tests PASS before the redesign, the guide and import suites (41) PASS after it.
  • Windows (macOS host): dotnet build 0 warnings, dotnet test 2506 passed, 26 skipped; SetupView.xaml.cs compiled against WinUI in a scratch project. The WinUI app and UI tests build on Windows in CI.
  • Tests changed on purpose:
    • macOS: WelcomeSheetGateTests replaced by SetupGuideGateTests; SetupGuideModelTests (origin-first probe, removed guarded-count cases); ForeignSourceScannerTests (removed guarded-scan cases); WelcomeWindowUITests; WelcomeViewModelTests (import ending by origin); SignInPromptTests; AppModuleDefaultTests; ImportApplierTests; ConnectionImportReviewUITests; seven DBeaverImporterTests cases whose refs carry the project; TablePlusImporterTests.testConnectionsFileURL_fallsBackToStandalone; the datagrip preset golden.
    • iOS: FirstRunPlanTests, AppStateLibraryTests, OnboardingPreferencesTests, ScenePresenterTests, IOSConnectionImportServiceTests.refusedSecretsAreCounted.
    • Core: foreign-import/tests/dbeaver.rs and ffi/tests/foreign_import.rs references, ImportReport asserts in storage/src/connections/mod.rs.
    • Windows: SetupGuideFlowTests (origin-first probe, AConnectionsFileImportSelectsWhatItWroteAndNeverConnects), SetupGuideTests (cards select, the primary commits), ShellTests first-run case, ForeignImportFormTests preselection case, ForeignImportTests references, PackageTests, KeymapTests (tableplus golden, redo keys, Backspace label), AppSession and eight UI tests that write settings.json seed the seen flag, 27 UI tests open the sample through Help.
    • Linux: services/setup_guide.rs and ui/setup_guide/tests.rs (origin-first probe, cards then the pill), accelerators.rs shortcuts test, the primary menu count in workspace/tests/shell.rs, the tableplus golden, an_import_shows_where_each_connection_goes_before_writing, the import hand-off tests in connections.rs.

# Conflicts:
#	apple/TablePro/Views/Account/SignInPrompt.swift
#	apple/project.yml
#	core/docs/decisions/README.md
#	linux/po/vi.po
#	scripts/ci/detect-changed-paths.sh
#	scripts/ci/test_detect_changed_paths.py
#	windows/src/TablePro.Interop/Generated/tablepro_ffi.cs
@datlechin
datlechin merged commit e0f17c7 into main Nov 25, 2026
2 checks passed
@datlechin
datlechin deleted the feat/onboarding-revamp branch November 25, 2026 18:34
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