# hemanthreddykunduru/restaurent_temp architecture

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

- Interactive diagram: https://gitdiagram.com/hemanthreddykunduru/restaurent_temp
- Repository: https://github.com/hemanthreddykunduru/restaurent_temp

## Overview

Sangem Hotels is a multi-branch restaurant website for browsing dishes, ordering, booking tables, and submitting feedback, with separate dashboards for restaurant and delivery operations. The README documents five locations, a 20-dish menu, multiple payment methods, and an Excel data file. The sampled home page confirms branch selection and booking/feedback entry points; dashboard excerpts confirm operational views and direct Supabase updates. Other wiring is omitted where source excerpts do not establish it.

Main entry points: [`app/page.tsx`](https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/app/page.tsx) (Restaurant home), [`lib/auth.ts`](https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/lib/auth.ts) (Session storage), [`lib/supabase.ts`](https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/lib/supabase.ts) (Supabase), [`app/admin/page.tsx`](https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/app/admin/page.tsx) (Admin dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customer["Customer experience"]
  node_home["Restaurant home<br/>[page.tsx]"]
  node_menu["Dish browsing<br/>[DishesGrid.tsx]"]
  node_branch["Branch selection"]
  node_cart["Shopping cart<br/>[cart-sheet.tsx]"]
  node_checkout["Checkout"]
  node_booking["Table booking"]
  node_feedback["Guest feedback"]
  node_login["Login dialog<br/>[login-dialog.tsx]"]
end

subgraph group_operations["Restaurant operations"]
  node_admin["Admin dashboard<br/>[page.tsx]"]
  node_branchdash["Branch dashboard<br/>[page.tsx]"]
  node_delivery["Delivery dashboard<br/>[page.tsx]"]
end

subgraph group_data["Data and identity"]
  node_auth[("Session storage<br/>[auth.ts]")]
  node_catalog["Restaurant data<br/>[restaurant-data.ts]"]
  node_appdata["Application data<br/>[data.ts]"]
end

node_visitor(("Guest"))
node_payments["Payment partners"]
node_supabase[("Supabase<br/>[supabase.ts]")]

node_visitor -->|"visits"| node_home
node_home -->|"selects branch"| node_branch
node_home -->|"opens booking"| node_booking
node_home -->|"opens feedback"| node_feedback
node_home -->|"opens login"| node_login
node_home -->|"browses menu"| node_menu
node_menu -->|"adds dishes"| node_cart
node_cart -->|"starts checkout"| node_checkout
node_checkout -.->|"payment methods"| node_payments
node_login -->|"stores session"| node_auth
node_admin -->|"reads session"| node_auth
node_branchdash -->|"reads session"| node_auth
node_delivery -->|"reads session"| node_auth
node_admin -->|"loads and updates"| node_supabase
node_branchdash -->|"loads and updates"| node_supabase
node_delivery -->|"loads and updates"| node_supabase

click node_home "https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/app/page.tsx"
click node_menu "https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/components/DishesGrid.tsx"
click node_branch "https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/components/branch-selector.tsx"
click node_cart "https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/components/cart-sheet.tsx"
click node_checkout "https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/components/checkout-dialog.tsx"
click node_booking "https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/components/table-booking-dialog.tsx"
click node_feedback "https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/components/feedback-dialog.tsx"
click node_admin "https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/app/admin/page.tsx"
click node_branchdash "https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/app/branch-dashboard/page.tsx"
click node_delivery "https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/app/delivery-dashboard/page.tsx"
click node_login "https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/components/login-dialog.tsx"
click node_auth "https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/lib/auth.ts"
click node_catalog "https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/lib/restaurant-data.ts"
click node_appdata "https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/lib/data.ts"
click node_supabase "https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/lib/supabase.ts"

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_home,node_menu,node_branch,node_cart,node_checkout,node_booking,node_feedback,node_login toneBlue
class node_admin,node_branchdash,node_delivery,node_supabase toneAmber
class node_auth,node_catalog,node_appdata toneMint
class node_visitor,node_payments toneIndigo
```

## Components

### Customer experience

- [Restaurant home](https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/app/page.tsx): `app/page.tsx`
- [Dish browsing](https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/components/DishesGrid.tsx): `components/DishesGrid.tsx`
- [Branch selection](https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/components/branch-selector.tsx): `components/branch-selector.tsx`
- [Shopping cart](https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/components/cart-sheet.tsx): `components/cart-sheet.tsx`
- [Checkout](https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/components/checkout-dialog.tsx): `components/checkout-dialog.tsx`
- [Table booking](https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/components/table-booking-dialog.tsx): `components/table-booking-dialog.tsx`
- [Guest feedback](https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/components/feedback-dialog.tsx): `components/feedback-dialog.tsx`
- [Login dialog](https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/components/login-dialog.tsx): `components/login-dialog.tsx`

### Restaurant operations

- [Admin dashboard](https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/app/admin/page.tsx): `app/admin/page.tsx`
- [Branch dashboard](https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/app/branch-dashboard/page.tsx): `app/branch-dashboard/page.tsx`
- [Delivery dashboard](https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/app/delivery-dashboard/page.tsx): `app/delivery-dashboard/page.tsx`

### Data and identity

- [Session storage](https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/lib/auth.ts): `lib/auth.ts`
- [Restaurant data](https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/lib/restaurant-data.ts): `lib/restaurant-data.ts`
- [Application data](https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/lib/data.ts): `lib/data.ts`

### Other components

- **Guest**
- **Payment partners**
- [Supabase](https://github.com/hemanthreddykunduru/restaurent_temp/blob/main/lib/supabase.ts): `lib/supabase.ts`

## Connections

- Guest → Restaurant home: visits
- Restaurant home → Branch selection: selects branch
- Restaurant home → Table booking: opens booking
- Restaurant home → Guest feedback: opens feedback
- Restaurant home → Login dialog: opens login
- Restaurant home → Dish browsing: browses menu
- Dish browsing → Shopping cart: adds dishes
- Shopping cart → Checkout: starts checkout
- Checkout → Payment partners: payment methods
- Login dialog → Session storage: stores session
- Admin dashboard → Session storage: reads session
- Branch dashboard → Session storage: reads session
- Delivery dashboard → Session storage: reads session
- Admin dashboard → Supabase: loads and updates
- Branch dashboard → Supabase: loads and updates
- Delivery dashboard → Supabase: loads and updates
