feat: multi-account financial overview dashboard (#132)#392
Open
sinatragianpaolo-oc wants to merge 1 commit intorohitdash08:mainfrom
Open
feat: multi-account financial overview dashboard (#132)#392sinatragianpaolo-oc wants to merge 1 commit intorohitdash08:mainfrom
sinatragianpaolo-oc wants to merge 1 commit intorohitdash08:mainfrom
Conversation
- Account model (BANK/CREDIT/CASH/INVESTMENT/WALLET/OTHER) - Full CRUD: GET/POST/PATCH/DELETE /accounts - GET /accounts/overview — aggregate balance, income, expenses per account - Net worth = total_assets - total_liabilities (CREDIT accounts = liabilities) - Soft delete (deactivate) to preserve expense history - Expense.account_id FK (nullable, backward-compatible) - Migration 005_accounts.sql - 27 tests covering CRUD, overview, balances, auth Closes rohitdash08#132
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Issue #132: Multi-account financial overview — view multiple financial accounts in one place.
Features
Account types supported
BANK,CREDIT,CASH,INVESTMENT,WALLET,OTHEREndpoints
/accounts/accounts/accounts/<id>/accounts/<id>/accounts/<id>/accounts/overviewOverview response
{ "accounts": [ {"name": "Main Bank", "balance": 8000.0, "income": 0, "expenses": 2000.0, ...} ], "summary": { "total_assets": 10500.0, "total_liabilities": 2000.0, "net_worth": 8500.0, "unassigned_income": 0.0, "unassigned_expenses": 300.0, "account_count": 3 } }Backward compatibility
expenses.account_idis nullable — existing expenses continue to work unchanged. Unassigned expenses appear insummary.unassigned_expenses.Net worth calculation
Files changed
app/models.pyapp/routes/accounts.pyapp/routes/__init__.pyapp/db/migrations/005_accounts.sqltests/test_accounts.pyAcceptance Criteria
Closes #132