# sachinakash01/iservesl-frontent architecture

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

- Interactive diagram: https://gitdiagram.com/sachinakash01/iservesl-frontent
- Repository: https://github.com/sachinakash01/iservesl-frontent

## Overview

iServeSL is a citizen-services web portal. The user enters through the welcome page, signs in or registers, then navigates service forms and request history; certificate submissions and account operations call backend APIs. The graph includes the documented route and component structure plus sampled API interactions. The README is empty, and unsampled content does not establish additional behavior, so those relationships are omitted.

Main entry points: [`iServeSL/src/App.jsx`](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/App.jsx) (Route application), [`iServeSL/src/components/Sidebar.jsx`](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/Sidebar.jsx) (Sidebar navigation), [`iServeSL/src/routes/Welcome.jsx`](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/Welcome.jsx) (Welcome page), [`iServeSL/src/routes/Dashboard.jsx`](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/Dashboard.jsx) (Dashboard route)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and accounts"]
  node_app["Route application<br/>[App.jsx]"]
  node_welcome["Welcome page<br/>[Welcome.jsx]"]
  node_landing["Landing sections<br/>[Hero.jsx]"]
  node_about["About section<br/>[About.jsx]"]
  node_navbar["Landing navigation<br/>[Navbar.jsx]"]
  node_footer["Landing footer<br/>[Footer.jsx]"]
  node_login["Login<br/>[Login.jsx]"]
  node_signup["Registration<br/>[Signup.jsx]"]
end

subgraph group_portal["Portal navigation"]
  node_dashboard["Dashboard route<br/>[Dashboard.jsx]"]
  node_sidebar["Sidebar navigation<br/>[Sidebar.jsx]"]
  node_dashcontent["Dashboard overview"]
  node_profile["Profile panel<br/>[Profile.jsx]"]
end

subgraph group_services["Citizen services"]
  node_gramaroute["Grama service route<br/>[GramaNiladhari.jsx]"]
  node_grama["Grama certificate form"]
  node_policeroute["Police service route<br/>[Police.jsx]"]
  node_police["Police certificate form<br/>[PoliceContent.jsx]"]
end

subgraph group_account["Requests and account"]
  node_requestsroute["Requests route<br/>[Requests.jsx]"]
  node_requests["Request history<br/>[RequestContent.jsx]"]
  node_history["Dashboard history list<br/>[HistoryList.jsx]"]
  node_editroute["Edit profile route<br/>[EditProfile.jsx]"]
  node_edit["Profile editor"]
  node_feedbackroute["Feedback route<br/>[Feedback.jsx]"]
  node_feedback["Feedback form"]
  node_guide["User guide<br/>[UserGuide.jsx]"]
  node_guidecontent["Guide content"]
  node_supportroute["Online support route<br/>[OnlineSupport.jsx]"]
  node_support["Support content"]
end

node_citizen(("Citizen"))
node_userapi{{"User API"}}
node_gramaapi{{"Grama service API"}}
node_policeapi{{"Police service API"}}
node_availability{{"Availability API"}}

node_citizen -->|"opens"| node_app
node_app -->|"routes to"| node_welcome
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_signup
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_gramaroute
node_app -->|"routes to"| node_policeroute
node_app -->|"routes to"| node_requestsroute
node_app -->|"routes to"| node_editroute
node_app -->|"routes to"| node_feedbackroute
node_app -->|"routes to"| node_guide
node_app -->|"routes to"| node_supportroute
node_welcome -->|"renders"| node_landing
node_welcome -->|"renders"| node_about
node_welcome -->|"renders"| node_navbar
node_welcome -->|"renders"| node_footer
node_login -->|"authenticates"| node_userapi
node_signup -->|"registers"| node_userapi
node_dashboard -->|"renders"| node_sidebar
node_dashboard -->|"renders"| node_dashcontent
node_dashboard -->|"renders"| node_profile
node_dashcontent -->|"renders"| node_history
node_gramaroute -->|"renders"| node_sidebar
node_gramaroute -->|"renders"| node_grama
node_grama -->|"fetches phone"| node_userapi
node_grama -->|"submits and updates"| node_gramaapi
node_policeroute -->|"renders"| node_sidebar
node_policeroute -->|"renders"| node_police
node_police -->|"fetches phone"| node_userapi
node_police -->|"submits and updates"| node_policeapi
node_police -->|"checks NIC"| node_availability
node_requestsroute -->|"renders"| node_sidebar
node_requestsroute -->|"renders"| node_requests
node_requests -->|"reads and updates"| node_policeapi
node_requests -->|"reads and deletes"| node_gramaapi
node_editroute -->|"renders"| node_sidebar
node_editroute -->|"renders"| node_edit
node_edit -->|"reads and updates"| node_userapi
node_feedbackroute -->|"renders"| node_sidebar
node_feedbackroute -->|"renders"| node_feedback
node_guide -->|"renders"| node_sidebar
node_guide -->|"renders"| node_guidecontent
node_supportroute -->|"renders"| node_sidebar
node_supportroute -->|"renders"| node_support

