Skip to content

Implement Books Listing Page for ChainLib Review#20

Merged
Iwueseiter merged 11 commits intoChain-Library:mainfrom
chiscookeke11:issue-#9
Apr 30, 2025
Merged

Implement Books Listing Page for ChainLib Review#20
Iwueseiter merged 11 commits intoChain-Library:mainfrom
chiscookeke11:issue-#9

Conversation

@chiscookeke11
Copy link
Contributor

@chiscookeke11 chiscookeke11 commented Apr 27, 2025

close: #9

Summary

This PR implements the Book Listing Page, complete with dynamic search capabilities, tab-based filtering, and lazy loading for seamless book exploration. The page is built with modular components and follows the client-side rendering pattern using "use client".


Implemented Features

  • Tab Navigation:
    Users can filter books using categories like:

    • New Release
    • Trending
    • NFT Edition
    • Explore
    • All
  • Search Functionality:
    Users can search for books by title. Results are filtered in real-time and displayed under the Explore section. A message is shown when no match is found.

  • Dynamic Section Rendering:
    Conditional rendering logic switches between sections based on selected tab and search state.

  • Infinite Scroll for Explore Section:
    IntersectionObserver is used to lazily load additional books when scrolling in the Explore tab.

  • Component Reuse:

    • ExploreBooks handles dynamic rendering and infinite scroll.
    • BooksPageNav enables clean tab-switching UX.
    • BookCard used consistently to display book info.
    • Reused Header, Footer, and styled Input.

Testing & Validation

  • Manual testing on all sections.
  • Verified search edge cases (case-insensitivity, no match).
  • Checked responsiveness and layout consistency across viewports.

📸 Screenshots (Optional)

https://www.loom.com/share/294c0b5990e94994bb446d3b39605eb1?sid=fb2c23bb-8952-4ed7-bb5e-5fa90c62ad80


@chiscookeke11 chiscookeke11 marked this pull request as draft April 27, 2025 10:11
@chiscookeke11 chiscookeke11 marked this pull request as ready for review April 29, 2025 15:31
@chiscookeke11 chiscookeke11 changed the title page setup Implement Books Listing Page for ChainLib Review Apr 29, 2025
@Iwueseiter Iwueseiter merged commit 9a00e7b into Chain-Library:main Apr 30, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

Implement Books Listing Page for ChainLib Review

2 participants