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

This PR adds the TOTP matching flow to the app #4042

Conversation

david-livefront
Copy link
Collaborator

@david-livefront david-livefront commented Oct 7, 2024

🎟️ Tracking

PM-13020
PM-13022
PM-13023
PM-13024
PM-13081
PM-13082
PM-13083

πŸ“” Objective

This PR updates the VaultItemListingScreen and VaultAddEditScreen to support a totp special circumstance.

πŸ“Έ Screenshots

Screen_recording_20241007_164003.mp4

Copy link
Contributor

github-actions bot commented Oct 7, 2024

Logo
Checkmarx One – Scan Summary & Details – dfe68a4d-34ca-4bd8-b553-a693ec776716

New Issues

Severity Issue Source File / Package Checkmarx Insight
MEDIUM Privacy_Violation /app/src/main/java/com/x8bit/bitwarden/data/tools/generator/repository/utils/GeneratorRepositoryExtensions.kt: 11 Attack Vector
LOW Use_of_Hardcoded_Password /app/src/main/java/com/x8bit/bitwarden/data/autofill/util/HtmlInfoExtensions.kt: 20 Attack Vector

Fixed Issues

Severity Issue Source File / Package
MEDIUM Privacy_Violation /app/src/main/java/com/x8bit/bitwarden/ui/auth/feature/completeregistration/CompleteRegistrationViewModel.kt: 349
MEDIUM Privacy_Violation /app/src/main/java/com/x8bit/bitwarden/ui/auth/feature/completeregistration/CompleteRegistrationViewModel.kt: 349
MEDIUM Privacy_Violation /app/src/main/java/com/x8bit/bitwarden/ui/auth/feature/completeregistration/CompleteRegistrationViewModel.kt: 241

@david-livefront david-livefront force-pushed the PM-13020-PM-13022-PM-13023-PM-13024-PM-13081-PM-13082-PM-13083-totp-matching-flow branch from 1a7c75c to 281e135 Compare October 7, 2024 21:43
Copy link

codecov bot commented Oct 7, 2024

Codecov Report

Attention: Patch coverage is 56.32184% with 38 lines in your changes missing coverage. Please review.

Project coverage is 88.89%. Comparing base (0cb8e36) to head (7a809ea).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
.../ui/vault/feature/addedit/VaultAddEditViewModel.kt 51.21% 7 Missing and 13 partials ⚠️
...ult/feature/itemlisting/VaultItemListingContent.kt 27.27% 7 Missing and 1 partial ⚠️
...t/feature/itemlisting/VaultItemListingViewModel.kt 68.18% 1 Missing and 6 partials ⚠️
...vault/feature/addedit/util/CipherViewExtensions.kt 0.00% 0 Missing and 1 partial ⚠️
...i/vault/feature/addedit/util/TotpDataExtensions.kt 80.00% 0 Missing and 1 partial ⚠️
...ault/feature/itemlisting/VaultItemListingScreen.kt 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4042      +/-   ##
==========================================
- Coverage   88.93%   88.89%   -0.05%     
==========================================
  Files         428      429       +1     
  Lines       35300    35338      +38     
  Branches     5176     5192      +16     
==========================================
+ Hits        31394    31413      +19     
- Misses       2099     2106       +7     
- Partials     1807     1819      +12     

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

@david-livefront david-livefront force-pushed the PM-13020-PM-13022-PM-13023-PM-13024-PM-13081-PM-13082-PM-13083-totp-matching-flow branch from 281e135 to 7a809ea Compare October 8, 2024 14:06
} else {
null
}
val autofillSaveItem = specialCircumstance?.toAutofillSaveItemOrNull()
Copy link
Collaborator

Choose a reason for hiding this comment

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

πŸ‘

@@ -100,8 +103,23 @@ fun VaultItemListingContent(
LazyColumn(
modifier = modifier,
) {
item {
Copy link
Collaborator

Choose a reason for hiding this comment

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

πŸ’­ Not something to block the PR, more just a thought about the order of the nesting, does this technically create an empty item every-time where if we were using positions(listState.scrollTo(0)) could throw of the the index?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It does make an empty item. I was following the pattern on this screen but we probably should investigate this in the future.

Copy link
Collaborator

@dseverns-livefront dseverns-livefront left a comment

Choose a reason for hiding this comment

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

@david-livefront
Copy link
Collaborator Author

Thanks @dseverns-livefront

@david-livefront david-livefront added this pull request to the merge queue Oct 8, 2024
Merged via the queue into main with commit e745017 Oct 8, 2024
9 checks passed
@david-livefront david-livefront deleted the PM-13020-PM-13022-PM-13023-PM-13024-PM-13081-PM-13082-PM-13083-totp-matching-flow branch October 8, 2024 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants