Commit Graph
841 Commits
Author SHA1 Message Date
dab246 cef3ae91a4 TF-5022 T-06 Add Delegation preference toggle and canSelect gate 2026-11-13 10:01:58 +07:00
dab246 47c37ab9dc TF-5022 T-05 Show the account switch loading dialog with Cancel and Escape 2026-11-13 10:01:57 +07:00
1f321d0f5f 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 10:01:57 +07:00
dab246 adc27802e8 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 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 176b1e2812 TF-5022 Replace ActiveAccountBridge with ActiveAccountSource and ActiveAccountWriter, and watch the shown account through watchShown in MailboxController and QuotasController 2026-11-13 09:53:18 +07:00
dab246 6b3cb419b9 TF-5022 Add ActiveAccountBridge and the ActiveAccountReader mixin, registered for the app lifetime and cleared on logout 2026-11-13 09:52:39 +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
Đặng Đạt 770bd30dfc 2509 Cover the noopener decision for links opened from the EML previewer
Addresses: 621393, 622054
https://ci.linagora.com/tddang/tmail-flutter/-/merge_requests/5#note_621393
https://ci.linagora.com/tddang/tmail-flutter/-/merge_requests/5#note_622054
2026-10-05 10:20:52 +07:00
Đặng Đạt aecb0fc1db 2509 Allow sms, webcal and geo links and warn when a link is refused
Addresses: 621394
https://ci.linagora.com/tddang/tmail-flutter/-/merge_requests/5#note_621394
2026-10-05 10:20:52 +07:00
Dang Dat f541de05de 2509 Route AppUtils.launchLink and ICS conference links through the scheme allow-list
AppUtils.launchLink was the one shared entry point for opening links
externally, but it launched any URL/scheme unguarded, including its own
Safari<17 branch which called window.open directly and skipped
url_launcher_web's own scheme block and noopener/noreferrer. Route both
paths through ExternalLinkPolicy (now also allowing mailto, since
launchLink already had legitimate mailto callers) and restore
noopener/noreferrer on the Safari branch.

The calendar invite's video-conference extension fields
(X-OPENPAAS-VIDEOCONFERENCE / X-GOOGLE-CONFERENCE) are attacker-controlled
and only checked for non-empty values before reaching the same launch
path via the "join" button; filter them through the same allow-list at
the source.
2026-10-05 10:20:52 +07:00
Dang Dat 96dd60b373 2509 Restrict openApp deep links to allow-listed hosts and show a toast when refused 2026-10-05 10:07:54 +07:00
Benoit TELLIERandClaude Opus 5.5 1b2d3d3329 Fix grammar in Profiles settings subtitle ('send an emails' -> 'send emails')
Closes #4934

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-05 09:42:55 +07:00
Benoit TELLIERandClaude Opus 5.5 1716a5e0f9 Use plural form for permanent-delete toast when a single message is deleted
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-03 07:02:29 +07:00
Benoit TELLIERandClaude Opus 5.5 3bfe47472c Fix grammar of permanent-delete toast messages
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-03 07:02:29 +07:00
Benoit TELLIERandClaude Opus 5.5 1892e5fa11 Fix 'has invited you in to a meeting' typo in English strings (#4931)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-03 06:28:28 +07:00
Dat Dang 71af403ff9 2509 Require https for the openApp deep link's JMAP and identity provider URLs (#4919) 2026-10-02 16:06:37 +07:00
Dang Dat 9e4152639f 2509 Escape header fields in the EML preview and remove the unused PDF viewer
The EML / full-message preview and the print page build their header
as an HTML string. Subject, sender, recipients, date, attachment names
and the attachment link were inserted unescaped, so a crafted header
value became markup in a same-origin page.
DownloadManager.openDownloadedFileWeb loaded pdf.js/pdfobject from a
CDN and put the file name unescaped into a blob page. Nothing calls it.

PreviewEmlFileUtils and PrintUtils escape every text field at the sink.
Callers pass raw strings and no longer pre-escape them. The attachment
link is attribute-escaped and built with Uri, so file names survive the
round-trip. The inline-image alt and id attributes are attribute-escaped.
openDownloadedFileWeb, its CDN loaders and js_interop_stub.dart are
removed, and DownloadManager no longer takes DeviceInfoPlugin.
2026-10-01 15:49:46 +07:00
Dang Dat 000d71ee96 Declare insideCozy provider as Future to match its getter
Addresses: 4102931438
https://github.com/linagora/tmail-flutter/pull/4856#discussion_r4102931438
2026-09-30 16:36:45 +07:00
Dang Dat 6ede1f11b3 Move insideCozy provider out of premium CTA provider
Addresses: 4102872077
https://github.com/linagora/tmail-flutter/pull/4856#discussion_r4102872077
2026-09-30 16:36:45 +07:00
Benoit TELLIERandClaude Opus 5.5 f3be3cd84c TF-4861 Accept num sizes in LocalizedFileSizeFormatter
UnsignedInt.value is typed num, which broke compilation of quota
extensions. Accept num and normalize to an integer byte count.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 16:30:57 +07:00
Benoit TELLIERandClaude Opus 5.5 97baa1e0b7 TF-4861 Localize storage size units and decimal separator
Quota sizes in storage settings were formatted with the filesize package,
which always uses English units and a decimal point. Format them with the
current locale's decimal separator and French byte units (o, Ko, Mo, Go...),
and pluralize 'utilisés' in the French translation.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 16:30:57 +07:00
dab246 4e412c37d6 TF-4672 Add calendar event links to orange bar 2026-09-29 12:35:41 +07:00
Benoit TELLIER 1c55a46682 TF-4843 feat(composer): handle EmailSubmission/set invalidRecipients (#4844) 2026-09-25 19:36:44 +07:00
Dat Dang 2cf6226e1e TF-4838 Resolve Workplace FQDN from the Linagora ecosystem fallback (#4841) 2026-09-22 13:35:54 +07:00