# isom472-fall2026/team2 architecture

> Architecture diagram of the GitHub repository isom472-fall2026/team2, 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/team2
- Repository: https://github.com/isom472-fall2026/team2

## Overview

Student Exchange Portal is a React web application for student-exchange information, preliminary eligibility guidance, application intake, and coordinator review. Users enter through the routed interface; students can use the portal and visa advisory, while coordinators manage exchange cycles, nominations, and coordinator requests. The main application and its domain workflows are implemented together in `src/App.jsx`; the sampled excerpts show several Supabase operations but not every route or application submission path. The graph therefore groups those responsibilities without assuming unseen calls. Supabase relationships shown here are based on the sampled source; unsampled capabilities are represented conservatively.

Main entry points: [`src/App.jsx`](https://github.com/isom472-fall2026/team2/blob/main/src/App.jsx) (Portal and routing), [`src/supabase.js`](https://github.com/isom472-fall2026/team2/blob/main/src/supabase.js) (Supabase client), [`src/components/VisaChecker.jsx`](https://github.com/isom472-fall2026/team2/blob/main/src/components/VisaChecker.jsx) (Visa advisory), [`src/main.jsx`](https://github.com/isom472-fall2026/team2/blob/main/src/main.jsx) (React entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_bootstrap["React entry<br/>[main.jsx]"]
  node_app["Portal and routing<br/>[App.jsx]"]
end

subgraph group_exchange["Exchange workflows"]
  node_intake["Exchange application intake<br/>[App.jsx]"]
  node_coordinator["Coordinator review<br/>[App.jsx]"]
  node_cycle["Exchange cycle management<br/>[App.jsx]"]
  node_nominations["Nomination management<br/>[App.jsx]"]
end

subgraph group_guidance["Student guidance"]
  node_visa["Visa advisory<br/>[VisaChecker.jsx]"]
  node_schema["Schema and ERD view<br/>[ErdPage.jsx]"]
end

subgraph group_services["Data and configuration"]
  node_config["Service configuration<br/>[config.js]"]
  node_client["Supabase client<br/>[supabase.js]"]
  node_supabase[("Supabase data service")]
end

node_visitor(("Students and coordinators"))

node_visitor -->|"opens portal"| node_bootstrap
node_bootstrap -->|"renders"| node_app
node_app -.->|"routes to"| node_intake
node_app -.->|"routes to"| node_coordinator
node_app -->|"manages"| node_cycle
node_app -->|"manages"| node_nominations
node_app -->|"renders"| node_visa
node_app -->|"routes to"| node_schema
node_app -->|"calls"| node_client
node_visa -->|"loads destinations"| node_client
node_app -->|"reads map token"| node_config
node_client -->|"reads credentials"| node_config
node_client -->|"queries and updates"| node_supabase
node_visa -->|"loads destinations"| node_supabase

click node_bootstrap "https://github.com/isom472-fall2026/team2/blob/main/src/main.jsx"
click node_app "https://github.com/isom472-fall2026/team2/blob/main/src/App.jsx"
click node_intake "https://github.com/isom472-fall2026/team2/blob/main/src/App.jsx"
click node_coordinator "https://github.com/isom472-fall2026/team2/blob/main/src/App.jsx"
click node_cycle "https://github.com/isom472-fall2026/team2/blob/main/src/App.jsx"
click node_nominations "https://github.com/isom472-fall2026/team2/blob/main/src/App.jsx"
click node_visa "https://github.com/isom472-fall2026/team2/blob/main/src/components/VisaChecker.jsx"
click node_schema "https://github.com/isom472-fall2026/team2/blob/main/src/ErdPage.jsx"
click node_config "https://github.com/isom472-fall2026/team2/blob/main/js/config.js"
click node_client "https://github.com/isom472-fall2026/team2/blob/main/src/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_bootstrap,node_app toneBlue
class node_intake,node_coordinator,node_cycle,node_nominations toneAmber
class node_visa,node_schema toneMint
class node_config,node_client,node_supabase toneRose
class node_visitor toneIndigo
```

## Components

### Application entry

- [React entry](https://github.com/isom472-fall2026/team2/blob/main/src/main.jsx): `src/main.jsx`
- [Portal and routing](https://github.com/isom472-fall2026/team2/blob/main/src/App.jsx): `src/App.jsx`

### Exchange workflows

- [Exchange application intake](https://github.com/isom472-fall2026/team2/blob/main/src/App.jsx): `src/App.jsx`
- [Coordinator review](https://github.com/isom472-fall2026/team2/blob/main/src/App.jsx): `src/App.jsx`
- [Exchange cycle management](https://github.com/isom472-fall2026/team2/blob/main/src/App.jsx): `src/App.jsx`
- [Nomination management](https://github.com/isom472-fall2026/team2/blob/main/src/App.jsx): `src/App.jsx`

### Student guidance

- [Visa advisory](https://github.com/isom472-fall2026/team2/blob/main/src/components/VisaChecker.jsx): `src/components/VisaChecker.jsx`
- [Schema and ERD view](https://github.com/isom472-fall2026/team2/blob/main/src/ErdPage.jsx): `src/ErdPage.jsx`

### Data and configuration

- [Service configuration](https://github.com/isom472-fall2026/team2/blob/main/js/config.js): `js/config.js`
- [Supabase client](https://github.com/isom472-fall2026/team2/blob/main/src/supabase.js): `src/supabase.js`
- **Supabase data service**

### Other components

- **Students and coordinators**

## Connections

- Students and coordinators → React entry: opens portal
- React entry → Portal and routing: renders (evidence: `src/main.jsx`)
- Portal and routing → Exchange application intake: routes to (evidence: `src/App.jsx`)
- Portal and routing → Coordinator review: routes to (evidence: `src/App.jsx`)
- Portal and routing → Exchange cycle management: manages (evidence: `src/App.jsx`)
- Portal and routing → Nomination management: manages (evidence: `src/App.jsx`)
- Portal and routing → Visa advisory: renders (evidence: `src/App.jsx`)
- Portal and routing → Schema and ERD view: routes to (evidence: `src/App.jsx`)
- Portal and routing → Supabase client: calls (evidence: `src/App.jsx`)
- Visa advisory → Supabase client: loads destinations (evidence: `src/components/VisaChecker.jsx`)
- Portal and routing → Service configuration: reads map token (evidence: `src/App.jsx`)
- Supabase client → Service configuration: reads credentials (evidence: `src/supabase.js`)
- Supabase client → Supabase data service: queries and updates
- Visa advisory → Supabase data service: loads destinations (evidence: `src/components/VisaChecker.jsx`)
