Commit Graph
813 Commits
Author SHA1 Message Date
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
dab246 13feb347d9 TF-4623 Integrate design system event card invitation
Signed-off-by: dab246 <tdvu@linagora.com>
2026-09-18 18:36:17 +07:00
Dat Dang e6f9463c61 Allow workplace to refresh jmap token (#4810) 2026-09-15 15:58:43 +07:00
Dang Dat cad041050c TF-4805 Coordinate Flutter and iframe selection at DOM level 2026-09-11 09:27:57 +07:00
Fernando da Silva Sousa 57034dfa2f feat: add Brazilian Portuguese localization (#4812) 2026-09-10 10:54:38 +07:00
Dat Dang de880a8b5c Implement fetchJson for workplace web (#4804) 2026-09-09 17:01:57 +07:00
dab246 7af02ab425 TF-4790 Run attachment upload on the root DioClient instead of a worker isolate 2026-09-05 16:10:10 +07:00
Dang DatandCursor 66e18c5d43 TF-4728 Drive picker jmap implementation
review-comment: 3826784554

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3826784554

review-comment: 3826964437

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3826964437

review-comment: 3827029379

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3827029379

review-comment: 3827067099

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3827067099

review-comment: 3827112203

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3827112203

review-comment: 3827153966

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3827153966

review-comment: 3828671202

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3828671202

review-comment: 3828857602

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3828857602

review-comment: 5391955302

https://github.com/linagora/tmail-flutter/pull/4767#issuecomment-5391955302

review-comment: 3841473359, 3841484408

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3841473359

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3841484408

review-comment: 3841580769

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3841580769

review-comment: 3841909306

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3841909306

fixup! TF-4728 Drive picker jmap implementation

Fixes toast suppression regression surfaced by the test added in
81b6e05faf63aecf81ae4e97980f9e48bb67e916
https://github.com/linagora/tmail-flutter/commit/81b6e05faf63aecf81ae4e97980f9e48bb67e916

Claude-Session: https://claude.ai/code/session_01H7h265h6rRmMivviyMbNVh

review-comment: 3842242663

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3842242663

review-comment: 3842324987

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3842324987

review-comment: 3842341155

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3842341155

review-comment: 3842447793

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3842447793

review-comment: 3842492984

https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3842492984

(test) some edge cases for concurrency runner

(test) mixed pick should toast when transfer cannot start

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 17:26:59 +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
Dat H. Pham 285e926a0d fix: InvalidStateError in IndexDatabase prevent state be updated (#4717) 2026-07-27 14:06:54 +07:00
Dat Dang cfe3886cd7 Handle add as attachment in development (#4716) 2026-07-27 14:04:13 +07:00
Dang Dat a8eaf6e64b fixup! TF-4660 Drive loading 2026-07-24 14:43:49 +07:00
Dat Dang 828f64ec34 Optimize Drive link UI (#4719) 2026-07-21 18:18:53 +07:00
dab246 1445070dd8 TF-4213 Apply new keyboard shortcuts settings UI with right-aligned key chips 2026-07-18 15:55:56 +07:00
Dat Dang 38c1c22759 TF-4661 Improve drive link UI (#4676) 2026-07-14 19:39:53 +07:00
dab246 5ed3d70292 Add UrgentExceptionHandlerService for urgent exceptions in Riverpod flows 2026-07-08 12:21:24 +07:00
Dang Dat 125a7933b1 TF-4673 PDF preview error handling 2026-07-08 11:58:38 +07:00
Dat H. Pham 52e418934d fix: keep share manager subject open across dashboard teardown
Dashboard onClose closed the singleton EmailReceiveManager's BehaviorSubject.
After a close/reopen cycle (logout/login, route recreation) the next dashboard
subscribed to the dead subject; a later live share then landed on a freshly
recreated subject the listener never subscribed to, so the composer never
opened. Clear pending data by emitting an empty list instead of closing, so
the subject lives for the singleton's lifetime and keeps delivering shares.
2026-07-07 14:50:51 +07:00
Dat H. Pham 43e99d9170 fix: prevent empty initial-media result from clobbering a live share
Subscribe to the live media stream before resolving getInitialMedia, and
apply the cold-start result only when non-empty. A share can land on the
live EventChannel before getInitialMedia resolves; on a normal (non-share)
launch getInitialMedia returns empty, so applying it unconditionally
overwrote the just-arrived share — silently dropping warm-app shares that
land while startup is still settling.

Also add onError/catchError logging to both media sources and a
deterministic regression test that gates getInitialMedia behind a Completer
to reproduce the race.
2026-07-07 14:50:51 +07:00
Dat H. Pham d7037cfb38 fix mailto link with Twake Mail 2026-07-07 14:50:51 +07:00
Dat H. Pham 91ed623952 TF-4667 Will not comeback to Basic Auth if SSO detected 2026-07-06 10:14:57 +07:00
Dat Dang 7ad09bd2d5 TF-4449 Drive backend integration (#4629) 2026-06-30 13:31:54 +07:00
Benoit TELLIER 2b1c6bf3a9 Add Mongolian (mn) language support
Wire up Mongolian as a selectable language and provide full translation
coverage across the three localization modules:

- LanguageCodeConstants: add mongolian = 'mn'
- LocalizationService: add mn to supportedLanguageCodes and Locale('mn','MN')
  to supportedLocales
- app_localizations.dart: add languageMongolian getter
- locale_extension.dart: add localized and native (Монгол) display names
- lib/l10n/intl_mn.arb: full translation (521 keys)
- scribe/lib/scribe/ai/l10n/intl_mn.arb: full translation
- workplace/lib/l10n/app_mn.arb: full translation
- Add languageMongolian string to the other activated language arb files
2026-06-29 12:00:26 +07:00
Dat Dang 9da48308d6 TF-4449 [Part 1] Add postMessage handlers for external drive (#4587) 2026-06-23 12:51:00 +07:00
Dat Dang 9ab0a8e2d8 TF-4583 External drive attachment button visibility (#4609) 2026-06-19 08:51:56 +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
dab246 d3246903b4 refactor: extract _asIoConnectionError in DioNoResponseErrorHandler to reduce complexity 2026-06-11 10:15:35 +07:00