SE310-1 / W.A.K

W.A.K is a movie tracker web-app developed to simplify and enhance the movie-rating experience while making this process more fun and customisable.
MIT License
2 stars 12 forks source link

Create delete from favorites button for frontend #68

Closed skau811 closed 1 year ago

skau811 commented 1 year ago

This PR works towards closing (https://github.com/SE310-1/W.A.K/issues/53 ) by implementing a very basic yet fully functional delete button, which allows users to delete movie from their favorites list, if they wish to.

This PR adds : DeleteButton component for the above described functionanlity. Adding the relevant functions in the DeleteButton component which removes a movie from the user's favorite list as well as reflects the change in the UI for feedback.

Next steps will be the styling of this button and this will work to primarily close (https://github.com/SE310-1/W.A.K/issues/53 ).

Screenshots are as follows:

Tested by creating a new account with no favorites yet: image

Adding a movie to favorites: image image

Favorites list page after the addition :

image

Adding another movie to favorites: image

Added another: image

Favorites list after 3 movies have been added: image

Favorites list after deleting 'Spider-Man: Across the Spider-Verse': image