Skip to content

feat(savings): Goal-based savings tracking & milestones (#133)#262

Open
dagangtj wants to merge 1 commit intorohitdash08:mainfrom
dagangtj:feat/savings-goals-133
Open

feat(savings): Goal-based savings tracking & milestones (#133)#262
dagangtj wants to merge 1 commit intorohitdash08:mainfrom
dagangtj:feat/savings-goals-133

Conversation

@dagangtj
Copy link

Summary

Implements Goal-based savings tracking & milestones as requested in #133.

Features

Savings Goals API:

  • POST /savings — Create goal with target amount, currency, optional deadline
  • GET /savings — List all user goals
  • GET /savings/:id — Goal detail with progress
  • POST /savings/:id/contribute — Add savings contribution
  • PATCH /savings/:id — Update goal name/target/deadline
  • DELETE /savings/:id — Remove goal

Milestone System:

  • Auto-created milestones at 25%, 50%, 75%, 100%
  • Milestones auto-marked as reached on contributions
  • Timestamp recorded when each milestone is hit
  • Goal auto-marked achieved at 100%

Progress Tracking:

  • Real-time progress percentage
  • Days remaining until deadline
  • Current vs target amount

Tests (10 test cases):

  • CRUD operations
  • Contribution flow with milestone verification
  • Invalid amount handling
  • Goal not found (404)
  • Auth required (401)

Closes #133

)

- Add SavingsGoal and GoalMilestone models
- CRUD API: create, list, get, update, delete goals
- Contribution endpoint with automatic milestone tracking
- Default milestones at 25%, 50%, 75%, 100%
- Auto-mark goal as achieved when target reached
- Progress percentage and days-left calculation
- 10 test cases covering all flows

Closes rohitdash08#133
@dagangtj
Copy link
Author

Hi @rohitdash08, ready for review! Savings goals with milestone tracking, contribution flow, and 10 test cases.

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.

Goal-based savings tracking & milestones

1 participant