Commit Graph
608 Commits
Author SHA1 Message Date
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 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 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
Dang Dat 2e1999b48d TF-4837 Drop no-op selection-list reorder, add category order test
Addresses: 4080696459, 4080696465
https://github.com/linagora/tmail-flutter/pull/4852#discussion_r4080696459
https://github.com/linagora/tmail-flutter/pull/4852#discussion_r4080696465
2026-09-24 14:33:11 +07:00
Dang Dat fb90a6e117 TF-4837 Reorder trash section email menu 2026-09-24 14:33:11 +07:00
Dat Vu e6c6e5759a fix: restore legacy icons for mailbox actions (#4807) 2026-09-04 10:44:33 +07:00
dab246 a4d5ee51fd TF-4678: fix mailbox sidebar and icon behavior 2026-08-26 10:12:55 +07:00
dab246 0fad00feaa refactor(search): centralize visible email state sync 2026-08-21 14:47:03 +07:00
dab246 a9fa13e77f test(search): add e2e test for responsive action state sync 2026-08-21 14:47:03 +07:00
Huy Quang Nguyen b4b73554ed TF-4744: Inherit typography from design system TwakeInter (#4749) 2026-08-14 14:33:17 +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 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 7d9fd4b6b5 TF-4479 Add integration tests for clear trash subfolders
Signed-off-by: dab246 <tdvu@linagora.com>
2026-06-22 15:11:40 +07:00
dab246 dcdf58a3d2 refactor: extract EmptyTrashConfirmationDialog, MapMailboxByIdExtension and appToastProvider 2026-06-15 12:06:07 +07:00
dab246 4f2831f167 refactor: extract UrgentExceptionHandler as abstract interface 2026-06-15 12:06:07 +07:00
Dat Dang bd1e722977 TF-4429 Update label selection in search (#4572) 2026-06-12 17:15:04 +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 Dang 0ddbce9065 TF-4426 Add warning when detect reject rule filter (#4536) 2026-05-22 14:15:23 +07:00
Dat Vu 77fb2f2deb TF-4400 Enable collapse threads on Force Query path (#4422) 2026-05-19 13:33:18 +07:00
amghirbiandCopilot 44ac4be7ab fiixup : aiActionTag should have margin
Co-authored-by: Copilot <copilot@github.com>
2026-05-11 11:55:12 +07:00
amghirbiandCopilot b5a8f5fa72 fix: needs action widget should be inside the aiActionTag
Co-authored-by: Copilot <copilot@github.com>
2026-05-11 11:55:12 +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 b18813a096 Patrol web POC (#4450)
* Patrol POC add UIKeys to production widgets for web testability

Add semantic UIKeys to composer widgets, login controller, mailbox
dashboard, thread view, and web finger extension to enable reliable
widget targeting in Patrol web integration tests.

* Patrol POC add web login and send email Patrol integration test scenarios

Add web-specific test scenarios (login with basic auth, send email),
a new web_send_email_test entry point, and a web tag in TestTags.
Update test_base, requires_login_mixin, composer_robot, and
thread_robot to support web platform.

* Patrol POC add Patrol web integration test workflow and scripts

Add GitHub Actions workflow for running Patrol web integration tests.
Add patrol-web-integration-test-with-docker.sh and
patrol-web-local-integration-test-with-docker.sh scripts.
Minor fix to patrol-local-integration-test-with-docker.sh.

* Patrol POC update gitignore and web/index.html for Patrol web support

* poc: implement cross-platform robot factory architecture

Introduces Abstract Factory + conditional export infrastructure from
ADR-0081. Platform selection resolved at compile time via dart.library.html
— no if/else in any logic class.

New structure:
- factories/: RobotFactory, Mobile/WebRobotFactory, conditional provider
- robots/abstract/: AbstractLogin/Thread/ComposerRobot interfaces
- robots/mobile/: thin wrappers over existing robots
- robots/web/: WebComposerRobot overrides addContent for web
2026-04-21 14:34:47 +07:00
dab246 660c4f40e2 TF-4301 Address code review comments on label feature
- Make LabelModalMixin interactor getters non-nullable; remove force-unwraps at call sites
- Show positiveLabel and add semanticLabel in progressing button for accessibility
- Use timestamp-based label name in E2E scenario to prevent flakiness on reused accounts
- Guard labelAs action with isLabelAvailable check in SingleEmailController
- Don't pop back on label creation failure so users can retry without losing context
- Block modal dismissal while label creation request is in flight
- Null-guard email.id before toggling label in ThreadView::onCreateANewLabelAction
- Log stackTrace and rethrow in DialogRouter to distinguish errors from user cancel
2026-04-17 11:58:53 +07:00
dab246 232987ae0c TF-4301 Extract onMoreActionClick callback into dedicated method in ThreadView 2026-04-17 11:58:53 +07:00
dab246 190ccc7bc3 TF-4301 Add "Create a new label" button in Label As menus and wire up tagging in email view 2026-04-17 11:58:53 +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
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