How shivakumar9797/mana-meals-project-ai- works
Mana Meals is a restaurant ordering and delivery frontend with customer, restaurant-partner, and admin portals. The customer journey spans restaurant discovery, menu selection and cart, checkout, order history and live tracking, with profile and address management alongside it. Partner operations cover incoming orders and menu/business controls; the admin dashboard provides platform analytics and order oversight. App.tsx selects portal views, while AppContext.tsx centralizes application state and order/profile/partner actions. The README is empty, and excerpts are partial, so some component-to-state wiring is not shown and is omitted.
Main entry points: App.tsx Portal router · Navbar.tsx Navigation · ToastContainer.tsx Notifications · CustomerHome.tsx Restaurant discovery
Components 17
Application Shell
- Portal router
src/App.tsx - Navigation
src/components/Navbar.tsx - Notifications
src/components/ToastContainer.tsx
Customer Ordering
- Restaurant discovery
src/components/CustomerHome.tsx - Restaurant menu
src/components/RestaurantDetailView.tsx - Cart
src/components/CartDrawer.tsx - Checkout and payment
src/components/SecureCheckoutModal.tsx - Order history
src/components/CustomerOrdersView.tsx - Live order tracking
src/components/LiveOrderTracking.tsx - Customer profile
src/components/CustomerProfileView.tsx
Platform Operations
- Partner operations
src/components/RestaurantPartnerPortal.tsx - Admin analytics
src/components/AdminDashboard.tsx
Shared State
- App state and actions
src/context/AppContext.tsx - Sample restaurants and orders
src/data/mockData.ts
Other components
- Customer
- Restaurant partner
- Platform admin
Connections 15
- Customer → Portal router: uses
- Restaurant partner → Portal router: uses
- Platform admin → Portal router: uses
- Portal router → App state and actions: provides state
- Portal router → Navigation: renders
- Portal router → Restaurant discovery: selects view
- Portal router → Restaurant menu: selects view
- Portal router → Live order tracking: selects view
- Portal router → Order history: selects view
- Portal router → Customer profile: selects view
- Portal router → Partner operations: selects portal
- Portal router → Admin analytics: selects portal
- Portal router → Cart: renders
- Portal router → Checkout and payment: renders
- Portal router → Notifications: renders