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: Adding option on bottom sheet to archive use cases #2262

Merged
merged 18 commits into from
Sep 26, 2023

Conversation

gongracr
Copy link
Contributor


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?

Issues

We need an option to be able to archive conversations visually and consume updateConversationArchivedStatusUseCase.

Solutions

Added the option on the different bottom sheets displayed when interacting with conversations options in HomeScreen, GroupConversationDetailsScreen, and OtherUserProfileScreen. I also added the respective snackbar messages on success and failed states.

Dependencies (Optional)

Needs releases with:

  • GitHub link to other pull request

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

How to Test

Load conversations in HomeScreen, long tap on a given one and click on Move to archive option. Check the conversation disappears and doesn't get displayed anymore. This behavior can also be replicated on Other users profile screen and on Group details screen.

Attachments (Optional)

Grabacion.de.pantalla.2023-09-22.a.las.15.32.29.mov

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.

…to feat/adding_archiving_use_cases

# Conflicts:
#	app/src/main/kotlin/com/wire/android/di/CoreLogicModule.kt
@github-actions
Copy link
Contributor

github-actions bot commented Sep 22, 2023

Test Results

623 tests  +4   622 ✔️ +4   6m 33s ⏱️ - 1m 40s
  89 suites ±0       1 💤 ±0 
  89 files   ±0       0 ±0 

Results for commit 76afa1e. ± Comparison against base commit 68655d0.

♻️ This comment has been updated with latest results.

@AndroidBob
Copy link
Collaborator

Build 919 failed.

@AndroidBob
Copy link
Collaborator

Build 928 failed.

@AndroidBob
Copy link
Collaborator

Build 931 failed.

Copy link
Contributor

@Garzas Garzas left a comment

Choose a reason for hiding this comment

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

Looking good 👍 I would just add some tests for onMoveConversationToArchive

@AndroidBob
Copy link
Collaborator

Build 951 failed.

@AndroidBob
Copy link
Collaborator

Build 965 failed.

@gongracr gongracr requested review from a team, yamilmedina, alexandreferris, borichellow and vitorhugods and removed request for a team September 26, 2023 08:53
@gongracr gongracr requested a review from ohassine September 26, 2023 08:53
@AndroidBob
Copy link
Collaborator

Build 972 failed.

@gongracr gongracr enabled auto-merge September 26, 2023 10:45
@AndroidBob
Copy link
Collaborator

Build 985 failed.

@gongracr gongracr added this pull request to the merge queue Sep 26, 2023
@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

Merging #2262 (76afa1e) into develop (68655d0) will increase coverage by 0.09%.
The diff coverage is 62.85%.

@@              Coverage Diff              @@
##             develop    #2262      +/-   ##
=============================================
+ Coverage      40.41%   40.51%   +0.09%     
- Complexity      1012     1015       +3     
=============================================
  Files            318      318              
  Lines          11635    11661      +26     
  Branches        1546     1550       +4     
=============================================
+ Hits            4702     4724      +22     
- Misses          6492     6493       +1     
- Partials         441      444       +3     
Files Coverage Δ
...tlin/com/wire/android/ui/home/HomeSnackbarState.kt 21.42% <100.00%> (+13.09%) ⬆️
...id/ui/home/conversationslist/ConversationRouter.kt 0.00% <ø> (ø)
...id/ui/sharing/ImportMediaAuthenticatedViewModel.kt 0.00% <0.00%> (ø)
...serprofile/other/OtherUserProfileEventsHandlers.kt 0.00% <0.00%> (ø)
...tions/details/GroupConversationDetailsViewModel.kt 59.58% <80.00%> (+1.66%) ⬆️
...erprofile/other/OtherUserProfileInfoMessageType.kt 21.73% <0.00%> (-2.08%) ⬇️
...ome/conversationslist/ConversationListViewModel.kt 40.32% <80.00%> (+2.66%) ⬆️
...roupConversationDetailsBottomSheetEventsHandler.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 68655d0...76afa1e. Read the comment docs.

@github-actions
Copy link
Contributor

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

Merged via the queue into develop with commit 596009f Sep 26, 2023
@gongracr gongracr deleted the feat/adding_archiving_use_cases branch September 26, 2023 11:54
@AndroidBob
Copy link
Collaborator

Build 990 succeeded.

The build produced the following APK's:

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.

4 participants