Skip to content

feat(windows): TablePro Sync settings, status and end-to-end encryption - #4651

Merged
datlechin merged 17 commits into
mainfrom
feat/windows-sync-settings
Nov 28, 2026
Merged

datlechin merged 17 commits into
mainfrom
feat/windows-sync-settings

Conversation

@datlechin

@datlechin datlechin commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Summary

Settings and status:

  • Interop: TableProCore.OpenSyncAsync and TableProSync over the core's SyncService: status, scopes, key state, categories, history window, provider choice, upload plan, open upload, the prompt for another account, and one wake for the core's status and keys signals. CoreError.Sync carries a refusal's step-up, retry delay, refused change or lock.
  • SyncHost in TablePro.App.Model: one service per app, opened at launch on a PC on TablePro Sync and on first use otherwise, opened again after each sign-in or provider change. The first upload is bound to the sign-in it was confirmed under, waits for the account's keys and keeps TablePro Sync only once the core returned. An upload a restart cut short is kept once it arrived.
  • SyncPane decides the Settings section as the macOS SyncPaneLayout does for TablePro Sync: status (starting, up to date, syncing, waiting to retry, downloading only, waiting for approval, recovery key needed, locked, unavailable with its reason), uploads paused, another account, the plan gate, the server's switches.
  • Settings: a Sync section under Account with Off or TablePro Sync, the status card with Sync now, the server's switches and the category switches. The upload dialog shows the core's counts. AppSettings.Sync keeps the provider, the switches and the last sign-in.
  • Passes when the app comes to the front and when the network comes back.
  • Every sync.*, keys.* and account.* code the core can return on Windows is worded; a new test reads the codes from the core's sources. Failures nobody saw are logged by code only.
  • service_sync joins the plan's features in Settings. LicenseGateTests.EveryPaidCodeOfTheMacAppIsListedOnceAndSettingsShowsOnlyWhatThisAppHas is updated for it.
  • ADR windows/docs/decisions/0029-tablepro-sync.md.

End-to-end encryption (#4655, merged into this branch):

  • Interop: the end-to-end key calls on TableProSync (set-up, replace and recover with the recovery key, approval on both sides, devices and their removal, reset, notices, sign-out's erase); CoreError.StepUp and TableProAccount.StepUpAsync for RFC 9470 step-up.
  • Model flows ported from the macOS app, each over IKeyFlows and tested against a fake: RecoveryKeyFlow, RecoverFlow, ApprovalFlow (1.5 s polling, five words shown once, cancelled on close), RemovalFlow (recovery key, review of devices and teammates, seats, rotation), ResetKeys and ResetProposal, AccountKeysPage, KeysSignOut, StepUpRetry.
  • Settings > Sync > End-to-end encryption: a page with the key state, the recovery key with Replace, requests waiting for approval, devices with Remove, and the reset; lock states with only the ways back each lock leaves.
  • One ContentDialog per flow. The recovery key shows as 14 numbered groups and copies with clipboard history and roaming off; typed keys go into a PasswordBox.
  • The upload dialog hands off to recovery key set-up or approval and opens again after.
  • Sign out erases this computer's keys first, with Try again, Sign out anyway or Cancel when it can't.
  • ADR windows/docs/decisions/0030-end-to-end-encryption.md.

Test plan

  • TablePro.App.Model.Tests: SyncHostTests, SyncPaneTests, SyncSettingsTests, LocalizationTests.Sync.
  • TablePro.Interop.Tests: SyncTests against the real core with no sign-in.
  • UI test SettingsShowSyncOffAndTableProSyncAsksForAPlanWhileSignedOut, screenshots 62-settings-sync and 63-settings-sync-plan, light and dark, from the Windows jobs.
  • TablePro.App.Model.Tests: KeyFlowTests, LocalizationTests.Sync (every key flow string).
  • TablePro.Interop.Tests: SyncTests.KeyCallsNameTheirDraftsAndNeedASignIn.
  • The keys page needs a signed-in account, which the UI tests do not have; the Windows jobs' AOT publish and existing UI tests cover the build.
  • SyncTests leave the history and saved queries' files to the core's own close on Windows, as HistoryTests does.

@datlechin datlechin changed the title feat(windows): TablePro Sync settings and status feat(windows): TablePro Sync settings, status and end-to-end encryption Nov 28, 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