How vinodpandey1/eazysupplies-ui works
This is a Next.js storefront for product discovery, shopping, checkout, and customer account tasks, with additional seller, brand, blog, and themed-home experiences. A typical customer journey is browse or search products, inspect a product, add items to a cart, then checkout and manage the resulting order. The tree shows these distinct stages, but sampled source does not establish most page-to-API wiring. Solid edges below are limited to relationships visible in excerpts or SOURCE INDEX references; dashed edges mark likely workflow links that remain unverified.
Main entry points: IconSearchModal.jsx Product search · CartProvider.jsx Cart state · checkout Checkout · route.js Payment callback
Components 21
Storefront
- Themed home
src/components/themes - Product catalog
src/components/collection - Product search
src/layout/header/widgets/headerSearchbar/iconSearch/IconSearchModal.jsx - Product details
src/components/productDetails - Product reviews
src/components/productDetails/common/CustomerReview.jsx - Review form
src/components/productDetails/common/allModal/ReviewModal.jsx - Seller storefront
src/components/seller - Blog experience
src/components/blogs
Shopping
- Cart state
src/context/cartContext/CartProvider.jsx - Order totals
src/utils/pricing/orderTotals.js - Checkout
src/components/pages/checkout - Payment callback
src/app/api/paymentstatus/route.js
Customer services
- Orders and tracking
src/components/pages/orderList - Account services
src/components/pages/account
Shared platform
- Product API
src/app/api/product/route.js - Request client
src/utils/axiosUtils/index.jsx - Query hook
src/utils/hooks/useFetchQuery.jsx - App providers
src/layout/index.jsx
Other components
- Shopper
- Commerce API
- Payment service
Connections 21
- Shopper → Themed home: visits
- Shopper → Product catalog: browses
- Shopper → Product search: searches
- Shopper → Cart state: adds items
- Shopper → Checkout: checks out
- Product search → Request client: requests data
src/layout/header/widgets/headerSearchbar/iconSearch/IconSearchModal.jsx - Product search → Query hook: queries with
src/layout/header/widgets/headerSearchbar/iconSearch/IconSearchModal.jsx - Product search → Product catalog: renders products
src/layout/header/widgets/headerSearchbar/iconSearch/IconSearchModal.jsx - Product API → Commerce API: serves filtered data
- Product reviews → Review form: opens
src/components/productDetails/common/CustomerReview.jsx - Product reviews → Query hook: loads with
src/components/productDetails/common/CustomerReview.jsx - Review form → Commerce API: submits review
src/components/productDetails/common/allModal/ReviewModal.jsx - Cart state → Order totals: calculates with
src/context/cartContext/CartProvider.jsx - Cart state → Request client: requests data
src/context/cartContext/CartProvider.jsx - Checkout → Orders and tracking: places order
- Checkout → Payment callback: returns from payment
- Payment callback → Payment service: forwards response
src/app/api/paymentstatus/route.js - Payment callback → Commerce API: updates payment
src/app/api/paymentstatus/route.js - Account services → Orders and tracking: manages orders
- App providers → Cart state: provides state
src/layout/index.jsx - App providers → Commerce API: provides context