# jagadish210523-lgtm/portad-dashboard architecture

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

- Interactive diagram: https://gitdiagram.com/jagadish210523-lgtm/portad-dashboard
- Repository: https://github.com/jagadish210523-lgtm/portad-dashboard

## Overview

PortaD Dashboard is a static Next.js front end for a local-first SaaS migration product; it does not contain the migration engine. Users can explore the overview and compatibility information, open the migration wizard shell, and view the jobs page, while account users can sign in or use a preview session. The graph includes the documented product surfaces and the sampled auth and API-status internals. Migration execution, hosted jobs, and adapter capability generation are described as future or external functionality, not implemented here.

Main entry points: [`src/app/page.tsx`](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/app/page.tsx) (Overview page), [`src/app/compatibility/page.tsx`](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/app/compatibility/page.tsx) (Compatibility page), [`src/components/site-footer.tsx`](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/site-footer.tsx) (Site footer), [`src/components/api-status.tsx`](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/api-status.tsx) (API status probe)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routes["Product pages"]
  node_overview_page["Overview page<br/>[page.tsx]"]
  node_migrate_page["Migration wizard shell<br/>[page.tsx]"]
  node_jobs_page["Jobs view<br/>[page.tsx]"]
  node_compat_page["Compatibility page<br/>[page.tsx]"]
  node_compat_matrix["Searchable matrix<br/>[matrix.tsx]"]
end

subgraph group_overview["Overview experience"]
  node_hero_visual["Migration illustration<br/>[hero-visual.tsx]"]
  node_terminal_demo["Terminal demo<br/>[terminal.tsx]"]
  node_process_section["Process section<br/>[process.tsx]"]
  node_accordion["FAQ accordion<br/>[accordion.tsx]"]
  node_api_status["API status probe<br/>[api-status.tsx]"]
  node_carousel["Coverage carousel<br/>[carousel.tsx]"]
  node_marquee["Adapter marquee<br/>[marquee.tsx]"]
end

subgraph group_identity["Account and auth"]
  node_account_page["Account page<br/>[page.tsx]"]
  node_auth_client["Auth session client<br/>[auth.ts]"]
  node_firebase_adapter["Firebase Auth adapter<br/>[firebase.ts]"]
end

subgraph group_shell["Shared shell"]
  node_config["API and URL config<br/>[config.ts]"]
  node_layout["App layout<br/>[layout.tsx]"]
  node_site_header["Site header<br/>[site-header.tsx]"]
  node_site_footer["Site footer<br/>[site-footer.tsx]"]
  node_section_ui["Section layout UI<br/>[section.tsx]"]
  node_reveal_ui["Reveal animation<br/>[reveal.tsx]"]
  node_logo_ui["Brand components<br/>[logo.tsx]"]
  node_icons_ui["Icon components<br/>[icons.tsx]"]
end

node_visitor(("Dashboard visitor"))
node_api_service{{"PortaD API"}}
node_firebase_service{{"Firebase Auth service"}}

node_visitor -->|"opens"| node_overview_page
node_visitor -->|"opens"| node_migrate_page
node_visitor -->|"opens"| node_jobs_page
node_visitor -->|"opens"| node_compat_page
node_visitor -->|"opens"| node_account_page
node_overview_page -->|"renders"| node_hero_visual
node_overview_page -->|"renders"| node_terminal_demo
node_overview_page -->|"renders"| node_process_section
node_overview_page -->|"renders"| node_accordion
node_overview_page -->|"renders"| node_api_status
node_overview_page -->|"renders"| node_carousel
node_overview_page -->|"renders"| node_marquee
node_compat_page -->|"renders"| node_compat_matrix
node_account_page -->|"uses"| node_auth_client
node_auth_client -->|"loads"| node_firebase_adapter
node_firebase_adapter -.->|"authenticates with"| node_firebase_service
node_api_status -->|"reads URL"| node_config
node_api_status -->|"probes health"| node_api_service
node_layout -->|"renders"| node_site_header
node_layout -->|"renders"| node_site_footer
node_site_header -->|"uses"| node_auth_client
node_site_footer -->|"renders"| node_api_status
node_site_footer -->|"reads URL"| node_config
node_site_footer -->|"renders"| node_logo_ui
node_compat_page -->|"uses"| node_section_ui
node_compat_page -->|"uses"| node_reveal_ui
node_compat_matrix -->|"uses"| node_icons_ui

