Commit Graph
3917 Commits
Author SHA1 Message Date
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
Dang Dat ff036e8c94 fixup! Patrol Web App grid 2026-05-12 11:59:35 +07:00
Dang Dat 57bca6e683 fixup! Patrol Web App grid 2026-05-12 11:59:35 +07:00
Dang Dat 0f51f2ef41 Patrol Web App grid 2026-05-12 11:59:35 +07:00
dab246 9296f76ccb TF-4473 Fix don't fire-and-forget the clean-close write
Signed-off-by: dab246 <tdvu@linagora.com>
2026-05-11 16:38:23 +07:00
dab246 3fb8b32726 TF-4473 Remove object not used
Signed-off-by: dab246 <tdvu@linagora.com>
2026-05-11 16:38:23 +07:00
dab246 48f30203f0 TF-4473 Disable save as draft silently to server
Signed-off-by: dab246 <tdvu@linagora.com>
2026-05-11 16:38:23 +07:00
dab246 4d825d2425 TF-4473 Fix stale blobId races in mobile auto-save 2026-05-11 16:38:23 +07:00
dab246 23de5d3a9b TF-4473 Improve Sentry observability for auto-save failures 2026-05-11 16:38:23 +07:00
dab246 b462511857 TF-4473 Treat missing cache timestamp as expired 2026-05-11 16:38:23 +07:00
dab246 4850bd5c90 TF-4473 Guard concurrent restoreIfEditorBlank calls 2026-05-11 16:38:23 +07:00
dab246 290fb01cf9 TF-4473 Fix double WebView fetch and hash race in _periodicSaveTask 2026-05-11 16:38:23 +07:00
dab246 3e3be57880 TF-4473 Tighten comments in HandleMobileAutoSaveExtension 2026-05-11 16:38:23 +07:00
dab246 8ecfb501a1 TF-4473 Move silent draft save from inactive path to periodic timer 2026-05-11 16:38:23 +07:00
dab246 5c50fc345f TF-4473 Fix content loss race in restoreIfEditorBlank 2026-05-11 16:38:23 +07:00
dab246 6d03df21f9 TF-4473 Avoid invoking web editor updates from the mobile restore path.
Signed-off-by: dab246 <tdvu@linagora.com>
2026-05-11 16:38:23 +07:00
dab246 4551d8a273 TF-4473 Handle restore data for composer on Android
Signed-off-by: dab246 <tdvu@linagora.com>
2026-05-11 16:38:23 +07:00
dab246 c52a1731ee TF-4473 Handle auto-save for composer on Android
Signed-off-by: dab246 <tdvu@linagora.com>
2026-05-11 16:38:23 +07:00
dab246 bc7681768e TF-4473 Add email action type for restoreComposerFromPersistentCache
Signed-off-by: dab246 <tdvu@linagora.com>
2026-05-11 16:38:23 +07:00
dab246 8b79ebac95 TF-4473 Separate mobile/web binding for composer and dashboard
Signed-off-by: dab246 <tdvu@linagora.com>
2026-05-11 16:38:23 +07:00
Dat H. Pham bb3ac0161d TF-4473 Fixup rabbit comment 2026-05-11 13:32:26 +07:00
dab246 067d5db75e TF-4473 Add binding for interactor
Signed-off-by: dab246 <tdvu@linagora.com>
2026-05-11 13:32:26 +07:00
dab246 c93ab7e201 TF-4473 Add implement usecase restore_email_inline_images_interactor.dart, save_composer_cache_interactor.dart, mark_composer_cache_clean_close_interactor.dart, resolve_composer_cache_for_restore_interactor.dart
Signed-off-by: dab246 <tdvu@linagora.com>
2026-05-11 13:32:26 +07:00
dab246 f28cce5a16 TF-4473 Add implement respository/datasource of composer persistent cache
Signed-off-by: dab246 <tdvu@linagora.com>
2026-05-11 13:32:26 +07:00
dab246 330d232053 TF-4473 Add abstraction respository/datasource
Signed-off-by: dab246 <tdvu@linagora.com>
2026-05-11 13:32:26 +07:00
dab246 44630dc435 TF-4473 Add ComposerPersistentCache model
Signed-off-by: dab246 <tdvu@linagora.com>
2026-05-11 13:32:26 +07:00
dab246 6f9be87a39 TF-4473 Refactor reduce cyclomatic complexity in email setup extensions
Signed-off-by: dab246 <tdvu@linagora.com>
2026-05-11 12:05:31 +07:00
amghirbiandCopilot 1474cd84ef refoctor: combine 3 conditions into only one condition
Co-authored-by: Copilot <copilot@github.com>
2026-05-11 11:55:12 +07:00
amghirbiandCopilot 5eaa0f9380 fixup: fixing aiTagWidgetDisplay
Co-authored-by: Copilot <copilot@github.com>
2026-05-11 11:55:12 +07:00
amghirbiandCopilot aed09f36bc fixup: reverting extra changes
Co-authored-by: Copilot <copilot@github.com>
2026-05-11 11:55:12 +07:00
amghirbiandCopilot 9513d6600d fixup: applying padding to aiTagWidget
Co-authored-by: Copilot <copilot@github.com>
2026-05-11 11:55:12 +07:00
amghirbiandCopilot 44ac4be7ab fiixup : aiActionTag should have margin
Co-authored-by: Copilot <copilot@github.com>
2026-05-11 11:55:12 +07:00
amghirbiandCopilot b5a8f5fa72 fix: needs action widget should be inside the aiActionTag
Co-authored-by: Copilot <copilot@github.com>
2026-05-11 11:55:12 +07:00
amghirbi d90bd67953 TF-4444 Enable User Control for Needs Action Label Removal 2026-05-11 11:55:12 +07:00
ssantos 30023ca9a8 Translated using Weblate (Portuguese)
Currently translated at 18.8% (164 of 871 strings)

