How ragulchandru/organic-product works
Vaishu Organics is a React storefront for browsing traditional rice, millets, and oils, building a cart, and placing an order through WhatsApp. The main flow is shopper navigation and search → home or catalog discovery → product detail and variant selection → cart persistence and editing → WhatsApp checkout. A separate delivery page presents shipping guidance. The source index establishes several component relationships; the README is empty, and unsampled modules are represented only where their role is evident from the tree or documented imports.
Main entry points: App.tsx App router · HomePage.tsx Home page · OrderBagDrawer.tsx Order bag drawer · CatalogPage.tsx Catalog page
Components 27
Storefront navigation
- App router
src/App.tsx - Header
src/components/layout/Header.tsx - Footer
src/components/layout/Footer.tsx - Delivery page
src/pages/DeliveryPage.tsx - Delivery guidance
src/components/common/DeliverySection.tsx
Product discovery
- Home page
src/pages/HomePage.tsx - Catalog page
src/pages/CatalogPage.tsx - Hero
src/components/common/Hero.tsx - Trust bar
src/components/common/TrustBar.tsx - Shop categories
src/components/product/ShopByCategory.tsx - Category filter
src/components/product/CategoryFilter.tsx - Product grid
src/components/product/ProductGrid.tsx - Product card
src/components/product/ProductCard.tsx - Product detail
src/components/product/ProductDetailModal.tsx
Cart and ordering
- Cart state
src/hooks/useCart.ts - Order bag drawer
src/components/cart/OrderBagDrawer.tsx - WhatsApp order link
src/lib/whatsapp.ts - Browser local storage
Shared product data
- Product catalog data
src/data/products.ts - Category data
src/data/categories.ts - Site configuration
src/config/siteConfig.ts - Button
src/components/ui/Button.tsx - Badge
src/components/ui/Badge.tsx - Quantity stepper
src/components/ui/QuantityStepper.tsx - Search and formatting
src/lib/utils.ts
Other components
- Shopper
Connections 38
- Shopper → App router: uses storefront
- App router → Header: renders
src/App.tsx - App router → Footer: renders
src/App.tsx - App router → Home page: routes to
src/App.tsx - App router → Catalog page: routes to
src/App.tsx - App router → Delivery page: routes to
src/App.tsx - App router → Product detail: renders
src/App.tsx - App router → Order bag drawer: renders
src/App.tsx - App router → Cart state: uses cart state
src/App.tsx - Home page → Hero: renders
src/pages/HomePage.tsx - Home page → Trust bar: renders
src/pages/HomePage.tsx - Home page → Shop categories: renders
src/pages/HomePage.tsx - Home page → Category filter: renders
src/pages/HomePage.tsx - Home page → Product grid: renders
src/pages/HomePage.tsx - Home page → Delivery guidance: renders
src/pages/HomePage.tsx - Home page → Product catalog data: reads products
src/pages/HomePage.tsx - Home page → Search and formatting: filters products
src/pages/HomePage.tsx - Catalog page → Category filter: renders
src/pages/CatalogPage.tsx - Catalog page → Product grid: renders
src/pages/CatalogPage.tsx - Catalog page → Product catalog data: reads products
src/pages/CatalogPage.tsx - Catalog page → Search and formatting: filters products
src/pages/CatalogPage.tsx - Product grid → Product card: renders
src/components/product/ProductGrid.tsx - Category filter → Category data: reads categories
src/components/product/CategoryFilter.tsx - Product detail → Button: uses
src/components/product/ProductDetailModal.tsx - Product detail → Badge: uses
src/components/product/ProductDetailModal.tsx - Product detail → Quantity stepper: uses
src/components/product/ProductDetailModal.tsx - Product detail → Search and formatting: formats prices
src/components/product/ProductDetailModal.tsx - Delivery page → Delivery guidance: renders
src/pages/DeliveryPage.tsx - Delivery guidance → Site configuration: reads shipping settings
src/components/common/DeliverySection.tsx - Header → Site configuration: reads site settings
src/components/layout/Header.tsx - Order bag drawer → Cart state: receives cart data
src/App.tsx - Order bag drawer → WhatsApp order link: requests order link
src/components/cart/OrderBagDrawer.tsx - Order bag drawer → Button: uses
src/components/cart/OrderBagDrawer.tsx - Order bag drawer → Quantity stepper: uses
src/components/cart/OrderBagDrawer.tsx - Order bag drawer → Search and formatting: formats prices
src/components/cart/OrderBagDrawer.tsx - Cart state → Browser local storage: persists cart
src/hooks/useCart.ts - WhatsApp order link → Site configuration: reads contact settings
src/lib/whatsapp.ts - Order bag drawer → WhatsApp: opens order link
src/components/cart/OrderBagDrawer.tsx