Skip to content

Conversation

hestro
Copy link
Member

@hestro hestro commented Sep 16, 2026

This PR adds a book details view (BookDetails) that users can open by clicking on a BookCard in the BookGrid. App uses selectedBook state to decide whether to render Bookgrid or BookDetails, switching between the two views as the state changes. I have also done some minor accessibility improvements.

Changes include:

  • Extracted reusable FavoriteButton and BookCover components from BookCard
  • Added BookDetails component and styling
  • Connected App, BookGrid and BookCard using selected book state in App to decide whether to render BookGrid or BookDetails
  • Made book cards clickable
  • Added a back button to return to the BookGrid

Notes: The book description in BookDetails currently uses a temporary placeholder text until the API provides real description data.

@hestro hestro added the enhancement New feature or request label Sep 16, 2026
@hestro hestro self-assigned this Sep 16, 2026
@hestro hestro requested a review from a team as a code owner September 16, 2026 02:01
@hestro hestro linked an issue Sep 16, 2026 that may be closed by this pull request
Copy link
Member

@martakam martakam left a comment

Choose a reason for hiding this comment

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

Looks good! Very nice usage of conditional rendering so we can see one book at a time

@martakam martakam merged commit a10da43 into main Sep 16, 2026
@martakam martakam deleted the feat/book-details branch September 17, 2026 22:38
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: check details for one book at a time
2 participants