feat(oreel-web): implement product listing, category & search with filters#13
Merged
oreoluwa648 merged 3 commits intoApr 11, 2026
Conversation
…lters Add server API for products, extend mock data with categories/ratings, and implement category and search pages with URL-driven filters, pagination, and product list components. Files added/changed: app/api/products/route.ts, data/mock-products.ts, components/products/*, components/filters/Filters.tsx, app/(shop)/search/page.tsx, app/category/[slug]/page.tsx
- Use correct import for . - Add explicit types to callbacks to remove implicit (TS7006). - Resolve module not found (TS2307) in .
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.
Pull Request: Product Listing (Category + Search) with Filters
Branch:
feature/Product-Listing-Category-and-Search-with-FiltersRelated Issue: #6
Description
Implements product listing experience for
oreel-webincluding category pages, search results, and client‑side filtering. Product data is fetched from a new server API route (/api/products) using Next.js App Router. Users can filter by price range, brand, and rating with URL‑driven state (shareable and back‑button friendly). Includes pagination, skeleton loaders, and empty states.Changes Made
app/api/products/route.tsprovides product data with query support (category, search, min/max price, brands, rating, pagination).app/category/[slug]/page.tsxdisplays paginated product grid for each category.app/(shop)/search/page.tsxsupports?q=parameter with same grid and persistent search term.components/filters/Filters.tsx(price slider, brand checkboxes, rating filter) with URL sync.ProductCard,ProductListfor reusable product display.mock-products.tswith categories, brands, ratings, and reviews.Verification
?q=param and returns matching products.Closes #6