# yashwanth1402/dashboards architecture

> Architecture diagram of the GitHub repository yashwanth1402/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/yashwanth1402/dashboards
- Repository: https://github.com/yashwanth1402/dashboards

## Overview

Dashboards is an Angular client and ASP.NET Core API for authenticated reporting and administration of users, roles, markets, and page permissions. The principal flow is a user signing in, then accessing guarded report or management screens; the API handles authentication and persists administrative data in SQL Server. The source index documents additional API and client modules, but their internal calls were not excerpted, so those relationships are left out or marked unverified.

Main entry points: [`dashboards.client/src/app/app.routes.ts`](https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/app.routes.ts) (Client routes), [`Dashboards.Server/Data/ApplicationDbContext.cs`](https://github.com/yashwanth1402/dashboards/blob/master/Dashboards.Server/Data/ApplicationDbContext.cs) (SQL Server data), [`dashboards.client/src/app/reports/reports.component.ts`](https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/reports/reports.component.ts) (Reports UI), [`dashboards.client/src/app/auth/pages/login/login.component.ts`](https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/auth/pages/login/login.component.ts) (Login screen)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Angular client"]
  node_routes["Client routes<br/>[app.routes.ts]"]
  node_login["Login screen<br/>[login.component.ts]"]
  node_authclient["Client auth<br/>[auth.service.ts]"]
  node_guard["Auth guard<br/>[auth.guard.ts]"]
  node_reports["Reports UI"]
  node_reportdata["Report data"]
  node_reportfilters["Report filters"]
  node_reportsidebar["Report sidebar"]
  node_usersui["Users screen<br/>[users.component.ts]"]
  node_rolesui["Roles access UI"]
end

subgraph group_api["ASP.NET API"]
  node_userapi["User API<br/>[UsersController.cs]"]
  node_authapi["Authentication API<br/>[AuthController.cs]"]
  node_rolesapi["Roles and permissions API<br/>[RolesController.cs]"]
  node_marketsapi["Markets API"]
  node_pagesapi["Pages API<br/>[PagesController.cs]"]
end

subgraph group_domain["Access domain"]
  node_authservice["Authentication service<br/>[AuthService.cs]"]
end

subgraph group_persistence["Persistence"]
  node_userrepo["User repository<br/>[UserRepository.cs]"]
  node_database[("SQL Server data")]
end

node_person(("Dashboard user"))

node_person -->|"uses"| node_routes
node_routes -->|"routes to"| node_login
node_routes -->|"routes to"| node_reports
node_routes -->|"routes to"| node_usersui
node_routes -->|"routes to"| node_rolesui
node_routes -->|"guards routes"| node_guard
node_login -.->|"uses"| node_authclient
node_authclient -.->|"requests auth"| node_authapi
node_reports -.->|"uses data"| node_reportdata
node_reports -.->|"uses filters"| node_reportfilters
node_reports -.->|"uses sidebar"| node_reportsidebar
node_usersui -.->|"requests users"| node_userapi
node_rolesui -.->|"requests roles"| node_rolesapi
node_authapi -->|"calls"| node_authservice
node_authservice -->|"loads and updates"| node_userrepo
node_userrepo -->|"reads and writes"| node_database
node_rolesapi -->|"reads and writes"| node_database
node_userapi -->|"accesses data"| node_database
node_pagesapi -->|"accesses data"| node_database
node_marketsapi -.->|"accesses data"| node_database

click node_routes "https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/app.routes.ts"
click node_login "https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/auth/pages/login/login.component.ts"
click node_authclient "https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/auth/services/auth.service.ts"
click node_guard "https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/auth/guards/auth.guard.ts"
click node_reports "https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/reports/reports.component.ts"
click node_reportdata "https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/reports/services/reports-data.service.ts"
click node_reportfilters "https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/reports/components/report-filter-panel/report-filter-panel.component.ts"
click node_reportsidebar "https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/reports/components/report-sidebar/report-sidebar.component.ts"
click node_usersui "https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/user-management/users/users.component.ts"
click node_rolesui "https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/user-management/roles-access/roles-access.component.ts"
click node_userapi "https://github.com/yashwanth1402/dashboards/blob/master/Dashboards.Server/Controllers/UsersController.cs"
click node_authapi "https://github.com/yashwanth1402/dashboards/blob/master/Dashboards.Server/Controllers/AuthController.cs"
click node_rolesapi "https://github.com/yashwanth1402/dashboards/blob/master/Dashboards.Server/Controllers/RolesController.cs"
click node_marketsapi "https://github.com/yashwanth1402/dashboards/blob/master/Dashboards.Server/Controllers/MarketsController.cs"
click node_pagesapi "https://github.com/yashwanth1402/dashboards/blob/master/Dashboards.Server/Controllers/PagesController.cs"
click node_authservice "https://github.com/yashwanth1402/dashboards/blob/master/Dashboards.Server/Services/Implementations/AuthService.cs"
click node_userrepo "https://github.com/yashwanth1402/dashboards/blob/master/Dashboards.Server/Repositories/Implementations/UserRepository.cs"
click node_database "https://github.com/yashwanth1402/dashboards/blob/master/Dashboards.Server/Data/ApplicationDbContext.cs"

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_routes,node_login,node_authclient,node_guard,node_reports,node_reportdata,node_reportfilters,node_reportsidebar,node_usersui,node_rolesui,node_person toneBlue
class node_userapi,node_authapi,node_rolesapi,node_marketsapi,node_pagesapi toneAmber
class node_authservice toneMint
class node_userrepo,node_database toneRose
```

## Components

### Angular client

- [Client routes](https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/app.routes.ts): `dashboards.client/src/app/app.routes.ts`
- [Login screen](https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/auth/pages/login/login.component.ts): `dashboards.client/src/app/auth/pages/login/login.component.ts`
- [Client auth](https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/auth/services/auth.service.ts): `dashboards.client/src/app/auth/services/auth.service.ts`
- [Auth guard](https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/auth/guards/auth.guard.ts): `dashboards.client/src/app/auth/guards/auth.guard.ts`
- [Reports UI](https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/reports/reports.component.ts): `dashboards.client/src/app/reports/reports.component.ts`
- [Report data](https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/reports/services/reports-data.service.ts): `dashboards.client/src/app/reports/services/reports-data.service.ts`
- [Report filters](https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/reports/components/report-filter-panel/report-filter-panel.component.ts): `dashboards.client/src/app/reports/components/report-filter-panel/report-filter-panel.component.ts`
- [Report sidebar](https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/reports/components/report-sidebar/report-sidebar.component.ts): `dashboards.client/src/app/reports/components/report-sidebar/report-sidebar.component.ts`
- [Users screen](https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/user-management/users/users.component.ts): `dashboards.client/src/app/user-management/users/users.component.ts`
- [Roles access UI](https://github.com/yashwanth1402/dashboards/blob/master/dashboards.client/src/app/user-management/roles-access/roles-access.component.ts): `dashboards.client/src/app/user-management/roles-access/roles-access.component.ts`

### ASP.NET API

- [User API](https://github.com/yashwanth1402/dashboards/blob/master/Dashboards.Server/Controllers/UsersController.cs): `Dashboards.Server/Controllers/UsersController.cs`
- [Authentication API](https://github.com/yashwanth1402/dashboards/blob/master/Dashboards.Server/Controllers/AuthController.cs): `Dashboards.Server/Controllers/AuthController.cs`
- [Roles and permissions API](https://github.com/yashwanth1402/dashboards/blob/master/Dashboards.Server/Controllers/RolesController.cs): `Dashboards.Server/Controllers/RolesController.cs`
- [Markets API](https://github.com/yashwanth1402/dashboards/blob/master/Dashboards.Server/Controllers/MarketsController.cs): `Dashboards.Server/Controllers/MarketsController.cs`
- [Pages API](https://github.com/yashwanth1402/dashboards/blob/master/Dashboards.Server/Controllers/PagesController.cs): `Dashboards.Server/Controllers/PagesController.cs`

### Access domain

- [Authentication service](https://github.com/yashwanth1402/dashboards/blob/master/Dashboards.Server/Services/Implementations/AuthService.cs): `Dashboards.Server/Services/Implementations/AuthService.cs`

### Persistence

- [User repository](https://github.com/yashwanth1402/dashboards/blob/master/Dashboards.Server/Repositories/Implementations/UserRepository.cs): `Dashboards.Server/Repositories/Implementations/UserRepository.cs`
- [SQL Server data](https://github.com/yashwanth1402/dashboards/blob/master/Dashboards.Server/Data/ApplicationDbContext.cs): `Dashboards.Server/Data/ApplicationDbContext.cs`

### Other components

- **Dashboard user**

## Connections

- Dashboard user → Client routes: uses (evidence: `dashboards.client/src/app/app.routes.ts`)
- Client routes → Login screen: routes to (evidence: `dashboards.client/src/app/app.routes.ts`)
- Client routes → Reports UI: routes to (evidence: `dashboards.client/src/app/app.routes.ts`)
- Client routes → Users screen: routes to (evidence: `dashboards.client/src/app/app.routes.ts`)
- Client routes → Roles access UI: routes to (evidence: `dashboards.client/src/app/app.routes.ts`)
- Client routes → Auth guard: guards routes (evidence: `dashboards.client/src/app/app.routes.ts`)
- Login screen → Client auth: uses
- Client auth → Authentication API: requests auth
- Reports UI → Report data: uses data
- Reports UI → Report filters: uses filters
- Reports UI → Report sidebar: uses sidebar
- Users screen → User API: requests users
- Roles access UI → Roles and permissions API: requests roles
- Authentication API → Authentication service: calls (evidence: `Dashboards.Server/Controllers/AuthController.cs`)
- Authentication service → User repository: loads and updates (evidence: `Dashboards.Server/Services/Implementations/AuthService.cs`)
- User repository → SQL Server data: reads and writes (evidence: `Dashboards.Server/Repositories/Implementations/UserRepository.cs`)
- Roles and permissions API → SQL Server data: reads and writes (evidence: `Dashboards.Server/Controllers/RolesController.cs`)
- User API → SQL Server data: accesses data (evidence: `Dashboards.Server/Controllers/UsersController.cs`)
- Pages API → SQL Server data: accesses data (evidence: `Dashboards.Server/Controllers/PagesController.cs`)
- Markets API → SQL Server data: accesses data
