234 Commits
Author SHA1 Message Date
Dat H. Pham b9c31ba2b1 TF-5096 Drop relative email hrefs loaded into the composer by Edit as new (#5178) 2026-11-26 14:27:28 +07:00
Dat Vu 11514a0c20 TF-5097 Autolink large plain-text bodies in linear time (#5153) 2026-11-26 07:16:57 +07:00
Dat Vu ec94c11228 TF-5096 Drop email hrefs the browser reads as relative or without a host (#5152) 2026-11-25 14:03:44 +07:00
dab246 5fd6167f9a TF-5022 T-07 Reclaim mail-list focus after account switch teardown 2026-11-13 17:22:41 +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
Dat Dang 5807b75604 2509 Sanitize composer reply/forward, mailto and pasted content (#5069) 2026-10-29 15:15:29 +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 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
Đặng Đạt 8615e7a240 2509 Let ExternalLinkPolicy decide which link schemes survive sanitizing 2026-10-05 10:20:52 +07:00
Dang Dat 8719205a43 TF-4805 Clear iframes only when the SelectableRegion node itself takes focus
Addresses: 3966812189
https://github.com/linagora/tmail-flutter/pull/4813#discussion_r3966812189
2026-09-11 09:27:57 +07:00
Dang Dat 5143429237 TF-4805 Add mount check and console log
Addresses: 3966741053, 3966750340
https://github.com/linagora/tmail-flutter/pull/4813#discussion_r3966741053
https://github.com/linagora/tmail-flutter/pull/4813#discussion_r3966750340
2026-09-11 09:27:57 +07:00
Dang Dat cad041050c TF-4805 Coordinate Flutter and iframe selection at DOM level 2026-09-11 09:27:57 +07:00
dab246 98525e323d TF-4678 feat(mailbox): integrate linagora sidebar menu 2026-08-26 10:12:55 +07:00
Huy Quang Nguyen b4b73554ed TF-4744: Inherit typography from design system TwakeInter (#4749) 2026-08-14 14:33:17 +07:00
Dat Vu 45604434ef TF-4720 Fix signature is not well displayed (#4725) 2026-07-29 16:24:19 +07:00
Dat Dang 828f64ec34 Optimize Drive link UI (#4719) 2026-07-21 18:18:53 +07:00
Dat Dang 082efd797b HOTFIX Drive link card UI (#4709) 2026-07-21 12:02:49 +07:00
Dat Vu 551a428bb0 TF-4546 Fix Android selection handles overlapping composer menu (#4689) 2026-07-10 16:17:12 +07:00
dab246 d0c0ecd419 TF-4540 Fix left margin of email truncated on email view
Signed-off-by: dab246 <tdvu@linagora.com>
2026-06-11 15:22:03 +07:00
Dat Vu 6b9dd5336f Fix: Calendar event HTML description rendered as plain text (#4558) 2026-05-28 15:27:33 +07:00
dab246 24b75ed9da TF-4482 Use declaration-aware regex for overflow-wrap detection and expand test coverage 2026-05-25 15:50:47 +07:00
dab246 f7e871220b TF-4482 Fix invitation email content overflowing on narrow mobile screens 2026-05-25 15:50:47 +07:00
Dat Vu 6cfdef0fcf TF-4524 Fix blank plain-text email caused by backslash-hex false-positive in HTML sanitizer (#4527) 2026-05-18 16:35:54 +07:00
Dat Dang 3851df15c6 Patrol isolate Android tests (#4469)
* Patrol POC replace Firebase Test Lab with local Android emulator

Replace GCloud auth, Firebase Test Lab, and ngrok with a local Android AVD via
reactivecircus/android-emulator-runner on CI. The backend runs in Docker and is
reachable from the emulator at the QEMU host alias 10.0.2.2.

CI / scripts:
- Remove Google Cloud auth, Firebase run step, and ngrok tunnel
- Add KVM, Gradle, and AVD cache setup; shard tests across 4 parallel runners
- Scripts: drop ngrok, point jmap.properties to 10.0.2.2, manage cleanup via trap
- prebuild.sh: parallelize module builds, suppress noisy output
- provisioning.sh: parallelize james-cli/curl calls, fix hardcoded container IP

Backend reset for test isolation:
- Add backend-reset-server.py: HTTP server that restarts tmail-backend and
  re-runs provisioning on POST /reset, so each test starts with a clean state
- Add BackendResetClient.dart: Dart client called in patrolTearDown
- Reduce visibleTimeout 30s → 10s; allow insecure connections in debug mode

* Patrol POC fix flaky tests

Replace fixed pumpAndSettle delays with waitUntilVisible/waitUntilExists so
tests react to actual UI state rather than arbitrary timeouts.

- Add PatrolFileExtensions.toFileInfo() and use it in composer robot/scenario utils
- Guard MobileEditorWidget.dispose() under isIntegrationTesting to prevent teardown crash
- Fix scroll direction (AxisDirection.down) in calendar attendee button scroll
- Add scrollTo() before tap in label modal robot and edit-tag scenario
- Wait on EmailTileBuilder (not label name) after email provisioning — more reliable
- Inline image: wait for HtmlContentViewer to contain base64 data before asserting
- Use native platform wait for inline image in upload scenario
- Remove unnecessary Future.delayed and extra pumpAndSettle calls
- Pre-select English before switching language to ensure deterministic starting state
- Fix app_grid back-press sequence
2026-05-11 08:09:31 +07:00
Dat Dang 77e2381ca9 Upgrade Flutter to 3.38.9 (#4455) 2026-04-17 17:39:29 +07:00
dab246 6f455cc728 fix(mu): email content not displayed due to sanitize html
(cherry picked from commit 2f06e52d81)
2026-01-12 05:16:02 +07:00
dab246 a23d15a9ca TF-4136 refactor(logging): replace logError with logWarning for non-critical cases 2026-01-06 13:53:22 +07:00
Dang Dat 060416292f fixup! TF-4224 Reduce ReDoS vulnerability 2026-01-06 10:16:26 +07:00
Dang Dat a8f90ec700 fixup! TF-4224 Reduce ReDoS vulnerability 2026-01-06 10:16:26 +07:00
Dang Dat 86dec27d67 fixup! TF-4224 Reduce ReDoS vulnerability 2026-01-06 10:16:26 +07:00
Dang Dat 2b909aeb1c TF-4224 Reduce ReDoS vulnerability 2026-01-06 10:16:26 +07:00
dab246 aba3cbbe4c TF-4152 Fix tooltip stay out of screen in Email View 2025-11-20 11:03:54 +07:00
dab246 7d80557582 TF-4093 Make interface more compact 2025-10-16 14:15:15 +07:00
dab246 a499d5d50f Fix cannot open email on tablet/ipad device 2025-09-17 14:40:40 +07:00
dab246 d9c87a3994 TF-4016 Fix email not rendered 2025-09-16 09:36:33 +07:00
dab246 b91486be8e TF-3964 Fix text is not well displayed when preview email
Signed-off-by: dab246 <tdvu@linagora.com>
2025-08-22 11:19:11 +07:00
dab246 346b115169 TF-3944 Use new style with line height 24px in content writing of composer view
Signed-off-by: dab246 <tdvu@linagora.com>
2025-08-22 11:02:01 +07:00
DatDang 0b17dc26e8 TF-3924 Thread Detail Memory leak resolve 2025-08-22 11:00:24 +07:00
dab246 a57985a5ed TF-3952 Change style for item in list recipients
Signed-off-by: dab246 <tdvu@linagora.com>
2025-08-18 17:08:59 +07:00
dab246 801b08bc90 TF-3933 Avoid load font from google
Signed-off-by: dab246 <tdvu@linagora.com>
2025-08-11 10:05:35 +07:00
dab246 11e170978b TF-3918 Fix email text be overlapped in body
Signed-off-by: dab246 <tdvu@linagora.com>
2025-07-31 16:41:29 +07:00
dab246 8100e886d7 Support vertical scrolling email view when cursor is over calendar event description
Signed-off-by: dab246 <tdvu@linagora.com>
2025-07-31 16:37:10 +07:00
dab246 296065c0b7 Change order of attachment and mail body on mobile
Signed-off-by: dab246 <tdvu@linagora.com>
2025-07-31 16:37:10 +07:00
dab246 23ecdfbf11 TF-2948 Apply new identity view for web
Signed-off-by: dab246 <tdvu@linagora.com>
2025-07-31 14:45:59 +07:00
DatDang 4fd0931c9e TF-3586: Upgrade Flutter to 3.27.4 2025-07-30 15:24:57 +07:00
dab246 42339a3003 Apply new design for recover deleted emails
Signed-off-by: dab246 <tdvu@linagora.com>
2025-07-30 09:18:16 +07:00