# damonmaitsu76-cmyk/meat-meat-chada architecture

> Architecture diagram of the GitHub repository damonmaitsu76-cmyk/meat-meat-chada, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/damonmaitsu76-cmyk/meat-meat-chada
- Repository: https://github.com/damonmaitsu76-cmyk/meat-meat-chada

## Overview

Meat Me at Chada is a QR-based restaurant ordering and reservation app with a staff operations console. Customers scan a table QR code to browse dishes, submit refill requests, and track status, or reserve and manage a booking; staff handle the floor, requests, reservations, and menu, while managers also administer tables, imports, reports, accounts, and settings. The graph emphasizes routed product screens and the documented Supabase backend. Several staff modules and database rules were not sampled, so their detailed runtime links are omitted.

Main entry points: [`src/pages/staff/StaffLayout.jsx`](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/StaffLayout.jsx) (Staff navigation), [`src/App.jsx`](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/App.jsx) (Route application), [`src/pages/customer/QRMenu.jsx`](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/customer/QRMenu.jsx) (QR menu and requests), [`src/pages/customer/Reserve.jsx`](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/customer/Reserve.jsx) (Online reservations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry and access"]
  node_app["Route application<br/>[App.jsx]"]
  node_auth["Authentication and roles"]
  node_landing["Landing and access pages"]
end

subgraph group_guest["Guest experience"]
  node_qr_menu["QR menu and requests<br/>[QRMenu.jsx]"]
  node_reservation["Online reservations<br/>[Reserve.jsx]"]
end

subgraph group_operations["Staff operations"]
  node_dashboard["Floor dashboard<br/>[Dashboard.jsx]"]
  node_floor_map["Floor map<br/>[FloorMap.jsx]"]
  node_request_queue["Table request queue<br/>[RequestQueue.jsx]"]
  node_reservations_staff["Reservation handling<br/>[Reservations.jsx]"]
  node_menu_staff["Menu availability<br/>[MenuManagement.jsx]"]
  node_staff_layout["Staff navigation<br/>[StaffLayout.jsx]"]
end

subgraph group_management["Manager tools"]
  node_table_mgmt["Tables and QR codes"]
  node_import_data["CSV import<br/>[ImportData.jsx]"]
  node_reports["Reports and activity<br/>[Reports.jsx]"]
  node_accounts["Staff accounts<br/>[StaffAccounts.jsx]"]
  node_settings["Restaurant settings<br/>[Settings.jsx]"]
end

subgraph group_shared["Shared services"]
  node_supabase_client["Supabase client<br/>[supabaseClient.js]"]
  node_supabase[("Supabase services")]
  node_manage_staff_fn["Staff account function<br/>[index.ts]"]
  node_shared_ui["UI and dialog utilities"]
  node_floor_helpers["Floor and date helpers"]
end

node_guest_actor(("Guest"))
node_staff_actor(("Staff"))

node_guest_actor -->|"opens guest pages"| node_app
node_staff_actor -->|"opens staff pages"| node_app
node_app -->|"routes to"| node_qr_menu
node_app -->|"routes to"| node_reservation
node_app -->|"routes to"| node_staff_layout
node_app -->|"guards routes"| node_auth
node_app -->|"routes to"| node_landing
node_staff_layout -->|"hosts"| node_dashboard
node_staff_layout -->|"hosts"| node_request_queue
node_staff_layout -->|"hosts"| node_reservations_staff
node_staff_layout -->|"hosts"| node_menu_staff
node_staff_layout -->|"hosts"| node_table_mgmt
node_staff_layout -->|"hosts"| node_import_data
node_staff_layout -->|"hosts"| node_reports
node_staff_layout -->|"hosts"| node_accounts
node_staff_layout -->|"hosts"| node_settings
node_dashboard -->|"renders"| node_floor_map
node_dashboard -->|"uses"| node_floor_helpers
node_qr_menu -->|"calls RPC"| node_supabase_client
node_reservation -->|"calls RPC"| node_supabase_client
node_supabase_client -->|"connects to"| node_supabase
node_accounts -.->|"account actions"| node_manage_staff_fn
node_manage_staff_fn -.->|"manages accounts"| node_supabase
node_qr_menu -->|"uses controls"| node_shared_ui
node_reservation -->|"uses controls"| node_shared_ui
node_reservations_staff -->|"uses controls"| node_shared_ui

click node_app "https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/App.jsx"
click node_auth "https://github.com/damonmaitsu76-cmyk/meat-meat-chada/tree/main/src/auth"
click node_landing "https://github.com/damonmaitsu76-cmyk/meat-meat-chada/tree/main/src/pages"
click node_qr_menu "https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/customer/QRMenu.jsx"
click node_reservation "https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/customer/Reserve.jsx"
click node_dashboard "https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/Dashboard.jsx"
click node_floor_map "https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/FloorMap.jsx"
click node_request_queue "https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/RequestQueue.jsx"
click node_reservations_staff "https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/Reservations.jsx"
click node_menu_staff "https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/MenuManagement.jsx"
click node_staff_layout "https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/StaffLayout.jsx"
click node_table_mgmt "https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/TableManagement.jsx"
click node_import_data "https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/ImportData.jsx"
click node_reports "https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/Reports.jsx"
click node_accounts "https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/StaffAccounts.jsx"
click node_settings "https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/Settings.jsx"
click node_supabase_client "https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/supabaseClient.js"
click node_manage_staff_fn "https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/supabase/functions/manage-staff/index.ts"
click node_shared_ui "https://github.com/damonmaitsu76-cmyk/meat-meat-chada/tree/main/src/components"
click node_floor_helpers "https://github.com/damonmaitsu76-cmyk/meat-meat-chada/tree/main/src/lib"

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_auth,node_landing toneBlue
class node_qr_menu,node_reservation toneAmber
class node_dashboard,node_floor_map,node_request_queue,node_reservations_staff,node_menu_staff,node_staff_layout toneMint
class node_table_mgmt,node_import_data,node_reports,node_accounts,node_settings toneRose
class node_supabase_client,node_supabase,node_manage_staff_fn,node_shared_ui,node_floor_helpers,node_guest_actor,node_staff_actor toneIndigo
```

## Components

### App entry and access

- [Route application](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/App.jsx): `src/App.jsx`
- [Authentication and roles](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/tree/main/src/auth): `src/auth`
- [Landing and access pages](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/tree/main/src/pages): `src/pages`

### Guest experience

- [QR menu and requests](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/customer/QRMenu.jsx): `src/pages/customer/QRMenu.jsx`
- [Online reservations](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/customer/Reserve.jsx): `src/pages/customer/Reserve.jsx`

### Staff operations

- [Floor dashboard](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/Dashboard.jsx): `src/pages/staff/Dashboard.jsx`
- [Floor map](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/FloorMap.jsx): `src/pages/staff/FloorMap.jsx`
- [Table request queue](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/RequestQueue.jsx): `src/pages/staff/RequestQueue.jsx`
- [Reservation handling](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/Reservations.jsx): `src/pages/staff/Reservations.jsx`
- [Menu availability](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/MenuManagement.jsx): `src/pages/staff/MenuManagement.jsx`
- [Staff navigation](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/StaffLayout.jsx): `src/pages/staff/StaffLayout.jsx`

### Manager tools

- [Tables and QR codes](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/TableManagement.jsx): `src/pages/staff/TableManagement.jsx`
- [CSV import](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/ImportData.jsx): `src/pages/staff/ImportData.jsx`
- [Reports and activity](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/Reports.jsx): `src/pages/staff/Reports.jsx`
- [Staff accounts](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/StaffAccounts.jsx): `src/pages/staff/StaffAccounts.jsx`
- [Restaurant settings](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/pages/staff/Settings.jsx): `src/pages/staff/Settings.jsx`

### Shared services

- [Supabase client](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/src/supabaseClient.js): `src/supabaseClient.js`
- **Supabase services**
- [Staff account function](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/blob/main/supabase/functions/manage-staff/index.ts): `supabase/functions/manage-staff/index.ts`
- [UI and dialog utilities](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/tree/main/src/components): `src/components`
- [Floor and date helpers](https://github.com/damonmaitsu76-cmyk/meat-meat-chada/tree/main/src/lib): `src/lib`

### Other components

- **Guest**
- **Staff**

## Connections

- Guest → Route application: opens guest pages (evidence: `src/App.jsx`)
- Staff → Route application: opens staff pages (evidence: `src/App.jsx`)
- Route application → QR menu and requests: routes to (evidence: `src/App.jsx`)
- Route application → Online reservations: routes to (evidence: `src/App.jsx`)
- Route application → Staff navigation: routes to (evidence: `src/App.jsx`)
- Route application → Authentication and roles: guards routes (evidence: `src/App.jsx`)
- Route application → Landing and access pages: routes to (evidence: `src/App.jsx`)
- Staff navigation → Floor dashboard: hosts (evidence: `src/App.jsx`)
- Staff navigation → Table request queue: hosts (evidence: `src/App.jsx`)
- Staff navigation → Reservation handling: hosts (evidence: `src/App.jsx`)
- Staff navigation → Menu availability: hosts (evidence: `src/App.jsx`)
- Staff navigation → Tables and QR codes: hosts (evidence: `src/App.jsx`)
- Staff navigation → CSV import: hosts (evidence: `src/App.jsx`)
- Staff navigation → Reports and activity: hosts (evidence: `src/App.jsx`)
- Staff navigation → Staff accounts: hosts (evidence: `src/App.jsx`)
- Staff navigation → Restaurant settings: hosts (evidence: `src/App.jsx`)
- Floor dashboard → Floor map: renders (evidence: `src/pages/staff/Dashboard.jsx`)
- Floor dashboard → Floor and date helpers: uses (evidence: `src/pages/staff/Dashboard.jsx`)
- QR menu and requests → Supabase client: calls RPC (evidence: `src/pages/customer/QRMenu.jsx`)
- Online reservations → Supabase client: calls RPC (evidence: `src/pages/customer/Reserve.jsx`)
- Supabase client → Supabase services: connects to (evidence: `README.md`)
- Staff accounts → Staff account function: account actions
- Staff account function → Supabase services: manages accounts
- QR menu and requests → UI and dialog utilities: uses controls (evidence: `src/pages/customer/QRMenu.jsx`)
- Online reservations → UI and dialog utilities: uses controls (evidence: `src/pages/customer/Reserve.jsx`)
- Reservation handling → UI and dialog utilities: uses controls (evidence: `src/pages/staff/Reservations.jsx`)
