Summary
After Users have added items to a list, the User will be able to edit the item names from the List component.
Acceptance Criteria
Stretch Goal
Notes
Ensure that the EditItem function does not edit the item name to an empty string when updating the NextPurchaseDate only, and ensure the function also does not edit the NextPurchaseDate to null when updating the item name only, if we choose to make only one required.
Also important to note is the purpose of implementing this functionality. After this idea was introduced, mentors suggested that users could simply just delete the item they no longer want and add a new one to the list instead of editing the name of the item. Consider the scenarios in which a user would want to edit the name of an item. If Users wanted to edit the purchase urgency of an item, they could similarly delete it and create a new item with the desired purchase urgency.
Summary
After Users have added items to a list, the User will be able to edit the item names from the
Listcomponent.Acceptance Criteria
edit itembutton opens a modal with a label, text box and submit button that allows users to edit the item namecancelbutton on the modal to exit out?Stretch Goal
edit itembutton on the List page, the modal that appears also has an input allowing users to edit the NextPurchaseDatesoon - 7 days,kind of soon - 14 daysandnot soon - 30 days, selecting one of theseNotes
Ensure that the EditItem function does not edit the item name to an empty string when updating the NextPurchaseDate only, and ensure the function also does not edit the NextPurchaseDate to null when updating the item name only, if we choose to make only one required.
Also important to note is the purpose of implementing this functionality. After this idea was introduced, mentors suggested that users could simply just delete the item they no longer want and add a new one to the list instead of editing the name of the item. Consider the scenarios in which a user would want to edit the name of an item. If Users wanted to edit the purchase urgency of an item, they could similarly delete it and create a new item with the desired purchase urgency.