# bhutsipho/mogodudishmondayz-application architecture

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

- Interactive diagram: https://gitdiagram.com/bhutsipho/mogodudishmondayz-application
- Repository: https://github.com/bhutsipho/mogodudishmondayz-application

## Overview

Mogodu Monday is a customer-facing food-business MVP. The main flow is browse dishes and specials, add items to a locally persisted cart, submit an order, receive confirmation, then look up its status. Separate pages provide a Monday calendar, notifications, and six-month analytics. The graph preserves those documented capabilities; connections for unsampled pages rely on their SOURCE INDEX references, so it does not assume external payment, delivery, or push-notification services.

Main entry points: [`src/components/SiteHeader.tsx`](https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/components/SiteHeader.tsx) (Site navigation), [`src/lib/store.tsx`](https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/lib/store.tsx) (Cart and order state), [`src/lib/mogodu-data.ts`](https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/lib/mogodu-data.ts) (Menu and specials), [`src/routes/index.tsx`](https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/routes/index.tsx) (Home page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browse["Discovery"]
  node_home["Home page<br/>[index.tsx]"]
  node_menu["Menu page<br/>[menu.tsx]"]
  node_specials["Specials page<br/>[specials.tsx]"]
  node_menu_data["Menu and specials<br/>[mogodu-data.ts]"]
  node_menu_card["Menu item card<br/>[MenuItemCard.tsx]"]
end

subgraph group_order["Ordering"]
  node_order_page["Order form<br/>[order.index.tsx]"]
  node_store[("Cart and order state<br/>[store.tsx]")]
  node_confirmation["Order confirmation"]
end

subgraph group_updates["Order updates"]
  node_tracking["Order tracking<br/>[track.tsx]"]
  node_timeline["Status timeline<br/>[StatusTimeline.tsx]"]
  node_notifications["Notifications<br/>[notifications.tsx]"]
end

subgraph group_business["Business views"]
  node_calendar["Specials calendar<br/>[calendar.tsx]"]
  node_analytics["Six-month analytics<br/>[analytics.tsx]"]
end

subgraph group_app["Application shell"]
  node_site_header["Site navigation<br/>[SiteHeader.tsx]"]
  node_app_shell["Application shell<br/>[__root.tsx]"]
end

node_customer(("Customer"))

node_customer -.->|"browses"| node_home
node_home -->|"links to"| node_menu
node_home -->|"links to"| node_specials
node_home -->|"reads offerings"| node_menu_data
node_home -->|"adds special"| node_store
node_menu -->|"reads offerings"| node_menu_data
node_menu -->|"renders items"| node_menu_card
node_menu_card -->|"updates cart"| node_store
node_specials -->|"reads specials"| node_menu_data
node_order_page -->|"places order"| node_store
node_order_page -->|"navigates to"| node_confirmation
node_store -->|"prices items"| node_menu_data
node_store -->|"supplies updates"| node_notifications
node_tracking -->|"looks up order"| node_store
node_tracking -->|"renders status"| node_timeline
node_calendar -->|"reads specials"| node_menu_data
node_analytics -->|"reads history"| node_menu_data
node_analytics -->|"reads orders"| node_store
node_app_shell -->|"renders"| node_site_header
node_site_header -->|"navigates to"| node_menu
node_site_header -->|"navigates to"| node_specials
node_site_header -->|"navigates to"| node_tracking
node_site_header -->|"navigates to"| node_calendar
node_site_header -->|"navigates to"| node_notifications
node_site_header -->|"navigates to"| node_analytics
node_site_header -->|"links to"| node_order_page

click node_home "https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/routes/index.tsx"
click node_menu "https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/routes/menu.tsx"
click node_specials "https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/routes/specials.tsx"
click node_menu_data "https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/lib/mogodu-data.ts"
click node_menu_card "https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/components/MenuItemCard.tsx"
click node_order_page "https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/routes/order.index.tsx"
click node_store "https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/lib/store.tsx"
click node_confirmation "https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/routes/order.confirmed.tsx"
click node_tracking "https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/routes/track.tsx"
click node_timeline "https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/components/StatusTimeline.tsx"
click node_notifications "https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/routes/notifications.tsx"
click node_calendar "https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/routes/calendar.tsx"
click node_analytics "https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/routes/analytics.tsx"
click node_site_header "https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/components/SiteHeader.tsx"
click node_app_shell "https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/routes/__root.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_home,node_menu,node_specials,node_menu_data,node_menu_card toneBlue
class node_order_page,node_store,node_confirmation toneAmber
class node_tracking,node_timeline,node_notifications toneMint
class node_calendar,node_analytics toneRose
class node_site_header,node_app_shell,node_customer toneIndigo
```

## Components

### Discovery

- [Home page](https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/routes/index.tsx): `src/routes/index.tsx`
- [Menu page](https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/routes/menu.tsx): `src/routes/menu.tsx`
- [Specials page](https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/routes/specials.tsx): `src/routes/specials.tsx`
- [Menu and specials](https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/lib/mogodu-data.ts): `src/lib/mogodu-data.ts`
- [Menu item card](https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/components/MenuItemCard.tsx): `src/components/MenuItemCard.tsx`

### Ordering

- [Order form](https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/routes/order.index.tsx): `src/routes/order.index.tsx`
- [Cart and order state](https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/lib/store.tsx): `src/lib/store.tsx`
- [Order confirmation](https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/routes/order.confirmed.tsx): `src/routes/order.confirmed.tsx`

### Order updates

- [Order tracking](https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/routes/track.tsx): `src/routes/track.tsx`
- [Status timeline](https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/components/StatusTimeline.tsx): `src/components/StatusTimeline.tsx`
- [Notifications](https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/routes/notifications.tsx): `src/routes/notifications.tsx`

### Business views

- [Specials calendar](https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/routes/calendar.tsx): `src/routes/calendar.tsx`
- [Six-month analytics](https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/routes/analytics.tsx): `src/routes/analytics.tsx`

### Application shell

- [Site navigation](https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/components/SiteHeader.tsx): `src/components/SiteHeader.tsx`
- [Application shell](https://github.com/bhutsipho/mogodudishmondayz-application/blob/main/src/routes/__root.tsx): `src/routes/__root.tsx`

### Other components

- **Customer**

## Connections

- Customer → Home page: browses (evidence: `README.md`)
- Home page → Menu page: links to (evidence: `src/routes/index.tsx`)
- Home page → Specials page: links to (evidence: `src/routes/index.tsx`)
- Home page → Menu and specials: reads offerings (evidence: `src/routes/index.tsx`)
- Home page → Cart and order state: adds special (evidence: `src/routes/index.tsx`)
- Menu page → Menu and specials: reads offerings (evidence: `src/routes/menu.tsx`)
- Menu page → Menu item card: renders items (evidence: `src/routes/menu.tsx`)
- Menu item card → Cart and order state: updates cart (evidence: `src/components/MenuItemCard.tsx`)
- Specials page → Menu and specials: reads specials (evidence: `src/routes/specials.tsx`)
- Order form → Cart and order state: places order (evidence: `src/routes/order.index.tsx`)
- Order form → Order confirmation: navigates to (evidence: `src/routes/order.index.tsx`)
- Cart and order state → Menu and specials: prices items (evidence: `src/lib/store.tsx`)
- Cart and order state → Notifications: supplies updates (evidence: `src/routes/notifications.tsx`)
- Order tracking → Cart and order state: looks up order (evidence: `src/routes/track.tsx`)
- Order tracking → Status timeline: renders status (evidence: `src/routes/track.tsx`)
- Specials calendar → Menu and specials: reads specials (evidence: `src/routes/calendar.tsx`)
- Six-month analytics → Menu and specials: reads history (evidence: `src/routes/analytics.tsx`)
- Six-month analytics → Cart and order state: reads orders (evidence: `src/routes/analytics.tsx`)
- Application shell → Site navigation: renders (evidence: `src/routes/__root.tsx`)
- Site navigation → Menu page: navigates to (evidence: `src/components/SiteHeader.tsx`)
- Site navigation → Specials page: navigates to (evidence: `src/components/SiteHeader.tsx`)
- Site navigation → Order tracking: navigates to (evidence: `src/components/SiteHeader.tsx`)
- Site navigation → Specials calendar: navigates to (evidence: `src/components/SiteHeader.tsx`)
- Site navigation → Notifications: navigates to (evidence: `src/components/SiteHeader.tsx`)
- Site navigation → Six-month analytics: navigates to (evidence: `src/components/SiteHeader.tsx`)
- Site navigation → Order form: links to (evidence: `src/components/SiteHeader.tsx`)
