858 Commits
Author SHA1 Message Date
Dat Vu 36163609c5 TF-5227 Refuse other-domain and team mailbox delegates in the add delegates dialog (#5230) 2026-12-04 12:15:57 +07:00
Dat Vu 2ffd0d7f9c TF-4922 Pluralize the star and unstar toasts for selected emails (#5213) 2026-12-03 10:27:28 +07:00
Dat Vu edb2c1eec3 TF-5190 Open my Inbox when the account in the URL is malformed (#5199)
* TF-5190 Drop the email, mailbox, label and search targets in RouteUtils for a malformed account parameter

* TF-5190 Rename keepsTargets to isMalformedAccount in RouteUtils and assert the rewritten Inbox URL in the malformed account test
2026-11-30 15:50:53 +07:00
Dat VuandDat H. Pham 777dfacc3f TF-5023 T-18 Remove a delegate from a confirm dialog in Settings › Delegation › By me (#5185)
* TF-5023 T-18 Remove a delegate from a confirm dialog in Settings › Delegation › By me

* TF-5023 T-18 Test urgent remove failures and the dialog after a failed remove

* TF-5023 T-18 Skip the toast and reload after an urgent remove failure and close RemoveDelegateDialog when the delegate is gone

* TF-5023 T-18 Test RemoveDelegateDialog closes once and stays open during a retry

* TF-5023 T-18 Test the remove progress button and closing with other delegates left

---------

Co-authored-by: Dat H. Pham <dphamhoang@linagora.com>
2026-11-27 10:44:11 +07:00
Dat Vu 3c27f64c35 TF-5023 T-17 Add delegates from a one-step dialog in Settings › Delegation › By me (#5183)
* TF-5023 T-17 Add delegates from a two-step dialog in Settings › Delegation › By me

* TF-5023 T-17 Pick the typed address on Next in AddDelegatesDialog

* TF-5023 T-17 Expect MyDelegatesNotifier to keep its list as data while reloading

* TF-5023 T-17 Enable Next for a typed address with no chip yet in AddDelegatesDialog

* TF-5023 T-17 Add delegates from a one-step AddDelegatesDialog with an avatar on every chip

* TF-5023 T-17 Refuse a delegate pick in AddDelegatesNotifier while the add request runs

* TF-5023 T-17 Skip the toast and reload in AddDelegatesDialog after an urgent add failure
2026-11-26 22:45:28 +07:00
Dat Vu 56db1436e7 TF-5022 T-14 Start the mobile app on the last shown account (#5168) 2026-11-26 15:20:22 +07:00
Dat VuandDat H. Pham a050e7348b TF-5023 T-16 Show my delegates in a By me tab of Settings › Delegation (#5179)
* TF-5023 T-16 Show my delegates in a By me tab of Settings › Delegation with a disabled Add button

* TF-5023 T-16 Register delegate cleanup before seeding and name the By me tab in MyDelegatesSection

* TF-5023 T-16 Test that a read finishing after the By me tab closes is dropped

* TF-5023 T-16 Test that re-reading my delegates keeps the current list

* TF-5023 T-16 Keep the current list while MyDelegatesNotifier reloads

---------

Co-authored-by: Dat H. Pham <dphamhoang@linagora.com>
2026-11-26 14:17:21 +07:00
Dat Dang d764ec2391 Keep the basic-auth login out of the Hive box (secure storage on mobile, session storage on web) (#5163) 2026-11-26 10:47:48 +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 Vu 5df49491e2 TF-5022 T-11 Add Settings › Delegation with "Delegated to me" and "Remove your access" (#5147)
* TF-5022 T-11 Send the session request to the JMAP URL in DynamicUrlInterceptors so a session reload no longer hits the API URL

* TF-5022 T-11 Add Settings › Delegation with DelegatedToMeNotifier and DelegatedToMeSection to list mailboxes delegated to me and remove my access

* TF-5022 T-11 Drop stale or signed-out session re-reads in DelegatedToMeNotifier and open a delegation link once the local settings load

* TF-5022 T-11 Share the pending re-read setup of the sign-out and user-change tests in DelegatedToMeNotifier tests

* TF-5022 T-11 Keep Delegation selected in ManageAccountMenuController when the quota loads after a deferred delegation link opens

* TF-5022 T-11 Clear the stored Delegation selection in ManageAccountMenuController when Delegation becomes hidden

* TF-5022 T-11 Clear the pending delegation link in ManageAccountDashBoardController.selectSettings when the user picks a settings page
2026-11-19 07:16:29 +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 99d1a48956 TF-5022 T-07 Skip Get.updateLocale in LocalizationService.changeLocale when the locale is already applied 2026-11-13 17:22:42 +07:00
dab246 da6f6bed73 TF-5022 T-07 Revert the EML preview account= of EmailPreviewerController, owned by T-07.1 2026-11-13 17:22:42 +07:00
dab246 ca19a917fb TF-5022 T-07 Carry account= in the EML preview URL of a delegated account and read it in EmailPreviewerController 2026-11-13 17:22:42 +07:00
dab246 cc66dc674f TF-5022 T-07 Stop CapabilityIdentifierExtension.isSupported logging a warning on a missing capability 2026-11-13 17:22:42 +07:00
dab246 986a70451d TF-5022 T-07 Stop ComposerController.handleClickSendButton while the shown account has no submission capability 2026-11-13 17:22:42 +07:00
dab246 c8774e767f TF-5022 T-07 Add account switcher helpers toast sections and Viewing chrome capability 2026-11-13 17:22:41 +07:00
dab246 4695d96a2f TF-5022 T-06 Add Delegation preference toggle and canSelect gate 2026-11-13 17:22:21 +07:00
dab246 be34e9e624 TF-5022 T-05 Show the account switch loading dialog with Cancel and Escape 2026-11-13 17:22:21 +07:00
f89449dea0 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 17:22:04 +07:00
dab246 012bc1b069 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 17:22:04 +07:00
Dat Vu 081438fb61 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 17:22:03 +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 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 7061ad66e2 TF-5022 Add ActiveAccountBridge and the ActiveAccountReader mixin, registered for the app lifetime and cleared on logout 2026-11-13 17:22:02 +07:00
Dat H. Pham 7b98cf93d8 fix(login): confirm deep-link sign-in account and DNS-discovered server (#5117) 2026-11-06 17:35:42 +07:00
Dat H. Pham e0df685a14 Cherry pick/v0.40.x fixes to master (#5082) 2026-11-02 16:24:00 +07:00
Dat Dang 05ac21dd8d TF-4984 Skip shared files the app cannot read (#5030) 2026-11-02 04:38:21 +07:00
Dat Dang 5807b75604 2509 Sanitize composer reply/forward, mailto and pasted content (#5069) 2026-10-29 15:15:29 +07:00
Dat H. Pham 0c2db5dbbe TF-4953 fix(composer): block sending on the cached DNS flag, drop the re-fetch 2026-10-19 11:14:37 +07:00
dab246 21efa64558 TF-4953 feat(composer): show the pending domain activation dialog when sending is refused 2026-10-19 11:14:37 +07:00
dab246 bf974af01b TF-4953 feat(composer): re-check a pending domain on a fresh session before sending 2026-10-19 11:14:37 +07:00
Benoit TELLIERandClaude Opus 5.5 b60393fe30 TF-4896 fix(composer): refuse to send an edited draft whose content failed to load
Sending would replace the draft with the empty editor content and delete it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-14 11:10:16 +07:00
Benoit TELLIERandClaude Opus 5.5 152b8e2b61 TF-4896 fix(composer): refuse to send while body is loading
Sending a reopened draft before its body has loaded sent an empty mail
and deleted the draft. Block send while the email content is still
loading or the editor is not ready, and tell the user to wait.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-14 11:10:16 +07:00
Dang Dat a78c31128e TF-4827 Toast when an oversize batch is denied while another runs
Addresses: 4217349749, 4244656811
https://github.com/linagora/tmail-flutter/pull/4968#discussion_r4217349749
https://github.com/linagora/tmail-flutter/pull/4968#discussion_r4244656811
2026-10-13 14:03:11 +07:00
Dang Dat 212ea6d76c TF-4827 Route a dead session during Drive oversize upload to the urgent handler
Addresses: 4217349780
https://github.com/linagora/tmail-flutter/pull/4968#discussion_r4217349780
2026-10-13 14:03:11 +07:00
Dang Dat 5e9f51c335 TF-4827 Share the Workplace OIDC token getter and refresh across providers
Addresses: 4216771160
https://github.com/linagora/tmail-flutter/pull/4962#discussion_r4216771160
2026-10-13 14:02:48 +07:00
Dang Dat 2d19b86254 TF-4827 Upload oversize attachments to Drive
Ref: #4848
2026-10-13 14:02:48 +07:00
Dang Dat d8d80e698c TF-4827 Drive oversize progress dialog
Ref: #4848
2026-10-13 13:59:26 +07:00
Dat Dang c317bae063 TF-4827 Read dropped files lazily (#4908) 2026-10-13 13:59:00 +07:00
Dat Dang 9b05ef5a6c TF-4827 Upgrade file_picker to 13 (#4904) 2026-10-13 13:57:44 +07:00
Dang Dat 501226a96a TF-4827 Keep blob upload adapter off the isolate Dio
Addresses: 4129159809
https://github.com/linagora/tmail-flutter/pull/4902#discussion_r4129159809
2026-10-13 13:56:25 +07:00
Dang Dat d854b83c5e TF-4827 Send web uploads as the picked blob
Ref: #4848
2026-10-13 13:56:25 +07:00
Benoit TELLIERandClaude Opus 5.5 69e588e824 TF-4877 Prompt for password when previewing encrypted PDF
pdfrx supports a PasswordProvider but TwakePdfPreviewer does not expose
it, so encrypted PDFs failed with "No password supplied by
PasswordProvider". Render the PDF through a password-aware previewer
that reuses the upstream building blocks, prompt for the password with
retry and a localized error on wrong password, and show a localized
message (download stays available) when the prompt is cancelled.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-13 08:20:53 +07:00
Benoit TELLIERandClaude Opus 5.5 13110e317d Let translations place the sender name and punctuation in the unsubscribe dialog
The unsubscribe confirmation was built from the localized prefix, the
sender name and a hard-coded ' ?', yielding 'from Emma ?' in every
language. The message now carries a {senderName} placeholder; the sender
name is still rendered in bold by splitting the localized text around it.

Closes #4946

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 14:39:33 +07:00
Benoit TELLIERandClaude Opus 5.5 288f961a9b TF-4867 Reject '.' in folder names client-side with an explicit localized message
The server rejects mailbox names containing '.' (hierarchy delimiter),
which surfaced as a raw English toast. Validate it client-side and
replace the generic 'special characters' error with a message listing
the forbidden characters.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 07:10:16 +07:00
Dat H. Pham e7f287473c [MCP Marionette] Use MCP to drive the UI (#4916) 2026-10-07 11:37:30 +07:00
Benoit TELLIERandClaude Opus 5.5 e992445b96 TF-4864 Localize reply quote header date and keep sender name casing
- Format the quoted date with locale-aware skeletons (yMMMd + jm) joined
  by a localized 'at' (fr: 'à') instead of the hardcoded US pattern
- Use the 'wrote:' phrasing (fr: 'a écrit :')
- Stop re-casing the sender display name in quote headers

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-07 09:42:31 +07:00
dab246 68fbf7144c TF-4809 Part 2: Add Sentry reporting preference 2026-10-05 12:16:55 +07:00
Dat VuandDat H. Pham c0eb30d2d6 TF-4809 Part 1-C: Apply consent in iOS notification extension (#4836)
* TF-4809 Part C: Apply consent in iOS notification extension

* TF-4809 Part C: Apply consent in iOS notification extension

* TF-4809 Part C: Harden NSE consent persistence

* TF-4809 Part C: Fix duplicate Mockito mock generation

* TF-4809 Part C: Use rethrow for Sentry errors

* TF-4809 Part C: Fix analyzer warnings

* TF-4809 Move Sentry cleanup to session teardown

* TF-4809 Fix BaseController test isolation

* TF-4809 Add tests for consent reset on session cleanup

* TF-4809 Reset Sentry consent on session cleanup

---------

Co-authored-by: Dat H. Pham <dphamhoang@linagora.com>
2026-10-05 12:15:05 +07:00