Translation: Linagora/TeamMail
Translate-URL: https://hosted.weblate.org/projects/linagora/teammail/pt/
2026-05-11 11:51:00 +07:00
Aindriú Mac Giolla Eoin 304ce01404 Translated using Weblate (Irish)
Currently translated at 100.0% (871 of 871 strings)

Translation: Linagora/TeamMail
Translate-URL: https://hosted.weblate.org/projects/linagora/teammail/ga/
2026-05-11 11:51:00 +07:00
Florian DANIEL aka Facyla dece88f666 Translated using Weblate (French)
Currently translated at 100.0% (871 of 871 strings)

Translation: Linagora/TeamMail
Translate-URL: https://hosted.weblate.org/projects/linagora/teammail/fr/
2026-05-11 11:51:00 +07:00
Zoé Bellot 72f469a8ba Translated using Weblate (French)
Currently translated at 100.0% (871 of 871 strings)

Translation: Linagora/TeamMail
Translate-URL: https://hosted.weblate.org/projects/linagora/teammail/fr/
2026-05-11 11:51:00 +07:00
Sketch6580 53914ec093 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (871 of 871 strings)

Translation: Linagora/TeamMail
Translate-URL: https://hosted.weblate.org/projects/linagora/teammail/zh_Hans/
2026-05-11 11:51:00 +07:00
Sketch6580 908f9c8ddd Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 98.3% (857 of 871 strings)

Translation: Linagora/TeamMail
Translate-URL: https://hosted.weblate.org/projects/linagora/teammail/zh_Hans/
2026-05-11 11:51:00 +07:00
Dat H. Pham 82a8fa1374 Translated using Weblate (Vietnamese)
Currently translated at 100.0% (871 of 871 strings)

Translation: Linagora/TeamMail
Translate-URL: https://hosted.weblate.org/projects/linagora/teammail/vi/
2026-05-11 11:51:00 +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
Dang Dat 845161cb62 HOTFIX Sentry disable default replay 2026-05-07 15:33:14 +07:00
Dat Vu 3b47b799fe Implement not include events filter for search (#4451) 2026-05-05 11:04:48 +07:00
Dat Vu ba1ac18314 fix(logger): Reduce Sentry noise with targeted error logging (ADR-0076) (#4467) 2026-05-05 11:01:45 +07:00
Dat Dang 5e4ffcba41 TF-4475 Fix mobile misplaced inline when picked (#4476) 2026-05-04 09:29:01 +07:00
dab246 1b4723ef05 fix(logging): restore per-call webConsoleEnabled as first-class flag
webConsoleEnabled was deprecated in favour of a global constructor flag,
but that removed the ability to force specific log calls visible on web
in release/profile mode — a legitimate need for auth and Sentry init
diagnostics.

Carry webConsoleEnabled through the full pipeline:
LogRecord → buildLogRecord → _dispatch → public log functions.
ConsoleLogHandler reads the flag from the record rather than from its
constructor, so per-call opt-in works independently of build mode.

On web:
- handles() always returns true (filter deferred to handle())
- handle() prints only when record.webConsoleEnabled || isDebugMode

Existing call sites (authorization_interceptors, sentry_config) that
pass webConsoleEnabled: true are preserved and functional again.
2026-04-28 11:31:12 +07:00
dab246 f2048b2503 refactor(logger): centralize handler registration in registerLogHandlers (ADR-0078) 2026-04-28 11:31:12 +07:00
dab246 9876db67f8 feat(logger): add SentryEventHandler and SentryBreadcrumbHandler (ADR-0078)
refactor(logger): register Sentry handlers at startup for mobile and web (ADR-0078)
2026-04-28 11:31:12 +07:00
dab246 bebffa7196 refactor(logger): register ConsoleLogHandler at app startup (ADR-0078) 2026-04-28 11:31:12 +07:00