58 Commits
Author SHA1 Message Date
Dat Dang 46f6fe2c26 TF-4827 Show the attaching file bottom sheet on narrow web (#5079) 2026-11-03 13:06:27 +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 e32c498e02 TF-4827 Show the file type icon in Drive upload rows 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 d7951d2efc TF-4827 Size the Drive dialog close icons to the Figma glyph 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
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
Dang Dat 1164f26cb3 TF-4827 Label the Drive oversize dialog for screen readers
Ref: #4827
2026-10-13 14:02:02 +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
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 ad637aa695 TF-4827 Split FileInfo into one sealed subtype per byte source (#4853) 2026-10-13 13:56:25 +07:00
Dat Dang c36ccffc96 TF-4728 Sentry logging drive attachment failure (#4776) 2026-08-28 17:03:51 +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 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 3fb8b32726 TF-4473 Remove object not used
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 a23d15a9ca TF-4136 refactor(logging): replace logError with logWarning for non-critical cases 2026-01-06 13:53:22 +07:00
dab246 972b20ec16 TF-4050 Preview and download uploaded file in composer on web 2025-11-11 17:48:33 +07:00
dab246 6bbebd8e67 TF-4075 Change attachments location
(cherry picked from commit ab23dac45d)
2025-10-14 09:34:52 +07:00
dab246 ff0ac57c1d Standardize button actions in confirm dialog 2025-08-27 16:06:26 +07:00
DatDang 9e7298bc76 TF-3953 Close several modals when click outside 2025-08-22 11:24:38 +07:00
DatDang 4fd0931c9e TF-3586: Upgrade Flutter to 3.27.4 2025-07-30 15:24:57 +07:00
dab246 3ecb0a36ee Fix do not show session expires dialog when add inline image & attachment
Signed-off-by: dab246 <tdvu@linagora.com>
2025-04-15 00:31:13 -07:00
dab246 89a3743eaf Apply new design for all confirm dialog
Signed-off-by: dab246 <tdvu@linagora.com>
2025-03-31 21:22:11 -07:00
dab246 ae0c847960 Hot fix update new UI for confirm dialog
Signed-off-by: dab246 <tdvu@linagora.com>
2025-03-16 21:55:19 -07:00
dab246 a258dec4ee TF-3410 Use TextTheme apply almost text style for text widget
Signed-off-by: dab246 <tdvu@linagora.com>
2025-03-12 20:17:15 -07:00
dab246 b78aea6103 TF-3514 Add unit test for getMediaTypeFromBase64ImageTag method
Signed-off-by: dab246 <tdvu@linagora.com>

Signed-off-by: dab246 <tdvu@linagora.com>
2025-03-10 03:02:19 -07:00
dab246 4765921a35 TF-3514 Detect base64 image to transfer it to cid attachment
Signed-off-by: dab246 <tdvu@linagora.com>
2025-03-10 03:02:19 -07:00
dab246 778c138a10 TF-3427 Collapse side features of the composer in a side menu
Signed-off-by: dab246 <tdvu@linagora.com>
2025-02-05 03:00:08 -08:00
dab246 d304083b2e TF-3416 Implement preview EML attachment 2025-02-05 03:00:08 -08:00
DatDang b4e9ca3e74 TF-2769 Remove stacktrace of exception from UI 2024-09-10 18:10:57 +07:00
DatDang b2c92388f2 TF-2901 Implement caching composer on log out 2024-07-05 05:07:02 +02:00
dab246 797a14c483 TF-2532 Invoke request focus editor when insert inline image 2024-07-02 13:06:10 +02:00
dab246 82b51082fc TF-2919 Fix memory leak when attach files in composer 2024-06-13 16:03:42 +07:00
dab246 e232514f6b TF-2667 Show sending message dialog when click send button 2024-06-11 13:59:12 +07:00
dab246 145a49d728 TF-2644 Handle total size exceeded maximum size when drag & drop multiple file to composer 2024-06-11 13:59:12 +07:00
dab246 ea30322cbd TF-2644 Display warning dialog when drag from other email exceeded maximum size in composer
Signed-off-by: dab246 <tdvu@linagora.com>
2024-06-11 13:59:12 +07:00
dab246 4350a2bd3a TF-2644 Display warning dialog when pick file exceeded maximum size in composer 2024-06-11 13:59:12 +07:00
DatDang 4c4a02ce7a TF-2533 resolve file picker memory leak 2024-04-15 10:23:33 +07:00
dab246 49a3f7b70f TF-2597 Handles the ability to click the editor close button only once
Signed-off-by: dab246 <tdvu@linagora.com>
2024-02-29 14:45:53 +07:00
dab246 27bf35a513 TF-2510 Show PDF icon in composer`
Signed-off-by: dab246 <tdvu@linagora.com>
2024-01-26 07:57:22 +01:00
dab246 fb47832225 TF-2311 Sync use variables in BaseController to avoid wasting memory
Signed-off-by: dab246 <tdvu@linagora.com>

Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit 21ac80615f)
2023-11-21 16:54:33 +07:00
dab246 913b546ed5 TF-2245 Upload image with cid when drag n drop image
Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit 68f7eff3b2)
2023-10-27 11:18:29 +07:00
dab246 14047c9ccc TF-2245 Fix upload attachment when token expired on web
Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit 0b2ab3c6ff)
2023-10-27 11:18:29 +07:00
dab246 8b20e9e1d4 TF-2118 Handle drop n drop file as attachment
(cherry picked from commit cb1f15dcba)
2023-10-09 12:12:24 +07:00