Skip to content

feat: add multi-account financial overview dashboard#593

Open
promisingcoder wants to merge 3 commits intorohitdash08:mainfrom
promisingcoder:bounty/132-multi-account
Open

feat: add multi-account financial overview dashboard#593
promisingcoder wants to merge 3 commits intorohitdash08:mainfrom
promisingcoder:bounty/132-multi-account

Conversation

@promisingcoder
Copy link

Summary

Adds multi-account financial management with full CRUD API and portfolio overview.

Features

  • Account CRUD endpoints: POST/GET/PUT/DELETE /accounts
  • Portfolio overview: GET /accounts/overview with aggregated balances across all accounts
  • Account types: checking, savings, credit_card, investment, other
  • Database migration: New accounts table with proper indexes
  • Comprehensive tests: Unit tests for all endpoints and business logic
  • Documentation: README updated with API reference

/claim #132

Fixes #132

- Add FinancialAccount model (checking/savings/credit_card/investment/other)
  with balance, currency, institution, is_active, timestamps
- Add CRUD routes at /accounts (POST/GET/PUT/DELETE) plus GET /accounts/overview
  for consolidated view aggregated by currency and account type; all JWT-protected
- Add 25 tests covering CRUD lifecycle, validation, auth isolation, overview
  aggregation, and inactive account filtering
- Update README with accounts API reference and overview response schema
- Fix test conftest to use fakeredis instead of a live Redis so all 47 tests pass
  in environments without a running Redis instance

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
promisingcoder and others added 2 commits March 21, 2026 07:57
- Change FinancialAccount currency default from INR to USD
- Add CREATE TABLE IF NOT EXISTS for financial_accounts in schema migration
- Soft-delete accounts by setting is_active=False instead of deleting row
- Update _get_owned to exclude inactive accounts (returns 404 after delete)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multi-account financial overview dashboard

1 participant