Skip to content

feat: fetch apps and collaborators (WPB-25747) - #5220

Open
sbakhtiarov wants to merge 1 commit into
developfrom
feat/apps-and-collaborators-fetch
Open

feat: fetch apps and collaborators (WPB-25747)#5220
sbakhtiarov wants to merge 1 commit into
developfrom
feat/apps-and-collaborators-fetch

Conversation

@sbakhtiarov

@sbakhtiarov sbakhtiarov commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

https://wearezeta.atlassian.net/browse/WPB-25747

https://wearezeta.atlassian.net/browse/WPB-25747

What's new in this PR?

Issues

The Apps search relied on locally cached users, which can be incomplete for teams with more than 2,000 members. This could incorrectly show an empty Apps page even though apps were available.

Solutions

Refresh apps once when the Apps page is opened and wait for the refresh before resolving the initial empty-query results. Subsequent searches use the refreshed local cache without repeating the synchronization.
If refreshing fails, log the failure and continue using the existing cached apps.

When apps are disabled for the conversation, render the disabled-state content directly without creating the Apps ViewModel or making network requests. The legacy services flow remains unchanged.

@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.47619% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.46%. Comparing base (c86c0a1) to head (990b69e).
⚠️ Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
...om/wire/android/search/apps/SearchAppsViewModel.kt 90.47% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #5220   +/-   ##
========================================
  Coverage    52.46%   52.46%           
========================================
  Files          739      739           
  Lines        25729    25734    +5     
  Branches      4220     4223    +3     
========================================
+ Hits         13498    13502    +4     
+ Misses       10940    10939    -1     
- Partials      1291     1293    +2     
Files with missing lines Coverage Δ
...n/com/wire/android/search/apps/AppsContentState.kt 0.00% <ø> (ø)
...om/wire/android/search/apps/SearchAppsViewModel.kt 94.82% <90.47%> (-3.25%) ⬇️

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c86c0a1...990b69e. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

2 622 tests   2 622 ✅  1m 20s ⏱️
  333 suites      0 💤
  333 files        0 ❌

Results for commit 990b69e.

Comment on lines +35 to 41
Box(
modifier = modifier
.fillMaxWidth()
.wrapContentHeight()
.fillMaxSize()
.padding(dimensions().spacing16x),
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.Center,
) {
Text(
text = stringResource(R.string.search_results_apps_empty_description_disabled_for_conversation),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the new Box doesn't specify any alignment, the text will move to the top-start. we could use contentAlignment = Alignment.Center here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants