Commit Graph
327 Commits
Author SHA1 Message Date
dab246 08c49e3926 TF-5022 T-05 Drop debounced mail shortcuts when a switch blocks input 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 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 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 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 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
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
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 0fad00feaa refactor(search): centralize visible email state sync 2026-08-21 14:47: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 870169098a Remove unused imports in ThreadController and thread_controller_test 2026-08-10 16:22:45 +07:00
dab246 6e81ddf1d5 Add SearchLayoutCoordinator to hand off the search list across web breakpoints 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 Vu 2c579e3d0a [Cherry-pick v0.29.x → master] Fix some issue search (#4651) 2026-06-30 11:42:41 +07:00
dab246 6db72c0c03 refactor: move Riverpod providers to correct architecture layers 2026-06-10 19:25:01 +07:00
dab246 f28551f19d refactor: migrate LocalSettingsNotifier from StateNotifier to @riverpod Notifier 2026-06-10 19:25:01 +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 Dang 6fc88f780c TW-4308 Add labels for several messages part 2 (#4431)
Add ChooseLabelModal, delegate, and update label UI components

Wire add-labels action across Thread, Search, and Dashboard
2026-04-15 14:25:37 +07:00
Dat Vu c9e2e5db80 TF-4358 Remove mail in trash by default in search result (#4361) 2026-04-10 15:15:53 +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 f4ae94d47b feat: Apply EmailMoreActionContextMenu mixin for ThreadView and SearchEmailView 2026-03-27 14:07:21 +07:00
Dat Vu 8a9901a0a4 TF-4384 Fix page not found 404 error when refreshing label views (#4390) 2026-03-21 17:23:18 +07:00
dab246 651115c304 TF-4368 Auto trigger load more when get all email return < 20 emails 2026-03-20 10:15:13 +07:00
dab246 9854592a4c TF-4368 Add more log trace for load more email 2026-03-20 10:15:13 +07:00
dab246 cdc7d711f5 TF-4368 Add log to tracing refresh change emails on Sentry 2026-03-20 10:15:13 +07:00
dab246 a28d5b3527 TF-4368 Fix cannot scroll in email list 2026-03-20 10:15:13 +07:00
dab246 8a21e35d1e fix: Prefer reusing AppBaseException instead of redefining the exception contract CacheException and RemoteException 2026-03-10 11:06:16 +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 18d9a47431 TF-4274 Avoid clearing all caches on refresh for non‑web platforms 2026-01-29 18:00:36 +07:00
dab246 b3e5ab0df4 fix(cnb): skip local email cache and add safe email/state cache clearing
(cherry picked from commit 0e7f589df5)
2026-01-29 18:00:36 +07:00
dab246 9d4f6e73d2 fix(cnb): Cannot clear email state cache when reload page
(cherry picked from commit a901206a78)
2026-01-29 18:00:36 +07:00
dab246 74abbc47ab fix(cnb): delete email and state cache when F5 or reload button
(cherry picked from commit 520cd6c82f)
2026-01-29 18:00:36 +07:00
dab246 5cbf189ffe fix(cnb): use Email/query + Email/get when switch mailbox and reload the email list
(cherry picked from commit 9444d8d28a)
2026-01-29 18:00:36 +07:00
dab246 0805f5c123 TF-4227 Cannot load more emails with Label 2026-01-19 11:34:43 +07:00
dab246 f54250eb26 TF-4227 Fix conflict with master branch 2026-01-19 11:34:43 +07:00
dab246 ca35924a5f TF-4227 Hide the "Loading More" button when there are no more emails to load. 2026-01-19 11:34:43 +07:00
dab246 8f6d9a6e8f TF-4227 Load all emails with tag when tag is selected 2026-01-19 11:34:43 +07:00
dab246 fcb7fcf3ba TF-4141 Add unit test for mailbox_filter_builder 2026-01-11 22:55:49 +07:00
dab246 2d1ecd4cc0 TF-4141 Fix nitpick comments from coderabbit 2026-01-11 22:55:49 +07:00