mealie-recipes / mealie

Mealie is a self hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family. Easily add recipes into your database by providing the url and mealie will automatically import the relevant data or add a family recipe with the UI editor
https://docs.mealie.io
GNU Affero General Public License v3.0
5.59k stars 608 forks source link

feat: Add the ability to flag a food as "on hand", to exclude from shopping list #3777

Closed boc-the-git closed 22 hours ago

boc-the-git commented 6 days ago

What type of PR is this?

What this PR does / why we need it:

Adds the ability to mark a food as "on hand" (terminology taken from tools). Then when adding a recipe to a shopping list, on hand foods will be unticked by default. Current behaviour is that every ingredient is ticked by default. The intent is to use this for your staple ingredients that you rarely need to buy, sugar, salt, spices, rice, ...

Don't ask me how this recipe would turn out!! 🙈

foods_marked_as_staples2

Which issue(s) this PR fixes:

None.

Special notes for your reviewer:

I think the change is fairly straight forward. There are a couple files that had a lot of formatting updates applied, so I've put some comments to indicate the small change actually made in there.

Testing

Locally, with SQLite.

michael-genson commented 5 days ago

LGTM, besides the one comment I had. Once this is ready I'll pull it locally and test it out, but reviewing the dif looks good

boc-the-git commented 1 day ago

Changes made @michael-genson; good suggestions!

image

image