# sanguiris/bankdesign architecture

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

- Interactive diagram: https://gitdiagram.com/sanguiris/bankdesign
- Repository: https://github.com/sanguiris/bankdesign

## Overview

BankDesign is a mock-data banking dashboard UI, not a banking backend: it has no authentication, API, or persistent financial store. Users navigate from the dashboard to account details, browse and filter transactions, review budgets and analytics, and adjust settings; cards and notifications are additional dashboard capabilities. The graph reflects documented features and source-index references. Some page-to-component wiring is indexed but not excerpted, so those edges cite the indexed caller; unsampled details are omitted.

Main entry points: [`src/app/page.tsx`](https://github.com/sanguiris/bankdesign/blob/main/src/app/page.tsx) (Dashboard), [`src/app/accounts/page.tsx`](https://github.com/sanguiris/bankdesign/blob/main/src/app/accounts/page.tsx) (Accounts overview), [`src/app/budget/page.tsx`](https://github.com/sanguiris/bankdesign/blob/main/src/app/budget/page.tsx) (Budget page), [`src/components/ui`](https://github.com/sanguiris/bankdesign/tree/main/src/components/ui) (UI primitives)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App navigation"]
  node_dashboard["Dashboard<br/>[page.tsx]"]
  node_settings["Settings<br/>[page.tsx]"]
end

subgraph group_finance["Banking views"]
  node_accounts["Accounts overview<br/>[page.tsx]"]
  node_account_detail["Account details<br/>[page.tsx]"]
  node_transactions_page["Transactions page<br/>[page.tsx]"]
  node_transaction_list["Transaction explorer"]
  node_transaction_details["Transaction details"]
  node_transaction_data["Mock transactions<br/>[transactionData.ts]"]
  node_budget_page["Budget page<br/>[page.tsx]"]
  node_budget_tracker["Budget tracking<br/>[BudgetTracker.tsx]"]
  node_budget_data["Mock budgets<br/>[budgetData.ts]"]
  node_account_data["Mock accounts<br/>[accountsData.ts]"]
  node_card_tabs["Card transactions"]
  node_bank_card["Bank card UI<br/>[BankCard.tsx]"]
  node_recent_transactions["Recent activity"]
end

subgraph group_insights["Insights and activity"]
  node_account_chart["Balance history"]
  node_weekly_chart["Weekly activity"]
  node_expense_stats["Expense statistics"]
end

subgraph group_shared["Shared interface"]
  node_theme_context["Theme state<br/>[ThemeContext.tsx]"]
  node_header["Dashboard header<br/>[Header.tsx]"]
  node_notifications["Notifications dropdown"]
  node_notification_data["Mock notifications"]
  node_sidebar["Navigation sidebar<br/>[Sidebar.tsx]"]
  node_ui_primitives["UI primitives"]
end

node_user(("Dashboard user"))

node_user -->|"opens"| node_dashboard
node_dashboard -->|"renders"| node_sidebar
node_dashboard -->|"renders"| node_header
node_dashboard -->|"renders"| node_card_tabs
node_dashboard -->|"renders"| node_weekly_chart
node_dashboard -->|"renders"| node_expense_stats
node_user -->|"opens"| node_accounts
node_accounts -->|"reads"| node_account_data
node_accounts -->|"renders"| node_sidebar
node_accounts -->|"renders"| node_header
node_account_detail -->|"reads"| node_account_data
node_account_detail -->|"reads"| node_transaction_data
node_account_detail -->|"renders"| node_account_chart
node_user -->|"opens"| node_transactions_page
node_transactions_page -->|"renders"| node_transaction_list
node_transaction_list -->|"reads"| node_transaction_data
node_transaction_list -->|"opens"| node_transaction_details
node_user -->|"opens"| node_budget_page
node_budget_page -->|"reads"| node_budget_data
node_budget_page -->|"renders"| node_budget_tracker
node_budget_tracker -->|"reads"| node_budget_data
node_card_tabs -->|"renders"| node_bank_card
node_card_tabs -->|"renders"| node_recent_transactions
node_header -->|"renders"| node_notifications
node_notifications -->|"reads"| node_notification_data
node_settings -->|"uses"| node_theme_context
node_dashboard -->|"uses"| node_ui_primitives
node_transactions_page -->|"uses"| node_ui_primitives
node_budget_page -->|"uses"| node_ui_primitives
node_settings -->|"uses"| node_ui_primitives

click node_dashboard "https://github.com/sanguiris/bankdesign/blob/main/src/app/page.tsx"
click node_accounts "https://github.com/sanguiris/bankdesign/blob/main/src/app/accounts/page.tsx"
click node_account_detail "https://github.com/sanguiris/bankdesign/blob/main/src/app/accounts/%5Bid%5D/page.tsx"
click node_transactions_page "https://github.com/sanguiris/bankdesign/blob/main/src/app/transactions/page.tsx"
click node_transaction_list "https://github.com/sanguiris/bankdesign/blob/main/src/components/TransactionList.tsx"
click node_transaction_details "https://github.com/sanguiris/bankdesign/blob/main/src/components/TransactionDetails.tsx"
click node_transaction_data "https://github.com/sanguiris/bankdesign/blob/main/src/data/transactionData.ts"
click node_budget_page "https://github.com/sanguiris/bankdesign/blob/main/src/app/budget/page.tsx"
click node_budget_tracker "https://github.com/sanguiris/bankdesign/blob/main/src/components/BudgetTracker.tsx"
click node_budget_data "https://github.com/sanguiris/bankdesign/blob/main/src/data/budgetData.ts"
click node_account_data "https://github.com/sanguiris/bankdesign/blob/main/src/data/accountsData.ts"
click node_account_chart "https://github.com/sanguiris/bankdesign/blob/main/src/components/AccountActivityChart.tsx"
click node_weekly_chart "https://github.com/sanguiris/bankdesign/blob/main/src/components/WeeklyActivityChart.tsx"
click node_expense_stats "https://github.com/sanguiris/bankdesign/blob/main/src/components/ExpenseStatistics.tsx"
click node_card_tabs "https://github.com/sanguiris/bankdesign/blob/main/src/components/CardTransactionTabs.tsx"
click node_bank_card "https://github.com/sanguiris/bankdesign/blob/main/src/components/BankCard.tsx"
click node_recent_transactions "https://github.com/sanguiris/bankdesign/blob/main/src/components/RecentTransactions.tsx"
click node_settings "https://github.com/sanguiris/bankdesign/blob/main/src/app/settings/page.tsx"
click node_theme_context "https://github.com/sanguiris/bankdesign/blob/main/src/contexts/ThemeContext.tsx"
click node_header "https://github.com/sanguiris/bankdesign/blob/main/src/components/Header.tsx"
click node_notifications "https://github.com/sanguiris/bankdesign/blob/main/src/components/NotificationsDropdown.tsx"
click node_notification_data "https://github.com/sanguiris/bankdesign/blob/main/src/data/notificationsData.ts"
click node_sidebar "https://github.com/sanguiris/bankdesign/blob/main/src/components/Sidebar.tsx"
click node_ui_primitives "https://github.com/sanguiris/bankdesign/tree/main/src/components/ui"

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_dashboard,node_settings,node_user toneBlue
class node_accounts,node_account_detail,node_transactions_page,node_transaction_list,node_transaction_details,node_transaction_data,node_budget_page,node_budget_tracker,node_budget_data,node_account_data,node_card_tabs,node_bank_card,node_recent_transactions toneAmber
class node_account_chart,node_weekly_chart,node_expense_stats toneMint
class node_theme_context,node_header,node_notifications,node_notification_data,node_sidebar,node_ui_primitives toneRose
```

## Components

### App navigation

- [Dashboard](https://github.com/sanguiris/bankdesign/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Settings](https://github.com/sanguiris/bankdesign/blob/main/src/app/settings/page.tsx): `src/app/settings/page.tsx`

### Banking views

- [Accounts overview](https://github.com/sanguiris/bankdesign/blob/main/src/app/accounts/page.tsx): `src/app/accounts/page.tsx`
- [Account details](https://github.com/sanguiris/bankdesign/blob/main/src/app/accounts/%5Bid%5D/page.tsx): `src/app/accounts/[id]/page.tsx`
- [Transactions page](https://github.com/sanguiris/bankdesign/blob/main/src/app/transactions/page.tsx): `src/app/transactions/page.tsx`
- [Transaction explorer](https://github.com/sanguiris/bankdesign/blob/main/src/components/TransactionList.tsx): `src/components/TransactionList.tsx`
- [Transaction details](https://github.com/sanguiris/bankdesign/blob/main/src/components/TransactionDetails.tsx): `src/components/TransactionDetails.tsx`
- [Mock transactions](https://github.com/sanguiris/bankdesign/blob/main/src/data/transactionData.ts): `src/data/transactionData.ts`
- [Budget page](https://github.com/sanguiris/bankdesign/blob/main/src/app/budget/page.tsx): `src/app/budget/page.tsx`
- [Budget tracking](https://github.com/sanguiris/bankdesign/blob/main/src/components/BudgetTracker.tsx): `src/components/BudgetTracker.tsx`
- [Mock budgets](https://github.com/sanguiris/bankdesign/blob/main/src/data/budgetData.ts): `src/data/budgetData.ts`
- [Mock accounts](https://github.com/sanguiris/bankdesign/blob/main/src/data/accountsData.ts): `src/data/accountsData.ts`
- [Card transactions](https://github.com/sanguiris/bankdesign/blob/main/src/components/CardTransactionTabs.tsx): `src/components/CardTransactionTabs.tsx`
- [Bank card UI](https://github.com/sanguiris/bankdesign/blob/main/src/components/BankCard.tsx): `src/components/BankCard.tsx`
- [Recent activity](https://github.com/sanguiris/bankdesign/blob/main/src/components/RecentTransactions.tsx): `src/components/RecentTransactions.tsx`

### Insights and activity

- [Balance history](https://github.com/sanguiris/bankdesign/blob/main/src/components/AccountActivityChart.tsx): `src/components/AccountActivityChart.tsx`
- [Weekly activity](https://github.com/sanguiris/bankdesign/blob/main/src/components/WeeklyActivityChart.tsx): `src/components/WeeklyActivityChart.tsx`
- [Expense statistics](https://github.com/sanguiris/bankdesign/blob/main/src/components/ExpenseStatistics.tsx): `src/components/ExpenseStatistics.tsx`

### Shared interface

- [Theme state](https://github.com/sanguiris/bankdesign/blob/main/src/contexts/ThemeContext.tsx): `src/contexts/ThemeContext.tsx`
- [Dashboard header](https://github.com/sanguiris/bankdesign/blob/main/src/components/Header.tsx): `src/components/Header.tsx`
- [Notifications dropdown](https://github.com/sanguiris/bankdesign/blob/main/src/components/NotificationsDropdown.tsx): `src/components/NotificationsDropdown.tsx`
- [Mock notifications](https://github.com/sanguiris/bankdesign/blob/main/src/data/notificationsData.ts): `src/data/notificationsData.ts`
- [Navigation sidebar](https://github.com/sanguiris/bankdesign/blob/main/src/components/Sidebar.tsx): `src/components/Sidebar.tsx`
- [UI primitives](https://github.com/sanguiris/bankdesign/tree/main/src/components/ui): `src/components/ui`

### Other components

- **Dashboard user**

## Connections

- Dashboard user → Dashboard: opens
- Dashboard → Navigation sidebar: renders (evidence: `src/app/page.tsx`)
- Dashboard → Dashboard header: renders (evidence: `src/app/page.tsx`)
- Dashboard → Card transactions: renders (evidence: `src/app/page.tsx`)
- Dashboard → Weekly activity: renders (evidence: `src/app/page.tsx`)
- Dashboard → Expense statistics: renders (evidence: `src/app/page.tsx`)
- Dashboard user → Accounts overview: opens
- Accounts overview → Mock accounts: reads (evidence: `src/app/accounts/page.tsx`)
- Accounts overview → Navigation sidebar: renders (evidence: `src/app/accounts/page.tsx`)
- Accounts overview → Dashboard header: renders (evidence: `src/app/accounts/page.tsx`)
- Account details → Mock accounts: reads (evidence: `src/app/accounts/[id]/page.tsx`)
- Account details → Mock transactions: reads (evidence: `src/app/accounts/[id]/page.tsx`)
- Account details → Balance history: renders (evidence: `src/app/accounts/[id]/page.tsx`)
- Dashboard user → Transactions page: opens
- Transactions page → Transaction explorer: renders (evidence: `src/app/transactions/page.tsx`)
- Transaction explorer → Mock transactions: reads (evidence: `src/components/TransactionList.tsx`)
- Transaction explorer → Transaction details: opens (evidence: `src/components/TransactionList.tsx`)
- Dashboard user → Budget page: opens
- Budget page → Mock budgets: reads (evidence: `src/app/budget/page.tsx`)
- Budget page → Budget tracking: renders (evidence: `src/app/budget/page.tsx`)
- Budget tracking → Mock budgets: reads (evidence: `src/components/BudgetTracker.tsx`)
- Card transactions → Bank card UI: renders (evidence: `src/components/CardTransactionTabs.tsx`)
- Card transactions → Recent activity: renders (evidence: `src/components/CardTransactionTabs.tsx`)
- Dashboard header → Notifications dropdown: renders (evidence: `src/components/Header.tsx`)
- Notifications dropdown → Mock notifications: reads (evidence: `src/components/NotificationsDropdown.tsx`)
- Settings → Theme state: uses (evidence: `src/app/settings/page.tsx`)
- Dashboard → UI primitives: uses (evidence: `src/app/page.tsx`)
- Transactions page → UI primitives: uses (evidence: `src/app/transactions/page.tsx`)
- Budget page → UI primitives: uses (evidence: `src/app/budget/page.tsx`)
- Settings → UI primitives: uses (evidence: `src/app/settings/page.tsx`)
