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

Update copy when deleting passwords to consider whether sync enabled or not #4445

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

CDRussell
Copy link
Member

@CDRussell CDRussell commented Apr 22, 2024

Task/Issue URL: https://app.asana.com/0/488551667048375/1206638124888258/f

Description

Copy changes around deleting passwords (now showing a different message when sync is enabled vs disabled).

Translations will come in #4446

Steps to test this PR

Sync Disabled

single saved password

  • Disable sync (or leave it disabled if off already)
  • Visit password management screen (overflow -> passwords)
  • Add a single saved password (so you only have 1 total).
  • Return to password management screen
  • Then choose overflow -> Delete All Passwords
  • Verify the dialog title is Are you sure you want to delete this password?
  • Verify the dialog message says "password" (singular) and "account" (singular)
  • Verify the dialog message says it'll be "deleted from this device"
  • Cancel the prompt. Click on the overflow of the saved password, and choose Delete. Ensure the last two checks you just did are still valid for this scenario.

multiple saved passwords

  • Add a second saved password (so you now have 2 total), and return to password management screen
  • Then choose overflow -> Delete All Passwords
  • Verify the dialog title is Are you sure you want to delete 2 passwords
  • Verify the dialog message says "passwords" and "accounts"
  • Verify the dialog message says it'll be "deleted from this device"

Sync Enabled

multiple saved passwords

  • Enable sync
  • Visit password management screen (overflow -> passwords). Ensure you have > 1 saved password.
  • Then choose overflow -> Delete All Passwords
  • Verify the dialog title is Are you sure you want to delete 2 passwords
  • Verify the dialog message says "passwords" and "accounts"
  • Verify the dialog message says it'll be "deleted from all synced devices"

single saved password

  • Enable sync
  • Visit password management screen (overflow -> passwords). Ensure you have exactly 1 saved password.
  • Then choose overflow -> Delete All Passwords
  • Verify the dialog title is Are you sure you want to delete this password?
  • Verify the dialog message says "password" (singular) and "account" (singular)
  • Verify the dialog message says it'll be "deleted from all synced devices"

Copy link
Member Author

CDRussell commented Apr 22, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @CDRussell and the rest of your teammates on Graphite Graphite

@CDRussell CDRussell marked this pull request as ready for review April 22, 2024 13:39
Copy link
Contributor

@cmonfortep cmonfortep left a comment

Choose a reason for hiding this comment

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

lgtm, but leaving some comments about naming and asking to move the sync method call to background. I will go through the test cases when the background part is done so it's final. But those are the only 2 things I've seen.

@CDRussell CDRussell force-pushed the feature/craig/update_copy_when_deleting_passwords_based_on_sync_enabled_state branch from c06f265 to e4d11bf Compare April 29, 2024 12:54
@CDRussell
Copy link
Member Author

@cmonfortep moved sync check to background thread and renamed string builder functions. ready for review. (can ignore the lint error since that'll be solved in the translations branch for this)

@CDRussell CDRussell force-pushed the feature/craig/update_copy_when_deleting_passwords_based_on_sync_enabled_state branch 4 times, most recently from 8b44e53 to d7ecadb Compare May 6, 2024 10:09
@CDRussell CDRussell force-pushed the feature/craig/update_copy_when_deleting_passwords_based_on_sync_enabled_state branch from d7ecadb to 3510012 Compare May 6, 2024 10:20
@CDRussell CDRussell changed the base branch from develop to feature/craig/update_copy_when_deleting_passwords_based_on_sync_enabled_state_l10n May 6, 2024 10:30
@CDRussell CDRussell changed the base branch from feature/craig/update_copy_when_deleting_passwords_based_on_sync_enabled_state_l10n to develop May 6, 2024 10:31
@CDRussell
Copy link
Member Author

@cmonfortep pinging for re-review

Note, I had to change how we differentiate between singular and plural cases. Before, got caught out with the "implied plural" lint warnings. So now we check in code if number of elements == 1 and use a normal string if so, and else grab the plural form.

Copy link
Contributor

@cmonfortep cmonfortep left a comment

Choose a reason for hiding this comment

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

LGTM

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

2 participants