A shopping list item consists of the following data points:
Name of item
How soon are you likely to buy it again?
Soon (in the next 7 days)
Kind of soon (in the next 14 days)
Not soon (in the next 30 days)
Last purchased date
AC:
User is presented with a form that allows them to enter the name of the item and select how soon they anticipate needing to buy it again (Soon, Kind of Soon, Not Soon)
When the user submits the form, the item is saved to the database, associated with the user’s token
Along with the item name, an integer corresponding to the estimated number of days until next purchase is saved: 7 for “Soon”, 14 for “Kind of Soon”, and 30 for “Not Soon”
The last purchased date should be set to null initially (i.e. you can create an item without purchasing it)
Item names should be displayed as a simple, unordered list on the list view after they’re added
A shopping list item consists of the following data points:
AC:
7
for “Soon”,14
for “Kind of Soon”, and30
for “Not Soon”null
initially (i.e. you can create an item without purchasing it)