click node_overview_page "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/app/page.tsx"
click node_migrate_page "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/app/migrate/page.tsx"
click node_jobs_page "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/app/jobs/page.tsx"
click node_compat_page "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/app/compatibility/page.tsx"
click node_compat_matrix "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/app/compatibility/matrix.tsx"
click node_account_page "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/app/account/page.tsx"
click node_hero_visual "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/hero-visual.tsx"
click node_terminal_demo "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/terminal.tsx"
click node_process_section "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/process.tsx"
click node_accordion "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/accordion.tsx"
click node_api_status "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/api-status.tsx"
click node_carousel "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/carousel.tsx"
click node_marquee "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/marquee.tsx"
click node_auth_client "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/lib/auth.ts"
click node_firebase_adapter "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/lib/firebase.ts"
click node_config "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/lib/config.ts"
click node_layout "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/app/layout.tsx"
click node_site_header "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/site-header.tsx"
click node_site_footer "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/site-footer.tsx"
click node_section_ui "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/section.tsx"
click node_reveal_ui "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/reveal.tsx"
click node_logo_ui "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/logo.tsx"
click node_icons_ui "https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/icons.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_overview_page,node_migrate_page,node_jobs_page,node_compat_page,node_compat_matrix toneBlue
class node_hero_visual,node_terminal_demo,node_process_section,node_accordion,node_api_status,node_carousel,node_marquee toneAmber
class node_account_page,node_auth_client,node_firebase_adapter,node_api_service toneMint
class node_config,node_layout,node_site_header,node_site_footer,node_section_ui,node_reveal_ui,node_logo_ui,node_icons_ui toneRose
class node_visitor,node_firebase_service toneIndigo
```

## Components

### Product pages

- [Overview page](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Migration wizard shell](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/app/migrate/page.tsx): `src/app/migrate/page.tsx`
- [Jobs view](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/app/jobs/page.tsx): `src/app/jobs/page.tsx`
- [Compatibility page](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/app/compatibility/page.tsx): `src/app/compatibility/page.tsx`
- [Searchable matrix](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/app/compatibility/matrix.tsx): `src/app/compatibility/matrix.tsx`

### Overview experience

- [Migration illustration](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/hero-visual.tsx): `src/components/hero-visual.tsx`
- [Terminal demo](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/terminal.tsx): `src/components/terminal.tsx`
- [Process section](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/process.tsx): `src/components/process.tsx`
- [FAQ accordion](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/accordion.tsx): `src/components/accordion.tsx`
- [API status probe](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/api-status.tsx): `src/components/api-status.tsx`
- [Coverage carousel](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/carousel.tsx): `src/components/carousel.tsx`
- [Adapter marquee](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/marquee.tsx): `src/components/marquee.tsx`

### Account and auth

- [Account page](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/app/account/page.tsx): `src/app/account/page.tsx`
- [Auth session client](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/lib/auth.ts): `src/lib/auth.ts`
- [Firebase Auth adapter](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/lib/firebase.ts): `src/lib/firebase.ts`

### Shared shell

- [API and URL config](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/lib/config.ts): `src/lib/config.ts`
- [App layout](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/app/layout.tsx): `src/app/layout.tsx`
- [Site header](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/site-header.tsx): `src/components/site-header.tsx`
- [Site footer](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/site-footer.tsx): `src/components/site-footer.tsx`
- [Section layout UI](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/section.tsx): `src/components/section.tsx`
- [Reveal animation](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/reveal.tsx): `src/components/reveal.tsx`
- [Brand components](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/logo.tsx): `src/components/logo.tsx`
- [Icon components](https://github.com/jagadish210523-lgtm/portad-dashboard/blob/main/src/components/icons.tsx): `src/components/icons.tsx`

### Other components

- **Dashboard visitor**
- **PortaD API**
- **Firebase Auth service**

## Connections

- Dashboard visitor → Overview page: opens (evidence: `README.md`)
- Dashboard visitor → Migration wizard shell: opens (evidence: `README.md`)
- Dashboard visitor → Jobs view: opens (evidence: `README.md`)
- Dashboard visitor → Compatibility page: opens (evidence: `README.md`)
- Dashboard visitor → Account page: opens (evidence: `README.md`)
- Overview page → Migration illustration: renders (evidence: `src/app/page.tsx`)
- Overview page → Terminal demo: renders (evidence: `src/app/page.tsx`)
- Overview page → Process section: renders (evidence: `src/app/page.tsx`)
- Overview page → FAQ accordion: renders (evidence: `src/app/page.tsx`)
- Overview page → API status probe: renders (evidence: `src/app/page.tsx`)
- Overview page → Coverage carousel: renders (evidence: `src/app/page.tsx`)
- Overview page → Adapter marquee: renders (evidence: `src/app/page.tsx`)
- Compatibility page → Searchable matrix: renders (evidence: `src/app/compatibility/page.tsx`)
- Account page → Auth session client: uses (evidence: `src/app/account/page.tsx`)
- Auth session client → Firebase Auth adapter: loads (evidence: `src/lib/auth.ts`)
- Firebase Auth adapter → Firebase Auth service: authenticates with (evidence: `README.md`)
- API status probe → API and URL config: reads URL (evidence: `src/components/api-status.tsx`)
- API status probe → PortaD API: probes health (evidence: `src/components/api-status.tsx`)
- App layout → Site header: renders (evidence: `src/app/layout.tsx`)
- App layout → Site footer: renders (evidence: `src/app/layout.tsx`)
- Site header → Auth session client: uses (evidence: `src/components/site-header.tsx`)
- Site footer → API status probe: renders (evidence: `src/components/site-footer.tsx`)
- Site footer → API and URL config: reads URL (evidence: `src/components/site-footer.tsx`)
- Site footer → Brand components: renders (evidence: `src/components/site-footer.tsx`)
- Compatibility page → Section layout UI: uses (evidence: `src/app/compatibility/page.tsx`)
- Compatibility page → Reveal animation: uses (evidence: `src/app/compatibility/page.tsx`)
- Searchable matrix → Icon components: uses (evidence: `src/app/compatibility/matrix.tsx`)
