Closed dilekbaykara closed 2 months ago
Visit the preview URL for this PR (updated for commit 49a4dcd):
https://tcl-75-smart-shopping-list--pr30-nk-db-add-new-item-t-a5e657vs.web.app
(expires Fri, 30 Aug 2024 15:54:42 GMT)
🔥 via Firebase Hosting GitHub Action 🌎
Sign: 1f1fd53c369e1fa31e15c310aa075b4e8f4f8dde
These changes look great, and the code is clear and concise. One note is that the user is able to add multiple of the same item. Do we want it to behave that way, or should we have another alert for when an item is duplicated? My preference would be to not allow duplicated items, but I'm open to other opinions!
Great point!
These changes look great, and the code is clear and concise. One note is that the user is able to add multiple of the same item. Do we want it to behave that way, or should we have another alert for when an item is duplicated? My preference would be to not allow duplicated items, but I'm open to other opinions!
Great observation, though I don't think y'all need to take any action on this now since it will be addressed as part of issue #10 that will be assigned in later weeks.
Description
This PR allows users to add items within a form to the database in order to track the future replenishment date of their items.
After adding an item in the input value, there are three options in the form:
Each of the above days assign a date to that item starting from the date the item was added to the database.
Related Issue
Closes #5
Acceptance Criteria
ManageList
view displays a form that allows them to enter the name of the item and select how soon they anticipate needing to buy it again. There should be 3 choices for this:label
element associated with itEnter
keyData-related tasks:
console.log
in theaddItem
function insrc/api/firebase.js
is replaced with a function that adds the new document to the Firestore database. That function will be imported from thefirebase/firestore
module.nextPurchasedDate
Type of Changes
enhancement
Updates
Before
After
Testing Steps / QA Criteria