How jeevaramesh555-cpu/haaply-new works
This is a multi-channel commerce and local-delivery application: customers browse products, build a cart and place orders; administrators manage catalog, locations, delivery coverage, stock and drivers; drivers handle routes and inventory; and POS users review sales. The route table is directly evidenced in src/App.tsx. Service connections below use sampled calls/imports where available; other major feature nodes are retained from the tree, but their internal wiring is not inferred. Firestore is the evident backing store; payment processing is not established by the excerpts.
Main entry points: App.tsx Route application · driverRouteService.ts Route management · driverInventoryService.ts Driver inventory · adminDriverAssignmentService.ts Driver assignment
Components 28
Customer shopping
- Catalog browsing
src/customer/pages/CustomerHome.tsx - Product details
src/customer/pages/ProductDetailsPage.tsx - Cart state
src/customer/components/CartContext.tsx - Checkout
src/customer/pages/CheckoutPage.tsx - Order history
src/customer/pages/OrdersPage.tsx - Order confirmation
src/customer/pages/OrderConfirmationPage.tsx
Store operations
- Order administration
src/admin/pages/AdminOrdersPage.tsx - Product administration
src/admin/pages/AdminProductsPage.tsx - Location settings
src/admin/pages/AdminLocationsPage.tsx - Coverage testing
src/admin/pages/AdminServiceabilityPage.tsx - Driver assignment
src/admin/services/adminDriverAssignmentService.ts
Driver delivery
- Route management
src/driver/services/driverRouteService.ts - Route optimization
src/admin/services/adminRouteOptimizationService.ts - Driver inventory
src/driver/services/driverInventoryService.ts
Point of sale
- Sales view
src/pos/pages/POSSalesPage.tsx - POS sales query
src/pos/services/posOrderService.ts
Shared data
- Order services
src/services/orderService.ts - Fulfillment selection
src/services/fulfillmentService.ts - Delivery coverage
src/services/serviceabilityService.ts - Inventory services
src/services/inventoryService.ts - Firestore
- Firebase setup
src/firebase/config.ts
Other components
- Shopper
- Administrator
- Driver
- POS user
- Route application
src/App.tsx - Google Maps
Connections 31
- Shopper → Route application: opens shop
- Administrator → Route application: opens console
- Driver → Route application: opens driver
- POS user → Route application: opens POS
- Route application → Catalog browsing: routes to
- Route application → Product details: routes to
- Route application → Cart state: provides context
- Route application → Checkout: routes to
- Route application → Order history: routes to
- Route application → Order confirmation: routes to
- Route application → Order administration: routes to
- Route application → Product administration: routes to
- Route application → Location settings: routes to
- Route application → Coverage testing: routes to
- Route application → Route management: routes to
- Route application → Driver inventory: routes to
- Route application → Sales view: routes to
- Fulfillment selection → Delivery coverage: gets locations
- Fulfillment selection → Inventory services: checks stock
- Coverage testing → Delivery coverage: checks coverage
- Driver assignment → Route management: assigns order
- Driver assignment → Driver inventory: checks stock
- Route optimization → Google Maps: requests directions
- Sales view → POS sales query: loads sales
- POS sales query → Firestore: reads orders
- Firebase setup → Firestore: configures access
- Order services → Firestore: reads/writes
- Inventory services → Firestore: reads/writes
- Route management → Firestore: reads/writes
- Route optimization → Firestore: reads/writes
- Driver inventory → Firestore: reads/writes