-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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-4956] two factor component migration #9204
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9204 +/- ##
==========================================
- Coverage 28.05% 28.04% -0.01%
==========================================
Files 2391 2391
Lines 70521 70532 +11
Branches 13207 13208 +1
==========================================
+ Hits 19782 19783 +1
- Misses 49174 49183 +9
- Partials 1565 1566 +1 ☔ View full report in Codecov by Sentry. |
No New Or Fixed Issues Found |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is a very complex part of our code, please add some videos of successfully completing different 2fa methods and switching between them.
Tagging @bitwarden/dept-design for review as well.
@@ -1,173 +1,136 @@ | |||
<form | |||
#form | |||
(ngSubmit)="submit()" | |||
[bitSubmit]="submitForm" | |||
[appApiAction]="formPromise" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove the appApiAction
since the bitSubmit
handles the loading state.
href="#" | ||
appStopClick | ||
(click)="sendEmail(true)" | ||
[appApiAction]="emailPromise" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should use the bitAction
directive instead of the appApiAction
…956-Migrate-two-factor-component
Hi @vinith-kovan, any chance we can get a video showing off some of the other functionality? If you're not sure how to do that please let me know. Thanks! |
@jlf0dev I have added a video of two-factor authenticator, please take a look. |
I'm not seeing the page title that we discussed in slack in the screen recording. Please add "Verify your Identity" to the 2FA page. |
…956-Migrate-two-factor-component
Hi @danielleflinn "Verify your Identity" has been added. |
</a> | ||
</div> | ||
<div class="text-center"> | ||
<a biLink href="#" appStopClick (click)="anotherMethod()">{{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is bilink
here supposed to be bitlink
?
<i | ||
class="bwi bwi-spinner tw-text-muted bwi-spin pull-right" | ||
title="{{ 'loading' | i18n }}" | ||
*ngIf="selectedProviderType === providerType.WebAuthn" | ||
aria-hidden="true" | ||
></i> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this spinner, I'm not sure how much value its adding here
formGroup = this.formBuilder.group({ | ||
token: ["", [Validators.required]], | ||
remember: [false], | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm getting some strange behavior with the default updateOn
behavior, as you can see in this video.
Screen.Recording.2024-05-29.at.11.51.37.AM.mov
Can you please change this to update on submit as so:
formGroup = this.formBuilder.group({
token: [
"",
{
validators: [Validators.required],
updateOn: "submit",
},
],
remember: [false],
});
Type of change
Objective
Migrate the Two Factor Component to use the component library.
Code changes
Screenshots
two-factor.-.Made.with.Clipchamp.1.mp4
Untitled.video.-.Made.with.Clipchamp.2.mp4