How shriprocraft/mithren-agro-customer-frontend works
Mithren Agro is a customer-facing farm-to-home marketplace frontend; the README says products, orders, sign-in, and tracking use mock data during this foundation phase, with no real payments or authentication. The principal customer journey is browsing the catalog, managing a cart and delivery address, reviewing an order, then viewing order details or tracking. Separate branches cover account management, product reviews, investor opportunities, and informational/support content. Source excerpts support only selected component relationships; unverified route wiring is omitted or shown as dashed.
Main entry points: ReviewStep.tsx Order Review · products/page.tsx Product Catalog · Marketplace.tsx Marketplace Browser · investors/page.tsx Investor Opportunities
Components 21
Shopping
- Product Catalog
src/app/products/page.tsx - Product Detail
src/app/products/[productId]/page.tsx - Marketplace Browser
src/components/marketplace/Marketplace.tsx - Catalog Search
src/hooks/useCatalogSearch.ts - Cart State
src/context/CartContext.tsx - Wishlist
src/context/WishlistContext.tsx - Product Reviews
src/components/reviews/ProductReviews.tsx - Storefront Home
src/app/page.tsx
Checkout and Orders
- Checkout Address
src/components/checkout/AddressStep.tsx - Order Review
src/components/checkout/ReviewStep.tsx - Checkout Quote
src/hooks/useCheckoutQuote.ts - Orders
src/context/OrdersContext.tsx - Order Confirmation
src/components/orders/ConfirmationView.tsx - Order Tracking
src/components/orders/TrackingView.tsx
Customer Account
- Address Book
src/context/AddressBookContext.tsx - Sign-in and Registration
src/context/AuthContext.tsx - Account Pages
src/app/account/page.tsx
Growth Opportunities
- Investor Opportunities
src/app/investors/page.tsx - Investor Journey
src/app/_investor-journey/overview/page.tsx
Information and Support
- Policies and Support
src/components/policies/PolicyPage.tsx
Other components
- Customer
Connections 21
- Customer → Product Catalog: browses
- Customer → Storefront Home: visits
- Product Catalog → Marketplace Browser: renders
- Marketplace Browser → Catalog Search: searches
src/hooks/useCatalogSearch.ts - Product Detail → Product Reviews: shows
src/components/reviews/ProductReviews.tsx - Customer → Cart State: manages
- Customer → Wishlist: manages
- Checkout Address → Address Book: selects address
- Order Review → Cart State: reads
src/components/checkout/ReviewStep.tsx - Order Review → Address Book: reads
src/components/checkout/ReviewStep.tsx - Order Review → Sign-in and Registration: reads
src/components/checkout/ReviewStep.tsx - Order Review → Orders: uses
src/components/checkout/ReviewStep.tsx - Order Review → Checkout Quote: requests quote
src/components/checkout/ReviewStep.tsx - Customer → Order Review: reviews order
- Customer → Order Confirmation: views result
- Customer → Order Tracking: tracks order
- Customer → Sign-in and Registration: signs in
- Customer → Account Pages: manages account
- Customer → Investor Opportunities: explores
- Investor Opportunities → Investor Journey: opens journey
- Customer → Policies and Support: consults