Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update flow for new group conversation creation [WPB-1630] #2797

Merged
merged 18 commits into from
Mar 22, 2024

Conversation

saleniuk
Copy link
Contributor

@saleniuk saleniuk commented Mar 18, 2024

StoryWPB-1630 Create new group conversation (new flow)


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?

Updated the flow of creating new conversation according to current designs.
Unified margins for rows that use RowItemTemplate and contain avatars according to current designs.

https://www.figma.com/file/UgKehvwIbiIiQ2CCEdsVuf/Android?node-id=10186%3A103975

Dependencies (Optional)

Needs to be released after:

Testing

How to Test

Try to create new conversation.

Attachments (Optional)

create_conversation_flow_v2.mp4

PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

Copy link
Contributor

github-actions bot commented Mar 18, 2024

Test Results

873 tests  +13   873 ✅ +13   16m 38s ⏱️ + 4m 11s
117 suites ± 0     0 💤 ± 0 
117 files   ± 0     0 ❌ ± 0 

Results for commit da127b3. ± Comparison against base commit 2ff2e04.

This pull request removes 7 and adds 20 tests. Note that renamed tests count towards both.
com.wire.android.ui.home.conversations.details.GroupConversationDetailsViewModelTest ‑ given user has no teamId and conversation no teamId, when init group options, then read receipt toggle is disabled()
com.wire.android.ui.home.conversations.details.GroupConversationDetailsViewModelTest ‑ given user has no teamId, is admin and conversation has teamId, when init group options, then read receipt toggle is enabled()
com.wire.android.ui.home.conversations.details.GroupConversationDetailsViewModelTest ‑ given user has no teamId, not admin and conversation has teamId, when init group options, then read receipt toggle is enabled()
com.wire.android.ui.home.conversations.details.GroupConversationDetailsViewModelTest ‑ given user has teamId, is admin and conversation teamId, when init group options, then read receipt toggle is enabled()
com.wire.android.ui.home.conversations.details.GroupConversationDetailsViewModelTest ‑ when no guests and disable service dialog confirmed, then use case is called with the correct values()
com.wire.android.ui.home.conversations.details.GroupConversationDetailsViewModelTest ‑ when no guests and enabling services, use case is called with the correct values()
com.wire.android.ui.home.conversations.search.SearchBarViewModelTest ‑ given addMemberSearchNavArgs is null, then state is updated correctly()
com.wire.android.ui.home.conversations.details.GroupConversationDetailsViewModelTest ‑ given user is admin and external team member, when init group options, then group name update is not allowed()
com.wire.android.ui.home.conversations.details.GroupConversationDetailsViewModelTest ‑ given user is admin and internal team member, when init group options, then group name update is allowed()
com.wire.android.ui.home.conversations.details.GroupConversationDetailsViewModelTest ‑ given user is admin and member of group owner team, when init group options, then guests update is allowed()
com.wire.android.ui.home.conversations.details.GroupConversationDetailsViewModelTest ‑ given user is admin and not member of group owner team, when init group options, then guests update is not allowed()
com.wire.android.ui.home.conversations.details.GroupConversationDetailsViewModelTest ‑ given user is admin and not team group, when init group options, then read receipts update is not allowed()
com.wire.android.ui.home.conversations.details.GroupConversationDetailsViewModelTest ‑ given user is admin and team group, when init group options, then read receipts update is allowed()
com.wire.android.ui.home.conversations.details.GroupConversationDetailsViewModelTest ‑ given user is admin, when init group options, then self deleting update is allowed()
com.wire.android.ui.home.conversations.details.GroupConversationDetailsViewModelTest ‑ given user is admin, when init group options, then services update is allowed()
com.wire.android.ui.home.conversations.details.GroupConversationDetailsViewModelTest ‑ given user is not admin and external team member, when init group options, then group name update is not allowed()
com.wire.android.ui.home.conversations.details.GroupConversationDetailsViewModelTest ‑ given user is not admin and internal team member, when init group options, then group name update is not allowed()
…

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Mar 18, 2024

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 43.56%. Comparing base (40e0afb) to head (34bb89a).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2797      +/-   ##
===========================================
- Coverage    43.57%   43.56%   -0.02%     
===========================================
  Files          414      414              
  Lines        13914    13913       -1     
  Branches      2519     2518       -1     
===========================================
- Hits          6063     6061       -2     
- Misses        7144     7145       +1     
  Partials       707      707              
Files Coverage Δ
...ui/home/conversations/search/SearchBarViewModel.kt 100.00% <ø> (ø)
...ui/home/conversations/search/SearchPeopleRouter.kt 0.00% <0.00%> (ø)
...in/kotlin/com/wire/android/model/ItemActionType.kt 0.00% <0.00%> (ø)

Continue to review full report in Codecov by Sentry.

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

Copy link
Contributor

APKs built during tests are available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 3641 succeeded.

The build produced the following APK's:

…creation-flow-v2

# Conflicts:
#	app/src/main/kotlin/com/wire/android/model/ItemActionType.kt
#	app/src/main/kotlin/com/wire/android/ui/home/conversations/search/InternalContactSearchResultItem.kt
#	app/src/main/kotlin/com/wire/android/ui/home/conversations/search/SearchPeopleRouter.kt
#	app/src/main/kotlin/com/wire/android/ui/home/conversations/search/adddembertoconversation/AddMembersSearchScreen.kt
#	app/src/main/kotlin/com/wire/android/ui/home/newconversation/search/NewConversationSearchPeopleScreen.kt
#	kalium
@wireapp wireapp deleted a comment from github-actions bot Mar 18, 2024
@AndroidBob
Copy link
Collaborator

Build 3649 succeeded.

The build produced the following APK's:

@saleniuk saleniuk requested review from a team, typfel, yamilmedina, mchenani, Garzas and ohassine and removed request for a team March 19, 2024 09:01
Copy link
Contributor

@alexandreferris alexandreferris left a comment

Choose a reason for hiding this comment

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

🎉

@saleniuk saleniuk added this pull request to the merge queue Mar 22, 2024
Merged via the queue into develop with commit ec46b08 Mar 22, 2024
13 checks passed
@saleniuk saleniuk deleted the feat/conversation-creation-flow-v2 branch March 22, 2024 10:43
@echoes-hq echoes-hq bot added the echoes: product-roadmap Work aligned with the customer-announced roadmap, targeting a specific release date. label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: product-roadmap Work aligned with the customer-announced roadmap, targeting a specific release date. size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants