Implement Books Listing Page for ChainLib Review#20
Merged
Iwueseiter merged 11 commits intoChain-Library:mainfrom Apr 30, 2025
Merged
Implement Books Listing Page for ChainLib Review#20Iwueseiter merged 11 commits intoChain-Library:mainfrom
Iwueseiter merged 11 commits intoChain-Library:mainfrom
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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:
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:
IntersectionObserveris used to lazily load additional books when scrolling in the Explore tab.Component Reuse:
ExploreBookshandles dynamic rendering and infinite scroll.BooksPageNavenables clean tab-switching UX.BookCardused consistently to display book info.Header,Footer, and styledInput.Testing & Validation
📸 Screenshots (Optional)
https://www.loom.com/share/294c0b5990e94994bb446d3b39605eb1?sid=fb2c23bb-8952-4ed7-bb5e-5fa90c62ad80