You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered:
From our tissue (#25) and comparing your addition for Form.js, we saw the comments when adding to the firebase database that a new collection will be created on each form submit. We have the functionality ready to generate and save the token in localStorage and renders on screen. If you'd like to submit the PR and we can refactor to add the token generation, push to firebase, and pulling the data back to show in the app, that would be great!
db.collection("userThree").add(data);
// userThree will be replaced by user token
// a new doc is created with each submission.
A shopping list item consists of the following data points:
AC:
null
initiallyThe text was updated successfully, but these errors were encountered: