-
Notifications
You must be signed in to change notification settings - Fork 0
Implement wishlist functionality #43
Merged
Merged
+1,756
−166
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adding a button so that a user has the option to remove a game from their wishlist.
Moving all mui styling to the wishlistpage.css file. Also adding a back button so a user can navigate back to the last visitied page.
Removing the back button as it is being fixed on another brach
8 tasks
Adding a button so that a user has the option to remove a game from their wishlist.
Moving all mui styling to the wishlistpage.css file. Also adding a back button so a user can navigate back to the last visitied page.
…u.no/IT2810-H26/T10-Project-2 into 33-implement-wishlist-functionality
Adding a button so that a user has the option to remove a game from their wishlist.
Moving all mui styling to the wishlistpage.css file. Also adding a back button so a user can navigate back to the last visitied page.
Moving all mui styling to the wishlistpage.css file. Also adding a back button so a user can navigate back to the last visitied page.
…u.no/IT2810-H26/T10-Project-2 into 33-implement-wishlist-functionality
Removing the mocked games from the wishlist to make space for the real data. Updating the sorting function to work with the game type. Putting the mapping fuction inside the wishlistgamecard. The page will be empty for now, since there are no wishlisted games in the DB yet.
Adding backend logic for the wishlist functionality. There are functions in frontend that call the backend, that will call the DB.
add optional rank badge parameter to passivegamecard, allowing for numbered rank visualization for games when enabled
Moving all mui styling to the wishlistpage.css file. Also adding a back button so a user can navigate back to the last visitied page.
Moving all mui styling to the wishlistpage.css file. Also adding a back button so a user can navigate back to the last visitied page.
Moving all mui styling to the wishlistpage.css file. Also adding a back button so a user can navigate back to the last visitied page.
Moving all mui styling to the wishlistpage.css file. Also adding a back button so a user can navigate back to the last visitied page.
Removing the mocked games from the wishlist to make space for the real data. Updating the sorting function to work with the game type. Putting the mapping fuction inside the wishlistgamecard. The page will be empty for now, since there are no wishlisted games in the DB yet.
Adding backend logic for the wishlist functionality. There are functions in frontend that call the backend, that will call the DB.
Needs to be tested with updated backend, and user_id fetch from logged in user.
Wishlist works! (it gets the wishlisted games of the user one is logged in with)
…u.no/IT2810-H26/T10-Project-2 into 33-implement-wishlist-functionality
All look good and wishlist works as it should!
elinejaa
requested changes
Oct 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but clicking on wishlist game card does not bring you to the game, please fix!
elinejaa
approved these changes
Oct 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
Sign in
to join this conversation on GitHub.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Wishlist functionality is now in place. A user has to be logged in as one will get the "Sign in to see your wishlist" error when not signed in. On the page a user can sort their wishlisted games and remove games from the list. The "Add to wishlist" button on the active card now also works and will switch to "Remove from wishlist" when the game is already on the users wishlist.
Wishlist functionality implemented with:
Closes issue: #33