# lucasumberto/freelance-dashboards architecture

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

- Interactive diagram: https://gitdiagram.com/lucasumberto/freelance-dashboards
- Repository: https://github.com/lucasumberto/freelance-dashboards

## Overview

Freelance Dashboards is a Next.js frontend for managing freelance projects, clients, and finances. Users enter through the dashboard or a management route; route pages compose tables and dialogs, while data hooks fetch and mutate through a typed API client. The README also documents project search/filtering, project details, client management, financial transactions, dashboard metrics, and SEO metadata, structured data, and sitemap. Source excerpts show the client and project hook/API wiring; finance and dashboard relationships are documented or indexed but not fully sampled, so uncertain links are omitted.

Main entry points: [`src/app/projects/page.tsx`](https://github.com/lucasumberto/freelance-dashboards/blob/main/src/app/projects/page.tsx) (Projects page), [`src/app/clients/page.tsx`](https://github.com/lucasumberto/freelance-dashboards/blob/main/src/app/clients/page.tsx) (Clients page), [`src/app/finances/page.tsx`](https://github.com/lucasumberto/freelance-dashboards/blob/main/src/app/finances/page.tsx) (Finances page), [`src/api/endpoints.ts`](https://github.com/lucasumberto/freelance-dashboards/blob/main/src/api/endpoints.ts) (API endpoints)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["App routes"]
  node_root["Root layout<br/>[layout.tsx]"]
  node_dashboard["Dashboard page<br/>[page.tsx]"]
  node_projectlist["Projects page<br/>[page.tsx]"]
  node_projectdetail["Project details<br/>[page.tsx]"]
  node_clientpage["Clients page<br/>[page.tsx]"]
  node_financepage["Finances page<br/>[page.tsx]"]
end

subgraph group_domain["Management features"]
  node_projectfeature["Project management"]
  node_clientfeature["Client management"]
  node_financefeature["Financial transactions"]
  node_dashboardfeature["Dashboard metrics"]
end

subgraph group_data["Data access"]
  node_projecthook["Project data hook<br/>[useProjects.ts]"]
  node_clienthook["Client data hook<br/>[useClients.ts]"]
  node_financehook["Finance data hook<br/>[useFinances.ts]"]
  node_dashboardhook["Dashboard data hook<br/>[useDashboard.ts]"]
  node_api["API endpoints<br/>[endpoints.ts]"]
  node_http["HTTP client<br/>[client.ts]"]
end

subgraph group_shared["Shared UI"]
  node_table["Searchable data table<br/>[DataTable.tsx]"]
  node_spinner["Loading indicator<br/>[LoadingSpinner.tsx]"]
  node_layoutui["Navigation shell<br/>[Layout.tsx]"]
end

subgraph group_seo["SEO"]
  node_structured["Structured metadata<br/>[StructuredData.tsx]"]
  node_sitemap["Dynamic sitemap<br/>[sitemap.ts]"]
end

node_user(("Freelance user"))
node_backend["Application API"]

node_user -->|"opens"| node_dashboard
node_user -->|"manages"| node_projectlist
node_user -->|"manages"| node_clientpage
node_user -->|"tracks"| node_financepage
node_root -->|"renders"| node_layoutui
node_root -->|"renders"| node_structured
node_projectlist -->|"loads data"| node_projecthook
node_projectdetail -->|"uses"| node_projecthook
node_clientpage -->|"loads data"| node_clienthook
node_financepage -->|"loads data"| node_financehook
node_dashboard -.->|"presents metrics"| node_dashboardfeature
node_projectlist -->|"presents projects"| node_projectfeature
node_projectdetail -->|"presents details"| node_projectfeature
node_clientpage -->|"presents clients"| node_clientfeature
node_financepage -->|"presents transactions"| node_financefeature
node_projectlist -->|"renders"| node_table
node_clientpage -->|"renders"| node_table
node_financepage -->|"renders"| node_table
node_projectlist -->|"renders"| node_spinner
node_clientpage -->|"renders"| node_spinner
node_financepage -->|"renders"| node_spinner
node_projecthook -->|"calls"| node_api
node_clienthook -->|"calls"| node_api
node_financehook -->|"calls"| node_api
node_dashboardhook -->|"calls"| node_api
node_api -->|"uses"| node_http
node_http -.->|"sends requests"| node_backend
node_root -.->|"exposes SEO"| node_sitemap

click node_root "https://github.com/lucasumberto/freelance-dashboards/blob/main/src/app/layout.tsx"
click node_dashboard "https://github.com/lucasumberto/freelance-dashboards/blob/main/src/app/page.tsx"
click node_projectlist "https://github.com/lucasumberto/freelance-dashboards/blob/main/src/app/projects/page.tsx"
click node_projectdetail "https://github.com/lucasumberto/freelance-dashboards/blob/main/src/app/projects/%5Bid%5D/page.tsx"
click node_clientpage "https://github.com/lucasumberto/freelance-dashboards/blob/main/src/app/clients/page.tsx"
click node_financepage "https://github.com/lucasumberto/freelance-dashboards/blob/main/src/app/finances/page.tsx"
click node_projectfeature "https://github.com/lucasumberto/freelance-dashboards/tree/main/src/components/projects"
click node_clientfeature "https://github.com/lucasumberto/freelance-dashboards/tree/main/src/components/clients"
click node_financefeature "https://github.com/lucasumberto/freelance-dashboards/tree/main/src/components/finances"
click node_dashboardfeature "https://github.com/lucasumberto/freelance-dashboards/tree/main/src/components/dashboard"
click node_projecthook "https://github.com/lucasumberto/freelance-dashboards/blob/main/src/hooks/useProjects.ts"
click node_clienthook "https://github.com/lucasumberto/freelance-dashboards/blob/main/src/hooks/useClients.ts"
click node_financehook "https://github.com/lucasumberto/freelance-dashboards/blob/main/src/hooks/useFinances.ts"
click node_dashboardhook "https://github.com/lucasumberto/freelance-dashboards/blob/main/src/hooks/useDashboard.ts"
click node_api "https://github.com/lucasumberto/freelance-dashboards/blob/main/src/api/endpoints.ts"
click node_http "https://github.com/lucasumberto/freelance-dashboards/blob/main/src/api/client.ts"
click node_table "https://github.com/lucasumberto/freelance-dashboards/blob/main/src/components/shared/DataTable.tsx"
click node_spinner "https://github.com/lucasumberto/freelance-dashboards/blob/main/src/components/shared/LoadingSpinner.tsx"
click node_layoutui "https://github.com/lucasumberto/freelance-dashboards/blob/main/src/components/layout/Layout.tsx"
click node_structured "https://github.com/lucasumberto/freelance-dashboards/blob/main/src/components/seo/StructuredData.tsx"
click node_sitemap "https://github.com/lucasumberto/freelance-dashboards/blob/main/src/app/sitemap.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_root,node_dashboard,node_projectlist,node_projectdetail,node_clientpage,node_financepage,node_user toneBlue
class node_projectfeature,node_clientfeature,node_financefeature,node_dashboardfeature toneAmber
class node_projecthook,node_clienthook,node_financehook,node_dashboardhook,node_api,node_http,node_backend toneMint
class node_table,node_spinner,node_layoutui toneRose
class node_structured,node_sitemap toneIndigo
```

## Components

### App routes

- [Root layout](https://github.com/lucasumberto/freelance-dashboards/blob/main/src/app/layout.tsx): `src/app/layout.tsx`
- [Dashboard page](https://github.com/lucasumberto/freelance-dashboards/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Projects page](https://github.com/lucasumberto/freelance-dashboards/blob/main/src/app/projects/page.tsx): `src/app/projects/page.tsx`
- [Project details](https://github.com/lucasumberto/freelance-dashboards/blob/main/src/app/projects/%5Bid%5D/page.tsx): `src/app/projects/[id]/page.tsx`
- [Clients page](https://github.com/lucasumberto/freelance-dashboards/blob/main/src/app/clients/page.tsx): `src/app/clients/page.tsx`
- [Finances page](https://github.com/lucasumberto/freelance-dashboards/blob/main/src/app/finances/page.tsx): `src/app/finances/page.tsx`

### Management features

- [Project management](https://github.com/lucasumberto/freelance-dashboards/tree/main/src/components/projects): `src/components/projects`
- [Client management](https://github.com/lucasumberto/freelance-dashboards/tree/main/src/components/clients): `src/components/clients`
- [Financial transactions](https://github.com/lucasumberto/freelance-dashboards/tree/main/src/components/finances): `src/components/finances`
- [Dashboard metrics](https://github.com/lucasumberto/freelance-dashboards/tree/main/src/components/dashboard): `src/components/dashboard`

### Data access

- [Project data hook](https://github.com/lucasumberto/freelance-dashboards/blob/main/src/hooks/useProjects.ts): `src/hooks/useProjects.ts`
- [Client data hook](https://github.com/lucasumberto/freelance-dashboards/blob/main/src/hooks/useClients.ts): `src/hooks/useClients.ts`
- [Finance data hook](https://github.com/lucasumberto/freelance-dashboards/blob/main/src/hooks/useFinances.ts): `src/hooks/useFinances.ts`
- [Dashboard data hook](https://github.com/lucasumberto/freelance-dashboards/blob/main/src/hooks/useDashboard.ts): `src/hooks/useDashboard.ts`
- [API endpoints](https://github.com/lucasumberto/freelance-dashboards/blob/main/src/api/endpoints.ts): `src/api/endpoints.ts`
- [HTTP client](https://github.com/lucasumberto/freelance-dashboards/blob/main/src/api/client.ts): `src/api/client.ts`

### Shared UI

- [Searchable data table](https://github.com/lucasumberto/freelance-dashboards/blob/main/src/components/shared/DataTable.tsx): `src/components/shared/DataTable.tsx`
- [Loading indicator](https://github.com/lucasumberto/freelance-dashboards/blob/main/src/components/shared/LoadingSpinner.tsx): `src/components/shared/LoadingSpinner.tsx`
- [Navigation shell](https://github.com/lucasumberto/freelance-dashboards/blob/main/src/components/layout/Layout.tsx): `src/components/layout/Layout.tsx`

### SEO

- [Structured metadata](https://github.com/lucasumberto/freelance-dashboards/blob/main/src/components/seo/StructuredData.tsx): `src/components/seo/StructuredData.tsx`
- [Dynamic sitemap](https://github.com/lucasumberto/freelance-dashboards/blob/main/src/app/sitemap.ts): `src/app/sitemap.ts`

### Other components

- **Freelance user**
- **Application API**

## Connections

- Freelance user → Dashboard page: opens (evidence: `README.md`)
- Freelance user → Projects page: manages (evidence: `README.md`)
- Freelance user → Clients page: manages (evidence: `README.md`)
- Freelance user → Finances page: tracks (evidence: `README.md`)
- Root layout → Navigation shell: renders (evidence: `src/app/layout.tsx`)
- Root layout → Structured metadata: renders (evidence: `src/app/layout.tsx`)
- Projects page → Project data hook: loads data (evidence: `src/app/projects/page.tsx`)
- Project details → Project data hook: uses (evidence: `src/app/projects/[id]/page.tsx`)
- Clients page → Client data hook: loads data (evidence: `src/app/clients/page.tsx`)
- Finances page → Finance data hook: loads data (evidence: `src/app/finances/page.tsx`)
- Dashboard page → Dashboard metrics: presents metrics (evidence: `README.md`)
- Projects page → Project management: presents projects (evidence: `src/app/projects/page.tsx`)
- Project details → Project management: presents details (evidence: `src/app/projects/[id]/page.tsx`)
- Clients page → Client management: presents clients (evidence: `src/app/clients/page.tsx`)
- Finances page → Financial transactions: presents transactions (evidence: `src/app/finances/page.tsx`)
- Projects page → Searchable data table: renders (evidence: `src/app/projects/page.tsx`)
- Clients page → Searchable data table: renders (evidence: `src/app/clients/page.tsx`)
- Finances page → Searchable data table: renders (evidence: `src/app/finances/page.tsx`)
- Projects page → Loading indicator: renders (evidence: `src/app/projects/page.tsx`)
- Clients page → Loading indicator: renders (evidence: `src/app/clients/page.tsx`)
- Finances page → Loading indicator: renders (evidence: `src/app/finances/page.tsx`)
- Project data hook → API endpoints: calls (evidence: `src/hooks/useProjects.ts`)
- Client data hook → API endpoints: calls (evidence: `src/hooks/useClients.ts`)
- Finance data hook → API endpoints: calls (evidence: `src/hooks/useFinances.ts`)
- Dashboard data hook → API endpoints: calls (evidence: `src/hooks/useDashboard.ts`)
- API endpoints → HTTP client: uses (evidence: `src/api/endpoints.ts`)
- HTTP client → Application API: sends requests
- Root layout → Dynamic sitemap: exposes SEO (evidence: `README.md`)
