# huy24isme/demo_capstone1 architecture

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

- Interactive diagram: https://gitdiagram.com/huy24isme/demo_capstone1
- Repository: https://github.com/huy24isme/demo_capstone1

## Overview

FraudGuard is a browser-based fraud-monitoring dashboard. Users enter through the login screen or open fraud monitoring, where the dashboard presents transaction risk and supports alert review, case investigation, rule management, project and report views, audit history, onboarding, and platform health. The sampled implementation uses in-memory seed data and client-side state; no backend service or persistent store is evidenced. Edges reflect the route, imports, props, and component calls shown in excerpts or the source index; unsampled capability details are represented without inferred integrations.

Main entry points: [`src/components/fraudguard-dashboard/FraudGuardDashboard.tsx`](https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/FraudGuardDashboard.tsx) (Dashboard Controller), [`src/app/fraud-monitoring/page.tsx`](https://github.com/huy24isme/demo_capstone1/blob/main/src/app/fraud-monitoring/page.tsx) (Monitoring Route), [`src/components/fraudguard-dashboard/RulesView.tsx`](https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/RulesView.tsx) (Rule Management), [`src/app/login/page.tsx`](https://github.com/huy24isme/demo_capstone1/blob/main/src/app/login/page.tsx) (Login Route)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and Access"]
  node_login["Login Screen<br/>[LoginPage.tsx]"]
  node_loginroute["Login Route<br/>[page.tsx]"]
  node_monitorroute["Monitoring Route<br/>[page.tsx]"]
end

subgraph group_dashboard["Risk Dashboard"]
  node_dashboardroot["Dashboard Controller"]
  node_riskviews["Risk Overview and Alerts<br/>[AlertsView.tsx]"]
  node_riskdisplay["Risk Indicators<br/>[RiskLevelBadge.tsx]"]
end

subgraph group_investigation["Investigation"]
  node_cases["Case Workspace<br/>[CasesView.tsx]"]
  node_casework["Case Review Drawer"]
end

subgraph group_operations["Rules and Operations"]
  node_rules["Rule Management<br/>[RulesView.tsx]"]
  node_rulebuilder["Rule Builder<br/>[RuleBuilder.tsx]"]
  node_ruledetail["Rule Details"]
  node_ruletest["Rule Testing"]
  node_projects["Projects<br/>[ProjectsView.tsx]"]
  node_reports["Reports<br/>[ReportsView.tsx]"]
  node_audit["Audit Trail<br/>[AuditTrailView.tsx]"]
  node_onboarding["Onboarding<br/>[OnboardingView.tsx]"]
  node_health["Platform Health"]
  node_ingestion["Data Ingestion"]
end

subgraph group_data["Seed Data and Export"]
  node_transactions["Transaction Seed Data"]
  node_ruledata["Rule Seed Data"]
  node_platformdata["Platform Health Data"]
  node_csv["CSV Export Helpers<br/>[export-csv.ts]"]
end

node_user(("User"))

node_user -->|"opens"| node_loginroute
node_loginroute -->|"renders"| node_login
node_user -->|"opens"| node_monitorroute
node_monitorroute -->|"renders"| node_dashboardroot
node_monitorroute -->|"passes data"| node_transactions
node_monitorroute -->|"passes data"| node_ruledata
node_dashboardroot -->|"renders"| node_riskviews
node_dashboardroot -->|"routes view"| node_cases
node_dashboardroot -->|"routes view"| node_rules
node_dashboardroot -->|"routes view"| node_ruletest
node_dashboardroot -->|"routes view"| node_projects
node_dashboardroot -->|"routes view"| node_reports
node_dashboardroot -->|"routes view"| node_audit
node_dashboardroot -->|"routes view"| node_onboarding
node_dashboardroot -->|"routes view"| node_health
node_riskviews -->|"uses badge"| node_riskdisplay
node_rules -->|"renders"| node_rulebuilder
node_rules -->|"renders"| node_ruledetail
node_health -->|"reads"| node_platformdata
node_ingestion -->|"downloads template"| node_csv
node_dashboardroot -.->|"opens modal"| node_ingestion
node_dashboardroot -.->|"opens drawer"| node_casework
node_reports -.->|"exports report"| node_csv
node_ruledetail -.->|"reads examples"| node_transactions

click node_login "https://github.com/huy24isme/demo_capstone1/blob/main/src/components/auth/LoginPage.tsx"
click node_loginroute "https://github.com/huy24isme/demo_capstone1/blob/main/src/app/login/page.tsx"
click node_monitorroute "https://github.com/huy24isme/demo_capstone1/blob/main/src/app/fraud-monitoring/page.tsx"
click node_dashboardroot "https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/FraudGuardDashboard.tsx"
click node_riskviews "https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/AlertsView.tsx"
click node_riskdisplay "https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/RiskLevelBadge.tsx"
click node_cases "https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/CasesView.tsx"
click node_casework "https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/AlertCaseDrawer.tsx"
click node_rules "https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/RulesView.tsx"
click node_rulebuilder "https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/RuleBuilder.tsx"
click node_ruledetail "https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/RuleDetailDrawer.tsx"
click node_ruletest "https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/RuleTestingView.tsx"
click node_projects "https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/ProjectsView.tsx"
click node_reports "https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/ReportsView.tsx"
click node_audit "https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/AuditTrailView.tsx"
click node_onboarding "https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/OnboardingView.tsx"
click node_health "https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/PlatformHealthView.tsx"
click node_transactions "https://github.com/huy24isme/demo_capstone1/blob/main/src/data/fraudguard-transactions.ts"
click node_ruledata "https://github.com/huy24isme/demo_capstone1/blob/main/src/data/fraudguard-rules.ts"
click node_platformdata "https://github.com/huy24isme/demo_capstone1/blob/main/src/data/fraudguard-platform.ts"
click node_csv "https://github.com/huy24isme/demo_capstone1/blob/main/src/lib/export-csv.ts"
click node_ingestion "https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/DataIngestionModal.tsx"

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_login,node_loginroute,node_monitorroute,node_user toneBlue
class node_dashboardroot,node_riskviews,node_riskdisplay toneAmber
class node_cases,node_casework toneMint
class node_rules,node_rulebuilder,node_ruledetail,node_ruletest,node_projects,node_reports,node_audit,node_onboarding,node_health,node_ingestion toneRose
class node_transactions,node_ruledata,node_platformdata,node_csv toneIndigo
```

## Components

### Entry and Access

- [Login Screen](https://github.com/huy24isme/demo_capstone1/blob/main/src/components/auth/LoginPage.tsx): `src/components/auth/LoginPage.tsx`
- [Login Route](https://github.com/huy24isme/demo_capstone1/blob/main/src/app/login/page.tsx): `src/app/login/page.tsx`
- [Monitoring Route](https://github.com/huy24isme/demo_capstone1/blob/main/src/app/fraud-monitoring/page.tsx): `src/app/fraud-monitoring/page.tsx`

### Risk Dashboard

- [Dashboard Controller](https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/FraudGuardDashboard.tsx): `src/components/fraudguard-dashboard/FraudGuardDashboard.tsx`
- [Risk Overview and Alerts](https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/AlertsView.tsx): `src/components/fraudguard-dashboard/AlertsView.tsx`
- [Risk Indicators](https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/RiskLevelBadge.tsx): `src/components/fraudguard-dashboard/RiskLevelBadge.tsx`

### Investigation

- [Case Workspace](https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/CasesView.tsx): `src/components/fraudguard-dashboard/CasesView.tsx`
- [Case Review Drawer](https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/AlertCaseDrawer.tsx): `src/components/fraudguard-dashboard/AlertCaseDrawer.tsx`

### Rules and Operations

- [Rule Management](https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/RulesView.tsx): `src/components/fraudguard-dashboard/RulesView.tsx`
- [Rule Builder](https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/RuleBuilder.tsx): `src/components/fraudguard-dashboard/RuleBuilder.tsx`
- [Rule Details](https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/RuleDetailDrawer.tsx): `src/components/fraudguard-dashboard/RuleDetailDrawer.tsx`
- [Rule Testing](https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/RuleTestingView.tsx): `src/components/fraudguard-dashboard/RuleTestingView.tsx`
- [Projects](https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/ProjectsView.tsx): `src/components/fraudguard-dashboard/ProjectsView.tsx`
- [Reports](https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/ReportsView.tsx): `src/components/fraudguard-dashboard/ReportsView.tsx`
- [Audit Trail](https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/AuditTrailView.tsx): `src/components/fraudguard-dashboard/AuditTrailView.tsx`
- [Onboarding](https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/OnboardingView.tsx): `src/components/fraudguard-dashboard/OnboardingView.tsx`
- [Platform Health](https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/PlatformHealthView.tsx): `src/components/fraudguard-dashboard/PlatformHealthView.tsx`
- [Data Ingestion](https://github.com/huy24isme/demo_capstone1/blob/main/src/components/fraudguard-dashboard/DataIngestionModal.tsx): `src/components/fraudguard-dashboard/DataIngestionModal.tsx`

### Seed Data and Export

- [Transaction Seed Data](https://github.com/huy24isme/demo_capstone1/blob/main/src/data/fraudguard-transactions.ts): `src/data/fraudguard-transactions.ts`
- [Rule Seed Data](https://github.com/huy24isme/demo_capstone1/blob/main/src/data/fraudguard-rules.ts): `src/data/fraudguard-rules.ts`
- [Platform Health Data](https://github.com/huy24isme/demo_capstone1/blob/main/src/data/fraudguard-platform.ts): `src/data/fraudguard-platform.ts`
- [CSV Export Helpers](https://github.com/huy24isme/demo_capstone1/blob/main/src/lib/export-csv.ts): `src/lib/export-csv.ts`

### Other components

- **User**

## Connections

- User → Login Route: opens (evidence: `src/app/login/page.tsx`)
- Login Route → Login Screen: renders (evidence: `src/app/login/page.tsx`)
- User → Monitoring Route: opens (evidence: `src/app/fraud-monitoring/page.tsx`)
- Monitoring Route → Dashboard Controller: renders (evidence: `src/app/fraud-monitoring/page.tsx`)
- Monitoring Route → Transaction Seed Data: passes data (evidence: `src/app/fraud-monitoring/page.tsx`)
- Monitoring Route → Rule Seed Data: passes data (evidence: `src/app/fraud-monitoring/page.tsx`)
- Dashboard Controller → Risk Overview and Alerts: renders (evidence: `src/components/fraudguard-dashboard/FraudGuardDashboard.tsx`)
- Dashboard Controller → Case Workspace: routes view (evidence: `src/components/fraudguard-dashboard/FraudGuardDashboard.tsx`)
- Dashboard Controller → Rule Management: routes view (evidence: `src/components/fraudguard-dashboard/FraudGuardDashboard.tsx`)
- Dashboard Controller → Rule Testing: routes view (evidence: `src/components/fraudguard-dashboard/FraudGuardDashboard.tsx`)
- Dashboard Controller → Projects: routes view (evidence: `src/components/fraudguard-dashboard/FraudGuardDashboard.tsx`)
- Dashboard Controller → Reports: routes view (evidence: `src/components/fraudguard-dashboard/FraudGuardDashboard.tsx`)
- Dashboard Controller → Audit Trail: routes view (evidence: `src/components/fraudguard-dashboard/FraudGuardDashboard.tsx`)
- Dashboard Controller → Onboarding: routes view (evidence: `src/components/fraudguard-dashboard/FraudGuardDashboard.tsx`)
- Dashboard Controller → Platform Health: routes view (evidence: `src/components/fraudguard-dashboard/FraudGuardDashboard.tsx`)
- Risk Overview and Alerts → Risk Indicators: uses badge (evidence: `src/components/fraudguard-dashboard/AlertsView.tsx`)
- Rule Management → Rule Builder: renders (evidence: `src/components/fraudguard-dashboard/RulesView.tsx`)
- Rule Management → Rule Details: renders (evidence: `src/components/fraudguard-dashboard/RulesView.tsx`)
- Platform Health → Platform Health Data: reads (evidence: `src/components/fraudguard-dashboard/PlatformHealthView.tsx`)
- Data Ingestion → CSV Export Helpers: downloads template (evidence: `src/components/fraudguard-dashboard/DataIngestionModal.tsx`)
- Dashboard Controller → Data Ingestion: opens modal
- Dashboard Controller → Case Review Drawer: opens drawer (evidence: `src/components/fraudguard-dashboard/FraudGuardDashboard.tsx`)
- Reports → CSV Export Helpers: exports report
- Rule Details → Transaction Seed Data: reads examples (evidence: `src/components/fraudguard-dashboard/RuleDetailDrawer.tsx`)
