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-14347][PM-14348] New Device Verification Logic #12451

Merged
merged 15 commits into from
Dec 19, 2024

Conversation

nick-livefront
Copy link
Collaborator

@nick-livefront nick-livefront commented Dec 17, 2024

🎟️ Tracking

PM-14347
PM-14348

📔 Objective

Stacked on top of @Jingo88's PR: #12360

Adds logic for new device verification pages, guards and state

  • Adds check for scenarios when the new device verification is hidden
  • Adds logic for temporary flag which will be shown every 7 days until the user enables 2 factor auth
  • Adds logic for permanent flag which is blocking until the user enables two factor auth or selects they have reliable access.
  • Adds missing question mark to "access to email" copy

📸 Screenshots

Temporary Permanent
new-device-temporary.mov
new-device-permanent.mov

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@nick-livefront nick-livefront requested a review from a team as a code owner December 17, 2024 21:04
Copy link
Contributor

github-actions bot commented Dec 17, 2024

Logo
Checkmarx One – Scan Summary & Details5fe7dd2d-64bf-4cc5-b396-383b0b4e6011

New Issues

Severity Issue Source File / Package Checkmarx Insight
MEDIUM Client_Privacy_Violation /bitwarden_license/bit-web/src/app/tools/access-intelligence/password-health.component.html: 40 Attack Vector
MEDIUM Client_Privacy_Violation /bitwarden_license/bit-web/src/app/tools/access-intelligence/password-health.component.html: 50 Attack Vector

Fixed Issues

Severity Issue Source File / Package
MEDIUM Client_Privacy_Violation /bitwarden_license/bit-web/src/app/tools/access-intelligence/password-health.component.html: 40
MEDIUM Client_Privacy_Violation /bitwarden_license/bit-web/src/app/tools/access-intelligence/password-health.component.html: 50
LOW Client_JQuery_Deprecated_Symbols /apps/cli/src/service-container/service-container.ts: 878

Copy link

codecov bot commented Dec 17, 2024

Codecov Report

Attention: Patch coverage is 93.24324% with 5 lines in your changes missing coverage. Please review.

Project coverage is 33.55%. Comparing base (1d04a0a) to head (a57b6b7).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...ult/guards/new-device-verification-notice.guard.ts 84.84% 3 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12451      +/-   ##
==========================================
+ Coverage   33.44%   33.55%   +0.11%     
==========================================
  Files        2924     2925       +1     
  Lines       91420    91485      +65     
  Branches    17381    17391      +10     
==========================================
+ Hits        30574    30698     +124     
+ Misses      58438    58375      -63     
- Partials     2408     2412       +4     

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

Copy link
Member

@shane-melton shane-melton left a comment

Choose a reason for hiding this comment

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

Looks really good! Just noticed one issue with regards to the active userId and caching the profile.

Also, thanks for all the tests!! 🧪 🎉

shane-melton
shane-melton previously approved these changes Dec 18, 2024
Copy link
Member

@shane-melton shane-melton left a comment

Choose a reason for hiding this comment

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

Looks good! Nice work!

Base automatically changed from PM-8214-new-device-notice-UI to main December 19, 2024 14:59
@nick-livefront nick-livefront dismissed shane-melton’s stale review December 19, 2024 14:59

The base branch was changed.

@nick-livefront nick-livefront force-pushed the vault/pm-14347/device-vertification-logic branch from fad8645 to a57b6b7 Compare December 19, 2024 15:21
@nick-livefront nick-livefront requested review from shane-melton and a team December 19, 2024 15:21
@nick-livefront
Copy link
Collaborator Author

Rebased because #12360 was merged into main. I also tacked on a commit to short circuit the logic when both of the feature flags are not true: a57b6b7, that way it avoids any unneeded logic being executed.

@nick-livefront nick-livefront merged commit e129e90 into main Dec 19, 2024
60 of 62 checks passed
@nick-livefront nick-livefront deleted the vault/pm-14347/device-vertification-logic branch December 19, 2024 15:55
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