Commit Graph
720 Commits
Author SHA1 Message Date
Dat H. Pham 579f49ff30 Build viewer HTML documents in one tested builder; name plain-text pipeline 2026-10-08 17:12:36 +07:00
Dat H. Pham 0b5276f423 Extract named HTML transform configs for preview and attachments 2026-10-08 08:55:48 +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
Đặng Đạt 8615e7a240 2509 Let ExternalLinkPolicy decide which link schemes survive sanitizing 2026-10-05 10:20:52 +07:00
Đặng Đạt 9510b710aa 2509 Declare webcal and geo schemes and report links no app can open
Addresses: 622656
https://ci.linagora.com/tddang/tmail-flutter/-/merge_requests/5#note_622656
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
Đặng Đạt 0eaa08f236 2509 Gate every content-link launch through ExternalLinkPolicy only
Addresses: 621391, 621392
https://ci.linagora.com/tddang/tmail-flutter/-/merge_requests/5#note_621391
https://ci.linagora.com/tddang/tmail-flutter/-/merge_requests/5#note_621392
2026-10-05 10:20:52 +07:00
Dang Dat 72cdf9900d 2509 Restrict which links open externally from email content
Links inside the EML preview opened new windows/tabs with plain
window.open, with no noopener and no scheme check. Pass
noopener,noreferrer and only open http, https and mailto targets.

Add ExternalLinkPolicy (http/https/tel allow-list) and route the mobile
email WebView's external-navigation handler through it, refusing the
app's own custom schemes so a link in received content can no longer
relaunch another app or the app itself.
2026-10-05 10:20:52 +07:00
Dang Dat 90095166dd 2509 Strip bidi and control characters from attachment names 2026-10-02 12:32:16 +07:00
Benoit TELLIER 2f31e31879 TF-4859 fix(html-viewer): validate iframe message shape before handling (#4860) 2026-09-28 16:55:38 +07:00
dab246 bd97e3c947 TF-4623 Preserve event card behavior and remove legacy code 2026-09-18 18:36:17 +07:00
Dang Dat 2c79c89ae7 TF-4678 fix(mailbox): size sidebar header search and plus icons to design
TF-4678
2026-09-17 15:53:22 +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
Dat Vu 3debda2ba1 TF-4799 Fix HTML Mail be truncated in width (#4806) 2026-09-09 05:02:09 +07:00
Dat Vu e6c6e5759a fix: restore legacy icons for mailbox actions (#4807) 2026-09-04 10:44:33 +07:00
dab246 4c5fc122c5 TF-4728 Set border radius 6px for Drive Picker dialog
Signed-off-by: dab246 <tdvu@linagora.com>
2026-08-26 17:26:59 +07:00
dab246 5d26ea8308 TF-4678 feat(mailbox): support deep sidebar tree navigation 2026-08-26 10:12:55 +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 07b2411a00 Add logo drive loading (#4736) 2026-07-29 14:02:30 +07:00
Dat H. Pham 990b86ce08 fix: handle yield* error inside interactor (#4721) 2026-07-27 14:07:32 +07:00
Dat Dang cfe3886cd7 Handle add as attachment in development (#4716) 2026-07-27 14:04:13 +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
Dang Dat 125a7933b1 TF-4673 PDF preview error handling 2026-07-08 11:58:38 +07:00
Dat Dang 7ad09bd2d5 TF-4449 Drive backend integration (#4629) 2026-06-30 13:31:54 +07:00
Johann Bournazel a86ac55bc0 TW-3055(fix): gives text fields focus on right click (#4625)
* chore: update linagora_design_flutter to v0.2.0

* TW-3055(fix): gives text fields focus on right click

* TW-3055(test): add RightClickFocus e2e test
2026-06-25 11:42:32 +01: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 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
dab246 acc43e8332 TF-4532 Fix infinite ResizeObserver loop in HTML email viewer 2026-05-21 14:24:56 +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 H. Pham 91bbfbfc4c Sentry-373586 Remove redundant mounted check after _getListRecent in non-empty query path 2026-05-18 15:30:52 +07:00
Dat H. Pham 736548a59a Sentry-373586 Add mounted checks after awaits in QuickSearchSuggestionList 2026-05-18 15:30:52 +07:00
Dang Dat a113d11c4b Sentry-373586 Null handling _animationController QuickSearchSuggestionList 2026-05-18 15:30:52 +07:00
Dat Vu 52dddfb027 Hotfix: Double-slash path normalization for JMAP session endpoints (#4511)
* Fix double-slash path normalization for JMAP session endpoints

Some server instances return session URLs with double slashes in the
path (e.g. http://host//upload/{accountId}), causing 404 errors.
Normalize path slashes for upload, download, WebSocket ticket, and
download-all capability endpoints.

* Add ADR-0087 for double-slash path normalization on JMAP session endpoints
2026-05-13 11:57:37 +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 e3dfadce34 Upgrade Patrol to 4.5.0 (#4446) 2026-04-17 20:50:22 +07:00
Dat Dang 77e2381ca9 Upgrade Flutter to 3.38.9 (#4455) 2026-04-17 17:39:29 +07:00
dab246 660c4f40e2 TF-4301 Address code review comments on label feature
- Make LabelModalMixin interactor getters non-nullable; remove force-unwraps at call sites
- Show positiveLabel and add semanticLabel in progressing button for accessibility
- Use timestamp-based label name in E2E scenario to prevent flakiness on reused accounts
- Guard labelAs action with isLabelAvailable check in SingleEmailController
- Don't pop back on label creation failure so users can retry without losing context
- Block modal dismissal while label creation request is in flight
- Null-guard email.id before toggling label in ThreadView::onCreateANewLabelAction
- Log stackTrace and rethrow in DialogRouter to distinguish errors from user cancel
2026-04-17 11:58:53 +07:00
dab246 190ccc7bc3 TF-4301 Add "Create a new label" button in Label As menus and wire up tagging in email view 2026-04-17 11:58:53 +07:00