# janeirohurley/dashboard-ministy architecture

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

- Interactive diagram: https://gitdiagram.com/janeirohurley/dashboard-ministy
- Repository: https://github.com/janeirohurley/dashboard-ministy

## Overview

NOVARIS is a ministry dashboard for managing higher-education institutions and their records. The visible workflow moves from the dashboard into institution discovery and detail, with separate areas for national student records, validation, and official document signatures. The UI uses Supabase as its data-access client and shared status/type definitions. The README gives no product detail; the unsampled documentary area is included based on its source path, but its routing and runtime connections are not established by the excerpts.

Main entry points: [`src/App.tsx`](https://github.com/janeirohurley/dashboard-ministy/blob/main/src/App.tsx) (Dashboard and routing), [`src/lib/supabase.ts`](https://github.com/janeirohurley/dashboard-ministy/blob/main/src/lib/supabase.ts) (Supabase client), [`src/components`](https://github.com/janeirohurley/dashboard-ministy/tree/main/src/components) (Shared UI components), [`src/pages/InstitutionsList.tsx`](https://github.com/janeirohurley/dashboard-ministy/blob/main/src/pages/InstitutionsList.tsx) (Institution directory)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Application shell"]
  node_app["Dashboard and routing<br/>[App.tsx]"]
  node_nav["Navigation sidebar<br/>[Sidebar.tsx]"]
  node_header["Dashboard header<br/>[Header.tsx]"]
  node_dashwidgets["Dashboard widgets"]
  node_province["Province map<br/>[ProvinceMap.tsx]"]
  node_map["Burundi map renderer<br/>[BurundiMap.tsx]"]
end

subgraph group_records["Institution records"]
  node_institutions["Institution directory"]
  node_detail["Institution record"]
  node_registry["National register"]
end

subgraph group_ministry["Ministry workflows"]
  node_validation["Validation center"]
  node_signature["Signature center"]
  node_documents["Documentary center"]
end

subgraph group_foundation["Data and UI foundations"]
  node_supabase["Supabase client<br/>[supabase.ts]"]
  node_types["Domain types and statuses<br/>[index.ts]"]
  node_shared["Shared UI components"]
end

node_staff(("Ministry staff"))
node_backend[("Supabase backend")]

node_staff -->|"uses dashboard"| node_app
node_app -->|"renders"| node_nav
node_app -->|"renders"| node_header
node_app -->|"renders"| node_dashwidgets
node_app -->|"renders"| node_province
node_province -->|"renders"| node_map
node_app -->|"routes to"| node_institutions
node_app -->|"routes to"| node_detail
node_app -->|"routes to"| node_registry
node_app -->|"routes to"| node_validation
node_app -->|"routes to"| node_signature
node_institutions -->|"opens record"| node_detail
node_institutions -->|"queries"| node_supabase
node_detail -->|"queries"| node_supabase
node_registry -->|"queries"| node_supabase
node_validation -->|"queries"| node_supabase
node_signature -->|"queries"| node_supabase
node_documents -->|"queries"| node_supabase
node_supabase -->|"connects to"| node_backend
node_institutions -->|"uses"| node_shared
node_detail -->|"uses"| node_shared
node_validation -->|"uses"| node_shared
node_signature -->|"uses"| node_shared
node_documents -->|"uses"| node_shared
node_shared -->|"reads statuses"| node_types

click node_app "https://github.com/janeirohurley/dashboard-ministy/blob/main/src/App.tsx"
click node_nav "https://github.com/janeirohurley/dashboard-ministy/blob/main/src/components/Sidebar.tsx"
click node_header "https://github.com/janeirohurley/dashboard-ministy/blob/main/src/components/Header.tsx"
click node_dashwidgets "https://github.com/janeirohurley/dashboard-ministy/tree/main/src/components"
click node_province "https://github.com/janeirohurley/dashboard-ministy/blob/main/src/components/ProvinceMap.tsx"
click node_map "https://github.com/janeirohurley/dashboard-ministy/blob/main/src/components/BurundiMap.tsx"
click node_institutions "https://github.com/janeirohurley/dashboard-ministy/blob/main/src/pages/InstitutionsList.tsx"
click node_detail "https://github.com/janeirohurley/dashboard-ministy/blob/main/src/pages/InstitutionDetail.tsx"
click node_registry "https://github.com/janeirohurley/dashboard-ministy/blob/main/src/pages/RegistreNational.tsx"
click node_validation "https://github.com/janeirohurley/dashboard-ministy/blob/main/src/pages/ValidationCenter.tsx"
click node_signature "https://github.com/janeirohurley/dashboard-ministy/blob/main/src/pages/SignatureCenter.tsx"
click node_documents "https://github.com/janeirohurley/dashboard-ministy/blob/main/src/pages/DocumentaryCenter.tsx"
click node_supabase "https://github.com/janeirohurley/dashboard-ministy/blob/main/src/lib/supabase.ts"
click node_types "https://github.com/janeirohurley/dashboard-ministy/blob/main/src/types/index.ts"
click node_shared "https://github.com/janeirohurley/dashboard-ministy/tree/main/src/components"

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_nav,node_header,node_dashwidgets,node_province,node_map toneBlue
class node_institutions,node_detail,node_registry,node_backend toneAmber
class node_validation,node_signature,node_documents toneMint
class node_supabase,node_types,node_shared toneRose
class node_staff toneIndigo
```

## Components

### Application shell

- [Dashboard and routing](https://github.com/janeirohurley/dashboard-ministy/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation sidebar](https://github.com/janeirohurley/dashboard-ministy/blob/main/src/components/Sidebar.tsx): `src/components/Sidebar.tsx`
- [Dashboard header](https://github.com/janeirohurley/dashboard-ministy/blob/main/src/components/Header.tsx): `src/components/Header.tsx`
- [Dashboard widgets](https://github.com/janeirohurley/dashboard-ministy/tree/main/src/components): `src/components`
- [Province map](https://github.com/janeirohurley/dashboard-ministy/blob/main/src/components/ProvinceMap.tsx): `src/components/ProvinceMap.tsx`
- [Burundi map renderer](https://github.com/janeirohurley/dashboard-ministy/blob/main/src/components/BurundiMap.tsx): `src/components/BurundiMap.tsx`

### Institution records

- [Institution directory](https://github.com/janeirohurley/dashboard-ministy/blob/main/src/pages/InstitutionsList.tsx): `src/pages/InstitutionsList.tsx`
- [Institution record](https://github.com/janeirohurley/dashboard-ministy/blob/main/src/pages/InstitutionDetail.tsx): `src/pages/InstitutionDetail.tsx`
- [National register](https://github.com/janeirohurley/dashboard-ministy/blob/main/src/pages/RegistreNational.tsx): `src/pages/RegistreNational.tsx`

### Ministry workflows

- [Validation center](https://github.com/janeirohurley/dashboard-ministy/blob/main/src/pages/ValidationCenter.tsx): `src/pages/ValidationCenter.tsx`
- [Signature center](https://github.com/janeirohurley/dashboard-ministy/blob/main/src/pages/SignatureCenter.tsx): `src/pages/SignatureCenter.tsx`
- [Documentary center](https://github.com/janeirohurley/dashboard-ministy/blob/main/src/pages/DocumentaryCenter.tsx): `src/pages/DocumentaryCenter.tsx`

### Data and UI foundations

- [Supabase client](https://github.com/janeirohurley/dashboard-ministy/blob/main/src/lib/supabase.ts): `src/lib/supabase.ts`
- [Domain types and statuses](https://github.com/janeirohurley/dashboard-ministy/blob/main/src/types/index.ts): `src/types/index.ts`
- [Shared UI components](https://github.com/janeirohurley/dashboard-ministy/tree/main/src/components): `src/components`

### Other components

- **Ministry staff**
- **Supabase backend**

## Connections

- Ministry staff → Dashboard and routing: uses dashboard
- Dashboard and routing → Navigation sidebar: renders (evidence: `src/App.tsx`)
- Dashboard and routing → Dashboard header: renders (evidence: `src/App.tsx`)
- Dashboard and routing → Dashboard widgets: renders (evidence: `src/App.tsx`)
- Dashboard and routing → Province map: renders (evidence: `src/App.tsx`)
- Province map → Burundi map renderer: renders (evidence: `src/components/ProvinceMap.tsx`)
- Dashboard and routing → Institution directory: routes to (evidence: `src/App.tsx`)
- Dashboard and routing → Institution record: routes to (evidence: `src/App.tsx`)
- Dashboard and routing → National register: routes to (evidence: `src/App.tsx`)
- Dashboard and routing → Validation center: routes to (evidence: `src/App.tsx`)
- Dashboard and routing → Signature center: routes to (evidence: `src/App.tsx`)
- Institution directory → Institution record: opens record (evidence: `src/App.tsx`)
- Institution directory → Supabase client: queries (evidence: `src/pages/InstitutionsList.tsx`)
- Institution record → Supabase client: queries (evidence: `src/pages/InstitutionDetail.tsx`)
- National register → Supabase client: queries (evidence: `src/pages/RegistreNational.tsx`)
- Validation center → Supabase client: queries (evidence: `src/pages/ValidationCenter.tsx`)
- Signature center → Supabase client: queries (evidence: `src/pages/SignatureCenter.tsx`)
- Documentary center → Supabase client: queries (evidence: `src/pages/DocumentaryCenter.tsx`)
- Supabase client → Supabase backend: connects to (evidence: `src/lib/supabase.ts`)
- Institution directory → Shared UI components: uses (evidence: `src/pages/InstitutionsList.tsx`)
- Institution record → Shared UI components: uses (evidence: `src/pages/InstitutionDetail.tsx`)
- Validation center → Shared UI components: uses (evidence: `src/pages/ValidationCenter.tsx`)
- Signature center → Shared UI components: uses (evidence: `src/pages/SignatureCenter.tsx`)
- Documentary center → Shared UI components: uses (evidence: `src/pages/DocumentaryCenter.tsx`)
- Shared UI components → Domain types and statuses: reads statuses (evidence: `src/components/StatusBadge.tsx`)
