NSS-Evening-E22 / pos-system-tech-giants

pos-system-tech-giants created by GitHub Classroom
0 stars 1 forks source link

Delete order button #49

Closed bhighlander closed 1 year ago

bhighlander commented 1 year ago

User Story:

As a user, I want to be able to delete an order by clicking on the "Delete" button on the order card on the View Orders page.

Acceptance Criteria:

The "Delete" button is displayed on each order card on the View Orders page. Clicking the "Delete" button prompts the user with a confirmation message before permanently deleting the selected order from the database. The View Orders page updates and removes the order card from the list of orders after the order has been successfully deleted.

Dependencies:

The View Orders page and order card components are available and functional. The database and backend API support deleting orders.

Dev Notes:

The "Delete" button component needs to be created and added to each order card on the View Orders page. A function to prompt the user with a confirmation message and delete the selected order from the database needs to be implemented and linked to the "Delete" button. The View Orders page needs to be updated and the order card removed from the list of orders after the order has been successfully deleted.