# yvesflo/asc-geospatial architecture

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

- Interactive diagram: https://gitdiagram.com/yvesflo/asc-geospatial
- Repository: https://github.com/yvesflo/asc-geospatial

## Overview

SIG-ASC is a bilingual health-services mapping application for community health worker (ASC) coverage and facility accessibility/real-need analysis. Users choose a mapping module, spatial level, filters, and display settings; the coverage module renders thematic maps and territorial summaries, with map export available from its controls. The source index establishes the main component dependencies, while the configuration excerpt identifies the coverage geography files. The sampled material does not show the Livrable 3 data-loading path, so that relationship is omitted.

Main entry points: [`src/components/CouvertureAscMap.tsx`](https://github.com/yvesflo/asc-geospatial/blob/main/src/components/CouvertureAscMap.tsx) (Coverage thematic maps), [`src/App.tsx`](https://github.com/yvesflo/asc-geospatial/blob/main/src/App.tsx) (Application shell), [`src/config/coverageConfig.ts`](https://github.com/yvesflo/asc-geospatial/blob/main/src/config/coverageConfig.ts) (Coverage rules and geography), [`src/components/CouvertureAscSidePanel.tsx`](https://github.com/yvesflo/asc-geospatial/blob/main/src/components/CouvertureAscSidePanel.tsx) (Territorial analysis panel)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Application UI"]
  node_app["Application shell<br/>[App.tsx]"]
  node_header["Header and export trigger<br/>[Header.tsx]"]
  node_sidebar["Module and filter controls<br/>[Sidebar.tsx]"]
  node_basemap["Basemap selector"]
end

subgraph group_coverage["ASC Coverage"]
  node_coverage_map["Coverage thematic maps"]
  node_coverage_panel["Territorial analysis panel"]
  node_export["Map and data export"]
end

subgraph group_analysis["Accessibility Analysis"]
  node_livrable3["Accessibility and real need"]
end

subgraph group_shared["Shared Data and Logic"]
  node_config["Coverage rules and geography<br/>[coverageConfig.ts]"]
  node_gis_data["GIS reference datasets"]
  node_translations["Bilingual labels<br/>[mockGisData.ts]"]
  node_types["Domain types<br/>[types.ts]"]
end

node_user(("Health analyst"))

node_user -->|"uses"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_sidebar
node_app -->|"renders"| node_coverage_map
node_app -->|"renders"| node_livrable3
node_header -->|"reads labels"| node_translations
node_sidebar -->|"reads labels"| node_translations
node_coverage_map -->|"renders"| node_coverage_panel
node_coverage_map -->|"renders"| node_basemap
node_coverage_map -->|"calls export"| node_export
node_coverage_map -->|"uses rules"| node_config
node_coverage_panel -->|"uses rules"| node_config
node_livrable3 -->|"uses geography helpers"| node_config
node_config -->|"selects GeoJSON"| node_gis_data
node_coverage_map -->|"uses map types"| node_types
node_coverage_panel -->|"uses domain types"| node_types
node_livrable3 -->|"uses domain types"| node_types

click node_app "https://github.com/yvesflo/asc-geospatial/blob/main/src/App.tsx"
click node_header "https://github.com/yvesflo/asc-geospatial/blob/main/src/components/Header.tsx"
click node_sidebar "https://github.com/yvesflo/asc-geospatial/blob/main/src/components/Sidebar.tsx"
click node_coverage_map "https://github.com/yvesflo/asc-geospatial/blob/main/src/components/CouvertureAscMap.tsx"
click node_coverage_panel "https://github.com/yvesflo/asc-geospatial/blob/main/src/components/CouvertureAscSidePanel.tsx"
click node_export "https://github.com/yvesflo/asc-geospatial/blob/main/src/utils/coverageExportUtils.ts"
click node_livrable3 "https://github.com/yvesflo/asc-geospatial/blob/main/src/components/Livrable3RealNeed.tsx"
click node_basemap "https://github.com/yvesflo/asc-geospatial/blob/main/src/components/FloatingBasemapSwitcher.tsx"
click node_config "https://github.com/yvesflo/asc-geospatial/blob/main/src/config/coverageConfig.ts"
click node_gis_data "https://github.com/yvesflo/asc-geospatial/tree/main/public/data"
click node_translations "https://github.com/yvesflo/asc-geospatial/blob/main/src/data/mockGisData.ts"
click node_types "https://github.com/yvesflo/asc-geospatial/blob/main/src/types.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_header,node_sidebar,node_basemap toneBlue
class node_coverage_map,node_coverage_panel,node_export toneAmber
class node_livrable3 toneMint
class node_config,node_gis_data,node_translations,node_types toneRose
class node_user toneIndigo
```

## Components

### Application UI

- [Application shell](https://github.com/yvesflo/asc-geospatial/blob/main/src/App.tsx): `src/App.tsx`
- [Header and export trigger](https://github.com/yvesflo/asc-geospatial/blob/main/src/components/Header.tsx): `src/components/Header.tsx`
- [Module and filter controls](https://github.com/yvesflo/asc-geospatial/blob/main/src/components/Sidebar.tsx): `src/components/Sidebar.tsx`
- [Basemap selector](https://github.com/yvesflo/asc-geospatial/blob/main/src/components/FloatingBasemapSwitcher.tsx): `src/components/FloatingBasemapSwitcher.tsx`

### ASC Coverage

- [Coverage thematic maps](https://github.com/yvesflo/asc-geospatial/blob/main/src/components/CouvertureAscMap.tsx): `src/components/CouvertureAscMap.tsx`
- [Territorial analysis panel](https://github.com/yvesflo/asc-geospatial/blob/main/src/components/CouvertureAscSidePanel.tsx): `src/components/CouvertureAscSidePanel.tsx`
- [Map and data export](https://github.com/yvesflo/asc-geospatial/blob/main/src/utils/coverageExportUtils.ts): `src/utils/coverageExportUtils.ts`

### Accessibility Analysis

- [Accessibility and real need](https://github.com/yvesflo/asc-geospatial/blob/main/src/components/Livrable3RealNeed.tsx): `src/components/Livrable3RealNeed.tsx`

### Shared Data and Logic

- [Coverage rules and geography](https://github.com/yvesflo/asc-geospatial/blob/main/src/config/coverageConfig.ts): `src/config/coverageConfig.ts`
- [GIS reference datasets](https://github.com/yvesflo/asc-geospatial/tree/main/public/data): `public/data`
- [Bilingual labels](https://github.com/yvesflo/asc-geospatial/blob/main/src/data/mockGisData.ts): `src/data/mockGisData.ts`
- [Domain types](https://github.com/yvesflo/asc-geospatial/blob/main/src/types.ts): `src/types.ts`

### Other components

- **Health analyst**

## Connections

- Health analyst → Application shell: uses
- Application shell → Header and export trigger: renders (evidence: `src/App.tsx`)
- Application shell → Module and filter controls: renders (evidence: `src/App.tsx`)
- Application shell → Coverage thematic maps: renders (evidence: `src/App.tsx`)
- Application shell → Accessibility and real need: renders (evidence: `src/App.tsx`)
- Header and export trigger → Bilingual labels: reads labels (evidence: `src/components/Header.tsx`)
- Module and filter controls → Bilingual labels: reads labels (evidence: `src/components/Sidebar.tsx`)
- Coverage thematic maps → Territorial analysis panel: renders (evidence: `src/components/CouvertureAscMap.tsx`)
- Coverage thematic maps → Basemap selector: renders (evidence: `src/components/CouvertureAscMap.tsx`)
- Coverage thematic maps → Map and data export: calls export (evidence: `src/components/CouvertureAscMap.tsx`)
- Coverage thematic maps → Coverage rules and geography: uses rules (evidence: `src/components/CouvertureAscMap.tsx`)
- Territorial analysis panel → Coverage rules and geography: uses rules (evidence: `src/components/CouvertureAscSidePanel.tsx`)
- Accessibility and real need → Coverage rules and geography: uses geography helpers (evidence: `src/components/Livrable3RealNeed.tsx`)
- Coverage rules and geography → GIS reference datasets: selects GeoJSON (evidence: `src/config/coverageConfig.ts`)
- Coverage thematic maps → Domain types: uses map types (evidence: `src/components/CouvertureAscMap.tsx`)
- Territorial analysis panel → Domain types: uses domain types (evidence: `src/components/CouvertureAscSidePanel.tsx`)
- Accessibility and real need → Domain types: uses domain types (evidence: `src/components/Livrable3RealNeed.tsx`)
