We want to help people discover more games by showing related games on each game's details page. The design team wants to explore the UX and do some acceptance testing. Our requirements are:
- Add a data-access helper in
src/lib/ that returns other games in the same category as a given game, excluding that game
- Show a "Related games" section on the game details page that uses the helper
- Handle the case where a game has no related games
- There should be unit tests created for the new helper
- Before creating the PR, ensure all tests pass
We want to help people discover more games by showing related games on each game's details page. The design team wants to explore the UX and do some acceptance testing. Our requirements are:
src/lib/that returns other games in the same category as a given game, excluding that game