# kungsovannda/dotnet-wpa-finora architecture

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

- Interactive diagram: https://gitdiagram.com/kungsovannda/dotnet-wpa-finora
- Repository: https://github.com/kungsovannda/dotnet-wpa-finora

## Overview

Finora is a desktop personal-expense tracker. The user signs in, then manages categories, records and filters income or expenses, reviews dashboard summaries and reports, and tracks savings goals and contributions. Feature controllers delegate to services and repositories; repositories use a shared Entity Framework context for persistence. The source index supports the principal feature and persistence links, but the README gives no capability detail and most view implementations were not sampled, so UI links are limited to relationships shown in the index or excerpts.

Main entry points: [`Features/SavingGoals/Impls/SavingGoalServiceImpl.cs`](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/SavingGoals/Impls/SavingGoalServiceImpl.cs) (Savings goal service), [`Persistence/FinoraDbContext.cs`](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Persistence/FinoraDbContext.cs) (Application database), [`Features/Transactions/Impls/TransactionRepositoryImpl.cs`](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Transactions/Impls/TransactionRepositoryImpl.cs) (Transaction repository), [`Features/Transactions/Impls/TransactionServiceImpl.cs`](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Transactions/Impls/TransactionServiceImpl.cs) (Transaction service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Desktop interface"]
  node_main["Main form<br/>[MainForm.cs]"]
  node_login["Login form<br/>[LoginForm.cs]"]
  node_transaction_ui["Transaction view"]
  node_goal_ui["Goal view"]
  node_dashboard_ui["Dashboard view"]
  node_report_ui["Report view<br/>[ReportControl.cs]"]
end

subgraph group_features["Finance features"]
  node_auth_controller["Authentication controller"]
  node_auth_service["Authentication service"]
  node_user_repo["User repository"]
  node_session["Current user session"]
  node_category_controller["Category controller"]
  node_category_service["Category service"]
  node_category_repo["Category repository"]
  node_transaction_controller["Transaction controller"]
  node_transaction_service["Transaction service"]
  node_transaction_repo["Transaction repository"]
  node_goal_controller["Savings goal controller"]
  node_goal_service["Savings goal service"]
  node_goal_repo["Savings goal repository"]
  node_dashboard_controller["Dashboard controller"]
  node_dashboard_service["Dashboard summary"]
  node_reports_controller["Reports controller"]
  node_reports_service["Reports service"]
end

subgraph group_data["Persistence"]
  node_db[("Application database<br/>[FinoraDbContext.cs]")]
  node_initializer["Database initializer"]
end

subgraph group_domain["Domain model"]
  node_domain["Finance entities<br/>[Transaction.cs]"]
end

node_user(("User"))

node_user -->|"uses"| node_main
node_main -.->|"shows"| node_login
node_login -.->|"submits credentials"| node_auth_controller
node_auth_controller -->|"delegates"| node_auth_service
node_auth_service -->|"looks up user"| node_user_repo
node_user_repo -->|"reads and writes"| node_db
node_transaction_ui -->|"requests transactions"| node_transaction_controller
node_transaction_ui -->|"refreshes summary"| node_dashboard_controller
node_transaction_controller -->|"delegates"| node_transaction_service
node_transaction_service -->|"reads and writes"| node_transaction_repo
node_transaction_service -->|"checks category"| node_category_repo
node_transaction_repo -->|"queries and saves"| node_db
node_category_controller -->|"delegates"| node_category_service
node_category_service -->|"reads and writes"| node_category_repo
node_category_repo -->|"queries and saves"| node_db
node_goal_controller -->|"delegates"| node_goal_service
node_goal_service -->|"reads and writes"| node_goal_repo
node_goal_repo -->|"queries and saves"| node_db
node_dashboard_controller -->|"delegates"| node_dashboard_service
node_dashboard_service -->|"aggregates transactions"| node_transaction_repo
node_dashboard_service -->|"gets goal overview"| node_goal_service
node_reports_controller -->|"delegates reports"| node_reports_service
node_reports_controller -->|"gets goal overview"| node_goal_service
node_reports_service -->|"aggregates transactions"| node_transaction_repo
node_reports_service -->|"gets goal overview"| node_goal_service
node_initializer -->|"initializes schema"| node_db

click node_main "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Views/Forms/MainForm.cs"
click node_login "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Views/Forms/LoginForm.cs"
click node_transaction_ui "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Views/Forms/TransactionControl.cs"
click node_goal_ui "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Views/Forms/SavingGoalControl.cs"
click node_dashboard_ui "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Views/Forms/DashboardControl.cs"
click node_report_ui "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Views/Forms/ReportControl.cs"
click node_auth_controller "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Authentication/AuthenticationController.cs"
click node_auth_service "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Authentication/Impls/AuthenticationServiceImpl.cs"
click node_user_repo "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Authentication/Impls/UserRepositoryImpl.cs"
click node_session "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Authentication/CurrentUserSession.cs"
click node_category_controller "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Categories/CategoryController.cs"
click node_category_service "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Categories/Impls/CategoryServiceImpl.cs"
click node_category_repo "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Categories/Impls/CategoryRepositoryImpl.cs"
click node_transaction_controller "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Transactions/TransactionController.cs"
click node_transaction_service "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Transactions/Impls/TransactionServiceImpl.cs"
click node_transaction_repo "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Transactions/Impls/TransactionRepositoryImpl.cs"
click node_goal_controller "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/SavingGoals/SavingGoalController.cs"
click node_goal_service "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/SavingGoals/Impls/SavingGoalServiceImpl.cs"
click node_goal_repo "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/SavingGoals/Impls/SavingGoalRepositoryImpl.cs"
click node_dashboard_controller "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Dashboard/DashboardController.cs"
click node_dashboard_service "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Dashboard/Impls/DashboardServiceImpl.cs"
click node_reports_controller "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Dashboard/ReportsController.cs"
click node_reports_service "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Dashboard/Impls/ReportsServiceImpl.cs"
click node_db "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Persistence/FinoraDbContext.cs"
click node_initializer "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Persistence/DatabaseInitializer.cs"
click node_domain "https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Domains/Transaction.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_main,node_login,node_transaction_ui,node_goal_ui,node_dashboard_ui,node_report_ui,node_user toneBlue
class node_auth_controller,node_auth_service,node_user_repo,node_session,node_category_controller,node_category_service,node_category_repo,node_transaction_controller,node_transaction_service,node_transaction_repo,node_goal_controller,node_goal_service,node_goal_repo,node_dashboard_controller,node_dashboard_service,node_reports_controller,node_reports_service toneAmber
class node_db,node_initializer toneMint
class node_domain toneRose
```

## Components

### Desktop interface

- [Main form](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Views/Forms/MainForm.cs): `Views/Forms/MainForm.cs`
- [Login form](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Views/Forms/LoginForm.cs): `Views/Forms/LoginForm.cs`
- [Transaction view](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Views/Forms/TransactionControl.cs): `Views/Forms/TransactionControl.cs`
- [Goal view](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Views/Forms/SavingGoalControl.cs): `Views/Forms/SavingGoalControl.cs`
- [Dashboard view](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Views/Forms/DashboardControl.cs): `Views/Forms/DashboardControl.cs`
- [Report view](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Views/Forms/ReportControl.cs): `Views/Forms/ReportControl.cs`

### Finance features

- [Authentication controller](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Authentication/AuthenticationController.cs): `Features/Authentication/AuthenticationController.cs`
- [Authentication service](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Authentication/Impls/AuthenticationServiceImpl.cs): `Features/Authentication/Impls/AuthenticationServiceImpl.cs`
- [User repository](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Authentication/Impls/UserRepositoryImpl.cs): `Features/Authentication/Impls/UserRepositoryImpl.cs`
- [Current user session](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Authentication/CurrentUserSession.cs): `Features/Authentication/CurrentUserSession.cs`
- [Category controller](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Categories/CategoryController.cs): `Features/Categories/CategoryController.cs`
- [Category service](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Categories/Impls/CategoryServiceImpl.cs): `Features/Categories/Impls/CategoryServiceImpl.cs`
- [Category repository](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Categories/Impls/CategoryRepositoryImpl.cs): `Features/Categories/Impls/CategoryRepositoryImpl.cs`
- [Transaction controller](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Transactions/TransactionController.cs): `Features/Transactions/TransactionController.cs`
- [Transaction service](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Transactions/Impls/TransactionServiceImpl.cs): `Features/Transactions/Impls/TransactionServiceImpl.cs`
- [Transaction repository](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Transactions/Impls/TransactionRepositoryImpl.cs): `Features/Transactions/Impls/TransactionRepositoryImpl.cs`
- [Savings goal controller](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/SavingGoals/SavingGoalController.cs): `Features/SavingGoals/SavingGoalController.cs`
- [Savings goal service](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/SavingGoals/Impls/SavingGoalServiceImpl.cs): `Features/SavingGoals/Impls/SavingGoalServiceImpl.cs`
- [Savings goal repository](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/SavingGoals/Impls/SavingGoalRepositoryImpl.cs): `Features/SavingGoals/Impls/SavingGoalRepositoryImpl.cs`
- [Dashboard controller](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Dashboard/DashboardController.cs): `Features/Dashboard/DashboardController.cs`
- [Dashboard summary](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Dashboard/Impls/DashboardServiceImpl.cs): `Features/Dashboard/Impls/DashboardServiceImpl.cs`
- [Reports controller](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Dashboard/ReportsController.cs): `Features/Dashboard/ReportsController.cs`
- [Reports service](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Features/Dashboard/Impls/ReportsServiceImpl.cs): `Features/Dashboard/Impls/ReportsServiceImpl.cs`

### Persistence

- [Application database](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Persistence/FinoraDbContext.cs): `Persistence/FinoraDbContext.cs`
- [Database initializer](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Persistence/DatabaseInitializer.cs): `Persistence/DatabaseInitializer.cs`

### Domain model

- [Finance entities](https://github.com/kungsovannda/dotnet-wpa-finora/blob/main/Domains/Transaction.cs): `Domains/Transaction.cs`

### Other components

- **User**

## Connections

- User → Main form: uses
- Main form → Login form: shows
- Login form → Authentication controller: submits credentials
- Authentication controller → Authentication service: delegates (evidence: `Features/Authentication/AuthenticationController.cs`)
- Authentication service → User repository: looks up user (evidence: `Features/Authentication/Impls/AuthenticationServiceImpl.cs`)
- User repository → Application database: reads and writes (evidence: `Features/Authentication/Impls/UserRepositoryImpl.cs`)
- Transaction view → Transaction controller: requests transactions (evidence: `Views/Forms/TransactionControl.cs`)
- Transaction view → Dashboard controller: refreshes summary (evidence: `Views/Forms/TransactionControl.cs`)
- Transaction controller → Transaction service: delegates (evidence: `Features/Transactions/TransactionController.cs`)
- Transaction service → Transaction repository: reads and writes (evidence: `Features/Transactions/Impls/TransactionServiceImpl.cs`)
- Transaction service → Category repository: checks category (evidence: `Features/Transactions/Impls/TransactionServiceImpl.cs`)
- Transaction repository → Application database: queries and saves (evidence: `Features/Transactions/Impls/TransactionRepositoryImpl.cs`)
- Category controller → Category service: delegates (evidence: `Features/Categories/CategoryController.cs`)
- Category service → Category repository: reads and writes (evidence: `Features/Categories/Impls/CategoryServiceImpl.cs`)
- Category repository → Application database: queries and saves (evidence: `Features/Categories/Impls/CategoryRepositoryImpl.cs`)
- Savings goal controller → Savings goal service: delegates (evidence: `Features/SavingGoals/SavingGoalController.cs`)
- Savings goal service → Savings goal repository: reads and writes (evidence: `Features/SavingGoals/Impls/SavingGoalServiceImpl.cs`)
- Savings goal repository → Application database: queries and saves (evidence: `Features/SavingGoals/Impls/SavingGoalRepositoryImpl.cs`)
- Dashboard controller → Dashboard summary: delegates (evidence: `Features/Dashboard/DashboardController.cs`)
- Dashboard summary → Transaction repository: aggregates transactions (evidence: `Features/Dashboard/Impls/DashboardServiceImpl.cs`)
- Dashboard summary → Savings goal service: gets goal overview (evidence: `Features/Dashboard/Impls/DashboardServiceImpl.cs`)
- Reports controller → Reports service: delegates reports (evidence: `Features/Dashboard/ReportsController.cs`)
- Reports controller → Savings goal service: gets goal overview (evidence: `Features/Dashboard/ReportsController.cs`)
- Reports service → Transaction repository: aggregates transactions (evidence: `Features/Dashboard/Impls/ReportsServiceImpl.cs`)
- Reports service → Savings goal service: gets goal overview (evidence: `Features/Dashboard/Impls/ReportsServiceImpl.cs`)
- Database initializer → Application database: initializes schema (evidence: `Persistence/DatabaseInitializer.cs`)
