Skip to content

feat: add dynamic budget suggestions endpoint#882

Open
Mohye24k wants to merge 1 commit intorohitdash08:mainfrom
Mohye24k:fix/issue-73-budget-suggest
Open

feat: add dynamic budget suggestions endpoint#882
Mohye24k wants to merge 1 commit intorohitdash08:mainfrom
Mohye24k:fix/issue-73-budget-suggest

Conversation

@Mohye24k
Copy link
Copy Markdown

Summary

  • Add GET /budget-suggest endpoint based on 90-day spending history
  • Suggest per-category budgets using the 50/30/20 rule (needs/wants/savings)
  • Return suggestions[], monthly_income, savings_target, and budget_rule breakdown
  • Add comprehensive test suite (auth required, empty state, with data)
  • Add TypeScript API client (app/src/api/budgetSuggest.ts)
  • Register blueprint in __init__.py

Test plan

  • Auth required returns 401
  • Empty state returns zeroed suggestions
  • With data returns category suggestions with 10% buffer
  • Budget rule follows 50/30/20 allocation

/claim #73
Fixes #73

- Add GET /budget-suggest route based on 90-day spending history
- Suggest per-category budgets using 50/30/20 rule
- Return suggestions[], monthly_income, savings_target, budget_rule
- Add tests for auth, empty state, and with data
- Add TypeScript API client

Fixes rohitdash08#73
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.

Dynamic Budget Suggestions

1 participant