# shivakumar9797/mana-meals-project-ai- architecture

> Architecture diagram of the GitHub repository shivakumar9797/mana-meals-project-ai-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shivakumar9797/mana-meals-project-ai-
- Repository: https://github.com/shivakumar9797/mana-meals-project-ai-

## Overview

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: [`src/App.tsx`](https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/App.tsx) (Portal router), [`src/components/Navbar.tsx`](https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/Navbar.tsx) (Navigation), [`src/components/ToastContainer.tsx`](https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/ToastContainer.tsx) (Notifications), [`src/components/CustomerHome.tsx`](https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/CustomerHome.tsx) (Restaurant discovery)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application Shell"]
  node_app["Portal router<br/>[App.tsx]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_toast["Notifications<br/>[ToastContainer.tsx]"]
end

subgraph group_customer["Customer Ordering"]
  node_home["Restaurant discovery<br/>[CustomerHome.tsx]"]
  node_restaurant["Restaurant menu"]
  node_cart["Cart<br/>[CartDrawer.tsx]"]
  node_checkout["Checkout and payment"]
  node_orders["Order history"]
  node_tracking["Live order tracking"]
  node_profile["Customer profile"]
end

subgraph group_operations["Platform Operations"]
  node_partner["Partner operations"]
  node_admin["Admin analytics<br/>[AdminDashboard.tsx]"]
end

subgraph group_state["Shared State"]
  node_context["App state and actions<br/>[AppContext.tsx]"]
  node_mockdata["Sample restaurants and orders<br/>[mockData.ts]"]
end

node_customer_actor(("Customer"))
node_partner_actor(("Restaurant partner"))
node_admin_actor(("Platform admin"))

node_customer_actor -->|"uses"| node_app
node_partner_actor -->|"uses"| node_app
node_admin_actor -->|"uses"| node_app
node_app -->|"provides state"| node_context
node_app -->|"renders"| node_navbar
node_app -->|"selects view"| node_home
node_app -->|"selects view"| node_restaurant
node_app -->|"selects view"| node_tracking
node_app -->|"selects view"| node_orders
node_app -->|"selects view"| node_profile
node_app -->|"selects portal"| node_partner
node_app -->|"selects portal"| node_admin
node_app -->|"renders"| node_cart
node_app -->|"renders"| node_checkout
node_app -->|"renders"| node_toast

click node_app "https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/App.tsx"
click node_context "https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/context/AppContext.tsx"
click node_home "https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/CustomerHome.tsx"
click node_restaurant "https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/RestaurantDetailView.tsx"
click node_cart "https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/CartDrawer.tsx"
click node_checkout "https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/SecureCheckoutModal.tsx"
click node_orders "https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/CustomerOrdersView.tsx"
click node_tracking "https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/LiveOrderTracking.tsx"
click node_profile "https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/CustomerProfileView.tsx"
click node_partner "https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/RestaurantPartnerPortal.tsx"
click node_admin "https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/AdminDashboard.tsx"
click node_mockdata "https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/data/mockData.ts"
click node_navbar "https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/Navbar.tsx"
click node_toast "https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/ToastContainer.tsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_navbar,node_toast toneBlue
class node_home,node_restaurant,node_cart,node_checkout,node_orders,node_tracking,node_profile toneAmber
class node_partner,node_admin toneMint
class node_context,node_mockdata toneRose
class node_customer_actor,node_partner_actor,node_admin_actor toneIndigo
```

## Components

### Application Shell

- [Portal router](https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation](https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`
- [Notifications](https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/ToastContainer.tsx): `src/components/ToastContainer.tsx`

### Customer Ordering

- [Restaurant discovery](https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/CustomerHome.tsx): `src/components/CustomerHome.tsx`
- [Restaurant menu](https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/RestaurantDetailView.tsx): `src/components/RestaurantDetailView.tsx`
- [Cart](https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/CartDrawer.tsx): `src/components/CartDrawer.tsx`
- [Checkout and payment](https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/SecureCheckoutModal.tsx): `src/components/SecureCheckoutModal.tsx`
- [Order history](https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/CustomerOrdersView.tsx): `src/components/CustomerOrdersView.tsx`
- [Live order tracking](https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/LiveOrderTracking.tsx): `src/components/LiveOrderTracking.tsx`
- [Customer profile](https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/CustomerProfileView.tsx): `src/components/CustomerProfileView.tsx`

### Platform Operations

- [Partner operations](https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/RestaurantPartnerPortal.tsx): `src/components/RestaurantPartnerPortal.tsx`
- [Admin analytics](https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/components/AdminDashboard.tsx): `src/components/AdminDashboard.tsx`

### Shared State

- [App state and actions](https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/context/AppContext.tsx): `src/context/AppContext.tsx`
- [Sample restaurants and orders](https://github.com/shivakumar9797/mana-meals-project-ai-/blob/main/src/data/mockData.ts): `src/data/mockData.ts`

### Other components

- **Customer**
- **Restaurant partner**
- **Platform admin**

## Connections

- 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
