# isom472-fall2026/team3 architecture

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

- Interactive diagram: https://gitdiagram.com/isom472-fall2026/team3
- Repository: https://github.com/isom472-fall2026/team3

## Overview

KU Bus Tracking System is a web application for students and transportation staff. The implemented flow starts in the React app, offers account registration or sign-in, then opens bus pages; confirmed users can view fleet and route information, while a weekly trip-history view provides operational summaries and filters. Supabase supplies authentication and queried data. The README also describes stop, ETA, location, trip-status, and staff-management capabilities, but their implementation was not shown; these are marked as documented, unverified branches rather than assumed runtime flows.

Main entry points: [`app/src/lib/supabase.js`](https://github.com/isom472-fall2026/team3/blob/main/app/src/lib/supabase.js) (Supabase client), [`app/src/App.jsx`](https://github.com/isom472-fall2026/team3/blob/main/app/src/App.jsx) (App shell), [`app/src/components/BusPages.jsx`](https://github.com/isom472-fall2026/team3/blob/main/app/src/components/BusPages.jsx) (Bus pages), [`app/src/main.jsx`](https://github.com/isom472-fall2026/team3/blob/main/app/src/main.jsx) (React bootstrap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_main["React bootstrap<br/>[main.jsx]"]
  node_app["App shell<br/>[App.jsx]"]
end

subgraph group_identity["Identity"]
  node_signup["Sign up<br/>[SignUp.jsx]"]
  node_signin["Sign in<br/>[SignIn.jsx]"]
end

subgraph group_operations["Bus operations"]
  node_buspages["Bus pages<br/>[BusPages.jsx]"]
  node_fleet["Fleet and routes<br/>[BusPages.jsx]"]
  node_history["Weekly trip history"]
  node_stops_eta["Stops and ETAs"]
  node_locations_status["Locations and status"]
  node_staff_management["Staff management"]
end

subgraph group_platform["Data platform"]
  node_supabase_client["Supabase client<br/>[supabase.js]"]
  node_supabase[("Supabase service")]
end

node_students(("Students"))
node_staff(("Transport staff"))

node_students -->|"open app"| node_main
node_main -->|"renders"| node_app
node_app -->|"shows"| node_signup
node_app -->|"shows"| node_signin
node_app -->|"opens when signed in"| node_buspages
node_app -->|"checks session"| node_supabase_client
node_signup -->|"registers account"| node_supabase_client
node_signin -->|"authenticates"| node_supabase_client
node_buspages -->|"loads fleet data"| node_supabase_client
node_buspages -->|"renders"| node_history
node_buspages -->|"displays"| node_fleet
node_history -->|"loads trip records"| node_supabase_client
node_supabase_client -->|"connects to"| node_supabase
node_staff -.->|"open app"| node_main
node_students -.->|"view documented capability"| node_stops_eta
node_students -.->|"view documented capability"| node_locations_status
node_staff -.->|"manage documented operations"| node_staff_management

click node_main "https://github.com/isom472-fall2026/team3/blob/main/app/src/main.jsx"
click node_app "https://github.com/isom472-fall2026/team3/blob/main/app/src/App.jsx"
click node_signup "https://github.com/isom472-fall2026/team3/blob/main/app/src/components/SignUp.jsx"
click node_signin "https://github.com/isom472-fall2026/team3/blob/main/app/src/components/SignIn.jsx"
click node_buspages "https://github.com/isom472-fall2026/team3/blob/main/app/src/components/BusPages.jsx"
click node_fleet "https://github.com/isom472-fall2026/team3/blob/main/app/src/components/BusPages.jsx"
click node_history "https://github.com/isom472-fall2026/team3/blob/main/app/src/components/WeeklyTripHistory.jsx"
click node_stops_eta "https://github.com/isom472-fall2026/team3/tree/main/app/src/components"
click node_locations_status "https://github.com/isom472-fall2026/team3/tree/main/app/src/components"
click node_staff_management "https://github.com/isom472-fall2026/team3/tree/main/app/src/components"
click node_supabase_client "https://github.com/isom472-fall2026/team3/blob/main/app/src/lib/supabase.js"

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_main,node_app toneBlue
class node_signup,node_signin toneAmber
class node_buspages,node_fleet,node_history,node_stops_eta,node_locations_status,node_staff_management toneMint
class node_supabase_client,node_supabase toneRose
class node_students,node_staff toneIndigo
```

## Components

### App entry

- [React bootstrap](https://github.com/isom472-fall2026/team3/blob/main/app/src/main.jsx): `app/src/main.jsx`
- [App shell](https://github.com/isom472-fall2026/team3/blob/main/app/src/App.jsx): `app/src/App.jsx`

### Identity

- [Sign up](https://github.com/isom472-fall2026/team3/blob/main/app/src/components/SignUp.jsx): `app/src/components/SignUp.jsx`
- [Sign in](https://github.com/isom472-fall2026/team3/blob/main/app/src/components/SignIn.jsx): `app/src/components/SignIn.jsx`

### Bus operations

- [Bus pages](https://github.com/isom472-fall2026/team3/blob/main/app/src/components/BusPages.jsx): `app/src/components/BusPages.jsx`
- [Fleet and routes](https://github.com/isom472-fall2026/team3/blob/main/app/src/components/BusPages.jsx): `app/src/components/BusPages.jsx`
- [Weekly trip history](https://github.com/isom472-fall2026/team3/blob/main/app/src/components/WeeklyTripHistory.jsx): `app/src/components/WeeklyTripHistory.jsx`
- [Stops and ETAs](https://github.com/isom472-fall2026/team3/tree/main/app/src/components): `app/src/components`
- [Locations and status](https://github.com/isom472-fall2026/team3/tree/main/app/src/components): `app/src/components`
- [Staff management](https://github.com/isom472-fall2026/team3/tree/main/app/src/components): `app/src/components`

### Data platform

- [Supabase client](https://github.com/isom472-fall2026/team3/blob/main/app/src/lib/supabase.js): `app/src/lib/supabase.js`
- **Supabase service**

### Other components

- **Students**
- **Transport staff**

## Connections

- Students → React bootstrap: open app (evidence: `app/src/main.jsx`)
- React bootstrap → App shell: renders (evidence: `app/src/main.jsx`)
- App shell → Sign up: shows (evidence: `app/src/App.jsx`)
- App shell → Sign in: shows (evidence: `app/src/App.jsx`)
- App shell → Bus pages: opens when signed in (evidence: `app/src/App.jsx`)
- App shell → Supabase client: checks session (evidence: `app/src/App.jsx`)
- Sign up → Supabase client: registers account (evidence: `app/src/components/SignUp.jsx`)
- Sign in → Supabase client: authenticates (evidence: `app/src/components/SignIn.jsx`)
- Bus pages → Supabase client: loads fleet data (evidence: `app/src/components/BusPages.jsx`)
- Bus pages → Weekly trip history: renders (evidence: `app/src/components/BusPages.jsx`)
- Bus pages → Fleet and routes: displays (evidence: `app/src/components/BusPages.jsx`)
- Weekly trip history → Supabase client: loads trip records (evidence: `app/src/components/WeeklyTripHistory.jsx`)
- Supabase client → Supabase service: connects to (evidence: `app/src/lib/supabase.js`)
- Transport staff → React bootstrap: open app (evidence: `README.md`)
- Students → Stops and ETAs: view documented capability (evidence: `README.md`)
- Students → Locations and status: view documented capability (evidence: `README.md`)
- Transport staff → Staff management: manage documented operations (evidence: `README.md`)
