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

Feat: Add Shopping List #157

Merged

Conversation

BryanElmer
Copy link
Collaborator

@BryanElmer BryanElmer commented Oct 26, 2021

This PR adds the following features:

  • When the user removes an item, that item's quantity becomes 0, and that item name does not exist in the ingredient list:
    • The user has the choice to put the item into the shopping list.
    • The user decides the quantity to be put into the shopping list.
  • When the user adds or updates an item into Fridget:
    • The following will happen automatically:
      • If the item exists in the shopping list, the quantity in the shopping list will be subtracted by the quantity added or updated.
      • If the quantity of any item in the shopping list reaches 0, it will be deleted.

Fixes #158, Fixes #159, Fixes #160, Fixes #161, Fixes #162, Fixes #163

@BryanElmer BryanElmer added type.Story A user story priority.High Must do! labels Oct 26, 2021
@BryanElmer BryanElmer added this to the v2.0 milestone Oct 26, 2021
@BryanElmer BryanElmer self-assigned this Oct 26, 2021
Copy link
Collaborator

@zonglun99 zonglun99 left a comment

Choose a reason for hiding this comment

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

Approved but you might want to get Anderson and Alvin to check through also since it is a large commit

Copy link
Collaborator

@alvynben alvynben 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