# ericmetho517-wq/transport_platform_apps architecture

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

- Interactive diagram: https://gitdiagram.com/ericmetho517-wq/transport_platform_apps
- Repository: https://github.com/ericmetho517-wq/transport_platform_apps

## Overview

This repository is a catalog and runtime for 78 Ministry of Transport applications: dashboards, experiences, StoryMaps, Web AppViewers, and filter galleries. Users browse and filter the catalog, open an application, and interact with its localized, type-specific view. The README also documents live dashboard maps and charts, sector-specific layouts, and optional report screenshots. Some type-specific implementations and data files were not sampled; their relationships are shown only where documented, and unsampled wiring is left unasserted.

Main entry points: [`src/main.ts`](https://github.com/ericmetho517-wq/transport_platform_apps/blob/main/src/main.ts) (Searchable catalog), [`shared/project-runtime.ts`](https://github.com/ericmetho517-wq/transport_platform_apps/blob/main/shared/project-runtime.ts) (Project runtime), [`shared/interactive-dashboard.ts`](https://github.com/ericmetho517-wq/transport_platform_apps/blob/main/shared/interactive-dashboard.ts) (Interactive dashboards), [`projects`](https://github.com/ericmetho517-wq/transport_platform_apps/tree/main/projects) (Application entries)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Application Catalog"]
  node_catalog["Searchable catalog<br/>[main.ts]"]
  node_appentries["Application entries"]
  node_catalogdata["Catalog registry<br/>[main.ts]"]
end

subgraph group_runtime["Shared Runtime"]
  node_projectruntime["Project runtime<br/>[project-runtime.ts]"]
  node_localization["Localization<br/>[localization.ts]"]
  node_titles["Localized labels<br/>[app-titles.ts]"]
end

subgraph group_products["Application Experiences"]
  node_dashboards["Interactive dashboards"]
  node_sectorapps["Sector applications<br/>[sector-runtime.ts]"]
  node_pending["Data-pending views"]
  node_otherapps["Experiences and map apps"]
end

subgraph group_content["Data and References"]
  node_mapdata["Local GeoJSON layers"]
  node_reportrefs["Report design references"]
end

node_visitor(("Platform visitor"))

node_visitor -->|"browses"| node_catalog
node_catalog -->|"filters entries"| node_catalogdata
node_catalog -->|"opens application"| node_appentries
node_catalog -->|"localizes labels"| node_titles
node_catalog -->|"groups dashboards"| node_dashboards
node_appentries -->|"invokes runtime"| node_projectruntime
node_projectruntime -->|"renders dashboards"| node_dashboards
node_projectruntime -->|"renders other types"| node_sectorapps
node_projectruntime -->|"enables localization"| node_localization
node_projectruntime -->|"resolves labels"| node_titles
node_appentries -->|"renders pending views"| node_pending
node_dashboards -.->|"loads map layers"| node_mapdata
node_dashboards -.->|"offers references"| node_reportrefs
node_sectorapps -.->|"serves app types"| node_otherapps

click node_catalog "https://github.com/ericmetho517-wq/transport_platform_apps/blob/main/src/main.ts"
click node_appentries "https://github.com/ericmetho517-wq/transport_platform_apps/tree/main/projects"
click node_projectruntime "https://github.com/ericmetho517-wq/transport_platform_apps/blob/main/shared/project-runtime.ts"
click node_localization "https://github.com/ericmetho517-wq/transport_platform_apps/blob/main/shared/localization.ts"
click node_titles "https://github.com/ericmetho517-wq/transport_platform_apps/blob/main/shared/app-titles.ts"
click node_dashboards "https://github.com/ericmetho517-wq/transport_platform_apps/blob/main/shared/interactive-dashboard.ts"
click node_sectorapps "https://github.com/ericmetho517-wq/transport_platform_apps/blob/main/shared/sector-runtime.ts"
click node_pending "https://github.com/ericmetho517-wq/transport_platform_apps/blob/main/shared/data-pending-app.ts"
click node_mapdata "https://github.com/ericmetho517-wq/transport_platform_apps/tree/main/projects"
click node_reportrefs "https://github.com/ericmetho517-wq/transport_platform_apps/tree/main/projects"
click node_otherapps "https://github.com/ericmetho517-wq/transport_platform_apps/tree/main/projects"
click node_catalogdata "https://github.com/ericmetho517-wq/transport_platform_apps/blob/main/src/main.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_catalog,node_appentries,node_catalogdata toneBlue
class node_projectruntime,node_localization,node_titles toneAmber
class node_dashboards,node_sectorapps,node_pending,node_otherapps toneMint
class node_mapdata,node_reportrefs toneRose
class node_visitor toneIndigo
```

## Components

### Application Catalog

- [Searchable catalog](https://github.com/ericmetho517-wq/transport_platform_apps/blob/main/src/main.ts): `src/main.ts`
- [Application entries](https://github.com/ericmetho517-wq/transport_platform_apps/tree/main/projects): `projects`
- [Catalog registry](https://github.com/ericmetho517-wq/transport_platform_apps/blob/main/src/main.ts): `src/main.ts`

### Shared Runtime

- [Project runtime](https://github.com/ericmetho517-wq/transport_platform_apps/blob/main/shared/project-runtime.ts): `shared/project-runtime.ts`
- [Localization](https://github.com/ericmetho517-wq/transport_platform_apps/blob/main/shared/localization.ts): `shared/localization.ts`
- [Localized labels](https://github.com/ericmetho517-wq/transport_platform_apps/blob/main/shared/app-titles.ts): `shared/app-titles.ts`

### Application Experiences

- [Interactive dashboards](https://github.com/ericmetho517-wq/transport_platform_apps/blob/main/shared/interactive-dashboard.ts): `shared/interactive-dashboard.ts`
- [Sector applications](https://github.com/ericmetho517-wq/transport_platform_apps/blob/main/shared/sector-runtime.ts): `shared/sector-runtime.ts`
- [Data-pending views](https://github.com/ericmetho517-wq/transport_platform_apps/blob/main/shared/data-pending-app.ts): `shared/data-pending-app.ts`
- [Experiences and map apps](https://github.com/ericmetho517-wq/transport_platform_apps/tree/main/projects): `projects`

### Data and References

- [Local GeoJSON layers](https://github.com/ericmetho517-wq/transport_platform_apps/tree/main/projects): `projects`
- [Report design references](https://github.com/ericmetho517-wq/transport_platform_apps/tree/main/projects): `projects`

### Other components

- **Platform visitor**

## Connections

- Platform visitor → Searchable catalog: browses (evidence: `README.md`)
- Searchable catalog → Catalog registry: filters entries (evidence: `src/main.ts`)
- Searchable catalog → Application entries: opens application (evidence: `src/main.ts`)
- Searchable catalog → Localized labels: localizes labels (evidence: `src/main.ts`)
- Searchable catalog → Interactive dashboards: groups dashboards (evidence: `src/main.ts`)
- Application entries → Project runtime: invokes runtime (evidence: `projects/dashboard-04811fcd6f/src/App.ts`)
- Project runtime → Interactive dashboards: renders dashboards (evidence: `shared/project-runtime.ts`)
- Project runtime → Sector applications: renders other types (evidence: `shared/project-runtime.ts`)
- Project runtime → Localization: enables localization (evidence: `shared/project-runtime.ts`)
- Project runtime → Localized labels: resolves labels (evidence: `shared/project-runtime.ts`)
- Application entries → Data-pending views: renders pending views (evidence: `projects/dashboard-kafr-dawood-sadat-development-impact/src/App.ts`)
- Interactive dashboards → Local GeoJSON layers: loads map layers (evidence: `README.md`)
- Interactive dashboards → Report design references: offers references (evidence: `README.md`)
- Sector applications → Experiences and map apps: serves app types (evidence: `README.md`)
