# dev-sooraj-git/promiselane-frontend architecture

> Architecture diagram of the GitHub repository dev-sooraj-git/promiselane-frontend, 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/dev-sooraj-git/promiselane-frontend
- Repository: https://github.com/dev-sooraj-git/promiselane-frontend

## Overview

PromiseLane is a React frontend for project governance, guiding authenticated users from a dashboard into project and milestone management, including requirements and payment tracking. It also offers public project sharing and supporting account, feedback, and information pages. The route configuration and several API-backed workflows are visible in the excerpts; other major pages are retained based on the source index and file tree, without inferring their internal calls. The backend is a separately documented Laravel API.

Main entry points: [`src/App.jsx`](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/App.jsx) (Route application), [`src/api/axios.js`](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/api/axios.js) (HTTP API client), [`src/pages/ProjectDetail.jsx`](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/ProjectDetail.jsx) (Project detail), [`src/context/AuthContext.jsx`](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/context/AuthContext.jsx) (Auth state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App and navigation"]
  node_app["Route application<br/>[App.jsx]"]
  node_layout["Authenticated layout<br/>[Layout.jsx]"]
  node_api["HTTP API client<br/>[axios.js]"]
end

subgraph group_identity["Identity and account"]
  node_auth["Auth state<br/>[AuthContext.jsx]"]
  node_login["Sign in<br/>[Login.jsx]"]
  node_register["Registration<br/>[Register.jsx]"]
  node_account["Settings<br/>[Settings.jsx]"]
  node_password["Password recovery<br/>[ForgotPassword.jsx]"]
  node_reset["Password reset<br/>[ResetPassword.jsx]"]
end

subgraph group_governance["Project governance"]
  node_dashboard["Dashboard<br/>[Dashboard.jsx]"]
  node_projects["Project listing<br/>[Projects.jsx]"]
  node_detail["Project detail<br/>[ProjectDetail.jsx]"]
  node_requirements["Requirements"]
  node_payments["Payment tracking<br/>[PaymentModal.jsx]"]
  node_milestoneform["Milestone editor"]
  node_timeline["Timeline<br/>[Timeline.jsx]"]
end

subgraph group_engagement["Sharing and support"]
  node_share["Public share view<br/>[ShareView.jsx]"]
  node_feedback["Feedback<br/>[Feedback.jsx]"]
  node_home["Product home<br/>[Home.jsx]"]
  node_privacy["Privacy information<br/>[Privacy.jsx]"]
end

node_user(("Visitor or user"))
node_backend["PromiseLane API"]

node_user -->|"navigates"| node_app
node_app -->|"provides auth"| node_auth
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_register
node_app -->|"routes to"| node_share
node_app -->|"routes to"| node_privacy
node_app -->|"routes to"| node_password
node_app -->|"routes to"| node_reset
node_app -->|"wraps protected routes"| node_layout
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_projects
node_app -->|"routes to"| node_detail
node_app -->|"routes to"| node_timeline
node_app -->|"routes to"| node_account
node_app -->|"routes to"| node_feedback
node_auth -->|"requests auth"| node_api
node_api -->|"sends HTTP"| node_backend
node_detail -->|"renders"| node_requirements
node_detail -->|"opens"| node_payments
node_detail -->|"opens"| node_milestoneform
node_requirements -->|"manages requirements"| node_api
node_payments -->|"records payments"| node_api
node_dashboard -->|"loads dashboard"| node_api

click node_app "https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/App.jsx"
click node_layout "https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/components/Layout.jsx"
click node_api "https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/api/axios.js"
click node_auth "https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/context/AuthContext.jsx"
click node_login "https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/Login.jsx"
click node_register "https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/Register.jsx"
click node_account "https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/Settings.jsx"
click node_dashboard "https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/Dashboard.jsx"
click node_projects "https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/Projects.jsx"
click node_detail "https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/ProjectDetail.jsx"
click node_requirements "https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/components/RequirementSection.jsx"
click node_payments "https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/components/PaymentModal.jsx"
click node_milestoneform "https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/components/MilestoneFormModal.jsx"
click node_timeline "https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/Timeline.jsx"
click node_share "https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/ShareView.jsx"
click node_feedback "https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/Feedback.jsx"
click node_home "https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/Home.jsx"
click node_privacy "https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/Privacy.jsx"
click node_password "https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/ForgotPassword.jsx"
click node_reset "https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/ResetPassword.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_layout,node_api,node_user toneBlue
class node_auth,node_login,node_register,node_account,node_password,node_reset toneAmber
class node_dashboard,node_projects,node_detail,node_requirements,node_payments,node_milestoneform,node_timeline,node_backend toneMint
class node_share,node_feedback,node_home,node_privacy toneRose
```

## Components

### App and navigation

- [Route application](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/App.jsx): `src/App.jsx`
- [Authenticated layout](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/components/Layout.jsx): `src/components/Layout.jsx`
- [HTTP API client](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/api/axios.js): `src/api/axios.js`

### Identity and account

- [Auth state](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/context/AuthContext.jsx): `src/context/AuthContext.jsx`
- [Sign in](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/Login.jsx): `src/pages/Login.jsx`
- [Registration](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/Register.jsx): `src/pages/Register.jsx`
- [Settings](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/Settings.jsx): `src/pages/Settings.jsx`
- [Password recovery](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/ForgotPassword.jsx): `src/pages/ForgotPassword.jsx`
- [Password reset](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/ResetPassword.jsx): `src/pages/ResetPassword.jsx`

### Project governance

- [Dashboard](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/Dashboard.jsx): `src/pages/Dashboard.jsx`
- [Project listing](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/Projects.jsx): `src/pages/Projects.jsx`
- [Project detail](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/ProjectDetail.jsx): `src/pages/ProjectDetail.jsx`
- [Requirements](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/components/RequirementSection.jsx): `src/components/RequirementSection.jsx`
- [Payment tracking](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/components/PaymentModal.jsx): `src/components/PaymentModal.jsx`
- [Milestone editor](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/components/MilestoneFormModal.jsx): `src/components/MilestoneFormModal.jsx`
- [Timeline](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/Timeline.jsx): `src/pages/Timeline.jsx`

### Sharing and support

- [Public share view](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/ShareView.jsx): `src/pages/ShareView.jsx`
- [Feedback](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/Feedback.jsx): `src/pages/Feedback.jsx`
- [Product home](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [Privacy information](https://github.com/dev-sooraj-git/promiselane-frontend/blob/main/src/pages/Privacy.jsx): `src/pages/Privacy.jsx`

### Other components

- **Visitor or user**
- **PromiseLane API**

## Connections

- Visitor or user → Route application: navigates (evidence: `src/App.jsx`)
- Route application → Auth state: provides auth (evidence: `src/App.jsx`)
- Route application → Product home: routes to (evidence: `src/App.jsx`)
- Route application → Sign in: routes to (evidence: `src/App.jsx`)
- Route application → Registration: routes to (evidence: `src/App.jsx`)
- Route application → Public share view: routes to (evidence: `src/App.jsx`)
- Route application → Privacy information: routes to (evidence: `src/App.jsx`)
- Route application → Password recovery: routes to (evidence: `src/App.jsx`)
- Route application → Password reset: routes to (evidence: `src/App.jsx`)
- Route application → Authenticated layout: wraps protected routes (evidence: `src/App.jsx`)
- Route application → Dashboard: routes to (evidence: `src/App.jsx`)
- Route application → Project listing: routes to (evidence: `src/App.jsx`)
- Route application → Project detail: routes to (evidence: `src/App.jsx`)
- Route application → Timeline: routes to (evidence: `src/App.jsx`)
- Route application → Settings: routes to (evidence: `src/App.jsx`)
- Route application → Feedback: routes to (evidence: `src/App.jsx`)
- Auth state → HTTP API client: requests auth (evidence: `src/context/AuthContext.jsx`)
- HTTP API client → PromiseLane API: sends HTTP (evidence: `src/api/axios.js`)
- Project detail → Requirements: renders (evidence: `src/pages/ProjectDetail.jsx`)
- Project detail → Payment tracking: opens (evidence: `src/pages/ProjectDetail.jsx`)
- Project detail → Milestone editor: opens (evidence: `src/pages/ProjectDetail.jsx`)
- Requirements → HTTP API client: manages requirements (evidence: `src/components/RequirementSection.jsx`)
- Payment tracking → HTTP API client: records payments (evidence: `src/components/PaymentModal.jsx`)
- Dashboard → HTTP API client: loads dashboard (evidence: `src/pages/Dashboard.jsx`)
