feat: multi-account financial overview dashboard (#132)#620
Open
DeekRoumy wants to merge 1 commit intorohitdash08:mainfrom
Open
feat: multi-account financial overview dashboard (#132)#620DeekRoumy wants to merge 1 commit intorohitdash08:mainfrom
DeekRoumy wants to merge 1 commit intorohitdash08:mainfrom
Conversation
Add support for viewing multiple financial accounts in one dashboard view. ## Backend - New SQLAlchemy model with fields: name, account_type (CHECKING/SAVINGS/CREDIT_CARD/INVESTMENT/LOAN/CASH/OTHER), balance, currency, institution, last_four, color, include_in_overview, active - CRUD REST API at /accounts (list, create, get, patch, delete/deactivate) - Aggregate overview endpoint GET /accounts/overview with: - net_worth, total_assets, total_liabilities across all accounts - monthly income/expenses/net_flow for selected month - upcoming bills and category breakdown - Updated db/schema.sql with financial_accounts table + index - 31 new backend tests covering CRUD + overview logic (all passing) - Updated conftest.py to use fakeredis, fixing test isolation for all existing tests (no Redis server required) ## Frontend - New /api/accounts.ts client with full TypeScript types - New MultiAccountDashboard page (/accounts route): - Net worth summary cards (assets, liabilities, net worth) - Monthly cash flow summary (income, expenses, net flow) - Account cards grid with color-coded type icons - Create/edit account dialog with all fields - Soft-delete (deactivate) with confirm prompt - Upcoming bills list - Category breakdown progress bars - Month picker and refresh button - Added 'Accounts' link to Navbar - Registered /accounts route in App.tsx router Closes rohitdash08#132
Author
|
Hi! Just following up on this PR — it's been over 12 hours since submission. Let me know if there's any feedback or changes needed and I'll address them right away. Thanks for your time! 🙏 |
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
Closes #132
Implements a full multi-account financial overview dashboard, allowing users to manage and view all their financial accounts (bank accounts, credit cards, investments, loans, etc.) in a single unified view.
What's Changed
Backend
New model:
FinancialAccountname,account_type(CHECKING / SAVINGS / CREDIT_CARD / INVESTMENT / LOAN / CASH / OTHER),balance,currency,institution,last_four,color,include_in_overview,activeactive=False)New REST API
/accounts:{id}{id}{id}GET /accounts/overviewreturns:totals: net_worth, total_assets, total_liabilitiesmonthly_summary: income, expenses, net_flow for selected monthaccounts: full list of accountsupcoming_bills: next due billscategory_breakdown: expense breakdown by categorySchema: Added
financial_accountstable todb/schema.sqlwithaccount_typeenum and index.Tests: 31 new tests in
tests/test_accounts.py— all passing. Also updatedconftest.pyto usefakeredisfor test isolation (fixes existing tests running without a Redis server).Frontend
New API client:
app/src/api/accounts.ts— full TypeScript types + all API calls.New page:
MultiAccountDashboardat/accounts:Navbar: Added Accounts link.
Router: Registered
/accountsroute in App.tsx.Testing
Acceptance Criteria