# remongamal282-hash/ascww.main architecture

> Architecture diagram of the GitHub repository remongamal282-hash/ascww.main, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/remongamal282-hash/ascww.main
- Repository: https://github.com/remongamal282-hash/ascww.main

## Overview

This is a bilingual public-information website for Assiut and New Valley Water and Wastewater Company. Visitors enter through the routed React site, then browse company information, operational topics, and public services; archive pages and search support finding specific news, projects, tenders, and guidance. The graph preserves major documented content areas and the search request. Source excerpts establish the application shell and several route registrations, but many page implementations and backend endpoints were not sampled, so uncertain links are omitted or marked unverified.

Main entry points: [`src/App.tsx`](https://github.com/remongamal282-hash/ascww.main/blob/main/src/App.tsx) (Route dispatcher), [`src/main.tsx`](https://github.com/remongamal282-hash/ascww.main/blob/main/src/main.tsx) (React entry), [`src/pages/ServicesSearch.tsx`](https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/ServicesSearch.tsx) (Site search), [`src/components/Header.tsx`](https://github.com/remongamal282-hash/ascww.main/blob/main/src/components/Header.tsx) (Site navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Web application"]
  node_entry["React entry<br/>[main.tsx]"]
  node_router["Route dispatcher<br/>[App.tsx]"]
  node_language["Language state"]
  node_header["Site navigation<br/>[Header.tsx]"]
end

subgraph group_company["Company information"]
  node_home["Home page<br/>[Home.tsx]"]
  node_about["Company profile<br/>[About.tsx]"]
  node_structure["Organization structure<br/>[AboutStructure.tsx]"]
  node_branches["Company branches<br/>[Branches.tsx]"]
end

subgraph group_operations["Operations and services"]
  node_labs["Laboratories sector"]
  node_labcentral["Central laboratory"]
  node_labservices["Laboratory services"]
  node_sanitation["Sanitation treatment"]
  node_training["Administrative training"]
  node_school["School registration"]
end

subgraph group_discovery["Archives and discovery"]
  node_news["News archive<br/>[News.tsx]"]
  node_newsdetails["News details<br/>[NewsDetails.tsx]"]
  node_projects["Projects archive<br/>[Projects.tsx]"]
  node_projectdetails["Project details<br/>[ProjectDetails.tsx]"]
  node_tenders["Tenders archive<br/>[Tenders.tsx]"]
  node_tenderdetails["Tender details<br/>[TenderDetails.tsx]"]
  node_search["Site search<br/>[ServicesSearch.tsx]"]
end

node_visitor(("Site visitor"))
node_searchapi{{"Search service"}}

node_visitor -->|"opens site"| node_entry
node_entry -->|"renders"| node_router
node_entry -->|"provides language"| node_language
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_about
node_router -->|"routes to"| node_structure
node_router -->|"routes to"| node_branches
node_router -->|"routes to"| node_labs
node_router -->|"routes to"| node_labcentral
node_router -->|"routes to"| node_labservices
node_router -->|"routes to"| node_sanitation
node_router -->|"routes to"| node_training
node_router -->|"routes to"| node_school
node_router -.->|"routes to"| node_news
node_router -->|"routes to"| node_newsdetails
node_router -->|"routes to"| node_projects
node_router -->|"routes to"| node_projectdetails
node_router -.->|"routes to"| node_tenders
node_router -->|"routes to"| node_tenderdetails
node_router -.->|"routes to"| node_search
node_search -->|"requests results"| node_searchapi
node_header -->|"requests results"| node_searchapi

click node_entry "https://github.com/remongamal282-hash/ascww.main/blob/main/src/main.tsx"
click node_router "https://github.com/remongamal282-hash/ascww.main/blob/main/src/App.tsx"
click node_language "https://github.com/remongamal282-hash/ascww.main/blob/main/src/context/SiteLanguageContext.tsx"
click node_header "https://github.com/remongamal282-hash/ascww.main/blob/main/src/components/Header.tsx"
click node_home "https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/Home.tsx"
click node_about "https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/About.tsx"
click node_structure "https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/AboutStructure.tsx"
click node_branches "https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/Branches.tsx"
click node_labs "https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/LaboratoriesSector.tsx"
click node_labcentral "https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/LaboratoriesSectorCentralLab.tsx"
click node_labservices "https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/LaboratoriesSectorServices.tsx"
click node_sanitation "https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/SanitationTreatment.tsx"
click node_training "https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/TrainingAdministrative.tsx"
click node_school "https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/SchoolRegistration.tsx"
click node_news "https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/News.tsx"
click node_newsdetails "https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/NewsDetails.tsx"
click node_projects "https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/Projects.tsx"
click node_projectdetails "https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/ProjectDetails.tsx"
click node_tenders "https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/Tenders.tsx"
click node_tenderdetails "https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/TenderDetails.tsx"
click node_search "https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/ServicesSearch.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_entry,node_router,node_language,node_header toneBlue
class node_home,node_about,node_structure,node_branches toneAmber
class node_labs,node_labcentral,node_labservices,node_sanitation,node_training,node_school toneMint
class node_news,node_newsdetails,node_projects,node_projectdetails,node_tenders,node_tenderdetails,node_search toneRose
class node_visitor,node_searchapi toneIndigo
```

## Components

### Web application

- [React entry](https://github.com/remongamal282-hash/ascww.main/blob/main/src/main.tsx): `src/main.tsx`
- [Route dispatcher](https://github.com/remongamal282-hash/ascww.main/blob/main/src/App.tsx): `src/App.tsx`
- [Language state](https://github.com/remongamal282-hash/ascww.main/blob/main/src/context/SiteLanguageContext.tsx): `src/context/SiteLanguageContext.tsx`
- [Site navigation](https://github.com/remongamal282-hash/ascww.main/blob/main/src/components/Header.tsx): `src/components/Header.tsx`

### Company information

- [Home page](https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/Home.tsx): `src/pages/Home.tsx`
- [Company profile](https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/About.tsx): `src/pages/About.tsx`
- [Organization structure](https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/AboutStructure.tsx): `src/pages/AboutStructure.tsx`
- [Company branches](https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/Branches.tsx): `src/pages/Branches.tsx`

### Operations and services

- [Laboratories sector](https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/LaboratoriesSector.tsx): `src/pages/LaboratoriesSector.tsx`
- [Central laboratory](https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/LaboratoriesSectorCentralLab.tsx): `src/pages/LaboratoriesSectorCentralLab.tsx`
- [Laboratory services](https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/LaboratoriesSectorServices.tsx): `src/pages/LaboratoriesSectorServices.tsx`
- [Sanitation treatment](https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/SanitationTreatment.tsx): `src/pages/SanitationTreatment.tsx`
- [Administrative training](https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/TrainingAdministrative.tsx): `src/pages/TrainingAdministrative.tsx`
- [School registration](https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/SchoolRegistration.tsx): `src/pages/SchoolRegistration.tsx`

### Archives and discovery

- [News archive](https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/News.tsx): `src/pages/News.tsx`
- [News details](https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/NewsDetails.tsx): `src/pages/NewsDetails.tsx`
- [Projects archive](https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/Projects.tsx): `src/pages/Projects.tsx`
- [Project details](https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/ProjectDetails.tsx): `src/pages/ProjectDetails.tsx`
- [Tenders archive](https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/Tenders.tsx): `src/pages/Tenders.tsx`
- [Tender details](https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/TenderDetails.tsx): `src/pages/TenderDetails.tsx`
- [Site search](https://github.com/remongamal282-hash/ascww.main/blob/main/src/pages/ServicesSearch.tsx): `src/pages/ServicesSearch.tsx`

### Other components

- **Site visitor**
- **Search service**

## Connections

- Site visitor → React entry: opens site
- React entry → Route dispatcher: renders (evidence: `src/main.tsx`)
- React entry → Language state: provides language (evidence: `src/main.tsx`)
- Route dispatcher → Home page: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Company profile: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Organization structure: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Company branches: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Laboratories sector: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Central laboratory: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Laboratory services: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Sanitation treatment: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Administrative training: routes to (evidence: `src/App.tsx`)
- Route dispatcher → School registration: routes to (evidence: `src/App.tsx`)
- Route dispatcher → News archive: routes to (evidence: `src/App.tsx`)
- Route dispatcher → News details: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Projects archive: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Project details: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Tenders archive: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Tender details: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Site search: routes to
- Site search → Search service: requests results (evidence: `src/pages/ServicesSearch.tsx`)
- Site navigation → Search service: requests results (evidence: `src/components/Header.tsx`)
