Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a favourites-functionality #30

Open
12 tasks done
WinterIsCoding23 opened this issue May 11, 2023 · 1 comment
Open
12 tasks done

Implement a favourites-functionality #30

WinterIsCoding23 opened this issue May 11, 2023 · 1 comment

Comments

@WinterIsCoding23
Copy link
Owner

WinterIsCoding23 commented May 11, 2023

Value proposition
As a user I want to be able to mark one or more movies as favourites - and un-mark them when they are not my favourites anymore

Description

Image

Acceptance-criteria

  • Every movie marked as favourite is displayed immediately in the Watchlist
  • Every movie marked as favourite can be un-favoured and is automatically removed from the Watchlist
  • By clicking on the movies in the Watchlist the user is directed to the details page

Tasks

  • Create a favourite-button (heart)
  • Add a toggle-favourite-function
  • Create a mongoDB-collection for movies in Watchlist
  • Connect app to database
  • Create isFavorite-Boolean (movie marked for Watchlist or not)
  • GET value of isFavorite from mongoDB
  • POST/PUT updated value of isFavorite to mongoDB - depending on toggle-button
  • Watchlist: Change data-fetching from popular movies to favourite-marked movies
  • Make each movie in Watchlist clickable and lead it to Detailpage
@WinterIsCoding23 WinterIsCoding23 changed the title As a user I want to choose from a list of movies/search-results to be able to mark one or more of them as favourites As a user I want to choose from a list of movies/search-results to be able to mark one or more of them as favourites - and un-mark them when they are not my favourites anymore May 11, 2023
@WinterIsCoding23 WinterIsCoding23 changed the title As a user I want to choose from a list of movies/search-results to be able to mark one or more of them as favourites - and un-mark them when they are not my favourites anymore As a user I want to be able to mark one or more movies as favourites - and un-mark them when they are not my favourites anymore May 11, 2023
@WinterIsCoding23 WinterIsCoding23 changed the title As a user I want to be able to mark one or more movies as favourites - and un-mark them when they are not my favourites anymore Implement a favourites-functionality May 12, 2023
@WinterIsCoding23
Copy link
Owner Author

WinterIsCoding23 commented Jun 2, 2023

  • Edit: Add favorite-button to every movie on detail-page
  • Edit: Add poster, title to mongoDB-collection
  • Edit: Fix error on Watchlist: After click on Watchlist-movie togglebutton shows "make favorite" & click on movie seemingly without effect on button and mongoDB
  • Bugfix in Watchlist-Slider: If poster_path empty, the placeholder-image is not shown and movie-element is out of place
  • Bugfix in ToggleFunction: Show "Loading..."-String while retrieving initial State from mongoDB
  • Bugfix in Watchlist: Show a RandomMovieOnWatchlist that actually is currently available for streaming

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant