-
Notifications
You must be signed in to change notification settings - Fork 11
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
[Credentials Import] Add "Don't Show Again" button to import prompt #676
[Credentials Import] Add "Don't Show Again" button to import prompt #676
Conversation
4c04430
to
cc23669
Compare
177bf7a
to
45f6716
Compare
@@ -215,7 +215,7 @@ | |||
color: #FFFFFF; | |||
} | |||
|
|||
.tooltip__button--manage { | |||
.tooltip__button--secondary { |
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.
Just renaming it to sound more "reusable", just because we have the same scenario (manage password + don't show again) kind of like a secondary button.
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.
Nice.
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 is looking good. Nice little change. Just a tiny comment and the native-side bug I mentioned on MM.
@@ -215,7 +215,7 @@ | |||
color: #FFFFFF; | |||
} | |||
|
|||
.tooltip__button--manage { | |||
.tooltip__button--secondary { |
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.
Nice.
src/CredentialsImport.js
Outdated
this.device.deviceApi.notify(new CloseAutofillParentCall(null)) | ||
this.device.deviceApi.notify(new CredentialsImportFlowPermanentlyDismissedCall(null)) |
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.
Just a thought. Here we call close, then the other call (same as we do above in line 58). Is there a race condition where the first call's side effect is so quick that the second call never happens because then the webview gets closed and the js context is destroyed? Should we flip their order?
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.
That's a good point! I think it's safer to do flipped order. Changed it in 79c1941
Reviewer: @GioSensation
Asana: https://app.asana.com/0/1205996472158114/1208381175784446/f
Description
As the Win and Mac plan to release this prompt to existing users and updating some heuristics to be more persistent, we are adding new UI and API call for dismissing credentials import dialog. Introduces a new API call.
Steps to test
graeme/enable-import-prompt-for-all-users
on MacOS browser,