Skip to content

feat: goal-based savings tracking & milestones (#133)#1176

Open
mkcash wants to merge 3 commits into
rohitdash08:mainfrom
mkcash:feat/savings-goals
Open

feat: goal-based savings tracking & milestones (#133)#1176
mkcash wants to merge 3 commits into
rohitdash08:mainfrom
mkcash:feat/savings-goals

Conversation

@mkcash
Copy link
Copy Markdown

@mkcash mkcash commented Jun 3, 2026

Summary

Implements savings goal tracking as described in issue #133 ($250 bounty).

API Endpoints

  • GET/POST /api/savings-goals — list & create goals
  • GET /api/savings-goals/:id — view goal detail
  • POST /api/savings-goals/:id/contribute — add/withdraw funds
  • DELETE /api/savings-goals/:id — delete a goal
  • GET /api/savings-goals/summary — overall savings dashboard

Features

  • Auto-milestones at 25%, 50%, 75%, 100%
  • Milestone notification on contribution
  • Goal auto-completion when target reached
  • Contribution and withdrawal support
  • 8 tests

AI Disclosure

Generated with DeepSeek-V4-Pro via ModelScope API.

mkcash added 3 commits June 3, 2026 13:52
- AsyncJob model with status tracking
- Exponential backoff retry with jitter
- Max attempt limit configurable per job
- JobRunner: generic synchronous runner
- process_retry_queue: picks up due retries automatically
- Admin API: list/filter jobs, cancel, trigger retry, stats
- 15 unit tests
- GET /api/digest/weekly?user_id=:id — current week summary
- GET /api/digest/weekly/history?user_id=:id&weeks=:n — historical data
- Aggregates: total spent, total income, net change, transaction count
- Category breakdown (top 5 categories by spend)
- Bills due this week, active recurring expenses count
- Week-over-week trend comparison with % change
- Auto-generated insights (overspent, saved, vs last week)
- 5 integration tests
- SavingsGoal model with CRUD API
- Auto-create milestones at 25%, 50%, 75%, 100%
- Contribute/withdraw endpoint with milestone detection
- Milestone notifications on reaching targets
- Goal completion auto-status
- Summary dashboard endpoint
- 8 integration tests
@mkcash mkcash requested a review from rohitdash08 as a code owner June 3, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant