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

[PM-8252] Use new user-verification for exports on all clients #9244

Conversation

djsmith85
Copy link
Contributor

Type of change

- [ ] Bug fix
- [x] New feature development
- [x] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [ ] Other

Objective

On the web we use the new UserVerificationDialogComponent which supports additional verification methods besides a user’s master password.

This possibility is currently missing on browser and desktop, which fails for user’s that login with for example a passkey or Login with Device

This also pays forward on the initiative to create a shareable export component which can be used across clients which would also enable password-encrypted exports to browser and desktop.

Code changes

  • Move/replace submit and userVerification logic from web into the BaseExportComponent - 662a659
    • Add "@bitwarden/auth" as dependency to the vault-export-ui package
    • New submit logic also checks for password-encrypted exports which will be need for future UI updates on browser and desktop
  • Remove import/passing of the unneeded UserVerificationService - 1d1e9c3
  • Remove app-user-verification from browser and desktop components as the new UI is opened as a self-contained dialog - 10dea3d

Screenshots

Before

before_browser
before_desktop

After

after_browser
after_desktop

Before you submit

  • Please add unit tests where it makes sense to do so (encouraged but not required)
  • If this change requires a documentation update - notify the documentation team
  • If this change has particular deployment requirements - notify the DevOps team
  • Ensure that all UI additions follow WCAG AA requirements

…ExportComponent

Add "@bitwarden/auth" as dependency to the vault-export-ui package
New submit logic also checks for password-encrypted exports which will be need for future UI updates on browser and desktop
…he new UI is opened as a self-contained dialog
@djsmith85 djsmith85 requested review from a team as code owners May 18, 2024 14:04
@djsmith85 djsmith85 requested a review from r-tome May 18, 2024 14:04
@github-actions github-actions bot added the needs-qa Marks a PR as requiring QA approval label May 18, 2024
Copy link

codecov bot commented May 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 28.09%. Comparing base (b4c8bdf) to head (10dea3d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9244      +/-   ##
==========================================
+ Coverage   28.07%   28.09%   +0.01%     
==========================================
  Files        2435     2435              
  Lines       70528    70491      -37     
  Branches    13143    13130      -13     
==========================================
  Hits        19804    19804              
+ Misses      49185    49148      -37     
  Partials     1539     1539              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

Logo
Checkmarx One – Scan Summary & Detailsf3970464-edf9-4ff1-ace3-231266433e6e

No New Or Fixed Issues Found

Copy link
Contributor

@aj-rosado aj-rosado left a comment

Choose a reason for hiding this comment

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

LGTM

@djsmith85 djsmith85 removed the needs-qa Marks a PR as requiring QA approval label May 21, 2024
@djsmith85 djsmith85 merged commit a3d6904 into main May 21, 2024
64 checks passed
@djsmith85 djsmith85 deleted the tools/pm-8252/use-new-userverification-for-exports-on-all-clients branch May 21, 2024 11:02
quexten pushed a commit that referenced this pull request May 22, 2024
* Move/replace submit and userVerification logic from web into the BaseExportComponent

Add "@bitwarden/auth" as dependency to the vault-export-ui package
New submit logic also checks for password-encrypted exports which will be need for future UI updates on browser and desktop

* Remove import/passing of the unneeded UserVerificationService

* Remove app-user-verification from browser and desktop components as the new UI is opened as a self-contained dialog

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
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.

None yet

3 participants