Commit Graph
986 Commits
Author SHA1 Message Date
Dat Vu 54fee9ffb5 Chore: upgrade Flutter to 3.47.9 (#5083) 2026-11-11 17:21:45 +07:00
Dat Dang 1907657ba7 TF-5094 Keep top-level signature visible when reopening a draft (#5125) 2026-11-11 14:05:42 +07:00
Dat Dang 8ce45c2b55 Sandbox the web mail viewer iframe (#5112) 2026-11-09 09:16:23 +07:00
dab246 19395f6d4a TF-4678 Use LinagoraSidebarSectionStyleOverride.drawer and design system sidebar symbols in BaseMailboxView 2026-11-05 14:31:34 +07:00
Dang Dat 5d453a061e TF-4985 Drop the redundant nbsp replace in hasNoTextContent
Addresses: 4397522287
https://github.com/linagora/tmail-flutter/pull/5050#discussion_r4397522287
2026-11-05 10:07:57 +07:00
Dang Dat f1bc60bddc TF-4985 Make hasNoTextContent linear on an unclosed angle bracket
Addresses: 4397522269
https://github.com/linagora/tmail-flutter/pull/5050#discussion_r4397522269
2026-11-05 10:07:57 +07:00
Dang Dat fecbefaf40 TF-4985 Reject a vacation message with no text content
Ref: https://github.com/linagora/tmail-flutter/issues/4985
2026-11-05 10:07:57 +07:00
Dat H. Pham 67fa909722 Fix/composer embed code xss (#5070) 2026-11-02 11:05:37 +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 8d8ed10a6c Build the web link click scripts from one template each 2026-10-20 10:03:55 +07:00
Dat H. Pham 49255f6b69 Drop the unread iframe sandbox constant and its test 2026-10-20 10:03:55 +07:00
Dat H. Pham af1a2793e9 fixup! Build viewer HTML documents in one tested builder; name plain-text pipeline 2026-10-20 10:03:55 +07:00
Dat H. Pham fab93b0678 Build viewer HTML documents in one tested builder; name plain-text pipeline 2026-10-20 10:03:55 +07:00
Dat H. Pham 1339e4674a Extract named HTML transform configs for preview and attachments 2026-10-20 10:03:55 +07:00
dab246 65a2acd45c TF-4882 refactor(composer): Write zero-width chars in isEmptyListItem as unicode escapes 2026-10-14 17:39:25 +07:00
dab246 f4c8daa16c TF-4882 fix(composer): Skip Tab indent on the first list item to stop stray bullets 2026-10-14 17:39:25 +07:00
Benoit TELLIERandClaude Opus 5.5 e1e0c98899 TF-4882 fix(composer): Skip Tab list handling when list sits inside a table cell
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-14 17:39:25 +07:00
Benoit TELLIERandClaude Opus 5.5 810d7e0b99 TF-4882 feat(composer): Tab/Shift+Tab nest list items, Enter on empty nested item outdents
Summernote only binds Tab to list nesting when tabDisable is set, and even
then it inserts spaces. Register a keydown handler on the web editor that:
- delegates Tab / Shift+Tab inside a list item to the Summernote
  indent / outdent commands (same as the toolbar buttons);
- outdents an empty nested list item on Enter instead of leaving the list,
  like Gmail. Enter on an empty top-level item still exits the list.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-14 17:39:25 +07:00
dab246 410977d67a TF-4874 fix(html): drop scheme-added hrefs that SanitizeUrl fails to decode 2026-10-14 16:23:21 +07:00
dab246 07c3d7e1f7 TF-4874 fix(html): keep www. and protocol-relative hrefs as https links, drop them when SanitizeUrl rejects 2026-10-14 16:23:21 +07:00
Benoit TELLIERandClaude Opus 5.5 28dc354bce TF-4874 fix(html): drop relative hrefs instead of rewriting them to a bogus host
SanitizeUrl prefixed any scheme-less href that looked like a domain
with https://, so <a href="page.html"> became https://page.html.
Relative links cannot be resolved since <base> is stripped: remove
their href to make them inert. In-page fragments are kept.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-14 16:23:21 +07:00
dab246 c8632a5aba TF-4892 Keep folder tree parent semantics stable when expanding 2026-10-14 15:25: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
dab246 f846395db1 TF-4878 fix(attachment): search extension-keeping candidates separately in MiddleEllipsisText 2026-10-13 05:42:13 +07:00
dab246 efcc2e2a9f TF-4878 fix(attachment): apply the system text scale when measuring MiddleEllipsisText 2026-10-13 05:42:13 +07:00
dab246 bd9d7da1d4 TF-4878 fix(attachment): measure MiddleEllipsisText with the style Text renders 2026-10-13 05:42:13 +07:00
Benoit TELLIERandClaude Opus 5.5 a58df341f1 TF-4878 fix(attachment): keep full file extension in middle-ellipsis chips
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-13 05:42:13 +07:00
dab246 1d33a46222 TF-4873 fix(eml-preview): drop email @page rules in CssScopeUtils so a mail cannot print text in the page margins 2026-10-12 19:04:35 +07:00
dab246 19ceb4c855 TF-4873 fix(eml-preview): stack the preview subject and attachments above the email body layer 2026-10-12 19:04:35 +07:00
dab246 d658fdfa3c TF-4873 fix(eml-preview): drop email @font-face rules in CssScopeUtils so a mail font cannot redraw the app header 2026-10-12 19:04:35 +07:00
dab246 b7b1748c74 TF-4873 fix(eml-preview): stack the preview header above an email-body-layer the email styles cannot reach 2026-10-12 19:04:35 +07:00
dab246 3e3430964f TF-4873 fix(eml-preview): rewrite html and body to :is(:where(:scope), <selector>) in CssScopeUtils to keep their specificity, and accept u+element selectors 2026-10-12 19:04:35 +07:00
dab246 828053e9db TF-4873 fix(eml-preview): escape </style in CssScopeUtils output so a neutralized brace cannot end the style element 2026-10-12 19:04:35 +07:00
dab246 dd23c0c311 TF-4873 fix(eml-preview): join html and body into one :scope only across CSS whitespace or > 2026-10-12 19:04:35 +07:00
dab246 42a88aa5ba TF-4873 fix(eml-preview): rewrite html and body type selectors to :scope in CssScopeUtils so mail body rules still apply 2026-10-12 19:04:35 +07:00
dab246 76a108462d TF-4873 refactor(eml-preview): model CssScopeUtils code units and lookahead as types to clear CodeScene Primitive Obsession 2026-10-12 19:04:35 +07:00
dab246 99c6b6daea TF-4873 fix(eml-preview): keep a CSS string open across the whitespace a hex escape swallows in CssScopeUtils 2026-10-12 19:04:35 +07:00
dab246 61b786127e TF-4873 fix(eml-preview): read <!-- as one CDO token in CssScopeUtils so a url( after it cannot hide the brace that closes @scope 2026-10-12 19:04:35 +07:00
Benoit TELLIERandClaude Opus 5.5 0ef8ecff7e TF-4873 refactor(eml-preview): split CSS tokenizer dispatch into smaller helpers
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-12 19:04:35 +07:00
Benoit TELLIERandClaude Opus 5.5 4d4f47851c TF-4873 fix(eml-preview): scope mail CSS to the email body
The EML preview renders the mail content in the same document as the
app-generated header (subject, sender, recipients, date), so global mail
rules such as '* { font-family: ... !important }' restyled that header.

Wrap every mail <style> into '@scope (.email-body) { ... }'. A CSS
tokenizer neutralizes any '}' that would close the @scope block early,
honoring comments, strings, escapes and url() tokens, and drops the CSS
when unicode-range tokenization differs between browsers.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-12 19:04:35 +07:00
Benoit TELLIERandClaude Opus 5.5 5d9d0f24e9 TF-4883 fix(composer): show color picker value as #RRGGBB
The ColorCodeField defaulted to ColorPickerCopyFormat.dartCode, leaking
the Flutter 0xAARRGGBB literal in both the field prefix and the copied
value. Use the web-standard #RRGGBB format instead.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 08:19:29 +07:00
dab246 1d6f505262 TF-4867 Wrap folder name errors on up to three lines in create and rename inputs 2026-10-08 07:10:16 +07:00
dab246 6a3e150e9a TF-4867 Validate folder name on confirm in rename dialogs instead of relying on the debounced check 2026-10-08 07:10:16 +07:00
dab246 704ecd84b2 TF-4809 Part 3: Align Sentry startup and reporting consent 2026-10-05 12:22:17 +07:00
dab246 e6e9ed633c TF-4809 Part 3: Add web Sentry fallback and denied consent 2026-10-05 12:22:17 +07:00
dab246 eec2fbab39 TF-4809 Part 3: Harden Sentry ecosystem consent handling 2026-10-05 12:22:17 +07:00
dab246 6f3b757ef6 TF-4809 Part 3: Share Sentry ecosystem opt-in default with web 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
dab246 fdda202292 TF-4809 Part B: Persist consent for FCM background 2026-10-05 12:15:05 +07:00
dab246 9f3665eb47 TF-4809 Part A: Gate Sentry SDK lifecycle by consent 2026-10-05 12:15:04 +07:00