# soemyinttun/kmitl-projects architecture

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

- Interactive diagram: https://gitdiagram.com/soemyinttun/kmitl-projects
- Repository: https://github.com/soemyinttun/kmitl-projects

## Overview

This is a browser-based travel-operations app for managing travel customers, package bookings, visa/passport cases, air tickets, schedules, and business analytics. Users enter through the routed app and work in service-specific screens; shared state loads local records and applies date, service, and destination filters for reporting. The app also offers trip-calendar exports and geographic demand views. The README is empty, so capability coverage is based on the source index and sampled screens; some unsampled screen behavior and wiring are not shown.

Main entry points: [`app/src/App.tsx`](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/App.tsx) (App routes), [`app/src/db.ts`](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/db.ts) (Local database), [`app/src/state.tsx`](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/state.tsx) (App state), [`app/src/pages/Bookings.tsx`](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/pages/Bookings.tsx) (Bookings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and navigation"]
  node_entry["App entry<br/>[main.tsx]"]
  node_router["App routes<br/>[App.tsx]"]
end

subgraph group_operations["Travel operations"]
  node_bookings["Bookings<br/>[Bookings.tsx]"]
  node_customers["Customers<br/>[Customers.tsx]"]
  node_packages["Travel packages<br/>[Packages.tsx]"]
  node_pipeline["Visa and passport<br/>[Pipeline.tsx]"]
  node_tickets["Air tickets<br/>[Tickets.tsx]"]
  node_trips["Trips and schedule<br/>[Trips.tsx]"]
  node_settings["Settings<br/>[Settings.tsx]"]
end

subgraph group_insights["Reporting and insights"]
  node_overview["Overview<br/>[Overview.tsx]"]
  node_revenue["Revenue<br/>[Revenue.tsx]"]
  node_heatmaps["Demand heatmaps<br/>[Heatmaps.tsx]"]
end

subgraph group_core["Shared state and storage"]
  node_analytics["Sales analytics<br/>[analytics.ts]"]
  node_state["App state<br/>[state.tsx]"]
  node_database[("Local database<br/>[db.ts]")]
  node_seed["Demo data seeding<br/>[seed.ts]"]
  node_calendar["Calendar export<br/>[ics.ts]"]
  node_customerselect["Customer selector<br/>[CustomerSelect.tsx]"]
  node_ui["Shared UI and charts<br/>[ui.tsx]"]
end

node_browser(("Browser user"))

node_browser -->|"opens app"| node_entry
node_entry -->|"renders"| node_router
node_router -->|"reads shared state"| node_state
node_router -->|"routes to"| node_overview
node_router -->|"routes to"| node_revenue
node_router -->|"routes to"| node_packages
node_router -->|"routes to"| node_pipeline
node_router -->|"routes to"| node_tickets
node_router -->|"routes to"| node_trips
node_router -->|"routes to"| node_heatmaps
node_router -->|"routes to"| node_bookings
node_router -->|"routes to"| node_customers
node_router -->|"routes to"| node_settings
node_state -->|"loads records"| node_database
node_state -->|"initializes data"| node_seed
node_state -->|"builds sales"| node_analytics
node_seed -->|"writes demo data"| node_database
node_overview -->|"reads metrics"| node_state
node_revenue -->|"reads metrics"| node_state
node_heatmaps -->|"reads bookings"| node_state
node_heatmaps -->|"uses date ranges"| node_analytics
node_packages -->|"updates packages"| node_database
node_bookings -->|"manages bookings"| node_database
node_customers -->|"manages customers"| node_database
node_pipeline -->|"updates cases"| node_database
node_tickets -->|"manages tickets"| node_database
node_settings -->|"configures data"| node_database
node_trips -->|"formats exports"| node_calendar
node_pipeline -->|"selects customer"| node_customerselect
node_tickets -->|"selects customer"| node_customerselect
node_bookings -->|"selects customer"| node_customerselect
node_bookings -->|"renders controls"| node_ui
node_trips -->|"renders calendar"| node_ui
node_heatmaps -->|"renders charts"| node_ui

click node_entry "https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/main.tsx"
click node_router "https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/App.tsx"
click node_bookings "https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/pages/Bookings.tsx"
click node_customers "https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/pages/Customers.tsx"
click node_packages "https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/pages/Packages.tsx"
click node_pipeline "https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/pages/Pipeline.tsx"
click node_tickets "https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/pages/Tickets.tsx"
click node_trips "https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/pages/Trips.tsx"
click node_settings "https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/pages/Settings.tsx"
click node_overview "https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/pages/Overview.tsx"
click node_revenue "https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/pages/Revenue.tsx"
click node_heatmaps "https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/pages/Heatmaps.tsx"
click node_analytics "https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/analytics.ts"
click node_state "https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/state.tsx"
click node_database "https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/db.ts"
click node_seed "https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/seed.ts"
click node_calendar "https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/ics.ts"
click node_customerselect "https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/components/CustomerSelect.tsx"
click node_ui "https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/components/ui.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_entry,node_router,node_browser toneBlue
class node_bookings,node_customers,node_packages,node_pipeline,node_tickets,node_trips,node_settings toneAmber
class node_overview,node_revenue,node_heatmaps toneMint
class node_analytics,node_state,node_database,node_seed,node_calendar,node_customerselect,node_ui toneRose
```

## Components

### App and navigation

- [App entry](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/main.tsx): `app/src/main.tsx`
- [App routes](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/App.tsx): `app/src/App.tsx`

### Travel operations

- [Bookings](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/pages/Bookings.tsx): `app/src/pages/Bookings.tsx`
- [Customers](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/pages/Customers.tsx): `app/src/pages/Customers.tsx`
- [Travel packages](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/pages/Packages.tsx): `app/src/pages/Packages.tsx`
- [Visa and passport](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/pages/Pipeline.tsx): `app/src/pages/Pipeline.tsx`
- [Air tickets](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/pages/Tickets.tsx): `app/src/pages/Tickets.tsx`
- [Trips and schedule](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/pages/Trips.tsx): `app/src/pages/Trips.tsx`
- [Settings](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/pages/Settings.tsx): `app/src/pages/Settings.tsx`

### Reporting and insights

- [Overview](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/pages/Overview.tsx): `app/src/pages/Overview.tsx`
- [Revenue](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/pages/Revenue.tsx): `app/src/pages/Revenue.tsx`
- [Demand heatmaps](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/pages/Heatmaps.tsx): `app/src/pages/Heatmaps.tsx`

### Shared state and storage

- [Sales analytics](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/analytics.ts): `app/src/analytics.ts`
- [App state](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/state.tsx): `app/src/state.tsx`
- [Local database](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/db.ts): `app/src/db.ts`
- [Demo data seeding](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/seed.ts): `app/src/seed.ts`
- [Calendar export](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/ics.ts): `app/src/ics.ts`
- [Customer selector](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/components/CustomerSelect.tsx): `app/src/components/CustomerSelect.tsx`
- [Shared UI and charts](https://github.com/soemyinttun/kmitl-projects/blob/main/app/src/components/ui.tsx): `app/src/components/ui.tsx`

### Other components

- **Browser user**

## Connections

- Browser user → App entry: opens app
- App entry → App routes: renders (evidence: `app/src/main.tsx`)
- App routes → App state: reads shared state (evidence: `app/src/App.tsx`)
- App routes → Overview: routes to (evidence: `app/src/App.tsx`)
- App routes → Revenue: routes to (evidence: `app/src/App.tsx`)
- App routes → Travel packages: routes to (evidence: `app/src/App.tsx`)
- App routes → Visa and passport: routes to (evidence: `app/src/App.tsx`)
- App routes → Air tickets: routes to (evidence: `app/src/App.tsx`)
- App routes → Trips and schedule: routes to (evidence: `app/src/App.tsx`)
- App routes → Demand heatmaps: routes to (evidence: `app/src/App.tsx`)
- App routes → Bookings: routes to (evidence: `app/src/App.tsx`)
- App routes → Customers: routes to (evidence: `app/src/App.tsx`)
- App routes → Settings: routes to (evidence: `app/src/App.tsx`)
- App state → Local database: loads records (evidence: `app/src/state.tsx`)
- App state → Demo data seeding: initializes data (evidence: `app/src/state.tsx`)
- App state → Sales analytics: builds sales (evidence: `app/src/state.tsx`)
- Demo data seeding → Local database: writes demo data (evidence: `app/src/seed.ts`)
- Overview → App state: reads metrics (evidence: `app/src/pages/Overview.tsx`)
- Revenue → App state: reads metrics (evidence: `app/src/pages/Revenue.tsx`)
- Demand heatmaps → App state: reads bookings (evidence: `app/src/pages/Heatmaps.tsx`)
- Demand heatmaps → Sales analytics: uses date ranges (evidence: `app/src/pages/Heatmaps.tsx`)
- Travel packages → Local database: updates packages (evidence: `app/src/pages/Packages.tsx`)
- Bookings → Local database: manages bookings (evidence: `app/src/pages/Bookings.tsx`)
- Customers → Local database: manages customers (evidence: `app/src/pages/Customers.tsx`)
- Visa and passport → Local database: updates cases (evidence: `app/src/pages/Pipeline.tsx`)
- Air tickets → Local database: manages tickets (evidence: `app/src/pages/Tickets.tsx`)
- Settings → Local database: configures data (evidence: `app/src/pages/Settings.tsx`)
- Trips and schedule → Calendar export: formats exports (evidence: `app/src/pages/Trips.tsx`)
- Visa and passport → Customer selector: selects customer (evidence: `app/src/pages/Pipeline.tsx`)
- Air tickets → Customer selector: selects customer (evidence: `app/src/pages/Tickets.tsx`)
- Bookings → Customer selector: selects customer (evidence: `app/src/pages/Bookings.tsx`)
- Bookings → Shared UI and charts: renders controls (evidence: `app/src/pages/Bookings.tsx`)
- Trips and schedule → Shared UI and charts: renders calendar (evidence: `app/src/pages/Trips.tsx`)
- Demand heatmaps → Shared UI and charts: renders charts (evidence: `app/src/pages/Heatmaps.tsx`)
