# pasindu0720/heritage-site-managment- architecture

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

- Interactive diagram: https://gitdiagram.com/pasindu0720/heritage-site-managment-
- Repository: https://github.com/pasindu0720/heritage-site-managment-

## Overview

This is a multi-role Windows Forms heritage-management application. Its documented user flows cover authentication, administrator oversight, visitor registration and QR-pass delivery, interactive site maps, and conservation-project tracking. The repository tree exposes only a ZIP archive, so component paths and relationships below rely on the README’s project structure and feature descriptions; no source excerpts were available to verify implementation calls.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access"]
  node_auth["Authentication"]
end

subgraph group_admin["Administration"]
  node_admin_ui["Admin dashboard"]
  node_site_review["Site review"]
  node_manager_admin["Manager administration"]
  node_dashboard_stats["Dashboard statistics"]
end

subgraph group_visitor["Visitor Registration"]
  node_registration["Visitor details"]
  node_pass["QR pass"]
end

subgraph group_map["Maps and Conservation"]
  node_map_viewer["Site map viewer"]
  node_map_host["Map host"]
  node_leaflet_map["Interactive map"]
  node_conservation["Project tracking"]
end

subgraph group_data["Persistence and Services"]
  node_manager_repo["User repository"]
  node_heritage_repo["Heritage repository"]
  node_site_db[("Heritage database")]
  node_visitor_db[("Visitor database")]
  node_qr_api["QR code API"]
  node_email["Email service"]
end

node_user(("System users"))

node_user -->|"signs in"| node_auth
node_auth -->|"role access"| node_admin_ui
node_user -->|"enters details"| node_registration
node_registration -->|"continues registration"| node_pass
node_pass -->|"saves visitor"| node_visitor_db
node_pass -->|"fetches QR"| node_qr_api
node_pass -->|"sends confirmation"| node_email
node_admin_ui -->|"reviews sites"| node_site_review
node_admin_ui -->|"manages managers"| node_manager_admin
node_admin_ui -->|"shows statistics"| node_dashboard_stats
node_manager_admin -->|"manages accounts"| node_manager_repo
node_site_review -.->|"updates sites"| node_heritage_repo
node_map_viewer -.->|"opens map"| node_map_host
node_map_host -->|"hosts map"| node_leaflet_map
node_user -->|"tracks projects"| node_conservation

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_auth,node_user toneBlue
class node_admin_ui,node_site_review,node_manager_admin,node_dashboard_stats toneAmber
class node_registration,node_pass toneMint
class node_map_viewer,node_map_host,node_leaflet_map,node_conservation toneRose
class node_manager_repo,node_heritage_repo,node_site_db,node_visitor_db,node_qr_api,node_email toneIndigo
```

## Components

### Access

- **Authentication**

### Administration

- **Admin dashboard**
- **Site review**
- **Manager administration**
- **Dashboard statistics**

### Visitor Registration

- **Visitor details**
- **QR pass**

### Maps and Conservation

- **Site map viewer**
- **Map host**
- **Interactive map**
- **Project tracking**

### Persistence and Services

- **User repository**
- **Heritage repository**
- **Heritage database**
- **Visitor database**
- **QR code API**
- **Email service**

### Other components

- **System users**

## Connections

- System users → Authentication: signs in (evidence: `README.md`)
- Authentication → Admin dashboard: role access (evidence: `README.md`)
- System users → Visitor details: enters details (evidence: `README.md`)
- Visitor details → QR pass: continues registration (evidence: `README.md`)
- QR pass → Visitor database: saves visitor (evidence: `README.md`)
- QR pass → QR code API: fetches QR (evidence: `README.md`)
- QR pass → Email service: sends confirmation (evidence: `README.md`)
- Admin dashboard → Site review: reviews sites (evidence: `README.md`)
- Admin dashboard → Manager administration: manages managers (evidence: `README.md`)
- Admin dashboard → Dashboard statistics: shows statistics (evidence: `README.md`)
- Manager administration → User repository: manages accounts (evidence: `README.md`)
- Site review → Heritage repository: updates sites
- Site map viewer → Map host: opens map
- Map host → Interactive map: hosts map (evidence: `README.md`)
- System users → Project tracking: tracks projects (evidence: `README.md`)
