alexkisielewicz/travel-shutter

[User story] Modal with deletion confirmation

Closed this issue · 0 comments

As a user, I want to see a deletion confirmation message when attempting to delete an item that I created, so that I can ensure that I intend to delete the item before proceeding.

Acceptance Criteria:

  • The deletion confirmation message is shown in the user interface, providing a clear indication of the deletion action and the item being deleted.
  • The user is presented with options to confirm or cancel the deletion operation.
  • If the user confirms the deletion, the item is permanently removed from the database.
  • If the user cancels the deletion, they are redirected to the last visited page without deleting the item.
  • The deletion confirmation functionality is applied consistently for both post and comment deletion actions, ensuring a uniform user experience across the app.