117 Commits
Author SHA1 Message Date
Dat Vu 19d8f67f26 TF-5193 Show CompactAccountSwitcher in DefaultMobileAppBarThreadWidget inside Cozy Workplace (#5201) 2026-11-27 19:53:39 +07:00
Dat Dang 87bf42f3e8 TF-3011 Cap maxChanges by maxObjectsInGet (#5167) 2026-11-27 12:15:31 +07:00
Dat Vu 1861b186a5 TF-5022 T-13 Notify delegated mailboxes and open a notification tap in its account (#5166) 2026-11-25 11:53:27 +07:00
Dat Dang 420d0db43d TF-5129 Empty mailbox on Stalwart 1.0: Email/get requests "header:List-Unsubscribe:asText", which RFC 8621 does not allow (#5146) 2026-11-19 14:51:05 +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
dab246 0267b08c1d TF-5022 T-09 Show CompactAccountSwitcher in DefaultMobileAppBarThreadWidget on Android and iOS 2026-11-17 10:42:08 +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
Dat Vu e6c6e5759a fix: restore legacy icons for mailbox actions (#4807) 2026-09-04 10:44:33 +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 f50b765378 TF-4647 SSOT Part 6— Wire dashboard filter into search SSOT & remove position (#4714) 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
Dat Dang 6c94ce71dc Refactor: Dynamic email headers (#4620) 2026-06-26 16:48:28 +07:00
Dat H. Pham 426b166ce9 fix: bound Email/changes pagination to stop self-inflicted request storm (#4582) 2026-06-04 13:47:09 +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 c5eb4a011d Cherry pick commit fix issue #4292 to master (#4454)
* Add folder info when open mail list from Label

(cherry picked from commit de0bb4ee02)

* Add unit test for `hasMailboxLabel` function in BaseEmailItemTile mixin

(cherry picked from commit 18f8d1847a)

* TF-4292 Add E2E test for test case `Add folder info when open mail list from Label` on mobile

(cherry picked from commit 1c209e3335)
2026-04-16 15:45:45 +07:00
dab246 7cc9cd82fa TF-4392 [Team Mailbox] Hide Recover deleted messages and Archive message in team mailbox 2026-04-01 18:08:12 +07:00
dab246 beb323874b TF-4392 [Team Mailbox] Auto save draft email team mailbox when edit 2026-04-01 18:08:12 +07:00
dab246 db8ae35c9d TF-4392 [Team Mailbox] Move email to trash on delete in Email List View 2026-04-01 18:08:12 +07:00
dab246 80c368be62 TF-4368 Add verifying actual merged email IDs, not just count. 2026-03-20 10:15:13 +07:00
dab246 bf1bab478c TF-4368 Add the delete/shrink regression case and assert the requested limit. 2026-03-20 10:15:13 +07:00
dab246 72aceff481 TF-4368 Add named parameters to mock setup for consistency. 2026-03-20 10:15:13 +07:00
dab246 2d45909ad1 TF-4368 Add tearDown for consistency with other test groups. 2026-03-20 10:15:13 +07:00
dab246 23a3e9243e TF-4368 Add unit test for refreshChanges method 2026-03-20 10:15:13 +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