Repository navigation
feat(sync): approved devices tell the person when another device asks for the account's keys - #4751
Merged
Merged
Conversation
… for the account's keys
datlechin
force-pushed
the
feat/approval-request-notice
branch
from
November 30, 2026 02:21
44463a8 to
b79e702
Compare
…-notice # Conflicts: # apple/TablePro/Views/Sync/Keys/AccountKeysModel.swift # core/docs/decisions/README.md # windows/src/TablePro.App.Model/AccountKeysPage.cs
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
keys_changedwhen the open approval requests change, including a launch's first pass that finds one (core ADR 0109, amends 0056). No new listener method, no polling in the apps.ApprovalRequestandApprovalRequestInfocarryexpires_at_us. C# bindings regenerated.ApprovalRequestNotifiertells each request once: a notification while TablePro is in the background and Settings > Notifications is on, an alert with Approve… and Not Now while it is in front, nothing while End-to-End Encryption is on screen. One prompt at a time.ApprovalRequestNotices(App.Model): an app notification through the Windows App SDK while away, a bar on the window in use while in front, the review on the End-to-end encryption page.FakeAccountKeyFlows.request,KeyFlowTestsand the notification presenter fakes take the new field anddeliveredIdentifiers().Screenshots
Approval alert while TablePro is in front (light, dark):
Settings > Notifications. Before, the description ended at "or an extension can't load or update."
The alert and pane are the app's own views rendered in a throwaway hosted test. A system notification and the Windows bar need a live request from another device, so they have no shot.
Test plan
a_request_waiting_for_approval_reaches_the_app_as_a_key_change_and_so_does_its_endanda_request_the_first_pass_finds_reaches_the_app_and_none_found_says_nothingfail on main;the_approver_lists_a_request_with_the_row_that_wrote_itchecks the expiry.cargo test -p tablepro-sync --test engine168 passed,--test device_flows approval43 passed,-p tablepro-ffi --lib syncpassed,cargo clippy -p tablepro-sync -p tablepro-sync-testing -p tablepro-ffi --all-targets -D warningsclean,cargo fmt --checkclean.verify.sh testof ApprovalRequestNotifierTests, AccountKeysModelTests, AccountApprovalFlowTests, AccountKeysScreenTests and the notification suites: PASS, 90 executed.verify.sh lintPASS,verify.sh l10nPASS.verify.sh --platform windows buildPASS;test TablePro.App.Model.TestsPASS, 1361 executed;test TablePro.Interop.TestsPASS, 242 executed. The WinUI app and its UI tests run in this PR's Windows CI.