click node_app "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/App.jsx"
click node_welcome "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/Welcome.jsx"
click node_landing "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/Hero.jsx"
click node_about "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/About.jsx"
click node_navbar "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/Navbar.jsx"
click node_footer "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/Footer.jsx"
click node_login "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/Login.jsx"
click node_signup "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/Signup.jsx"
click node_dashboard "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/Dashboard.jsx"
click node_sidebar "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/Sidebar.jsx"
click node_dashcontent "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/DashboardContent.jsx"
click node_profile "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/Profile.jsx"
click node_gramaroute "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/GramaNiladhari.jsx"
click node_grama "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/GramaNiladhariContent.jsx"
click node_policeroute "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/Police.jsx"
click node_police "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/PoliceContent.jsx"
click node_requestsroute "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/Requests.jsx"
click node_requests "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/RequestContent.jsx"
click node_history "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/HistoryList.jsx"
click node_editroute "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/EditProfile.jsx"
click node_edit "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/EditProfileContent.jsx"
click node_feedbackroute "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/Feedback.jsx"
click node_feedback "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/FeedbackContent.jsx"
click node_guide "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/UserGuide.jsx"
click node_guidecontent "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/UserGuideContent.jsx"
click node_supportroute "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/OnlineSupport.jsx"
click node_support "https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/OnlineSupportContent.jsx"

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_welcome,node_landing,node_about,node_navbar,node_footer,node_login,node_signup,node_userapi toneBlue
class node_dashboard,node_sidebar,node_dashcontent,node_profile toneAmber
class node_gramaroute,node_grama,node_policeroute,node_police,node_gramaapi,node_policeapi,node_availability toneMint
class node_requestsroute,node_requests,node_history,node_editroute,node_edit,node_feedbackroute,node_feedback,node_guide,node_guidecontent,node_supportroute,node_support toneRose
class node_citizen toneIndigo
```

## Components

### Entry and accounts

- [Route application](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/App.jsx): `iServeSL/src/App.jsx`
- [Welcome page](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/Welcome.jsx): `iServeSL/src/routes/Welcome.jsx`
- [Landing sections](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/Hero.jsx): `iServeSL/src/components/Hero.jsx`
- [About section](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/About.jsx): `iServeSL/src/components/About.jsx`
- [Landing navigation](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/Navbar.jsx): `iServeSL/src/components/Navbar.jsx`
- [Landing footer](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/Footer.jsx): `iServeSL/src/components/Footer.jsx`
- [Login](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/Login.jsx): `iServeSL/src/routes/Login.jsx`
- [Registration](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/Signup.jsx): `iServeSL/src/routes/Signup.jsx`

### Portal navigation

- [Dashboard route](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/Dashboard.jsx): `iServeSL/src/routes/Dashboard.jsx`
- [Sidebar navigation](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/Sidebar.jsx): `iServeSL/src/components/Sidebar.jsx`
- [Dashboard overview](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/DashboardContent.jsx): `iServeSL/src/components/DashboardContent.jsx`
- [Profile panel](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/Profile.jsx): `iServeSL/src/components/Profile.jsx`

### Citizen services

- [Grama service route](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/GramaNiladhari.jsx): `iServeSL/src/routes/GramaNiladhari.jsx`
- [Grama certificate form](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/GramaNiladhariContent.jsx): `iServeSL/src/components/GramaNiladhariContent.jsx`
- [Police service route](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/Police.jsx): `iServeSL/src/routes/Police.jsx`
- [Police certificate form](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/PoliceContent.jsx): `iServeSL/src/components/PoliceContent.jsx`

### Requests and account

- [Requests route](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/Requests.jsx): `iServeSL/src/routes/Requests.jsx`
- [Request history](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/RequestContent.jsx): `iServeSL/src/components/RequestContent.jsx`
- [Dashboard history list](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/HistoryList.jsx): `iServeSL/src/components/HistoryList.jsx`
- [Edit profile route](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/EditProfile.jsx): `iServeSL/src/routes/EditProfile.jsx`
- [Profile editor](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/EditProfileContent.jsx): `iServeSL/src/components/EditProfileContent.jsx`
- [Feedback route](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/Feedback.jsx): `iServeSL/src/routes/Feedback.jsx`
- [Feedback form](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/FeedbackContent.jsx): `iServeSL/src/components/FeedbackContent.jsx`
- [User guide](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/UserGuide.jsx): `iServeSL/src/routes/UserGuide.jsx`
- [Guide content](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/UserGuideContent.jsx): `iServeSL/src/components/UserGuideContent.jsx`
- [Online support route](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/routes/OnlineSupport.jsx): `iServeSL/src/routes/OnlineSupport.jsx`
- [Support content](https://github.com/sachinakash01/iservesl-frontent/blob/main/iServeSL/src/components/OnlineSupportContent.jsx): `iServeSL/src/components/OnlineSupportContent.jsx`

### Other components

- **Citizen**
- **User API**
- **Grama service API**
- **Police service API**
- **Availability API**

## Connections

- Citizen → Route application: opens
- Route application → Welcome page: routes to (evidence: `iServeSL/src/App.jsx`)
- Route application → Login: routes to (evidence: `iServeSL/src/App.jsx`)
- Route application → Registration: routes to (evidence: `iServeSL/src/App.jsx`)
- Route application → Dashboard route: routes to (evidence: `iServeSL/src/App.jsx`)
- Route application → Grama service route: routes to (evidence: `iServeSL/src/App.jsx`)
- Route application → Police service route: routes to (evidence: `iServeSL/src/App.jsx`)
- Route application → Requests route: routes to (evidence: `iServeSL/src/App.jsx`)
- Route application → Edit profile route: routes to (evidence: `iServeSL/src/App.jsx`)
- Route application → Feedback route: routes to (evidence: `iServeSL/src/App.jsx`)
- Route application → User guide: routes to (evidence: `iServeSL/src/App.jsx`)
- Route application → Online support route: routes to (evidence: `iServeSL/src/App.jsx`)
- Welcome page → Landing sections: renders (evidence: `iServeSL/src/routes/Welcome.jsx`)
- Welcome page → About section: renders (evidence: `iServeSL/src/routes/Welcome.jsx`)
- Welcome page → Landing navigation: renders (evidence: `iServeSL/src/routes/Welcome.jsx`)
- Welcome page → Landing footer: renders (evidence: `iServeSL/src/routes/Welcome.jsx`)
- Login → User API: authenticates (evidence: `iServeSL/src/routes/Login.jsx`)
- Registration → User API: registers (evidence: `iServeSL/src/routes/Signup.jsx`)
- Dashboard route → Sidebar navigation: renders (evidence: `iServeSL/src/routes/Dashboard.jsx`)
- Dashboard route → Dashboard overview: renders (evidence: `iServeSL/src/routes/Dashboard.jsx`)
- Dashboard route → Profile panel: renders (evidence: `iServeSL/src/routes/Dashboard.jsx`)
- Dashboard overview → Dashboard history list: renders (evidence: `iServeSL/src/components/DashboardContent.jsx`)
- Grama service route → Sidebar navigation: renders (evidence: `iServeSL/src/routes/GramaNiladhari.jsx`)
- Grama service route → Grama certificate form: renders (evidence: `iServeSL/src/routes/GramaNiladhari.jsx`)
- Grama certificate form → User API: fetches phone (evidence: `iServeSL/src/components/GramaNiladhariContent.jsx`)
- Grama certificate form → Grama service API: submits and updates (evidence: `iServeSL/src/components/GramaNiladhariContent.jsx`)
- Police service route → Sidebar navigation: renders (evidence: `iServeSL/src/routes/Police.jsx`)
- Police service route → Police certificate form: renders (evidence: `iServeSL/src/routes/Police.jsx`)
- Police certificate form → User API: fetches phone (evidence: `iServeSL/src/components/PoliceContent.jsx`)
- Police certificate form → Police service API: submits and updates (evidence: `iServeSL/src/components/PoliceContent.jsx`)
- Police certificate form → Availability API: checks NIC (evidence: `iServeSL/src/components/PoliceContent.jsx`)
- Requests route → Sidebar navigation: renders (evidence: `iServeSL/src/routes/Requests.jsx`)
- Requests route → Request history: renders (evidence: `iServeSL/src/routes/Requests.jsx`)
- Request history → Police service API: reads and updates (evidence: `iServeSL/src/components/RequestContent.jsx`)
- Request history → Grama service API: reads and deletes (evidence: `iServeSL/src/components/RequestContent.jsx`)
- Edit profile route → Sidebar navigation: renders (evidence: `iServeSL/src/routes/EditProfile.jsx`)
- Edit profile route → Profile editor: renders (evidence: `iServeSL/src/routes/EditProfile.jsx`)
- Profile editor → User API: reads and updates (evidence: `iServeSL/src/components/EditProfileContent.jsx`)
- Feedback route → Sidebar navigation: renders (evidence: `iServeSL/src/routes/Feedback.jsx`)
- Feedback route → Feedback form: renders (evidence: `iServeSL/src/routes/Feedback.jsx`)
- User guide → Sidebar navigation: renders (evidence: `iServeSL/src/routes/UserGuide.jsx`)
- User guide → Guide content: renders (evidence: `iServeSL/src/routes/UserGuide.jsx`)
- Online support route → Sidebar navigation: renders (evidence: `iServeSL/src/routes/OnlineSupport.jsx`)
- Online support route → Support content: renders (evidence: `iServeSL/src/routes/OnlineSupport.jsx`)
