Commit Graph
5557 Commits
Author SHA1 Message Date
Dang Dat 255bd4eacd Implement fetchJson for workplace web v0.36.1-rc01 2026-09-03 17:26:41 +07:00
Dat H. Pham 5a98d63e63 Bump version to v0.36.0 v0.36.0 2026-08-28 17:54:54 +07:00
Dat H. Pham 7631a045e4 Translate vi, ru, fr, mn 2026-08-28 17:53:17 +07:00
Dat Dang c36ccffc96 TF-4728 Sentry logging drive attachment failure (#4776) 2026-08-28 17:03:51 +07:00
Rene Cordier 2bba5689d5 Change to specific flutter-web label for flutter web builds 2026-08-28 12:56:55 +07:00
Rene Cordier 700a55acba Fix mobile build 2026-08-28 12:56:55 +07:00
Dang Dat bebb94cf3b HOTFIX Cover nullable mimeType in Drive document tests
Addresses: 5047752299
https://github.com/linagora/tmail-flutter/pull/4788#pullrequestreview-5047752299
2026-08-28 12:25:44 +07:00
Dang Dat 398b550f33 HOTFIX Drive document nullable mimetype 2026-08-28 12:25:44 +07:00
dab246 625b24142f fix(ios): sync flutter localization pod lock 2026-08-28 11:49:56 +07:00
Dang Dat 4868423bd1 fixup! HOTFIX Remove drive close button 2026-08-27 15:33:21 +07:00
Dang Dat cf6626513d HOTFIX Remove drive close button 2026-08-27 15:33:21 +07:00
Dat H. Pham a405777be7 fix: write flutter test report to a file instead of stdout 2026-08-27 15:32:53 +07:00
Dang Dat f66156cce7 TF-4728 Identify which transfer failed in the callback-guard log
Problem: the guard around caller callbacks logs only the label and the
exception, so a Sentry event cannot be tied back to a specific drive
transfer within a batch.
Decision: index placeholders by task id in transfer() and pass the
matching placeholder into _notify, which attaches task id, file size and
mime type as log extras. File name is left out on purpose — extras reach
Sentry and the three remaining fields already correlate the event with
the chip and the upload request.

Addresses: 3860970649
https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3860970649
v0.35.2-rc02
2026-08-26 17:26:59 +07:00
Dang Dat 13e1b01d19 TF-4728 Release the picker guard when the modal closes, not when the callback ends
Problem: awaiting the pick callback inside the re-entrancy guard's try left
_modalOpen true for the whole consumer handler, so the Drive button stayed dead
while the picked documents uploaded.
Decision: extract the modal phase into _openPicker() and dispatch the outcome
after the guard is released, so the guard means "a modal is on screen" and
nothing more; the failure paths now all route through _handleOutcome.

Addresses: 65fc450fc
2026-08-26 17:26:59 +07:00
Dang Dat fdaf01faf9 TF-4728 Cover the unavailable upload-from-url endpoint in composer tests
Problem: the ComposerController Drive tests covered link insertion only, so the
attachment path was unverified when jmapUrl is empty or the session exposes no
upload-from-url endpoint — a regression there is a silent no-op with no toast.

Decision: test through handleDrivePickResult with the real DriveAttachmentHandler
rather than calling the private guard, so the assertions pin the production
wiring between DynamicUrlInterceptors, Session, AccountId and the toast. The
failure's bare Exception is asserted to tell the not-started outcome apart from
handleDrivePickResult's catch-all, which would otherwise let the test pass on a
thrown error. The existing alice session fixture already lacks the capability,
so the unsupported endpoint case needs no new fixture.

Addresses: 3860779187
https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3860779187
2026-08-26 17:26:59 +07:00
Dang Dat 03c369c134 TF-4728 Turn pre-modal picker configuration failures into a visible outcome
Problem: onPickerTap() resolved localizations, session capabilities and the
theme outside any catch, so a throw there escaped as an unhandled asynchronous
error and the tap silently did nothing instead of dispatching DrivePickFailure.

Decision: catch around the whole tap body rather than guarding each getter —
the mixin takes arbitrary injected getters from consumers, so the boundary
cannot rely on any of them staying null-safe. failingMessage is hoisted and
assigned before the capability read, so a resolver throw still carries the
localized text and only a localization failure falls back to the generic toast.
The finally already released _modalOpen; a regression test now pins that a
retry after a failed tap works.

Addresses: 3860772852
https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3860772852
2026-08-26 17:26:59 +07:00
Dang Dat 562a484727 TF-4728 Split the drive pick outcome branching out of the entry point
Problem: CodeScene flags handleDrivePickResult twice — cyclomatic
complexity 9 (threshold 9) and a complex conditional with 2 branches
(threshold 2). Both come from the same cause: the entry point decides
which toast to show as well as what to attach.

Decision: keep the entry point to the pick flow (split, insert, transfer)
and move each toast decision to its own named method. The dropped-docs
conditional is split as `droppedCount == 0 || !attachedAny` inside
_showDroppedDocsFailure, with the two-list check passed in as one
argument, so no single expression chains two operators. Behaviour is
unchanged — all 29 handler tests pass untouched.

Addresses: 3860581376, 3860587468
https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3860581376
https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3860587468
2026-08-26 17:26:59 +07:00
Dat H. PhamandCursor 6dad7b8c77 TF-4728 Expect a second pick while the first callback still runs
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 17:26:59 +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
Dat H. PhamandCursor f62b721da0 TF-4728 Keep sibling Drive uploads running after one chip cancel
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 17:26:59 +07:00
Dang Dat 34a8c164b1 TF-4728 Log every attachment upload failure, not only unshowable ones
Problem: the failure is logged only when there is no context to toast into, so
the common path leaves no record of which upload failed.
Decision: log first, then toast — the log line is the only durable trace once the
chip is removed.

Addresses: 3859378962
https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3859378962
2026-08-26 17:26:59 +07:00
Dang Dat b9e2802724 TF-4728 Keep in-flight uploads across an attachment refresh
Problem: saving a draft while a drive transfer is waiting rebuilds the attachment
list from the server response, which has no entry for a chip that has no blob yet.
The chip and its cancel token are dropped while the request keeps running, so a
late success has nothing to resolve and the attachment disappears.
Decision: carry not-yet-completed states through the refresh instead of filtering
the server response, so the rule holds for any pending upload, not just drive.

Addresses: 3859504637
https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3859504637
2026-08-26 17:26:59 +07:00
Dang Dat e29ab82eb1 TF-4728 Await the drive pick callback instead of dropping its Future
Problem: the pick callback typedefs are void while the registry handler is async,
so a throw before handleDrivePickResult's own catch escapes as an unhandled zone
error and the pick fails with no feedback.
Decision: make the callback chain Future-returning end to end and await it in the
picker mixin, so every failure lands in a catch that can log it.

Addresses: 3859150779, 3859151557
https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3859150779
https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3859151557
2026-08-26 17:26:59 +07:00
Dang Dat 7c9627982b TF-4728 Do not resolve a drive transfer that was cancelled mid-flight
Problem: cancellation is only checked before the upload call, so a response that
lands after the user removed the chip still fires onSuccess and toasts success.
Decision: re-check the cancel token right after the await and drop the result.
Cancellation resolves neither counter, matching the queued-task guard above it.

Addresses: 3859630902
https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3859630902
2026-08-26 17:26:59 +07:00
Dang Dat ba9f591625 TF-4728 Contain caller callback throws inside the drive transfer runner
Problem: onPlaceholdersReady, onSuccess and onFailure are invoked unguarded, so a
throw from the composer's UploadController callbacks aborts Future.wait, strands
waiting chips and loses the batch outcome.
Decision: the runner owns the batch lifecycle, so it guards every caller callback
itself rather than trusting each call site. A throw from onPlaceholdersReady ends
the batch as not-started (the handler already toasts that), a throw from a
per-task callback is logged and contained to that task so siblings still resolve.

Addresses: 3859150764, 3859150765, 3859150766, 3859151445
https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3859150764
https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3859150765
https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3859150766
https://github.com/linagora/tmail-flutter/pull/4767#discussion_r3859151445
2026-08-26 17:26:59 +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
Dat H. Pham e761ec6bea (test) test with dialog when should shouldOfferCloseComposer is default value 2026-08-26 15:26:07 +07:00
Dat H. Pham 7ea77bac89 (test) test with dialog when over quota 2026-08-26 15:26:07 +07:00
dab246 5d5b6b0126 TF-4472 Fix draft save failure dialog 2026-08-26 15:26:07 +07:00
Rene Cordier 2a30ab80de [Build] Firebase policy changes: upload to specific bucket name 2026-08-26 12:46:31 +07:00
dab246 5541df9d3e TF-4678 Fix duplicate mailbox sidebar IDs 2026-08-26 10:12:55 +07:00
dab246 b21010e094 TF-4678: fix mobile mailbox sidebar spacing and feedback 2026-08-26 10:12:55 +07:00
Dat H. Pham 2686c3c4ab (test) for the duplicated of namespaces 2026-08-26 10:12:55 +07:00
dab246 a4d5ee51fd TF-4678: fix mailbox sidebar and icon behavior 2026-08-26 10:12:55 +07:00
dab246 7ad99e7b39 TF-4678 Update linagora design flutter dependency 2026-08-26 10:12:55 +07:00
dab246 c4d726cf7a TF-4678 Update linagora design flutter 2026-08-26 10:12:55 +07:00
dab246 778c0d4370 TF-4678 chore(deps): update linagora sidebar component 2026-08-26 10:12:55 +07:00
dab246 6656ed79a8 TF-4678 refactor(mailbox): remove sidebar tree horizontal scrolling 2026-08-26 10:12:55 +07:00
dab246 269d9353ca TF-4678 chore(deps): update linagora sidebar tree dependency 2026-08-26 10:12:55 +07:00
dab246 5d26ea8308 TF-4678 feat(mailbox): support deep sidebar tree navigation 2026-08-26 10:12:55 +07:00
dab246 feaf6e0f4d TF-4678 refactor(mailbox): reuse expand mode state 2026-08-26 10:12:55 +07:00
dab246 c3bbbb1a83 TF-4678 test(e2e): update sidebar navigation scenarios 2026-08-26 10:12:55 +07:00
dab246 a8b338328e TF-4678 test(mailbox): cover sidebar integration 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
dab246 cfaeb56f50 TF-4678 chore(deps): update linagora design flutter to 0.3.0 2026-08-26 10:12:55 +07:00
e300fea934 TF-4728 Drive picker data layer (#4764)
* TF-4728 Drive picker data layer

* fixup! TF-4728 Drive picker data layer

* fixup! TF-4728 Drive picker data layer

review-comment: 3818227574

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3818227574

* fixup! TF-4728 Drive picker data layer

review-comment: 3818227592

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3818227592

* fixup! TF-4728 Drive picker data layer

review-comment: 3818227604

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3818227604

* fixup! TF-4728 Drive picker data layer

review-comment: 3818227608

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3818227608

* fixup! TF-4728 Drive picker data layer

review-comment: 3820850595

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3820850595

* fixup! TF-4728 Drive picker data layer

review-comment: r3826862549

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3826862549

* fixup! TF-4728 Drive picker data layer

review-comment: r3826914510

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3826914510

* fixup! TF-4728 Drive picker data layer

review-comment: r3826922420

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3826922420

* fixup! TF-4728 Drive picker data layer

review-comment: r3827010446, r3826926449, r3826947008

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3827010446

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3826926449

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3826947008

* fixup! TF-4728 Drive picker data layer

review-comment: r3827015957

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3827015957

* fixup! TF-4728 Drive picker data layer

review-comment: 5365193125

https://github.com/linagora/tmail-flutter/pull/4764#issuecomment-5365193125

* test: pin upload-from-url URI gate, hive persist, and empty-body POST

Co-authored-by: Cursor <cursoragent@cursor.com>

* fixup! TF-4728 Drive picker data layer

review-comment: 3829217029

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3829217029

* fixup! TF-4728 Drive picker data layer

review-comment: 3829254358

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3829254358

* fixup! TF-4728 Drive picker data layer

review-comment: 3829298409

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3829298409

* fixup! TF-4728 Drive picker data layer

review-comment: 3840752770, 3840801835

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3840752770

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3840801835

* fixup! TF-4728 Drive picker data layer

review-comment: 3841010607

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3841010607

* fixup! TF-4728 Drive picker data layer

review-comment: 3841010610

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3841010610

* fixup! TF-4728 Drive picker data layer

review-comment: 3841010614

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3841010614

* fixup! test: pin upload-from-url URI gate, hive persist, and empty-body POST

review-comment: 3841010619

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3841010619

* fixup! test: pin upload-from-url URI gate, hive persist, and empty-body POST

review-comment: 3841010623

https://github.com/linagora/tmail-flutter/pull/4764#discussion_r3841010623

---------

Co-authored-by: Dat H. Pham <dphamhoang@linagora.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 10:15:13 +07:00
Dat Dang 583ffc7514 HOTFIX Support Android API 36 (#4775) 2026-08-24 15:52:39 +07:00
Dat H. Pham 7c8e99dfc4 Bump version to v0.35.1 v0.35.1 2026-08-21 14:58:55 +07:00
Dat H. Pham df8fc5cadf test(search): cover remaining move and delete sync gaps 2026-08-21 14:47:03 +07:00
Dat H. PhamandCursor 73bb595c68 test(search): cover archive success patching search results
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 14:47:03 +07:00