Commit Graph
887 Commits
Author SHA1 Message Date
dab246 16e1435e2c TF-5022 T-06 Drop redundant experimental hide and clarify ADR toggle-off ownership 2026-11-13 10:01:58 +07:00
dab246 cef3ae91a4 TF-5022 T-06 Add Delegation preference toggle and canSelect gate 2026-11-13 10:01:58 +07:00
Dat H. Pham 238ece5d9c TF-5022 Add failing test: host removed while the loading dialog is up 2026-11-13 10:01:57 +07:00
dab246 2145e6c590 TF-5022 T-05 Clear DropPending dashboard action so equal drops re-fire 2026-11-13 10:01:57 +07:00
dab246 f7d13711ab TF-5022 T-05 Keep switch blocked until dialog closes and cancel on back 2026-11-13 10:01:57 +07:00
dab246 0211ca0a66 TF-5022 T-05 Address review: single-sub shortcuts, Cancel focus, host child 2026-11-13 10:01:57 +07:00
dab246 08c49e3926 TF-5022 T-05 Drop debounced mail shortcuts when a switch blocks input 2026-11-13 10:01:57 +07:00
dab246 47c37ab9dc TF-5022 T-05 Show the account switch loading dialog with Cancel and Escape 2026-11-13 10:01:57 +07:00
1f321d0f5f TF-5022 T-04 Keep delegated mail out of offline storage (#5118)
* TF-5022 T-04 Keep delegated mail out of offline storage and delete local data when access ends

* TF-5022 Extend AccountCacheClient in MemoryAccountCacheClient and drop unused imports in delegation tests

* TF-5022 Read CacheAccountKey from the last username part, keep EndedDelegationStoreImpl content rows when file cleanup fails, match notification emailId exactly and remove delegated composer snapshots in logoutToSignInNewAccount

* TF-5022 Guard sessionStorage access in EndedDelegationStoreImpl so blocked web storage no longer aborts logout or delegated cleanup

* test(delegation): report unsent mail lost in a partially failed cleanup

* TF-5022 Address review on cleanup counts, cache key order, Hive key scans and composer client lookup

* test(delegation): check sign-in screens pass session origin to dashboard

* test(caching): cover empty user, empty account and mismatched keys

* test(delegation): cover read failure, nothing to delete and delegated writes

* test(delegation): share no-cleanup asserts and count lost only after delete

---------

Co-authored-by: Dang Dat <tddang@linagora.com>
Co-authored-by: Dat H. Pham <dphamhoang@linagora.com>
2026-11-13 10:01:57 +07:00
dab246 26152277cc TF-5022 Address review comments on the per-account WebSocket, FCM batch and NSE fetch 2026-11-13 10:01:57 +07:00
dab246 adc27802e8 TF-5022 T-03 Filter WebSocket and FCM state changes per account with StateChangeAccountFilter, merge debounced changes per account in WebSocketController, FcmMessageController and EmailChangeListener, and read delegatedAccounts in the iOS notification extension 2026-11-13 10:01:57 +07:00
dab246 aab8a8ff60 TF-5022 Skip MailboxDashBoardController._handleIdentityCache while Settings cannot open on the shown account 2026-11-13 10:01:57 +07:00
dab246 b124146177 TF-5022 Skip the always-read-receipt preference in setupEmailRequestReadReceiptFlag while a delegated account is shown 2026-11-13 10:01:57 +07:00
dab246 219b01cf37 TF-5022 Rename me-address helpers to shown-address helpers and QuickSearchFilter.fromMe to fromShown 2026-11-13 10:01:57 +07:00
dab246 4df2ccd9d8 TF-5022 Cover per-shown-account web composer cache reads, own-account reopen and same-account reload in MailboxDashBoardController tests 2026-11-13 10:01:57 +07:00
dab246 aefbd6aa3a TF-5022 Fall back MailboxDashBoardController.ownerEmailAddress to the identity address, reload labels in DashboardAccountSwitchView.loadAccount, consume the composer cache per shown account, add SearchEmailFilter.isFromMeFilter and require CalendarEventCardViewState.ownerEmailAddresses 2026-11-13 10:01:57 +07:00
Dang Dat a5ec8ab20b test: cover thread detail load for username-only personal account 2026-11-13 10:01:57 +07:00
dab246 e22ad77bb0 TF-5022 Point composer, identities and me-matching at the shown account (T-02.5) 2026-11-13 10:01:57 +07:00
Dat Vu 17ae5d76c9 TF-5022 T-02.4 Hide Settings while a delegated account is shown (#5078)
* TF-5022 Add ShownAccountCapabilities.canOpenSettings, shownAccountCapabilitiesProvider and ActiveAccountReader.shownAccountCapabilities

* TF-5022 Refuse goToSettings and goToVacationSetting and add SettingsRouteGuard on /settings while a delegated account is shown

* TF-5022 Hide Manage account, the mobile mailbox bar avatar and the vacation setting link while a delegated account is shown, extract DashboardNavigationBar and CozyProfileSettingIcon

* TF-5022 Point the dashboard reader scan comments at T-02.5 for the composer, identities and labels

* TF-5022 Name ShownAccountCapabilities.canOpenSettings in ADR-0114 Settings and keep mobile Sign out reachable in T-09

* TF-5022 Extract DashboardVacationBanner from the vacation banners of the dashboard, email, thread and thread detail views

* TF-5022 Keep mobile Sign out hidden with Settings while a delegated account is shown in ADR-0114

* TF-5022 Add ShownAccountCapabilities.canCreateFilter and route the rule filter entries through it instead of ActiveAccountReader.isDelegatedAccountShown
2026-11-13 10:01:57 +07:00
Dat VuandDat H. Pham a2edefd617 TF-5022 T-02.3 Run the switch view steps in the dashboard (#5073)
* TF-5022 Report the folder and email list loads of a switch attempt to ShownAccountLoadTracker and reload the shown account through watchShownReload

* TF-5022 Implement AccountSwitchView in DashboardAccountSwitchView with ShownMailboxSelection, the shown account input blocker and the closing of open popups

* TF-5022 Close every route above the dashboard in DashboardAccountSwitchView.blockInput, count the mobile composer route in DashboardShownMailboxSelection.hasOpenComposer, and test the email list report order with the real MailboxController and ThreadController

* TF-5022 Gate T-02.6 on T-06 delegationEnabledProvider in ADR-0114

* TF-5022 Test that a switch closes menu submenus and drops mail list shortcuts

* TF-5022 Keep key presses from the dashboard while a switch blocks its input

* TF-5022 Count a load as failed in ShownAccountStateSubscription when onDone throws

* TF-5022 Rename ShownMailboxSelection to AccountSwitchDashboard with resetForNewAccount and GetXAccountSwitchDashboard

---------

Co-authored-by: Dat H. Pham <dphamhoang@linagora.com>
2026-11-13 10:01:57 +07:00
dab246 7ebcdc4c63 TF-5022 Drop a stale spam banner cache read once another account is shown 2026-11-13 10:01:57 +07:00
dab246 89777a9e91 TF-5022 Drop stale folder search results once another account is shown 2026-11-13 10:01:57 +07:00
dab246 4bc03e4e00 TF-5022 Route the error of a load that fails after ShownAccountStateSubscription.cancel to the stale path, so it never surfaces as an uncaught error 2026-11-13 10:01:57 +07:00
dab246 7e11d74519 TF-5022 Await the websocket refreshes of MailboxController and ThreadController through awaitShownAccountState, which drops a stale result but still ends a dead session, and skip a folder change queued before a switch 2026-11-13 10:01:57 +07:00
dab246 d859db1806 TF-5022 Say that leaving the search resets the session in the SearchEmailNotifier late response test 2026-11-13 10:01:57 +07:00
dab246 f086666342 TF-5022 Drop an email change that ThreadController queued before another account was shown once its email state is cleared 2026-11-13 10:01:57 +07:00
dab246 199b3e5ad5 TF-5022 Parse the calendar invitation of the opened email through consumeShownAccountState in SingleEmailController 2026-11-13 10:01:57 +07:00
dab246 8fac4cdd2d TF-5022 Load the quota of QuotasController through consumeShownAccountState, so a quota arriving after endSession never reaches the view 2026-11-13 10:01:57 +07:00
dab246 44cc4d6caf TF-5022 Check the shown account again when Open is tapped on the restored messages toast of MailboxDashBoardController 2026-11-13 10:01:56 +07:00
dab246 a842a68b75 TF-5022 Stamp the Retry action of showRetryToast through ShownAccountStateConsumer.retryActionOf, so a Retry tapped after another account is shown never loads the account shown before 2026-11-13 10:01:56 +07:00
dab246 9a2969349f TF-5022 Test that RestoredDeletedMessageInteractor and GetRestoredDeletedMessageInterator carry the account the restore started on 2026-11-13 10:01:56 +07:00
dab246 efbc164154 TF-5022 Carry the AccountId in RestoreDeletedMessageSuccess and GetRestoredDeletedMessageSuccess so MailboxDashBoardController polls and refreshes only the account the restore started on 2026-11-13 10:01:56 +07:00
dab246 40a2d29569 TF-5022 Drop the stale results of an account shown before in MailboxController, ThreadController, QuotasController, SingleEmailController and ThreadDetailController 2026-11-13 10:01:56 +07:00
dab246 ed331ed707 TF-5022 Add SwitchAttemptStamp and ShownAccountStateConsumer.consumeShownAccountState, which drop the view results of an ended switch attempt 2026-11-13 10:01:56 +07:00
dab246 9a8275beb0 TF-5022 Move the shown account groups of the MailboxDashBoardController tests into mailbox_dashboard_controller_shown_account_test.dart with a shared harness 2026-11-13 10:01:56 +07:00
dab246 ade73f6cd0 TF-5022 Invalidate activeAccountProvider in RiverpodActiveAccountSource.clear so MailboxDashBoardController.onInit clears it while the route builds 2026-11-13 09:53:18 +07:00
Dat H. Pham cef1c41d98 TF-5022 Test the dashboard start inside a build and the reader binding order 2026-11-13 09:53:18 +07:00
dab246 7781fb248f TF-5022 Register the shown account in the folder load-more tests of ThreadController, which now reads it from ActiveAccountSource 2026-11-13 09:53:18 +07:00
dab246 7b72aa8185 TF-5022 Suggest the contacts of the shown account in SearchEmailController and AdvancedFilterController and update ADR-0114 2026-11-13 09:53:18 +07:00
dab246 c31e79ebe6 TF-5022 Hide Create filter in the folder menus of MailboxController and SearchMailboxController while a delegated account is shown 2026-11-13 09:53:18 +07:00
dab246 49ab203cc5 TF-5022 Hide the quick rule filter of EmailActionReactor while a delegated account is shown and create it in the shown account from SingleEmailController and ThreadDetailController 2026-11-13 09:53:18 +07:00
dab246 97a53e6099 TF-5022 Clear the shown account when MailboxDashBoardController starts and apply the session after my account 2026-11-13 09:53:18 +07:00
dab246 176b1e2812 TF-5022 Replace ActiveAccountBridge with ActiveAccountSource and ActiveAccountWriter, and watch the shown account through watchShown in MailboxController and QuotasController 2026-11-13 09:53:18 +07:00
dab246 4c4cd823cd TF-5022 Test that emptySpamFolderAction never falls back to my own account without a shown account 2026-11-13 09:53:18 +07:00
dab246 d5a768c5cd TF-5022 List the own-account readers of MailboxDashBoardController per member in the reader scan 2026-11-13 09:53:18 +07:00
dab246 ee27ed375f TF-5022 Empty the spam folder of the shown account in emptySpamFolderAction 2026-11-13 09:53:17 +07:00
dab246 65c591d866 TF-5022 Add a source-scan test listing the readers of the dashboard accountId and of ownEmailAddress 2026-11-13 09:53:17 +07:00
dab246 a540651a3b TF-5022 Load the quota of the shown account in the mailbox view and my own quota in Settings 2026-11-13 09:53:17 +07:00
dab246 e39b0ba948 TF-5022 Read the shown account in the email list, email search, thread detail and opened email 2026-11-13 09:53:17 +07:00
dab246 38f65a04e6 TF-5022 Read the shown account in the folder list, folder search and the dashboard 2026-11-13 09:53:17 +07:00