46 Commits
Author SHA1 Message Date
Dat Dang 87bf42f3e8 TF-3011 Cap maxChanges by maxObjectsInGet (#5167) 2026-11-27 12:15:31 +07:00
Dat Dang 62f5e8fd47 Fix web Patrol flakes and remove dead GitHub nightly Android workflow (#5127) 2026-11-18 18:54:05 +07:00
Dat Vu 9f387305f5 TF-5022 T-07.1 Keep the shown delegated account in the web URL (#5137)
* TF-5022 T-07.1 Write the shown delegated account into web URLs and parse it back in RouteUtils and NavigationRouter

* TF-5022 T-07.1 Preview the .eml of the URL account in EmailPreviewerController via SessionDelegationExtension.delegatedAccountIdOrMine

* TF-5022 T-07.1 Reset LabelController.isLabelsLoaded when checkLabelSettingState gets another account

* TF-5022 T-07.1 Start on the URL account via startOnUrlAccount in MailboxController

* TF-5022 T-07.1 Open Inbox instead of the unknown page for missing delegated link targets in MailboxController and ThreadController

* TF-5022 T-07.1 Add the stand-alone web e2e naming the shown delegated account in the URL

* TF-5022 T-07.1 Return no account from RouteUtils.parseAccountId for a malformed account instead of throwing

* TF-5022 T-07.1 Open nested .eml links on the account of the tab in EmailPreviewerController.emlPreviewUriOnAccount

* TF-5022 T-07.1 Ignore a late GetAllLabelFailure of another account in LabelController.handleFailureViewState

* TF-5022 T-07.1 Open Inbox via _switchBackToMailboxDefault in MailboxController.openMissingTargetFromLocationBar

* TF-5022 T-07.1 Leave search to Inbox only on NotFoundEmailException from ThreadAPI.getEmailById in ThreadController

* TF-5022 T-07.1 Keep the shown delegated account in RouteUtils.generateNavigationRoute dashboard paths
2026-11-13 17:22:42 +07:00
dab246 3d23efb3b0 TF-5022 T-05 Keep switch blocked until dialog closes and cancel on back 2026-11-13 17:22:21 +07:00
dab246 285fa771f8 TF-5022 T-05 Address review: single-sub shortcuts, Cancel focus, host child 2026-11-13 17:22:21 +07:00
dab246 1b9775a1b9 TF-5022 T-05 Drop debounced mail shortcuts when a switch blocks input 2026-11-13 17:22:21 +07:00
Dat VuandDat H. Pham 0204e80544 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 17:22:03 +07:00
dab246 41e5591d9d TF-5022 Drop an email change that ThreadController queued before another account was shown once its email state is cleared 2026-11-13 17:22:03 +07:00
dab246 72f982006d TF-5022 Drop the stale results of an account shown before in MailboxController, ThreadController, QuotasController, SingleEmailController and ThreadDetailController 2026-11-13 17:22:03 +07:00
dab246 cae5d98eca TF-5022 Register the shown account in the folder load-more tests of ThreadController, which now reads it from ActiveAccountSource 2026-11-13 17:22:03 +07:00
dab246 2205d7843b TF-5022 Replace ActiveAccountBridge with ActiveAccountSource and ActiveAccountWriter, and watch the shown account through watchShown in MailboxController and QuotasController 2026-11-13 17:22:03 +07:00
dab246 514646663f TF-5022 Read the shown account in the email list, email search, thread detail and opened email 2026-11-13 17:22:02 +07:00
Dat H. Pham e6b0b3fbed List each thread once when a folder loads more with thread view on (#5017) 2026-10-28 09:44:22 +07:00
dab246 ea9b0d495f Cover collapseThreads on email-change refresh, including a short virtual-folder page 2026-10-20 14:57:03 +07:00
dab246 2f318eb150 Cover full-page and empty-page rows of the short-first-page auto-load-more condition 2026-10-20 14:57:03 +07:00
Benoit TELLIERandClaude Opus 5.5 0d2b8cdad7 Only force auto-load-more on a short first page when threads are collapsed
A first Email/query page shorter than the limit means the mailbox is
exhausted unless collapseThreads is on. Forcing canLoadMore whenever the
list did not fill the viewport sent a useless 'before' Email/query on
every open or refresh of a small folder.

Closes #4943

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-20 14:57:03 +07:00
dab246 6a3ba5f6ef Extract RouteUtils.dashboardBrowserRouteTitle, fix reconcile idle no-op, expose searchLayoutCoordinator @visibleForTesting, use selectedMailboxForDisplay in quick search 2026-08-10 16:22:45 +07:00
dab246 e5f5e16c4e Fix search result/state leaks: resize & system-back restore, search URL labelId 2026-08-10 16:22:45 +07:00
dab246 870169098a Remove unused imports in ThreadController and thread_controller_test 2026-08-10 16:22:45 +07:00
dab246 9ec3883c4a Record desktop ownership in _handoffToDesktop so takeDesktopSearchPresentation succeeds after mobile-to-desktop handoff 2026-08-10 16:22:45 +07:00
dab246 a9dc7bd674 Test SearchLayoutTransitionState/handoff and de-leak MailboxDashboard widget tests 2026-08-10 16:22:45 +07:00
Dat Vu e1033744a1 TF-4646 SSOT Part 5.2 — PR 3 — Retire the last web-search Obx/memory state to Riverpod (#4707) 2026-08-10 16:22:45 +07:00
Dat Vu 42053d2200 TF-4646 SSOT Part 5.1 — PR 2 — Route web results through the central executor + search SSOT (#4706) 2026-08-10 16:22:45 +07:00
Dat H. Pham 990b86ce08 fix: handle yield* error inside interactor (#4721) 2026-07-27 14:07:32 +07:00
dab246 880dbeb521 fix: handle collapseThreads partial-page in auto-load-more 2026-05-27 16:10:47 +07:00
dab246 b978c7980b fix: add more test case for load more
Signed-off-by: dab246 <tdvu@linagora.com>
2026-05-27 16:10:47 +07:00
dab246 9a11b23ba9 Extract AutoLoadMorePolicy 2026-05-27 16:10:47 +07:00
dab246 2f22b08ce8 Fix auto-load-more over-trigger on web large-screen browser
Extract shouldAutoLoadMoreByEstimatedHeight as a testable static method
and use strict < instead of <= so an estimated height equal to the
viewport no longer triggers a redundant load — actual rendered height
is likely larger than the 40 px estimate and already overflows.
2026-05-27 16:10:47 +07:00
dab246 f7b5e76d5c Fix auto-load-more infinite loop on non-web large screens
Use maxScrollExtent <= 0 instead of maxScrollExtent <= viewportDimension
so auto-load only triggers when the list has not yet filled the viewport.
Also set canLoadMore based on page-size comparison to avoid showing the
Load More button when the server has returned the final partial page.
2026-05-27 16:10:47 +07:00
Dat Vu 77fb2f2deb TF-4400 Enable collapse threads on Force Query path (#4422) 2026-05-19 13:33:18 +07:00
Dat Vu 746ebe8a23 TF-4363 [Thread] Display by collapsed thread in search (#4364) 2026-04-23 18:20:10 +07:00
Dat Vu 1c1d50a9d2 Fix email list does not automatically refill after bulk delete (#4323) 2026-02-12 16:02:12 +07:00
Dat Vu 87115ed5a5 TF-4314 Fix unread emails disappear blink (#4316) 2026-02-09 23:53:42 +07:00
dab246 fedb8fed93 TF-4136 Apply early exit to prevent string operation in log 2026-01-15 09:46:51 +07:00
Dat Dang 24c6a8dbd1 HOTFIX Realtime update while searching on mobile (#3987) 2025-09-04 17:26:50 +07:00
dab246 1293c1a997 TF-3834 Implement remember user sort order after search
Signed-off-by: dab246 <tdvu@linagora.com>
2025-08-11 09:25:24 +07:00
dab246 23019ae030 Auto refresh mails when resume app from background
Signed-off-by: dab246 <tdvu@linagora.com>
2025-07-01 10:34:16 +07:00
dab246 712bc26402 TF-3507 Fix offline cache prevents updating email query view cache
Signed-off-by: dab246 <tdvu@linagora.com>
2025-04-14 04:01:05 -07:00
dab246 b83e092e47 TF-3290 Only show reconnection confirm dialog when composer is opened 2025-02-05 03:00:08 -08:00
Dat PHAM HOANG c63e3d2973 TF-3334 Synchonize cache all the time have new changes even in search or not 2025-02-05 03:00:08 -08:00
DatDang e54fd73d58 fixup! TF-3332 Prevent refresh when switching mailbox 2025-02-05 03:00:08 -08:00
DatDang 3d6b2b1a7e fixup! TF-3332 Prevent refresh when switching mailbox 2025-02-05 03:00:08 -08:00
dab246 dfd622d7ec TF-3334 Use queue to handle multiple refresh changes mailbox from incoming websocket 2025-02-05 03:00:08 -08:00
dab246 eb51e9b3b1 TF-3334 Remove Email/get of mark as read & mark as star action 2025-02-05 03:00:08 -08:00
dab246 8d31ee4462 TF-3025 Correctly update the action for the selection list when performing some action read/start/... on each element 2024-10-15 16:48:36 +07:00
dab246 0513427378 TF-3123 Write unit & widget test for load more button 2024-09-16 15:49:48 +07:00