# r3nch00/probashibondhu-dashboard architecture

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

- Interactive diagram: https://gitdiagram.com/r3nch00/probashibondhu-dashboard
- Repository: https://github.com/r3nch00/probashibondhu-dashboard

## Overview

#### Purpose and Runtime
This is a TypeScript React admin-dashboard frontend for “Probashi Bondhu.” It is built and served with Vite; no backend, API client, authentication module, or deployment infrastructure is present in the supplied tree. Current application data is local mock/static data.

Key startup artifacts:
- `probashibondhu-admin/index.html`
- `probashibondhu-admin/src/main.tsx`
- `probashibondhu-admin/src/App.tsx`
- `probashibondhu-admin/vite.config.ts`

#### Application Bootstrap
`src/main.tsx` mounts the React application and imports global styling. `src/App.tsx` is the top-level composition point and likely owns page selection/routing state, since no dedicated routing directory or router configuration is visible.

Global visual rules reside in:
- `probashibondhu-admin/src/index.css`
- `probashibondhu-admin/src/main.tsx`
- `probashibondhu-admin/src/App.tsx`

#### Dashboard Shell and Navigation Boundary
The layout layer provides the persistent administrative shell: header/top bar, sidebar navigation, branding, and date filtering. This separates cross-page navigation/chrome from content pages.

Primary shell components:
- `probashibondhu-admin/src/components/layout/DashboardLayout.tsx`
- `probashibondhu-admin/src/components/layout/Sidebar.tsx`
- `probashibondhu-admin/src/components/layout/Header.tsx`
- `probashibondhu-admin/src/components/layout/Topbar.tsx`
- `probashibondhu-admin/src/components/layout/DateFilter.tsx`

Control flow is expected to be: app root selects a page, the dashboard layout wraps it, and sidebar/top-bar interactions change visible content or its filter context.

#### Feature Pages
The page layer represents the main admin workflows: summary monitoring, agent management/listing, and reporting. Pages consume shared layout and UI primitives rather than duplicating dashboard structure.

Feature entry points:
- `probashibondhu-admin/src/pages/Dashboard.tsx`
- `probashibondhu-admin/src/pages/Agents.tsx`
- `probashibondhu-admin/src/pages/AgentList.tsx`
- `probashibondhu-admin/src/pages/Reports.tsx`

`AgentList.tsx` is a likely detailed/table-oriented subflow of the broader agents domain, while `Agents.tsx` likely provides an overview or management landing view.

#### Data and Domain Model Boundary
The repository defines a local domain-model boundary through shared TypeScript types and static/mock data. This is the replacement point for a future API/data-access layer: pages should depend on typed models, while mock sources can be swapped for service-backed repositories.

Relevant paths:
- `probashibondhu-admin/src/types/index.ts`
- `probashibondhu-admin/src/data/agents.ts`
- `probashibondhu-admin/src/data/mock.ts`

The main flow is static data → page-level aggregation/filtering/list display → reusable presentation components. No persistence or remote synchronization is represented.

#### Reusable UI Interaction Layer
Shared UI components centralize recurring administrative interactions: metrics display, table/list navigation, status presentation, search, and modal dialogs. These form a reusable presentation boundary beneath feature pages.

Core primitives:
- `probashibondhu-admin/src/components/ui/StatCard.tsx`
- `probashibondhu-admin/src/components/ui/Pagination.tsx`
- `probashibondhu-admin/src/components/ui/SearchInput.tsx`
- `probashibondhu-admin/src/components/ui/Modal.tsx`
- `probashibondhu-admin/src/components/ui/Badge.tsx`

Likely interaction flow: search/date controls update page-local filtered views; pagination slices list results; modal components support detail or action confirmation; badges render typed statuses.

#### Material Dependencies and External Boundaries
The material runtime is browser-based React + TypeScript, bundled by Vite, with npm lockfiles defining reproducible dependencies:
- `probashibondhu-admin/package.json`
- `probashibondhu-admin/package-lock.json`
- `probashibondhu-admin/tsconfig.app.json`

