HandyPantry / handy-pantry

MIT License
0 stars 1 forks source link

Removing an item shouldn't close the category dropdown. #17

Open jpwalbran opened 2 years ago

jpwalbran commented 2 years ago

In the Pantry view, there are red Xs that can be used to remove items from the pantry:

Screen Shot 2022-06-14 at 1 12 17 PM

At the moment if you click one of those, you get a dialog asking you to confirm that you want to remove that item. If you say "OK", it takes you back to the "all categories closed" pantry view:

Screen Shot 2022-06-14 at 1 12 45 PM

This isn't a great user experience. At a minimum whatever category was open before should remain open.

The same thing happens in the product view, so we should fix that as well.

There's a similar but not identical problem in the shopping list view. It's different enough that I'm going to make it it's own issue, namely #24. Both are about saving some kind of state across deletion events, but the state to save is slightly different.

helloworld12321 commented 2 years ago

This is particularly important if, say, I cook three eggs at once. 🙃🥚🥚🥚 At the moment, it would take nine clicks tell the app that.