dianahime/capstone-project

Delete product

Closed this issue · 0 comments

Value statement

As a user
I want to be able to delete my products
so that I have better control over my product list.

Description (Text, Scribble, Wireframe, Design)

Bildschirmfoto 2020-07-13 um 16 09 14 Bildschirmfoto 2020-07-20 um 15 25 27

Acceptance criteria

  • On the details page there is also a menu icon that opens a popover
  • The popover has 2 options: edit and delete
  • When the delete option is clicked a modal is opened to confirm that the product should be deleted
  • The modal has a question and delete and cancel buttons
  • When the user clicks cancel he returns to the product detail page
  • When the user confirms the delete action he returns to the productList page
  • The edit page also has a cancel button
  • When the button is clicked the productDetails page is opened

Tasks

  • Create a feature branch
  • Add menu icon to product item and detail page
  • Create delete function
  • Create deleteModal component
  • Create deleteModal in storybook
  • Write test for deleteModal component
  • Write integration tests w/ Cypress
  • Add missing styles

Size

small