# arnavparekar/travelshield-web architecture

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

- Interactive diagram: https://gitdiagram.com/arnavparekar/travelshield-web
- Repository: https://github.com/arnavparekar/travelshield-web

## Overview

TravelShield Web is an airport-authority interface for reviewing passenger travel eligibility. The evidenced workflow routes an authority to the passenger list, loads travel and vaccination records, filters and displays status, and opens a passenger dashboard with health and travel details. Authentication is a separate workflow backed by Firebase. The README also describes disease-risk insights, alerts, and Azure AI/translation capabilities, but sampled source does not establish their implementation or wiring here; those documented integrations are shown separately. Other unsampled page behavior is not inferred.

Main entry points: [`src/App.js`](https://github.com/arnavparekar/travelshield-web/blob/main/src/App.js) (Route dispatcher), [`src/pages/List.js`](https://github.com/arnavparekar/travelshield-web/blob/main/src/pages/List.js) (Passenger screening), [`src/components/PassengerList.js`](https://github.com/arnavparekar/travelshield-web/blob/main/src/components/PassengerList.js) (Passenger table), [`src/pages/UserDashboard.js`](https://github.com/arnavparekar/travelshield-web/blob/main/src/pages/UserDashboard.js) (Passenger dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Web navigation"]
  node_app["Route dispatcher<br/>[App.js]"]
  node_home["Home page<br/>[Home.js]"]
end

subgraph group_screening["Passenger screening"]
  node_list["Passenger screening<br/>[List.js]"]
  node_tabs["Status tabs<br/>[Tabs.js]"]
  node_search["Passenger search<br/>[SearchBar.js]"]
  node_passengers["Passenger table<br/>[PassengerList.js]"]
  node_healthstatus["Status indicator<br/>[HealthStatus.js]"]
end

subgraph group_profiles["Health profiles"]
  node_dashboard["Passenger dashboard<br/>[UserDashboard.js]"]
  node_worldmap["World map page<br/>[WorldMap.js]"]
  node_riskinsights["Disease risk insights"]
  node_alerts["Risk alerts"]
end

subgraph group_platform["Identity and services"]
  node_signin["Sign-in page<br/>[SignIn.js]"]
  node_header["Site header<br/>[Header.js]"]
  node_firebase["Firebase setup<br/>[firebase.js]"]
  node_firestore[("Firestore")]
  node_firebaseauth["Firebase Auth"]
  node_azureai["Azure AI Search"]
  node_translator["Azure Translator"]
end

node_authority(("Airport authority"))

node_authority -->|"opens"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_list
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_worldmap
node_app -->|"routes to"| node_signin
node_app -->|"renders"| node_header
node_list -->|"reads records"| node_firestore
node_list -->|"renders"| node_tabs
node_list -->|"renders"| node_search
node_list -->|"renders"| node_passengers
node_search -->|"sends query"| node_list
node_tabs -->|"sets filter"| node_list
node_passengers -->|"renders"| node_healthstatus
node_passengers -->|"opens profile"| node_dashboard
node_dashboard -->|"reads profile"| node_firestore
node_firebase -->|"initializes"| node_firestore
node_header -->|"checks session"| node_firebaseauth
node_signin -->|"authenticates"| node_firebaseauth
node_riskinsights -.->|"uses insights"| node_azureai
node_riskinsights -.->|"supports languages"| node_translator
node_alerts -.->|"notifies"| node_authority

click node_app "https://github.com/arnavparekar/travelshield-web/blob/main/src/App.js"
click node_home "https://github.com/arnavparekar/travelshield-web/blob/main/src/pages/Home.js"
click node_list "https://github.com/arnavparekar/travelshield-web/blob/main/src/pages/List.js"
click node_tabs "https://github.com/arnavparekar/travelshield-web/blob/main/src/components/Tabs.js"
click node_search "https://github.com/arnavparekar/travelshield-web/blob/main/src/components/SearchBar.js"
click node_passengers "https://github.com/arnavparekar/travelshield-web/blob/main/src/components/PassengerList.js"
click node_healthstatus "https://github.com/arnavparekar/travelshield-web/blob/main/src/components/HealthStatus.js"
click node_dashboard "https://github.com/arnavparekar/travelshield-web/blob/main/src/pages/UserDashboard.js"
click node_worldmap "https://github.com/arnavparekar/travelshield-web/blob/main/src/pages/WorldMap.js"
click node_signin "https://github.com/arnavparekar/travelshield-web/blob/main/src/pages/SignIn.js"
click node_header "https://github.com/arnavparekar/travelshield-web/blob/main/src/components/Header.js"
click node_firebase "https://github.com/arnavparekar/travelshield-web/blob/main/src/firebase.js"
click node_riskinsights "https://github.com/arnavparekar/travelshield-web/tree/main/src/pages"
click node_alerts "https://github.com/arnavparekar/travelshield-web/tree/main/src/pages"

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_home toneBlue
class node_list,node_tabs,node_search,node_passengers,node_healthstatus toneAmber
class node_dashboard,node_worldmap,node_riskinsights,node_alerts toneMint
class node_signin,node_header,node_firebase,node_firestore,node_firebaseauth,node_azureai,node_translator toneRose
class node_authority toneIndigo
```

## Components

### Web navigation

- [Route dispatcher](https://github.com/arnavparekar/travelshield-web/blob/main/src/App.js): `src/App.js`
- [Home page](https://github.com/arnavparekar/travelshield-web/blob/main/src/pages/Home.js): `src/pages/Home.js`

### Passenger screening

- [Passenger screening](https://github.com/arnavparekar/travelshield-web/blob/main/src/pages/List.js): `src/pages/List.js`
- [Status tabs](https://github.com/arnavparekar/travelshield-web/blob/main/src/components/Tabs.js): `src/components/Tabs.js`
- [Passenger search](https://github.com/arnavparekar/travelshield-web/blob/main/src/components/SearchBar.js): `src/components/SearchBar.js`
- [Passenger table](https://github.com/arnavparekar/travelshield-web/blob/main/src/components/PassengerList.js): `src/components/PassengerList.js`
- [Status indicator](https://github.com/arnavparekar/travelshield-web/blob/main/src/components/HealthStatus.js): `src/components/HealthStatus.js`

### Health profiles

- [Passenger dashboard](https://github.com/arnavparekar/travelshield-web/blob/main/src/pages/UserDashboard.js): `src/pages/UserDashboard.js`
- [World map page](https://github.com/arnavparekar/travelshield-web/blob/main/src/pages/WorldMap.js): `src/pages/WorldMap.js`
- [Disease risk insights](https://github.com/arnavparekar/travelshield-web/tree/main/src/pages): `src/pages`
- [Risk alerts](https://github.com/arnavparekar/travelshield-web/tree/main/src/pages): `src/pages`

### Identity and services

- [Sign-in page](https://github.com/arnavparekar/travelshield-web/blob/main/src/pages/SignIn.js): `src/pages/SignIn.js`
- [Site header](https://github.com/arnavparekar/travelshield-web/blob/main/src/components/Header.js): `src/components/Header.js`
- [Firebase setup](https://github.com/arnavparekar/travelshield-web/blob/main/src/firebase.js): `src/firebase.js`
- **Firestore**
- **Firebase Auth**
- **Azure AI Search**
- **Azure Translator**

### Other components

- **Airport authority**

## Connections

- Airport authority → Route dispatcher: opens (evidence: `README.md`)
- Route dispatcher → Home page: routes to (evidence: `src/App.js`)
- Route dispatcher → Passenger screening: routes to (evidence: `src/App.js`)
- Route dispatcher → Passenger dashboard: routes to (evidence: `src/App.js`)
- Route dispatcher → World map page: routes to (evidence: `src/App.js`)
- Route dispatcher → Sign-in page: routes to (evidence: `src/App.js`)
- Route dispatcher → Site header: renders (evidence: `src/App.js`)
- Passenger screening → Firestore: reads records (evidence: `src/pages/List.js`)
- Passenger screening → Status tabs: renders (evidence: `src/pages/List.js`)
- Passenger screening → Passenger search: renders (evidence: `src/pages/List.js`)
- Passenger screening → Passenger table: renders (evidence: `src/pages/List.js`)
- Passenger search → Passenger screening: sends query (evidence: `src/pages/List.js`)
- Status tabs → Passenger screening: sets filter (evidence: `src/pages/List.js`)
- Passenger table → Status indicator: renders (evidence: `src/components/PassengerList.js`)
- Passenger table → Passenger dashboard: opens profile (evidence: `src/components/PassengerList.js`)
- Passenger dashboard → Firestore: reads profile (evidence: `src/pages/UserDashboard.js`)
- Firebase setup → Firestore: initializes (evidence: `src/firebase.js`)
- Site header → Firebase Auth: checks session (evidence: `src/components/Header.js`)
- Sign-in page → Firebase Auth: authenticates (evidence: `src/pages/SignIn.js`)
- Disease risk insights → Azure AI Search: uses insights (evidence: `README.md`)
- Disease risk insights → Azure Translator: supports languages (evidence: `README.md`)
- Risk alerts → Airport authority: notifies (evidence: `README.md`)
