Commit Graph
41 Commits
Author SHA1 Message Date
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 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
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
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
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
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 6f15cfad16 fixup! TF-4728 Drive picker size limit 2026-08-19 19:41:11 +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
Dang Dat 70cffc09d5 fixup! TF-4660 Drive loading 2026-07-24 14:43:49 +07:00
Dang Dat cd5ec3f75d fixup! TF-4660 Drive loading 2026-07-24 14:43:49 +07:00
Dang Dat 8b40859fa9 fixup! TF-4660 Drive loading 2026-07-24 14:43:49 +07:00
Dang Dat dd1e32b082 TF-4660 Drive loading 2026-07-24 14:43:49 +07:00
Dat Dang 129733d6d3 TF-4684 Add drive card hover close button (#4690) 2026-07-24 11:51:59 +07:00
Dat Dang 082efd797b HOTFIX Drive link card UI (#4709) 2026-07-21 12:02:49 +07:00
Dat Dang 38c1c22759 TF-4661 Improve drive link UI (#4676) 2026-07-14 19:39:53 +07:00
Dat Dang 7ad09bd2d5 TF-4449 Drive backend integration (#4629) 2026-06-30 13:31:54 +07:00
Dat Dang 8ad4685e67 TF-4449 [Part 2] Add drive_attachment presentation layer and composer integration (#4588) 2026-06-29 12:38:49 +07:00
Benoit TELLIER 2b1c6bf3a9 Add Mongolian (mn) language support
Wire up Mongolian as a selectable language and provide full translation
coverage across the three localization modules:

- LanguageCodeConstants: add mongolian = 'mn'
- LocalizationService: add mn to supportedLanguageCodes and Locale('mn','MN')
  to supportedLocales
- app_localizations.dart: add languageMongolian getter
- locale_extension.dart: add localized and native (Монгол) display names
- lib/l10n/intl_mn.arb: full translation (521 keys)
- scribe/lib/scribe/ai/l10n/intl_mn.arb: full translation
- workplace/lib/l10n/app_mn.arb: full translation
- Add languageMongolian string to the other activated language arb files
2026-06-29 12:00:26 +07:00
Dat Dang 9da48308d6 TF-4449 [Part 1] Add postMessage handlers for external drive (#4587) 2026-06-23 12:51:00 +07:00
Dat Dang 9ab0a8e2d8 TF-4583 External drive attachment button visibility (#4609) 2026-06-19 08:51:56 +07:00