Skip to content

refactor: conversation screen [WPB-25864] - #5143

Open
Garzas wants to merge 6 commits into
developfrom
refactor/conversation-screen
Open

refactor: conversation screen [WPB-25864]#5143
Garzas wants to merge 6 commits into
developfrom
refactor/conversation-screen

Conversation

@Garzas

@Garzas Garzas commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

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


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Restructures the Conversation Screen in preparation for upcoming keyboard accessibility improvements.

It extracts the message list, message composer, dialogs, and navigation result handling into separate components. ViewModel dependencies are also hoisted so extracted composables receive state and callbacks.

This is a behavior-preserving refactor. Keyboard navigation changes will be introduced in a follow-up PR.

@Garzas Garzas self-assigned this Aug 7, 2026
@pull-request-size

Copy link
Copy Markdown

Ups 🫰🟨

This PR is too big. Please try to break it up into smaller PRs.

@codecov

codecov Bot commented Aug 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 1.40845% with 210 lines in your changes missing coverage. Please review.
✅ Project coverage is 50.09%. Comparing base (4227a16) to head (2c68630).

Files with missing lines Patch % Lines
...nversations/messagelist/ConversationMessageList.kt 1.64% 177 Missing and 2 partials ⚠️
...droid/ui/home/conversations/ConversationDialogs.kt 0.00% 27 Missing ⚠️
...ome/conversations/ConversationNavigationResults.kt 0.00% 4 Missing ⚠️

❌ Your patch check has failed because the patch coverage (1.40%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5143      +/-   ##
===========================================
- Coverage    50.52%   50.09%   -0.43%     
===========================================
  Files          671      674       +3     
  Lines        24604    24817     +213     
  Branches      3832     3884      +52     
===========================================
+ Hits         12430    12433       +3     
- Misses       11029    11237     +208     
- Partials      1145     1147       +2     
Files with missing lines Coverage Δ
...ome/conversations/ConversationNavigationResults.kt 0.00% <0.00%> (ø)
...droid/ui/home/conversations/ConversationDialogs.kt 0.00% <0.00%> (ø)
...nversations/messagelist/ConversationMessageList.kt 1.64% <1.64%> (ø)

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 4227a16...2c68630. 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

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Test Results

2 225 tests  ±0   2 225 ✅ ±0   1m 55s ⏱️ +8s
  241 suites ±0       0 💤 ±0 
  241 files   ±0       0 ❌ ±0 

Results for commit 2c68630. ± Comparison against base commit 4227a16.

This pull request removes 3 and adds 3 tests. Note that renamed tests count towards both.
com.wire.android.ui.home.conversations.ConversationScreenTest ‑ givenEligibleState_whenCheckingAutoTrigger_thenReturnsTrue()
com.wire.android.ui.home.conversations.ConversationScreenTest ‑ givenRemoteHistoryExhausted_whenCheckingAutoTrigger_thenReturnsFalse()
com.wire.android.ui.home.conversations.ConversationScreenTest ‑ givenSelectedMessage_whenCheckingAutoTrigger_thenReturnsFalse()
com.wire.android.ui.home.conversations.messagelist.ConversationMessageListTest ‑ givenEligibleState_whenCheckingAutoTrigger_thenReturnsTrue()
com.wire.android.ui.home.conversations.messagelist.ConversationMessageListTest ‑ givenRemoteHistoryExhausted_whenCheckingAutoTrigger_thenReturnsFalse()
com.wire.android.ui.home.conversations.messagelist.ConversationMessageListTest ‑ givenSelectedMessage_whenCheckingAutoTrigger_thenReturnsFalse()

@Garzas
Garzas requested review from saleniuk and yamilmedina August 7, 2026 13:32
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.

2 participants