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

Autofill: update dismiss logic to show snackbar #4831

Conversation

cmonfortep
Copy link
Contributor

@cmonfortep cmonfortep commented Jul 31, 2024

Task/Issue URL: https://app.asana.com/0/414730916066338/1207895626594373/f

Description

Updates logic to show snackbar instead of Dialog after user dismisses twice our save dialog.

Steps to test this PR

Feature 1

  • install The app
  • Login on 2 different sites
  • Always dismiss the save dialog
  • Ensure on the second site, the snackbar is shown (and autofill_logins_save_disable_snackbar_shown)
  • click on Open settings in the snackbar (and autofill_logins_save_disable_snackbar_open_settings)
  • ensure it takes you to autofill screen
  • Disable autofill now, and ensure pixel m_autofill_logins_settings_disabled includes disable_prompt as source

UI changes

Before After
!(Upload before screenshot) (Upload after screenshot)

@cmonfortep
Copy link
Contributor Author

cmonfortep commented Jul 31, 2024

@cmonfortep cmonfortep force-pushed the feature/cristian/autofill/default_on branch 4 times, most recently from 5e27e15 to d6de23b Compare July 31, 2024 16:33
@cmonfortep cmonfortep force-pushed the feature/cristian/replace_disable_prompt_with_snackbar branch from 697b066 to 97cbe47 Compare July 31, 2024 16:33
@cmonfortep cmonfortep force-pushed the feature/cristian/autofill/default_on branch from d6de23b to 193bf7a Compare August 1, 2024 10:24
@cmonfortep cmonfortep force-pushed the feature/cristian/replace_disable_prompt_with_snackbar branch from 97cbe47 to b855d08 Compare August 1, 2024 11:58
@cmonfortep cmonfortep marked this pull request as ready for review August 1, 2024 12:04
@cmonfortep cmonfortep requested a review from CDRussell August 1, 2024 12:04
@cmonfortep cmonfortep force-pushed the feature/cristian/autofill/default_on branch from 193bf7a to 9f278c7 Compare August 1, 2024 13:25
@cmonfortep cmonfortep force-pushed the feature/cristian/replace_disable_prompt_with_snackbar branch from b855d08 to 744ebe8 Compare August 1, 2024 13:25
@CDRussell CDRussell self-assigned this Aug 2, 2024
@cmonfortep cmonfortep force-pushed the feature/cristian/autofill/default_on branch from 9f278c7 to c4a818d Compare August 2, 2024 13:30
@cmonfortep cmonfortep force-pushed the feature/cristian/replace_disable_prompt_with_snackbar branch from 744ebe8 to db49768 Compare August 2, 2024 13:32
Task/Issue URL:
https://app.asana.com/0/414730916066338/1207943705873936/f

### Description
Aligns logic with other platforms around when don't ask users about
disabling autofill:
- if a password has been stored or user manually enabled autofill, then
don't ask.

### Steps to test this PR

_Feature 1_
- [ ] Fresh install
- [ ] Perform any of the following actions (saving a password manually,
enabling sync with another device with passwords, clicking on save on
Save dialog when asked)
- [ ] ensure onboarding dialog is completed
- [ ] ensure dismissing twice the dialog prompt never asks user to
disable autofill

_Feature 2_
- [ ] Fresh install
- [ ] Go into passwords and disable autofill, then enable it again
- [ ] Go to a site an login
- [ ] ensure save dialog shown but no onboarding
- [ ] ensure dismissing twice the dialog prompt never asks user to
disable autofill

### UI changes
| Before  | After |
| ------ | ----- |
!(Upload before screenshot)|(Upload after screenshot)|
@cmonfortep cmonfortep merged commit a9de8e8 into feature/cristian/autofill/default_on Aug 2, 2024
4 checks passed
@cmonfortep cmonfortep deleted the feature/cristian/replace_disable_prompt_with_snackbar branch August 2, 2024 15:07
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