# smfahad1/fahad-dashboard architecture

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

- Interactive diagram: https://gitdiagram.com/smfahad1/fahad-dashboard
- Repository: https://github.com/smfahad1/fahad-dashboard

## Overview

Fahad Dashboard is a client-side personal workspace with seven focused trackers. A user opens the site, navigates through the shared routed shell, and edits or reviews a tracker; each page persists its own data through a shared localStorage hook. Academic, planning, expense, career, reading, and university tracking are separate domains, while Movies also searches OMDb for title suggestions. The page-to-hook relationships are supported by the source index and excerpts; other unsampled page behavior is represented from the README, not independently inspected.

Main entry points: [`src/App.jsx`](https://github.com/smfahad1/fahad-dashboard/blob/main/src/App.jsx) (Routes and home), [`src/hooks/useLocalStorage.js`](https://github.com/smfahad1/fahad-dashboard/blob/main/src/hooks/useLocalStorage.js) (Storage hook), [`src/pages/Movies.jsx`](https://github.com/smfahad1/fahad-dashboard/blob/main/src/pages/Movies.jsx) (Movie tracker), [`src/main.jsx`](https://github.com/smfahad1/fahad-dashboard/blob/main/src/main.jsx) (React entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Dashboard shell"]
  node_entry["React entry<br/>[main.jsx]"]
  node_app["Routes and home<br/>[App.jsx]"]
end

subgraph group_tracking["Personal trackers"]
  node_academic["Academic tracker<br/>[Academic.jsx]"]
  node_plan["Goal planning<br/>[MyPlan.jsx]"]
  node_expenses["Expense tracker<br/>[Expenses.jsx]"]
  node_jobprep["Job preparation<br/>[JobPrep.jsx]"]
  node_movies["Movie tracker<br/>[Movies.jsx]"]
  node_books["Book tracker<br/>[Books.jsx]"]
  node_university["University targets<br/>[University.jsx]"]
end

subgraph group_persistence["Browser persistence"]
  node_storage_hook["Storage hook<br/>[useLocalStorage.js]"]
  node_browser_storage[("Browser localStorage")]
end

subgraph group_integration["External services"]
  node_omdb["OMDb API"]
end

node_user(("Dashboard user"))

node_user -.->|"opens dashboard"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"routes to"| node_academic
node_app -->|"routes to"| node_plan
node_app -->|"routes to"| node_expenses
node_app -->|"routes to"| node_jobprep
node_app -->|"routes to"| node_movies
node_app -->|"routes to"| node_books
node_app -->|"routes to"| node_university
node_academic -->|"uses"| node_storage_hook
node_plan -->|"uses"| node_storage_hook
node_expenses -->|"uses"| node_storage_hook
node_jobprep -->|"uses"| node_storage_hook
node_movies -->|"uses"| node_storage_hook
node_books -->|"uses"| node_storage_hook
node_university -->|"uses"| node_storage_hook
node_storage_hook -->|"reads and writes"| node_browser_storage
node_movies -->|"fetches titles"| node_omdb

click node_entry "https://github.com/smfahad1/fahad-dashboard/blob/main/src/main.jsx"
click node_app "https://github.com/smfahad1/fahad-dashboard/blob/main/src/App.jsx"
click node_academic "https://github.com/smfahad1/fahad-dashboard/blob/main/src/pages/Academic.jsx"
click node_plan "https://github.com/smfahad1/fahad-dashboard/blob/main/src/pages/MyPlan.jsx"
click node_expenses "https://github.com/smfahad1/fahad-dashboard/blob/main/src/pages/Expenses.jsx"
click node_jobprep "https://github.com/smfahad1/fahad-dashboard/blob/main/src/pages/JobPrep.jsx"
click node_movies "https://github.com/smfahad1/fahad-dashboard/blob/main/src/pages/Movies.jsx"
click node_books "https://github.com/smfahad1/fahad-dashboard/blob/main/src/pages/Books.jsx"
click node_university "https://github.com/smfahad1/fahad-dashboard/blob/main/src/pages/University.jsx"
click node_storage_hook "https://github.com/smfahad1/fahad-dashboard/blob/main/src/hooks/useLocalStorage.js"

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_app,node_user toneBlue
class node_academic,node_plan,node_expenses,node_jobprep,node_movies,node_books,node_university toneAmber
class node_storage_hook,node_browser_storage toneMint
class node_omdb toneRose
```

## Components

### Dashboard shell

- [React entry](https://github.com/smfahad1/fahad-dashboard/blob/main/src/main.jsx): `src/main.jsx`
- [Routes and home](https://github.com/smfahad1/fahad-dashboard/blob/main/src/App.jsx): `src/App.jsx`

### Personal trackers

- [Academic tracker](https://github.com/smfahad1/fahad-dashboard/blob/main/src/pages/Academic.jsx): `src/pages/Academic.jsx`
- [Goal planning](https://github.com/smfahad1/fahad-dashboard/blob/main/src/pages/MyPlan.jsx): `src/pages/MyPlan.jsx`
- [Expense tracker](https://github.com/smfahad1/fahad-dashboard/blob/main/src/pages/Expenses.jsx): `src/pages/Expenses.jsx`
- [Job preparation](https://github.com/smfahad1/fahad-dashboard/blob/main/src/pages/JobPrep.jsx): `src/pages/JobPrep.jsx`
- [Movie tracker](https://github.com/smfahad1/fahad-dashboard/blob/main/src/pages/Movies.jsx): `src/pages/Movies.jsx`
- [Book tracker](https://github.com/smfahad1/fahad-dashboard/blob/main/src/pages/Books.jsx): `src/pages/Books.jsx`
- [University targets](https://github.com/smfahad1/fahad-dashboard/blob/main/src/pages/University.jsx): `src/pages/University.jsx`

### Browser persistence

- [Storage hook](https://github.com/smfahad1/fahad-dashboard/blob/main/src/hooks/useLocalStorage.js): `src/hooks/useLocalStorage.js`
- **Browser localStorage**

### External services

- **OMDb API**

### Other components

- **Dashboard user**

## Connections

- Dashboard user → React entry: opens dashboard (evidence: `README.md`)
- React entry → Routes and home: renders (evidence: `src/main.jsx`)
- Routes and home → Academic tracker: routes to (evidence: `src/App.jsx`)
- Routes and home → Goal planning: routes to (evidence: `src/App.jsx`)
- Routes and home → Expense tracker: routes to (evidence: `src/App.jsx`)
- Routes and home → Job preparation: routes to (evidence: `src/App.jsx`)
- Routes and home → Movie tracker: routes to (evidence: `src/App.jsx`)
- Routes and home → Book tracker: routes to (evidence: `src/App.jsx`)
- Routes and home → University targets: routes to (evidence: `src/App.jsx`)
- Academic tracker → Storage hook: uses (evidence: `src/pages/Academic.jsx`)
- Goal planning → Storage hook: uses (evidence: `src/pages/MyPlan.jsx`)
- Expense tracker → Storage hook: uses (evidence: `src/pages/Expenses.jsx`)
- Job preparation → Storage hook: uses (evidence: `src/pages/JobPrep.jsx`)
- Movie tracker → Storage hook: uses (evidence: `src/pages/Movies.jsx`)
- Book tracker → Storage hook: uses (evidence: `src/pages/Books.jsx`)
- University targets → Storage hook: uses (evidence: `src/pages/University.jsx`)
- Storage hook → Browser localStorage: reads and writes (evidence: `src/hooks/useLocalStorage.js`)
- Movie tracker → OMDb API: fetches titles (evidence: `src/pages/Movies.jsx`)
