How sampathbudugula/comfy_store works
Comfy Store is a React furniture-commerce storefront. Shoppers browse featured or filtered products, open a product detail, and add items to a cart; cart state and the product catalogue are persisted in browser storage. The graph follows the documented routes and the sampled calls. Some UI wiring is known only from the SOURCE INDEX, so unsampled details and unsupported links are omitted.
Main entry points: App.jsx Route application · CartContext.jsx Cart state · Layout.jsx Site layout · Products.jsx Product browsing
Components 23
Storefront
- Route application
src/App.jsx - Site layout
src/components/Layout.jsx - Home page
src/pages/Home.jsx - About page
src/pages/About.jsx - Not-found page
src/pages/NotFound.jsx - Navigation
src/components/Navbar.jsx - Sidebar
src/components/Sidebar.jsx - Footer
src/components/Footer.jsx
Product catalogue
- Product browsing
src/pages/Products.jsx - Product filters
src/features/products - Product list
src/features/products/ProductList.jsx - Product card
src/components/ProductCard.jsx - Product detail
src/pages/SingleProduct.jsx
Shopping cart
- Cart panel
src/components/CartSidebar.jsx - Cart list
src/features/cart/CartList.jsx - Cart item
src/features/cart/CartItem.jsx - Cart total
src/features/cart/CartTotal.jsx
Data and state
- Cart state
src/context/CartContext.jsx - Product data hook
src/hooks/useProducts.js - Product API
src/services/productApi.js - Browser storage
Other components
- Shopper
- Product service
Connections 31
- Shopper → Route application: opens storefront
src/App.jsx - Route application → Site layout: routes through
src/App.jsx - Route application → Home page: routes to
src/App.jsx - Route application → Product browsing: routes to
src/App.jsx - Route application → Product detail: routes to
src/App.jsx - Route application → About page: routes to
src/App.jsx - Route application → Not-found page: routes to
src/App.jsx - Route application → Cart state: provides cart
src/App.jsx - Site layout → Navigation: renders
src/components/Layout.jsx - Site layout → Sidebar: renders
src/components/Layout.jsx - Site layout → Cart panel: renders
src/components/Layout.jsx - Site layout → Footer: renders
src/components/Layout.jsx - Home page → Product data hook: loads products
src/pages/Home.jsx - Home page → Product card: renders
src/pages/Home.jsx - Product browsing → Product data hook: loads products
src/pages/Products.jsx - Product browsing → Product filters: uses filters
src/pages/Products.jsx - Product browsing → Product list: renders results
src/pages/Products.jsx - Product list → Product card: renders
src/features/products/ProductList.jsx - Product card → Cart state: adds product
src/components/ProductCard.jsx - Product detail → Product API: fetches item
src/pages/SingleProduct.jsx - Product detail → Cart state: adds product
src/pages/SingleProduct.jsx - Product data hook → Product API: loads catalogue
src/hooks/useProducts.js - Product data hook → Browser storage: caches products
src/hooks/useProducts.js - Product API → Product service: fetches products
src/services/productApi.js - Cart state → Browser storage: persists cart
src/context/CartContext.jsx - Cart panel → Cart state: reads cart state
src/components/CartSidebar.jsx - Cart panel → Cart list: renders
src/components/CartSidebar.jsx - Cart panel → Cart total: renders
src/components/CartSidebar.jsx - Cart list → Cart item: renders
src/features/cart/CartList.jsx - Cart item → Cart state: updates quantities
src/features/cart/CartItem.jsx - Cart total → Cart state: reads totals
src/features/cart/CartTotal.jsx