No external service integration is identifiable from the tree. Introducing real agent, dashboard, or report data will require an explicit API client/service boundary, loading/error states, and likely authentication/session handling; none currently appears architecturally established.

Main entry points: [`probashibondhu-admin/src/App.tsx`](https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/App.tsx) (App root), [`probashibondhu-admin/src/pages/Dashboard.tsx`](https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/pages/Dashboard.tsx) (Dashboard), [`probashibondhu-admin/src/main.tsx`](https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/main.tsx) (React bootstrap), [`probashibondhu-admin/src/components/layout/DashboardLayout.tsx`](https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/components/layout/DashboardLayout.tsx) (Dashboard layout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Build &amp; Runtime"]
  node_vite{{"Vite build server<br/>build tool<br/>[vite.config.ts]"}}
  node_html["HTML entry<br/>browser entry<br/>[index.html]"]
  node_main["React bootstrap<br/>TSX entry<br/>[main.tsx]"]
end

subgraph group_app["Application Shell"]
  node_app_root["App root<br/>page composition<br/>[App.tsx]"]
  node_global_css["Global styles<br/>CSS<br/>[index.css]"]
  node_layout["Dashboard layout<br/>persistent shell"]
  node_navigation["Sidebar navigation<br/>shell navigation<br/>[Sidebar.tsx]"]
  node_topbar["Header &amp; filters<br/>shell controls<br/>[Topbar.tsx]"]
end

subgraph group_features["Admin Workflows"]
  node_dashboard["Dashboard<br/>summary page<br/>[Dashboard.tsx]"]
  node_agents["Agents<br/>management page<br/>[Agents.tsx]"]
  node_agent_list["Agent list<br/>list page<br/>[AgentList.tsx]"]
  node_reports["Reports<br/>reporting page<br/>[Reports.tsx]"]
end

subgraph group_ui["Shared UI"]
  node_ui_primitives["UI primitives<br/>presentation components<br/>[StatCard.tsx]"]
end

subgraph group_data["Local Data Model"]
  node_models["Domain types<br/>TypeScript models<br/>[index.ts]"]
  node_agent_data[("Agent mock data<br/>static data<br/>[agents.ts]")]
  node_mock_data[("Dashboard mock data<br/>static data<br/>[mock.ts]")]
end

node_vite -->|"serves"| node_html
node_html -->|"loads"| node_main
node_main -->|"mounts"| node_app_root
node_main -->|"imports"| node_global_css
node_app_root -->|"composes"| node_layout
node_layout -->|"includes"| node_navigation
node_layout -->|"includes"| node_topbar
node_navigation -->|"changes page selection"| node_app_root
node_topbar -->|"provides filter context"| node_dashboard
node_app_root -->|"selects"| node_dashboard
node_app_root -->|"selects"| node_agents
node_app_root -->|"selects"| node_agent_list
node_app_root -->|"selects"| node_reports
node_dashboard -->|"renders"| node_ui_primitives
node_agent_list -->|"searches and paginates with"| node_ui_primitives
node_agents -->|"reads"| node_agent_data
node_agent_list -->|"filters and lists"| node_agent_data
node_dashboard -->|"aggregates"| node_mock_data
node_reports -->|"reads"| node_mock_data
node_agent_data -->|"conforms to"| node_models
node_mock_data -->|"conforms to"| node_models

click node_vite "https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/vite.config.ts"
click node_html "https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/index.html"
click node_main "https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/main.tsx"
click node_app_root "https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/App.tsx"
click node_global_css "https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/index.css"
click node_layout "https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/components/layout/DashboardLayout.tsx"
click node_navigation "https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/components/layout/Sidebar.tsx"
click node_topbar "https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/components/layout/Topbar.tsx"
click node_dashboard "https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/pages/Dashboard.tsx"
click node_agents "https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/pages/Agents.tsx"
click node_agent_list "https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/pages/AgentList.tsx"
click node_reports "https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/pages/Reports.tsx"
click node_ui_primitives "https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/components/ui/StatCard.tsx"
click node_models "https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/types/index.ts"
click node_agent_data "https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/data/agents.ts"
click node_mock_data "https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/data/mock.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_vite,node_html,node_main toneBlue
class node_app_root,node_global_css,node_layout,node_navigation,node_topbar toneAmber
class node_dashboard,node_agents,node_agent_list,node_reports toneMint
class node_ui_primitives toneRose
class node_models,node_agent_data,node_mock_data toneIndigo
```

## Components

### Build & Runtime

- [Vite build server](https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/vite.config.ts): build tool · `probashibondhu-admin/vite.config.ts`
- [HTML entry](https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/index.html): browser entry · `probashibondhu-admin/index.html`
- [React bootstrap](https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/main.tsx): TSX entry · Mounts the application and imports global styles. · `probashibondhu-admin/src/main.tsx`

### Application Shell

- [App root](https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/App.tsx): page composition · Selects the visible admin page without a dedicated router. · `probashibondhu-admin/src/App.tsx`
- [Global styles](https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/index.css): CSS · `probashibondhu-admin/src/index.css`
- [Dashboard layout](https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/components/layout/DashboardLayout.tsx): persistent shell · Wraps page content with administrative chrome. · `probashibondhu-admin/src/components/layout/DashboardLayout.tsx`
- [Sidebar navigation](https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/components/layout/Sidebar.tsx): shell navigation · `probashibondhu-admin/src/components/layout/Sidebar.tsx`
- [Header & filters](https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/components/layout/Topbar.tsx): shell controls · Header, top bar, and date-filter context. · `probashibondhu-admin/src/components/layout/Topbar.tsx`

### Admin Workflows

- [Dashboard](https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/pages/Dashboard.tsx): summary page · `probashibondhu-admin/src/pages/Dashboard.tsx`
- [Agents](https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/pages/Agents.tsx): management page · `probashibondhu-admin/src/pages/Agents.tsx`
- [Agent list](https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/pages/AgentList.tsx): list page · Detailed table-oriented agents workflow. · `probashibondhu-admin/src/pages/AgentList.tsx`
- [Reports](https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/pages/Reports.tsx): reporting page · `probashibondhu-admin/src/pages/Reports.tsx`

### Shared UI

- [UI primitives](https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/components/ui/StatCard.tsx): presentation components · Metrics, search, pagination, modal, and status display. · `probashibondhu-admin/src/components/ui/StatCard.tsx`

### Local Data Model

Current replacement boundary for future service-backed data.

- [Domain types](https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/types/index.ts): TypeScript models · `probashibondhu-admin/src/types/index.ts`
- [Agent mock data](https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/data/agents.ts): static data · `probashibondhu-admin/src/data/agents.ts`
- [Dashboard mock data](https://github.com/r3nch00/probashibondhu-dashboard/blob/master/probashibondhu-admin/src/data/mock.ts): static data · `probashibondhu-admin/src/data/mock.ts`

## Connections

- Vite build server → HTML entry: serves
- HTML entry → React bootstrap: loads
- React bootstrap → App root: mounts
- React bootstrap → Global styles: imports
- App root → Dashboard layout: composes
- Dashboard layout → Sidebar navigation: includes
- Dashboard layout → Header & filters: includes
- Sidebar navigation → App root: changes page selection
- Header & filters → Dashboard: provides filter context
- App root → Dashboard: selects
- App root → Agents: selects
- App root → Agent list: selects
- App root → Reports: selects
- Dashboard → UI primitives: renders
- Agent list → UI primitives: searches and paginates with
- Agents → Agent mock data: reads
- Agent list → Agent mock data: filters and lists
- Dashboard → Dashboard mock data: aggregates
- Reports → Dashboard mock data: reads
- Agent mock data → Domain types: conforms to
- Dashboard mock data → Domain types: conforms to
