Skip to content

Conversation

martakam
Copy link
Member

@martakam martakam commented Nov 4, 2026 •

This PR builds a real homepage with multiple sections. The book search page is moved from / to /books, while / becomes the new homepage.

Homepage contents:

  • A hero section inviting to search for books
  • A "surprise me" button that opens a random book
  • A section with some statistics about our book database
  • A "for you" section if you're logged in based on your favorite genres
  • A section with top rated books with more than 10 000 reviews
  • A small section with book genres
  • A section outlining how Readr works
  • If the user is not logged in, a section inviting to create an account or log in

Other changes:

  • A minRatings filter was added to the searchBooks query so we can show top rated books that aren't obscure
  • The BookCard now also shows the rating directly
  • Footer is updated with new design and links
  • There is a database index for top rated books so the search goes fast
  • The backend script runs with tsx watch so we do not need to restart the backend manually when changes are made
  • Tests have been updated

Feel free to skip reviewing any *.generated.* files as usual. This PR is not as big as it looks - approximately 2000 lines of code change is the pnpm lockfile and 1200 lines is bookkeeping for the SQL migration.
Still, this PR could probably have been split into a few smaller ones, so I hope you can forgive me for not doing that.

Some of the code in this pull request has been created with the assistance of AI.

Closes #87

@martakam martakam requested a review from a team as a code owner November 4, 2026 21:51
@martakam martakam self-assigned this Nov 4, 2026
@martakam martakam added the enhancement New feature or request label Nov 4, 2026
@martakam martakam added this to the Deliverable 4 milestone Nov 4, 2026
@martakam martakam linked an issue Nov 4, 2026 that may be closed by this pull request
hestro
hestro previously approved these changes Nov 7, 2026
Copy link
Member

@hestro hestro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very cool!!
I have tested the new functionality and it seems like everything is working.

I added a few small styling suggestions as comments.

martakam and others added 3 commits November 7, 2026 14:47
Makes the list more visible in light mode

Co-authored-by: Henrik Strøm-Andersen <hestro@stud.ntnu.no>
Co-authored-by: Henrik Strøm-Andersen <hestro@stud.ntnu.no>
Co-authored-by: Henrik Strøm-Andersen <hestro@stud.ntnu.no>
Sign in to join this conversation on GitHub.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: create separate frontpage presenting the project
2 participants