-
-
Notifications
You must be signed in to change notification settings - Fork 725
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
feat: check all in shopping list view #3786
feat: check all in shopping list view #3786
Conversation
Just reading what the idea is, I think I'd want this to have a confirmation button. It serves an edge case for general usage (IMO), and is fairly destructive if clicked by accident |
Isn't it equally destructive as unchecking all checked items? If you check everything by mistake, you can always uncheck everything again. |
I think there's a good argument for them both to have a confirmation, yes! |
+1 to putting both of those options behind a confirmation button |
I've added dialogue boxes for:
Not really sure what I'm doing with the text in the dialogue boxes + translations, please lmk if I've missed something! |
Thanks for taking on that revision @ollywelch, this looks good! There's a couple scenarios where we probably want a tiny bit more logic though. Right now I can get the popups even though their actions would do nothing, e.g.
Other than that though, functionally this works quite nicely 👍 |
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.
.. it's forcing me to add a comment as part of changing status 😞
@boc-the-git thanks for reviewing! I've just added some checks at the start of each open dialogue method, so should only display the prompt when necessary now |
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.
Thanks for this! 🚀
What type of PR is this?
What this PR does / why we need it:
This PR adds a new 'check all' button to the button group in the shopping list view. This allows checking all unchecked items in a shopping list, so they can then be deleted using the existing 'delete checked items' button for instance.
Which issue(s) this PR fixes:
N/A
Testing
Created a shopping list, added some items, then pressed the check all button. This moved all items from the checked to unchecked state.