# revanth2701/slotpilot architecture

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

## Overview

This is a React-based international education and visa-services application. Users enter through the service selector, choose higher education or visa services, and proceed into destination, application, or student-account experiences; the app also exposes employer, community, college, and admin areas. The graph separates routing, education, visa, and account/operations responsibilities. Source excerpts show routing and some Supabase imports, but most page implementations and backend interactions were not sampled, so unsupported internal flows are omitted.

Main entry points: [`src/App.jsx`](https://github.com/revanth2701/slotpilot/blob/main/src/App.jsx) (Application router), [`src/components/StudentDashboardNew.jsx`](https://github.com/revanth2701/slotpilot/blob/main/src/components/StudentDashboardNew.jsx) (Student dashboard), [`src/integrations/supabase/client.ts`](https://github.com/revanth2701/slotpilot/blob/main/src/integrations/supabase/client.ts) (Supabase client), [`src/pages/Index.jsx`](https://github.com/revanth2701/slotpilot/blob/main/src/pages/Index.jsx) (Higher education)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["App routing"]
  node_app["Application router<br/>[App.jsx]"]
  node_service["Service selection"]
end

subgraph group_education["Education services"]
  node_higher_ed["Higher education<br/>[Index.jsx]"]
  node_college_list["College directory"]
  node_journey["Student journey<br/>[JourneyForm.jsx]"]
  node_communities["Communities<br/>[Communities.jsx]"]
  node_ai_assistant["AI assistant"]
end

subgraph group_visa["Visa services"]
  node_visa_start["Visa start<br/>[VisaStart.jsx]"]
  node_visa_services["Visa services<br/>[VisaServices.jsx]"]
  node_visa_application["Visa application"]
  node_mistake_analysis["Mistake analysis"]
  node_travel_review["Travel review<br/>[TravelReview.jsx]"]
end

subgraph group_accounts["Accounts and operations"]
  node_student_login["Student account"]
  node_student_dashboard["Student dashboard"]
  node_student_data["Supabase client<br/>[client.ts]"]
  node_employer["Employer account"]
  node_admin["Admin dashboard<br/>[AdminDashboard.jsx]"]
  node_drive_upload["Drive upload function<br/>[index.ts]"]
  node_drive_test["Drive test function<br/>[index.ts]"]
end

node_visitor(("Visitor"))

node_visitor -.->|"opens app"| node_app
node_app -->|"routes to"| node_service
node_app -->|"routes to"| node_higher_ed
node_app -->|"routes to"| node_college_list
node_app -->|"routes to"| node_journey
node_app -->|"routes to"| node_communities
node_app -->|"routes to"| node_student_login
node_app -->|"routes to"| node_student_dashboard
node_app -->|"routes to"| node_employer
node_app -->|"routes to"| node_admin
node_app -->|"routes to"| node_visa_start
node_app -->|"routes to"| node_visa_services
node_app -->|"routes to"| node_visa_application
node_higher_ed -->|"renders dashboard"| node_student_dashboard
node_student_login -->|"imports client"| node_student_data
node_student_dashboard -->|"imports client"| node_student_data
node_visa_services -->|"imports client"| node_student_data

click node_app "https://github.com/revanth2701/slotpilot/blob/main/src/App.jsx"
click node_service "https://github.com/revanth2701/slotpilot/blob/main/src/pages/ServiceSelection.jsx"
click node_higher_ed "https://github.com/revanth2701/slotpilot/blob/main/src/pages/Index.jsx"
click node_college_list "https://github.com/revanth2701/slotpilot/blob/main/src/pages/CollegesListPage.jsx"
click node_journey "https://github.com/revanth2701/slotpilot/blob/main/src/components/JourneyForm.jsx"
click node_communities "https://github.com/revanth2701/slotpilot/blob/main/src/pages/Communities.jsx"
click node_student_login "https://github.com/revanth2701/slotpilot/blob/main/src/components/StudentLoginRegister.jsx"
click node_student_dashboard "https://github.com/revanth2701/slotpilot/blob/main/src/components/StudentDashboardNew.jsx"
click node_student_data "https://github.com/revanth2701/slotpilot/blob/main/src/integrations/supabase/client.ts"
click node_employer "https://github.com/revanth2701/slotpilot/blob/main/src/components/EmployerLoginRegister.jsx"
click node_admin "https://github.com/revanth2701/slotpilot/blob/main/src/pages/AdminDashboard.jsx"
click node_visa_start "https://github.com/revanth2701/slotpilot/blob/main/src/pages/VisaStart.jsx"
click node_visa_services "https://github.com/revanth2701/slotpilot/blob/main/src/pages/VisaServices.jsx"
click node_visa_application "https://github.com/revanth2701/slotpilot/blob/main/src/pages/VisaApplication.jsx"
click node_ai_assistant "https://github.com/revanth2701/slotpilot/blob/main/src/components/AIAssistantWidget.jsx"
click node_mistake_analysis "https://github.com/revanth2701/slotpilot/blob/main/src/components/MistakeAnalysis.jsx"
click node_travel_review "https://github.com/revanth2701/slotpilot/blob/main/src/components/TravelReview.jsx"
click node_drive_upload "https://github.com/revanth2701/slotpilot/blob/main/supabase/functions/upload-to-drive/index.ts"
click node_drive_test "https://github.com/revanth2701/slotpilot/blob/main/supabase/functions/test-drive/index.ts"

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_service toneBlue
class node_higher_ed,node_college_list,node_journey,node_communities,node_ai_assistant toneAmber
class node_visa_start,node_visa_services,node_visa_application,node_mistake_analysis,node_travel_review toneMint
class node_student_login,node_student_dashboard,node_student_data,node_employer,node_admin,node_drive_upload,node_drive_test toneRose
class node_visitor toneIndigo
```

## Components

### App routing

- [Application router](https://github.com/revanth2701/slotpilot/blob/main/src/App.jsx): `src/App.jsx`
- [Service selection](https://github.com/revanth2701/slotpilot/blob/main/src/pages/ServiceSelection.jsx): `src/pages/ServiceSelection.jsx`

### Education services

- [Higher education](https://github.com/revanth2701/slotpilot/blob/main/src/pages/Index.jsx): `src/pages/Index.jsx`
- [College directory](https://github.com/revanth2701/slotpilot/blob/main/src/pages/CollegesListPage.jsx): `src/pages/CollegesListPage.jsx`
- [Student journey](https://github.com/revanth2701/slotpilot/blob/main/src/components/JourneyForm.jsx): `src/components/JourneyForm.jsx`
- [Communities](https://github.com/revanth2701/slotpilot/blob/main/src/pages/Communities.jsx): `src/pages/Communities.jsx`
- [AI assistant](https://github.com/revanth2701/slotpilot/blob/main/src/components/AIAssistantWidget.jsx): `src/components/AIAssistantWidget.jsx`

### Visa services

- [Visa start](https://github.com/revanth2701/slotpilot/blob/main/src/pages/VisaStart.jsx): `src/pages/VisaStart.jsx`
- [Visa services](https://github.com/revanth2701/slotpilot/blob/main/src/pages/VisaServices.jsx): `src/pages/VisaServices.jsx`
- [Visa application](https://github.com/revanth2701/slotpilot/blob/main/src/pages/VisaApplication.jsx): `src/pages/VisaApplication.jsx`
- [Mistake analysis](https://github.com/revanth2701/slotpilot/blob/main/src/components/MistakeAnalysis.jsx): `src/components/MistakeAnalysis.jsx`
- [Travel review](https://github.com/revanth2701/slotpilot/blob/main/src/components/TravelReview.jsx): `src/components/TravelReview.jsx`

### Accounts and operations

- [Student account](https://github.com/revanth2701/slotpilot/blob/main/src/components/StudentLoginRegister.jsx): `src/components/StudentLoginRegister.jsx`
- [Student dashboard](https://github.com/revanth2701/slotpilot/blob/main/src/components/StudentDashboardNew.jsx): `src/components/StudentDashboardNew.jsx`
- [Supabase client](https://github.com/revanth2701/slotpilot/blob/main/src/integrations/supabase/client.ts): `src/integrations/supabase/client.ts`
- [Employer account](https://github.com/revanth2701/slotpilot/blob/main/src/components/EmployerLoginRegister.jsx): `src/components/EmployerLoginRegister.jsx`
- [Admin dashboard](https://github.com/revanth2701/slotpilot/blob/main/src/pages/AdminDashboard.jsx): `src/pages/AdminDashboard.jsx`
- [Drive upload function](https://github.com/revanth2701/slotpilot/blob/main/supabase/functions/upload-to-drive/index.ts): `supabase/functions/upload-to-drive/index.ts`
- [Drive test function](https://github.com/revanth2701/slotpilot/blob/main/supabase/functions/test-drive/index.ts): `supabase/functions/test-drive/index.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Application router: opens app
- Application router → Service selection: routes to (evidence: `src/App.jsx`)
- Application router → Higher education: routes to (evidence: `src/App.jsx`)
- Application router → College directory: routes to (evidence: `src/App.jsx`)
- Application router → Student journey: routes to (evidence: `src/App.jsx`)
- Application router → Communities: routes to (evidence: `src/App.jsx`)
- Application router → Student account: routes to (evidence: `src/App.jsx`)
- Application router → Student dashboard: routes to (evidence: `src/App.jsx`)
- Application router → Employer account: routes to (evidence: `src/App.jsx`)
- Application router → Admin dashboard: routes to (evidence: `src/App.jsx`)
- Application router → Visa start: routes to (evidence: `src/App.jsx`)
- Application router → Visa services: routes to (evidence: `src/App.jsx`)
- Application router → Visa application: routes to (evidence: `src/App.jsx`)
- Higher education → Student dashboard: renders dashboard (evidence: `src/pages/Index.jsx`)
- Student account → Supabase client: imports client (evidence: `src/components/StudentLoginRegister.jsx`)
- Student dashboard → Supabase client: imports client (evidence: `src/components/StudentDashboardNew.jsx`)
- Visa services → Supabase client: imports client (evidence: `src/pages/VisaServices.jsx`)
