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: Handle app dialogs with team applock (WPB -2388) #2390

Merged
merged 39 commits into from Nov 9, 2023

Conversation

ohassine
Copy link
Member

@ohassine ohassine commented Nov 2, 2023


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?

Description

When app lock is enabled from team console, the dialog should be shown on top and no other dialog should be shown on top of it.
This PR will hide all other types of dialog if team dialog is displayed

  • GitHub link to other pull request

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

How to Test

Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.

Notes (Optional)

Specify here any other facts that you think are important for this issue.

Attachments (Optional)

Attachments like images, videos, etc. (drag and drop in the text box)


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.

# Conflicts:
#	app/src/main/kotlin/com/wire/android/ui/WireActivity.kt
…_App_lock_is_on

# Conflicts:
#	app/src/main/kotlin/com/wire/android/biomitric/BiometricPromptUtils.kt
#	app/src/main/kotlin/com/wire/android/ui/WireActivity.kt
…_App_lock_is_on

# Conflicts:
#	app/src/main/res/values/strings.xml
…ck_change_dialog

# Conflicts:
#	app/src/test/kotlin/com/wire/android/ui/home/appLock/LockCodeTimeManagerTest.kt
#	kalium
…change_dialog

# Conflicts:
#	app/src/main/kotlin/com/wire/android/datastore/GlobalDataStore.kt
#	app/src/main/kotlin/com/wire/android/ui/WireActivity.kt
…change_dialog

# Conflicts:
#	app/src/main/kotlin/com/wire/android/ui/AppLockActivity.kt
#	app/src/test/kotlin/com/wire/android/ui/home/appLock/LockCodeTimeManagerTest.kt
…change_dialog

# Conflicts:
#	app/src/main/kotlin/com/wire/android/ui/home/appLock/SetLockCodeViewState.kt
#	app/src/test/kotlin/com/wire/android/feature/ObserveAppLockConfigUseCaseTest.kt
#	app/src/test/kotlin/com/wire/android/ui/home/appLock/LockCodeTimeManagerTest.kt
#	app/src/test/kotlin/com/wire/android/ui/home/appLock/SetLockScreenViewModelTest.kt
Copy link
Contributor

github-actions bot commented Nov 2, 2023

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

…h_team_applock

# Conflicts:
#	app/src/main/kotlin/com/wire/android/datastore/GlobalDataStore.kt
#	app/src/main/kotlin/com/wire/android/ui/AppLockActivity.kt
#	app/src/main/kotlin/com/wire/android/ui/WireActivity.kt
#	app/src/main/res/values/strings.xml
@pull-request-size pull-request-size bot added size/L and removed size/XL labels Nov 8, 2023
@ohassine ohassine marked this pull request as ready for review November 8, 2023 13:46
@ohassine ohassine requested review from a team, alexandreferris, borichellow, MohamadJaara, mchenani and Garzas and removed request for a team November 8, 2023 13:50
Copy link

codecov bot commented Nov 8, 2023

Codecov Report

Merging #2390 (54002ef) into develop (98659c9) will decrease coverage by 0.02%.
The diff coverage is 1.42%.

@@              Coverage Diff              @@
##             develop    #2390      +/-   ##
=============================================
- Coverage      41.48%   41.46%   -0.02%     
  Complexity      1083     1083              
=============================================
  Files            344      344              
  Lines          12401    12408       +7     
  Branches        1630     1630              
=============================================
+ Hits            5144     5145       +1     
- Misses          6773     6779       +6     
  Partials         484      484              
Files Coverage Δ
...tlin/com/wire/android/datastore/GlobalDataStore.kt 14.43% <100.00%> (+0.89%) ⬆️
...main/kotlin/com/wire/android/ui/AppLockActivity.kt 0.00% <0.00%> (ø)
...rc/main/kotlin/com/wire/android/ui/WireActivity.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 98659c9...54002ef. Read the comment docs.

Copy link
Contributor

github-actions bot commented Nov 8, 2023

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

@AndroidBob
Copy link
Collaborator

Build 1704 succeeded.

The build produced the following APK's:

Copy link
Contributor

github-actions bot commented Nov 9, 2023

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

@AndroidBob
Copy link
Collaborator

Build 1714 succeeded.

The build produced the following APK's:

@ohassine ohassine added this pull request to the merge queue Nov 9, 2023
Merged via the queue into develop with commit 23af8cd Nov 9, 2023
22 checks passed
@ohassine ohassine deleted the handle_dialong_with_team_applock branch November 9, 2023 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants