Summary
Users need a UI that allows them to mark the their items as purchased, so they can track what on their list they do and do not need to buy.
Acceptance criteria
Notes:
- While you will need to update multiple parts of the Firestore document for this feature, do not worry about
dateNextPurchased yet. That will be addressed in a future issue.
- You can use the Firestore console to test that this feature is working correctly, e.g., by manipulating the value of
dateLastPurchased
Summary
Users need a UI that allows them to mark the their items as purchased, so they can track what on their list they do and do not need to buy.
Acceptance criteria
ListItemcomponent renders a checkbox with a semantic<label>.dateLastPurchasedandtotalPurchasesproperties on the corresponding Firestore documentupdateItemfunction infirebase.jshas been filled out, and sends updates to the firestore database when an item is checkedNotes:
dateNextPurchasedyet. That will be addressed in a future issue.dateLastPurchased