62 Commits
Author SHA1 Message Date
Dat Vu 1861b186a5 TF-5022 T-13 Notify delegated mailboxes and open a notification tap in its account (#5166) 2026-11-25 11:53:27 +07:00
Dat Dang 66674f33bc TF-4827 Move composer toolbar actions into More menu on narrow screens (#5114) 2026-11-13 16:50:40 +07:00
Dang Dat 4359d2e1a0 TF-4827 Show the name Drive stored in the composer file card 2026-10-13 14:03:11 +07:00
Dang Dat 20b7560197 TF-4827 Bound the Drive name conflict retries and fall back to a timestamp name 2026-10-13 14:03:11 +07:00
Dang Dat f12826fb2e TF-4827 Retry Drive name conflicts without a limit 2026-10-13 14:03:11 +07:00
Dang Dat 2d19b86254 TF-4827 Upload oversize attachments to Drive
Ref: #4848
2026-10-13 14:02:48 +07:00
Dang Dat e00be37ad6 TF-4827 State the exchange retry in the per-call exchange count
Addresses: 4214672710
https://github.com/linagora/tmail-flutter/pull/4962#discussion_r4214672710
2026-10-13 13:59:26 +07:00
Dang Dat 8d2be92b9d TF-4827 Move WorkplaceAccessModeRunner from domain to data/transport
Addresses: 4216453186
https://github.com/linagora/tmail-flutter/pull/4962#discussion_r4216453186
2026-10-13 13:59:25 +07:00
Dang Dat 07919acca5 TF-4827 Inject the bridge check so runner bridge paths test on the VM
Addresses: 4216453391
https://github.com/linagora/tmail-flutter/pull/4962#discussion_r4216453391
2026-10-13 13:59:25 +07:00
Dang Dat 6bf71723ec TF-4827 Move Drive intent creation into its own CreateDriveIntentCall
Addresses: 4216206319
https://github.com/linagora/tmail-flutter/pull/4962#discussion_r4216206319
2026-10-13 13:59:18 +07:00
Dang Dat 76149e78cb TF-4827 Replace the two bridge flags with one BridgePolicy enum
Addresses: 4216453602
https://github.com/linagora/tmail-flutter/pull/4962#discussion_r4216453602
2026-10-13 13:59:18 +07:00
Dang Dat 0aeb56b13c TF-4827 Rename WorkplaceAction class to WorkplaceCall to avoid the enum clash
Addresses: 4216453847
https://github.com/linagora/tmail-flutter/pull/4962#discussion_r4216453847
2026-10-13 13:59:18 +07:00
Dang Dat 2e12690a31 TF-4827 Keep bearer fallback when the bridge fails to create an intent 2026-10-13 13:59:18 +07:00
Dang Dat 711dc84982 TF-4827 Resolve one access mode per workplace action
Ref: #4848
2026-10-13 13:59:17 +07:00
Dang Dat d7d7fd2ae3 TF-4827 Stop linking a Drive upload the user cancelled
Addresses: 4205615926, 4205795272
https://github.com/linagora/tmail-flutter/pull/4961#discussion_r4205615926
https://github.com/linagora/tmail-flutter/pull/4961#discussion_r4205795272
2026-10-13 13:59:09 +07:00
Dang Dat 1ff1179f32 TF-4827 Build the Drive share link host from the stack's subdomain mode
Addresses: 4203158177
https://github.com/linagora/tmail-flutter/pull/4961#discussion_r4203158177
2026-10-13 13:59:09 +07:00
Dang Dat f597274ac6 TF-4827 Mint a Drive share link
Ref: #4848
2026-10-13 13:59:09 +07:00
Dang Dat 72932160a9 TF-4827 Inject Drive file ops as their own datasource into the repository
Addresses: 4203923692
https://github.com/linagora/tmail-flutter/pull/4960#discussion_r4203923692
2026-10-13 13:59:09 +07:00
Dang Dat 7376e4e364 TF-4827 Keep transport types out of the domain upload contract
Addresses: 4203049663
https://github.com/linagora/tmail-flutter/pull/4960#discussion_r4203049663
2026-10-13 13:59:09 +07:00
Dang Dat 4d102396c0 TF-4827 Keep incrementing the upload name suffix on repeated conflicts
Addresses: 4203049658
https://github.com/linagora/tmail-flutter/pull/4960#discussion_r4203049658
2026-10-13 13:59:09 +07:00
Dang Dat d33aac1445 TF-4827 Read a fresh upload body for each name-conflict retry
Addresses: 4202658622, 4203174794
https://github.com/linagora/tmail-flutter/pull/4960#discussion_r4202658622
https://github.com/linagora/tmail-flutter/pull/4960#discussion_r4203174794
2026-10-13 13:59:09 +07:00
Dang Dat 30e661403f TF-4827 Upload a file to the Drive Mail folder
Ref: #4848
2026-10-13 13:59:09 +07:00
Dang Dat 750bd770b1 TF-4827 Move the workplace request value types to the data model
Addresses: 4194223600, 4194227780, 4194228581
https://github.com/linagora/tmail-flutter/pull/4959#discussion_r4194223600
https://github.com/linagora/tmail-flutter/pull/4959#discussion_r4194227780
https://github.com/linagora/tmail-flutter/pull/4959#discussion_r4194228581
2026-10-13 13:59:09 +07:00
Dang Dat 276c590169 TF-4827 One workplace request executor for both access modes
Ref: #4848
2026-10-13 13:59:08 +07:00
Dat Dang 3be2c51eff TF-4827 Rename the workplace access mode (#4957)
Ref: #4848
2026-10-13 13:59:01 +07:00
Dat Dang e6f9463c61 Allow workplace to refresh jmap token (#4810) 2026-09-15 15:58:43 +07:00
Fernando da Silva Sousa 57034dfa2f feat: add Brazilian Portuguese localization (#4812) 2026-09-10 10:54:38 +07:00
Dat Dang de880a8b5c Implement fetchJson for workplace web (#4804) 2026-09-09 17:01:57 +07:00
Dat Dang c36ccffc96 TF-4728 Sentry logging drive attachment failure (#4776) 2026-08-28 17:03:51 +07:00
Dang Dat 398b550f33 HOTFIX Drive document nullable mimetype 2026-08-28 12:25:44 +07:00
Dang Dat cf6626513d HOTFIX Remove drive close button 2026-08-27 15:33:21 +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 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
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
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 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
Dang Dat 7ae77da417 TF-4728 Drive picker size limit 2026-08-19 19:41:11 +07:00
Dat Dang 32740868b1 TF-4728 Delete unused drive picker architecture (#4763) 2026-08-19 11:05:16 +07:00
Dat Dang 7d7ad0f150 TF-4727 [Part-2] Add web OPFS drive file stager and strategy selection (#4746)
* TF-4726 Add web OPFS drive file stager and strategy selection

TF-4727: streams a drive document via fetch()/ReadableStream into an
Origin Private File System temp file, uploaded via raw XHR (the only
upload FileUploader can't do). drive_transfer_strategy_factory_web.dart
picks OPFS vs. the already-merged buffered strategy based on cached
feature detection. Depends only on the drive_transfer interfaces and
the buffered strategy already merged; independent of the IO stager.

* fixup! TF-4726 Add web OPFS drive file stager and strategy selection

* fixup! TF-4726 Add web OPFS drive file stager and strategy selection

* fixup! TF-4726 Add web OPFS drive file stager and strategy selection

* fixup! TF-4726 Add web OPFS drive file stager and strategy selection

* fixup! TF-4726 Add web OPFS drive file stager and strategy selection

* fixup! TF-4726 Add web OPFS drive file stager and strategy selection

* fixup! TF-4726 Add web OPFS drive file stager and strategy selection

review-comment: 3763755085

https://github.com/linagora/tmail-flutter/pull/4746#discussion_r3763755085

* fixup! TF-4726 Add web OPFS drive file stager and strategy selection

review-comment: 3763760860

https://github.com/linagora/tmail-flutter/pull/4746#discussion_r3763760860

* fixup! TF-4726 Add web OPFS drive file stager and strategy selection

review-comment: 3763766518

https://github.com/linagora/tmail-flutter/pull/4746#discussion_r3763766518

* fixup! TF-4726 Add web OPFS drive file stager and strategy selection

review-comment: 3763775476

https://github.com/linagora/tmail-flutter/pull/4746#discussion_r3763775476

* fixup! TF-4726 Add web OPFS drive file stager and strategy selection

review-comment: 3763839738

https://github.com/linagora/tmail-flutter/pull/4746#discussion_r3763839738

* fixup! TF-4726 Add web OPFS drive file stager and strategy selection

review-comment: 3764281232

https://github.com/linagora/tmail-flutter/pull/4746#discussion_r3764281232

* fixup! TF-4726 Add web OPFS drive file stager and strategy selection

review-comment: 3764291419

https://github.com/linagora/tmail-flutter/pull/4746#discussion_r3764291419

* fixup! TF-4726 Add web OPFS drive file stager and strategy selection

review-comment: 3764661702

https://github.com/linagora/tmail-flutter/pull/4746#discussion_r3764661702

* fixup! TF-4726 Add web OPFS drive file stager and strategy selection

review-comment: 3764662457

https://github.com/linagora/tmail-flutter/pull/4746#discussion_r3764662457

* fixup! TF-4726 Add web OPFS drive file stager and strategy selection

review-comment: 3764620926

https://github.com/linagora/tmail-flutter/pull/4746#discussion_r3764620926

* fixup! TF-4726 Add web OPFS drive file stager and strategy selection

review-comment: 3764626632

https://github.com/linagora/tmail-flutter/pull/4746#discussion_r3764626632

* fixup! TF-4726 Add web OPFS drive file stager and strategy selection

review-comment: 3764601732

https://github.com/linagora/tmail-flutter/pull/4746#discussion_r3764601732

* fixup! TF-4726 Add web OPFS drive file stager and strategy selection

review-comment: 3764608947

https://github.com/linagora/tmail-flutter/pull/4746#discussion_r3764608947
2026-08-12 16:45:58 +07:00
Dat Dang 7cbda0dd0d TF-4727 [Part-1] Drive-transfer sealed types, stager interfaces, buffered stager (#4731)
* TF-4726 Add drive-transfer sealed types, stager interfaces, and buffered stager

Foundation for TF-4727 drive-file-as-attachment download/upload: sealed
StagedDriveFile result types, DriveFileStager/DriveTransferStrategy
interfaces, and the buffered-web strategy as the first concrete
implementation proving the interfaces out. Isolated to workplace/, no
main-app callers yet.

* fixup! TF-4726 Add drive-transfer sealed types, stager interfaces, and buffered stager

* fixup! TF-4726 Add drive-transfer sealed types, stager interfaces, and buffered stager

* fixup! TF-4726 Add drive-transfer sealed types, stager interfaces, and buffered stager

* fixup! TF-4726 Add drive-transfer sealed types, stager interfaces, and buffered stager

* fixup! TF-4726 Add drive-transfer sealed types, stager interfaces, and buffered stager

* fixup! TF-4726 Add drive-transfer sealed types, stager interfaces, and buffered stager

* fixup! TF-4726 Add drive-transfer sealed types, stager interfaces, and buffered stager

* fixup! TF-4726 Add drive-transfer sealed types, stager interfaces, and buffered stager
2026-08-12 16:44:29 +07:00
Dang Dat 39ddae6ec7 TF-4739 Enable mobile drive picker 2026-07-31 11:39:30 +07:00
Dat Vu bf804ee25e TF-4738 Fix response view while drive picker loading display prevent drive picker (#4740) 2026-07-31 09:17:17 +07:00
Dat Dang 3e9ce7613e TF-4742 Drive picker theme (#4743) 2026-07-30 14:34:47 +07:00
Dat Vu b92d633614 Fix Drive picker stuck 20s on readyTimeout when token_exchange or page load fails (#4737) 2026-07-30 09:39:19 +07:00
Dat Dang 07b2411a00 Add logo drive loading (#4736) 2026-07-29 14:02:30 +07:00
Dat Dang cfe3886cd7 Handle add as attachment in development (#4716) 2026-07-27 14:04:13 +07:00
Dang Dat f1d896d505 fixup! TF-4660 Drive loading 2026-07-24 14:43:49 +07:00
Dang Dat 5124922074 fixup! TF-4660 Drive loading 2026-07-24 14:43:49 +07:00
Dang Dat 1a23b0f460 fixup! TF-4660 Drive loading 2026-07-24 14:43:49 +07:00
Dang Dat d0cf86c9e5 fixup! TF-4660 Drive loading 2026-07-24 14:43:49 +07:00