Commit Graph
5425 Commits
Author SHA1 Message Date
dab246 5a21402eb0 TF-4646 Add SearchViewStateNotifier as search view-state SSOT 2026-07-21 06:18:33 +07:00
dab246 c6c2905ff8 TF-4646 Add search view-state value objects (activation, constants, view state) 2026-07-21 06:18:33 +07:00
Dat Vu 6121d30375 TF-4645 SSOT Part 4.2 - Add more unit test for SSOT Part 4 — Migrate mobile search to the central executor (#4703) 2026-07-17 16:05:30 +07:00
dab246 c1c6f7f08a TF-4645 Route search urgent exceptions via InteractorConsumer, drop pendingUrgentException
SearchEmailNotifier consumes interactors through the shared seam (auto routing across all intents); SearchEmailController gates its retry toast with isUrgentException; SearchEmailResult drops the pendingUrgentException field and reverts to pure display state.
2026-07-15 15:27:17 +07:00
dab246 0519be1014 TF-4645 Add InteractorConsumer seam and isUrgentException predicate
consumeInteractor centralizes interactor result folding with automatic urgent-exception routing (ADR-0103) for Riverpod notifiers bypassing consumeState. isUrgentException mirrors that routing's resolution so consumers can suppress fallback UI without re-routing.
2026-07-15 15:27:17 +07:00
dab246 cbcdfb100e TF-4645 Dedup load-more, unify urgent routing, skip unchanged result rebuild
- _runLoadMore drops emails already in the list (_dropAlreadyLoaded) so a same-timestamp page boundary never duplicates rows.
- Rename SearchEmailResult.loadMoreException to pendingUrgentException and have _runRefresh surface it like _runLoadMore, so the notifier no longer routes urgent exceptions itself; SearchEmailController._routePendingUrgentException handles load-more and refresh through the same path as a full-search error.
- _applySearchResult rebuilds the presentation list only when result.emails changes identity, skipping the map/combine/sync on load-more spinner toggles.
2026-07-15 15:27:17 +07:00
dab246 58f2ef0d49 TF-4645 Invalidate searchFilterProvider on SearchEmailController dispose
onClose already released the two keepAlive result providers but left the committed searchFilterProvider intact, leaking a stale filter into the next search session.
2026-07-15 15:27:17 +07:00
dab246 84b0ed4d81 TF-4645 Document mobile-search write-back in _handleUnsubscribeMailSuccess
The mobile-search branch reads a defensive copy of the provider list, so the in-place keyword update must be written back via setResultSearches; the mailbox branch mutates the live RxList directly.
2026-07-15 15:27:17 +07:00
dab246 cac65b1b03 TF-4645 Flatten debounced suggestion flow
Signed-off-by: dab246 <tdvu@linagora.com>
2026-07-15 15:27:17 +07:00
dab246 c5c5811f81 TF-4645 Clear stale load-more exception and guard async search UI
Signed-off-by: dab246 <tdvu@linagora.com>
2026-07-15 15:27:17 +07:00
dab246 7a8a1079a4 TF-4645 Update logic unit test
Signed-off-by: dab246 <tdvu@linagora.com>
2026-07-15 15:27:17 +07:00
dab246 c7a9cd62f9 TF-4645 Remove search_email_sort_order_date_filter_not_leak E2E test
Signed-off-by: dab246 <tdvu@linagora.com>
2026-07-15 15:27:17 +07:00
dab246 6aaceb1578 TF-4645 Migrate mobile search to the central executor
Signed-off-by: dab246 <tdvu@linagora.com>
2026-07-15 15:27:17 +07:00
dab246 266047d84f TF-4644 Add SearchFilterNotifier tests for setMailbox, toggleLabel, setHasAttachment false branch
Signed-off-by: dab246 <tdvu@linagora.com>
2026-07-14 09:45:48 +07:00
dab246 99ba1428c8 TF-4644 Clarify advanced-search activation gate and cover it
Signed-off-by: dab246 <tdvu@linagora.com>
2026-07-14 09:45:48 +07:00
dab246 465f549ade TF-4644 Cover advanced search SSOT changes 2026-07-14 09:45:48 +07:00
dab246 f6616643e6 TF-4644 Apply Riverpod SSOT to advanced search 2026-07-14 09:45:48 +07:00
dab246 687afb6306 TF-4644 Remove unused SearchFilterMutation.clear()
No production caller: clearSearchFilter routes through SearchController to also
drop the obs mirror's stale cursors, never the bare notifier clear. Fix the mixin
header that still referenced the removed draft notifier.
2026-07-14 09:45:48 +07:00
dab246 3b276bd3ec TF-4644 Route AdvancedFilterController mutations through SearchFilterMutation
Drop the _updateCommittedFilter passthrough and _updateKeywordsSearchFilter;
call notifier.update and the toggleStarred/addSender/removeSender/addRecipient/
removeRecipient helpers directly so no call site rebuilds the filter sets.
2026-07-14 09:45:48 +07:00
dab246 d7a52d3970 TF-4644 Sync SearchController search bar with committed filter text
Bind searchInputController to searchFilterProvider.text bidirectionally:
edits push through updateFilterEmail, and the committed-filter mirror
writes the term back (guarded, trimmed-compare) so the search bar and
the advanced 'has the words' field always agree. searchEmailByQueryString
clears text when routing a bare email to the from filter.
2026-07-14 09:45:48 +07:00
dab246 6097e9feaf TF-4644 Build quick-search suggestion filter via mappingToEmailFilterCondition
Route SearchController.quickSearchEmails through the committed
SearchEmailFilter's mappingToEmailFilterCondition so the suggestion
and result screens share one filter set. Drops the partial
_mappingToFilterOnSuggestionForm that silently ignored mailbox,
subject, to/cc/bcc, notKeyword, unread, label, multi-from and events.
Passes trashSpamMailboxIds; removes the now-redundant ownEmailAddress.
2026-07-14 09:45:48 +07:00
dab246 978cbab56f TF-4644 Add web e2e coverage for search-filter SSOT 2026-07-14 09:45:48 +07:00
dab246 293a18f913 TF-4644 Update ADR-0093/0094 to single-notifier SSOT design 2026-07-14 09:45:48 +07:00
dab246 0a5a6e3c2a TF-4644 Route web search through single SearchFilterNotifier 2026-07-14 09:45:48 +07:00
Dat H. Pham f2eb00e2e4 Bump version to v0.30.2 v0.30.2 2026-07-14 09:08:28 +07:00
Dat Vu c363c6c617 TF-4679 Silence transient SSO session recovery errors (#4698) 2026-07-13 14:21:21 +07:00
Benoit TELLIER a36696105e Rename AiScribeConstants to AiCapabilities and move it to the model package (#4695)
The com:linagora:params:jmap:aibot capability is no longer specific to
AI Scribe: Needs Action and auto-labeling rely on it too. Keeping the
constant in the scribe package under a Scribe-flavored name coupled
unrelated AI features to the Scribe feature module.

Closes #4682
2026-07-13 09:25:19 +07:00
Dat Vu 551a428bb0 TF-4546 Fix Android selection handles overlapping composer menu (#4689) 2026-07-10 16:17:12 +07:00
Dang Dat 00d1e055f5 HOTFIX Enable mobile experimental toggle 2026-07-09 13:25:15 +07:00
dab246 4c500da1b5 Gate EmptyFolderFailure toast on _handleUrgentException result
Return bool from _handleUrgentException and skip _showEmptyFolderFailureToast when the exception was urgent-handled, preventing double UX (generic toast + re-login prompt).
2026-07-08 12:21:24 +07:00
dab246 5ed3d70292 Add UrgentExceptionHandlerService for urgent exceptions in Riverpod flows 2026-07-08 12:21:24 +07:00
Dang Dat 125a7933b1 TF-4673 PDF preview error handling 2026-07-08 11:58:38 +07:00
Dat H. Pham bb09a02c21 fix: mailto link in iOS 26 2026-07-07 14:50:51 +07:00
Dat H. Pham a204fe8a1d fix: consume a shared media event once it is handled
pendingSharedFileInfo is a BehaviorSubject, so a handled share stayed
buffered until dashboard teardown and would replay to any future
(re)subscriber, re-opening the composer with an already-processed
share. Clear the pending value as soon as a non-empty share is taken
for processing; the empty-list guard prevents recursion and the
teardown clear remains as defense in depth.
2026-07-07 14:50:51 +07:00
Dat H. Pham 3847d95e0a fix: attach text-format file shares instead of pasting their path into the body
Android delivers both literal shared text (EXTRA_TEXT) and shared
text-format files like .vcf/.ics/.csv (EXTRA_STREAM) with a text/* mime
and SharedMediaType.text, so mime-based routing cannot tell them apart:
a shared calendar or contact file opened the composer with its cache
path as the body. Route by checking whether the payload is a real file
on disk instead, replacing the vCard-only mime special case.
2026-07-07 14:50:51 +07:00
Dat H. Pham 73ecd810dd fix: route parameterized vCard MIME types to file share, not body
text/x-vcard shares carrying MIME parameters (e.g. ";charset=utf-8") or
different casing failed the exact-match check and fell into the content
branch, pasting a raw .vcf file path into the composer body instead of
attaching the contact. Normalize the MIME type (strip parameters, trim,
lowercase) before matching.

Expose the share handler as visibleForTesting and add controller tests for
vCard / text-plain / text-html routing, plus manager coverage that an
EventChannel error is swallowed and later shares still deliver.
2026-07-07 14:50:51 +07:00
Dat H. Pham 52e418934d fix: keep share manager subject open across dashboard teardown
Dashboard onClose closed the singleton EmailReceiveManager's BehaviorSubject.
After a close/reopen cycle (logout/login, route recreation) the next dashboard
subscribed to the dead subject; a later live share then landed on a freshly
recreated subject the listener never subscribed to, so the composer never
opened. Clear pending data by emitting an empty list instead of closing, so
the subject lives for the singleton's lifetime and keeps delivering shares.
2026-07-07 14:50:51 +07:00
Dat H. Pham 43e99d9170 fix: prevent empty initial-media result from clobbering a live share
Subscribe to the live media stream before resolving getInitialMedia, and
apply the cold-start result only when non-empty. A share can land on the
live EventChannel before getInitialMedia resolves; on a normal (non-share)
launch getInitialMedia returns empty, so applying it unconditionally
overwrote the just-arrived share — silently dropping warm-app shares that
land while startup is still settling.

Also add onError/catchError logging to both media sources and a
deterministic regression test that gates getInitialMedia behind a Completer
to reproduce the race.
2026-07-07 14:50:51 +07:00
Dat H. Pham d7037cfb38 fix mailto link with Twake Mail 2026-07-07 14:50:51 +07:00
Dat H. Pham e9b74126cc fix mailto handling 2026-07-07 14:50:51 +07:00
Dat H. Pham 4001af308f [e2e] sharing plain text from outside 2026-07-07 14:50:51 +07:00
Dat H. Pham 28b719fcfe Fix sharing text variety mime type 2026-07-07 14:50:51 +07:00
Dat H. Pham 872715c305 Bump version to v0.30.1 v0.30.1 2026-07-06 10:44:23 +07:00
dab246 d52d5e84ed TF-4667 Add ADR-0102 no basic-auth fallback on SSO detected 2026-07-06 10:14:57 +07:00
dab246 f877a992e3 TF-4667 Tighten ssoConfirmed doc comments to a single source 2026-07-06 10:14:57 +07:00
dab246 a3624dde41 TF-4667 Test ssoConfirmed cache round-trip and interactor propagation 2026-07-06 10:14:57 +07:00
dab246 d9303e2ea9 TF-4667 Gate ssoRedirectFailedMessage on ssoConfirmed and NetworkException 2026-07-06 10:14:57 +07:00
Dat H. Pham 91ed623952 TF-4667 Will not comeback to Basic Auth if SSO detected 2026-07-06 10:14:57 +07:00
dab246 5aa6d9de3d TF-4643 Test refresh superseding in-flight load-more, clarify _runLoadMore concurrency comment 2026-07-06 09:33:02 +07:00
dab246 686373715f TF-4643 Handle superseded refresh loading states
Signed-off-by: dab246 <tdvu@linagora.com>
2026-07-06 09:33:02 +07:00