42 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 H. Pham f68ea28e9e fixup! Stop dropping Firefox multi-file picks when focus returns before change 2026-11-11 10:21:33 +07:00
Dat H. Pham b91b99a0fd fixup! Stop dropping Firefox multi-file picks when focus returns before change 2026-11-11 10:21:33 +07:00
Dat H. Pham 7e72a21fc6 Stop dropping Firefox multi-file picks when focus returns before change 2026-11-11 10:21:33 +07:00
Dat Dang 46f6fe2c26 TF-4827 Show the attaching file bottom sheet on narrow web (#5079) 2026-11-03 13:06:27 +07:00
dab246 df42762fb2 TF-4827 Test that the compact Drive sheet background reaches the side edges in landscape 2026-10-13 14:03:11 +07:00
dab246 a2c8d83d6e TF-4827 Test the Drive upload row file type icon and its mime type from file to row 2026-10-13 14:03:11 +07:00
Dang Dat 88b24968fc TF-4827 Extend the Drive sheet background under the bottom safe area 2026-10-13 14:03:11 +07:00
Dang Dat 7cd27fe07c TF-4827 Keep the Drive dialog rows while it closes 2026-10-13 14:03:11 +07:00
Dang Dat 66aad3da5b TF-4827 Cancel a Drive oversize batch whose dialog was removed and keep it off the next batch 2026-10-13 14:03:11 +07:00
dab246 4c67163f7a TF-4827 Test DriveOversizeTransfer.reportProgress moves a waiting row to uploading on a zero-byte tick 2026-10-13 14:02:28 +07:00
dab246 7c712eb22a TF-4827 Test DriveOversizeUploadDialogPresenter wide layout on web and compact layout on mobile 2026-10-13 14:02:28 +07:00
dab246 81f29e9e93 TF-4827 Test DriveOversizeUploadDialogView row refresh on its own status change and full bar for a linked row of unknown size 2026-10-13 14:02:28 +07:00
Dang Dat 2c11d54700 TF-4827 Keep settled Drive oversize rows unchanged after a late callback
Addresses: 4214235120
https://github.com/linagora/tmail-flutter/pull/4967#discussion_r4214235120
2026-10-13 14:02:03 +07:00
dab246 ede48f0ecf TF-4827 Test DriveOversizeUploadDialogPresenter modal show and guarded close 2026-10-13 14:02:03 +07:00
dab246 27a949727a TF-4827 Test DriveOversizeUploadDialogView status labels, size limit, frozen bar, Cancel and clear 2026-10-13 14:02:03 +07:00
dab246 de1bc57423 TF-4827 Test DriveOversizeTransfer markUploading/markFailed and DriveOversizeTransferState progress bounds 2026-10-13 14:02:03 +07:00
Dang Dat 100a1fc764 TF-4827 Use design-system file transfer dialog
Ref: #4827
2026-10-13 14:01:38 +07:00
Dang Dat d8d80e698c TF-4827 Drive oversize progress dialog
Ref: #4848
2026-10-13 13:59:26 +07:00
dab246 4afb93fddf TF-4827 Test that StreamUploadBody opens a fresh stream on each requestData read 2026-10-13 13:59:09 +07:00
Dang Dat 6db4615efa TF-4827 Add a recovery seam to the size-rejection path
Ref: #4848

TF-4827 Route inline files to the upload recovery

Addresses: 4182803889
https://github.com/linagora/tmail-flutter/pull/4910#discussion_r4182803889

TF-4827 Skip the upload recovery when a rejection carries no files

Addresses: 4191301057
https://github.com/linagora/tmail-flutter/pull/4910#discussion_r4191301057

TF-4827 Document the upload recovery contract

Addresses: 4191300814, 4191300935, 4191301151
https://github.com/linagora/tmail-flutter/pull/4910#discussion_r4191300814
https://github.com/linagora/tmail-flutter/pull/4910#discussion_r4191300935
https://github.com/linagora/tmail-flutter/pull/4910#discussion_r4191301151

TF-4827 Align ADR-0109 with inline files reaching the recovery

Addresses: 4191308467
https://github.com/linagora/tmail-flutter/pull/4910#discussion_r4191308467
2026-10-13 13:59:01 +07:00
Dat Dang c317bae063 TF-4827 Read dropped files lazily (#4908) 2026-10-13 13:59:00 +07:00
Dat Dang 9b05ef5a6c TF-4827 Upgrade file_picker to 13 (#4904) 2026-10-13 13:57:44 +07:00
Dang Dat 79e8d95cf4 TF-4827 Update test target blob_upload_adapter_web_test.dart 2026-10-13 13:57:38 +07:00
Dat H. Pham 137ae64e9c TF-4827 Test the web blob upload adapter in Chrome against a local server 2026-10-13 13:57:37 +07:00
Dang Dat d854b83c5e TF-4827 Send web uploads as the picked blob
Ref: #4848
2026-10-13 13:56:25 +07:00
Dat Dang c864e3afcc TF-4827 Replayable upload body (#4850) 2026-10-13 13:56:25 +07:00
Dat Dang ad637aa695 TF-4827 Split FileInfo into one sealed subtype per byte source (#4853) 2026-10-13 13:56:25 +07:00
dab246 23818d9959 TF-4790 Add attachment upload regression coverage 2026-09-05 16:10:10 +07:00
dab246 61bd84f9fe TF-4790 Scrub upload exception data 2026-09-05 16:10:10 +07:00
dab246 d953645eeb TF-4790 Guard the mobile replay body in _retryUploadRequest and assert probed charset samples 2026-09-05 16:10:10 +07:00
dab246 7ac9848416 TF-4790 Guard the upload body source, web file access and charset probe in FileUploader 2026-09-05 16:10:10 +07:00
dab246 7af02ab425 TF-4790 Run attachment upload on the root DioClient instead of a worker isolate 2026-09-05 16:10:10 +07:00
Dat Dang c36ccffc96 TF-4728 Sentry logging drive attachment failure (#4776) 2026-08-28 17:03:51 +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 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
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 DangandDat H. Pham 20cf265069 TF-4726 Composable validator (#4729)
* TF-4726 Composable validator

* fixup! TF-4726 Composable validator

* fixup! TF-4726 Composable validator

* fixup! TF-4726 Composable validator

* fixup! TF-4726 Composable validator

* fixup! TF-4726 Composable validator

* fixup! TF-4726 Composable validator

* fixup! fixup! TF-4726 Composable validator

---------

Co-authored-by: Dat H. Pham <dphamhoang@linagora.com>
2026-08-12 16:43:49 +07:00
Dat Vu 54ffff4e1d Hotfix: Second Save as Draft Fails for Draft Emails with Attachments or Inline Images (#4505) 2026-05-14 17:11:45 +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 630ebb8dc9 TF-4473 Add tests for selective blobId refresh and draftEmailId persistence 2026-05-11 16:38:23 +07:00