# tercodemagang/dashboard-afada architecture

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

- Interactive diagram: https://gitdiagram.com/tercodemagang/dashboard-afada
- Repository: https://github.com/tercodemagang/dashboard-afada

## Overview

Invito is a browser-based wedding invitation and event-management application. The visible workflow is users entering the app, navigating role-specific sections, managing guests, and assigning guests to tables; the seating screen reads guest data and persists table changes through a local HTTP API. The large App excerpt is incomplete and the README is empty, so other product sections are represented only where their names or relationships are visible. UI component links are limited to imports listed in the source index or shown in excerpts.

Main entry points: [`src/app/components/ui/utils.ts`](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/utils.ts) (Class utilities), [`src/app/components/ui/sidebar.tsx`](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/sidebar.tsx) (Sidebar), [`src/app/App.tsx`](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/App.tsx) (Invito application), [`src/pages/SeatingPage.tsx`](https://github.com/tercodemagang/dashboard-afada/blob/main/src/pages/SeatingPage.tsx) (Seating planner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_product["Event management"]
  node_app["Invito application<br/>[App.tsx]"]
  node_guestdata["Guest data<br/>[App.tsx]"]
  node_invitations["Invitation management<br/>[App.tsx]"]
  node_envelope["Digital envelope<br/>[App.tsx]"]
  node_seating["Seating planner<br/>[SeatingPage.tsx]"]
  node_entry["Browser entry<br/>[main.tsx]"]
end

subgraph group_ui["Interface components"]
  node_button["Button<br/>[button.tsx]"]
  node_chart["Chart<br/>[chart.tsx]"]
  node_dialog["Dialog<br/>[dialog.tsx]"]
  node_dropdown["Dropdown menu<br/>[dropdown-menu.tsx]"]
  node_input["Input<br/>[input.tsx]"]
  node_label["Label<br/>[label.tsx]"]
  node_menubar["Menubar<br/>[menubar.tsx]"]
  node_separator["Separator<br/>[separator.tsx]"]
  node_sheet["Sheet<br/>[sheet.tsx]"]
  node_sidebar["Sidebar<br/>[sidebar.tsx]"]
  node_skeleton["Skeleton<br/>[skeleton.tsx]"]
  node_toggle["Toggle<br/>[toggle.tsx]"]
  node_tooltip["Tooltip<br/>[tooltip.tsx]"]
  node_mobile["Mobile detection<br/>[use-mobile.ts]"]
end

subgraph group_shared["Shared UI utilities"]
  node_utils["Class utilities<br/>[utils.ts]"]
end

node_user(("Event user"))
node_guestapi["Guest API"]

node_user -->|"opens app"| node_entry
node_entry -->|"renders"| node_app
node_user -.->|"navigates sections"| node_app
node_app -->|"includes page"| node_seating
node_app -.->|"navigates to"| node_guestdata
node_app -.->|"navigates to"| node_invitations
node_app -.->|"navigates to"| node_envelope
node_seating -->|"loads and updates guests"| node_guestapi
node_button -->|"merges classes"| node_utils
node_chart -->|"merges classes"| node_utils
node_dialog -->|"merges classes"| node_utils
node_dropdown -->|"uses classes"| node_utils
node_input -->|"uses classes"| node_utils
node_label -->|"uses classes"| node_utils
node_menubar -->|"merges classes"| node_utils
node_separator -->|"uses classes"| node_utils
node_sheet -->|"merges classes"| node_utils
node_sidebar -->|"checks viewport"| node_mobile
node_sidebar -->|"renders mobile panel"| node_sheet
node_sidebar -->|"uses tooltips"| node_tooltip
node_sidebar -->|"uses button"| node_button
node_sidebar -->|"uses input"| node_input
node_sidebar -->|"uses separator"| node_separator
node_sidebar -->|"uses skeleton"| node_skeleton
node_sidebar -->|"merges classes"| node_utils
node_skeleton -->|"uses classes"| node_utils
node_toggle -->|"uses classes"| node_utils
node_tooltip -->|"uses classes"| node_utils

click node_app "https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/App.tsx"
click node_guestdata "https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/App.tsx"
click node_invitations "https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/App.tsx"
click node_envelope "https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/App.tsx"
click node_seating "https://github.com/tercodemagang/dashboard-afada/blob/main/src/pages/SeatingPage.tsx"
click node_button "https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/button.tsx"
click node_chart "https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/chart.tsx"
click node_dialog "https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/dialog.tsx"
click node_dropdown "https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/dropdown-menu.tsx"
click node_input "https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/input.tsx"
click node_label "https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/label.tsx"
click node_menubar "https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/menubar.tsx"
click node_separator "https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/separator.tsx"
click node_sheet "https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/sheet.tsx"
click node_sidebar "https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/sidebar.tsx"
click node_skeleton "https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/skeleton.tsx"
click node_toggle "https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/toggle.tsx"
click node_tooltip "https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/tooltip.tsx"
click node_mobile "https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/use-mobile.ts"
click node_utils "https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/utils.ts"
click node_entry "https://github.com/tercodemagang/dashboard-afada/blob/main/src/main.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_guestdata,node_invitations,node_envelope,node_seating,node_entry,node_user toneBlue
class node_button,node_chart,node_dialog,node_dropdown,node_input,node_label,node_menubar,node_separator,node_sheet,node_sidebar,node_skeleton,node_toggle,node_tooltip,node_mobile toneAmber
class node_utils,node_guestapi toneMint
```

## Components

### Event management

- [Invito application](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/App.tsx): `src/app/App.tsx`
- [Guest data](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/App.tsx): `src/app/App.tsx`
- [Invitation management](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/App.tsx): `src/app/App.tsx`
- [Digital envelope](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/App.tsx): `src/app/App.tsx`
- [Seating planner](https://github.com/tercodemagang/dashboard-afada/blob/main/src/pages/SeatingPage.tsx): `src/pages/SeatingPage.tsx`
- [Browser entry](https://github.com/tercodemagang/dashboard-afada/blob/main/src/main.tsx): `src/main.tsx`

### Interface components

- [Button](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/button.tsx): `src/app/components/ui/button.tsx`
- [Chart](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/chart.tsx): `src/app/components/ui/chart.tsx`
- [Dialog](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/dialog.tsx): `src/app/components/ui/dialog.tsx`
- [Dropdown menu](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/dropdown-menu.tsx): `src/app/components/ui/dropdown-menu.tsx`
- [Input](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/input.tsx): `src/app/components/ui/input.tsx`
- [Label](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/label.tsx): `src/app/components/ui/label.tsx`
- [Menubar](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/menubar.tsx): `src/app/components/ui/menubar.tsx`
- [Separator](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/separator.tsx): `src/app/components/ui/separator.tsx`
- [Sheet](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/sheet.tsx): `src/app/components/ui/sheet.tsx`
- [Sidebar](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/sidebar.tsx): `src/app/components/ui/sidebar.tsx`
- [Skeleton](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/skeleton.tsx): `src/app/components/ui/skeleton.tsx`
- [Toggle](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/toggle.tsx): `src/app/components/ui/toggle.tsx`
- [Tooltip](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/tooltip.tsx): `src/app/components/ui/tooltip.tsx`
- [Mobile detection](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/use-mobile.ts): `src/app/components/ui/use-mobile.ts`

### Shared UI utilities

- [Class utilities](https://github.com/tercodemagang/dashboard-afada/blob/main/src/app/components/ui/utils.ts): `src/app/components/ui/utils.ts`

### Other components

- **Event user**
- **Guest API**

## Connections

- Event user → Browser entry: opens app (evidence: `src/main.tsx`)
- Browser entry → Invito application: renders (evidence: `src/main.tsx`)
- Event user → Invito application: navigates sections
- Invito application → Seating planner: includes page (evidence: `src/app/App.tsx`)
- Invito application → Guest data: navigates to (evidence: `src/app/App.tsx`)
- Invito application → Invitation management: navigates to (evidence: `src/app/App.tsx`)
- Invito application → Digital envelope: navigates to (evidence: `src/app/App.tsx`)
- Seating planner → Guest API: loads and updates guests (evidence: `src/pages/SeatingPage.tsx`)
- Button → Class utilities: merges classes (evidence: `src/app/components/ui/button.tsx`)
- Chart → Class utilities: merges classes (evidence: `src/app/components/ui/chart.tsx`)
- Dialog → Class utilities: merges classes (evidence: `src/app/components/ui/dialog.tsx`)
- Dropdown menu → Class utilities: uses classes (evidence: `src/app/components/ui/dropdown-menu.tsx`)
- Input → Class utilities: uses classes (evidence: `src/app/components/ui/input.tsx`)
- Label → Class utilities: uses classes (evidence: `src/app/components/ui/label.tsx`)
- Menubar → Class utilities: merges classes (evidence: `src/app/components/ui/menubar.tsx`)
- Separator → Class utilities: uses classes (evidence: `src/app/components/ui/separator.tsx`)
- Sheet → Class utilities: merges classes (evidence: `src/app/components/ui/sheet.tsx`)
- Sidebar → Mobile detection: checks viewport (evidence: `src/app/components/ui/sidebar.tsx`)
- Sidebar → Sheet: renders mobile panel (evidence: `src/app/components/ui/sidebar.tsx`)
- Sidebar → Tooltip: uses tooltips (evidence: `src/app/components/ui/sidebar.tsx`)
- Sidebar → Button: uses button (evidence: `src/app/components/ui/sidebar.tsx`)
- Sidebar → Input: uses input (evidence: `src/app/components/ui/sidebar.tsx`)
- Sidebar → Separator: uses separator (evidence: `src/app/components/ui/sidebar.tsx`)
- Sidebar → Skeleton: uses skeleton (evidence: `src/app/components/ui/sidebar.tsx`)
- Sidebar → Class utilities: merges classes (evidence: `src/app/components/ui/sidebar.tsx`)
- Skeleton → Class utilities: uses classes (evidence: `src/app/components/ui/skeleton.tsx`)
- Toggle → Class utilities: uses classes
- Tooltip → Class utilities: uses classes (evidence: `src/app/components/ui/tooltip.tsx`)
