Skip to content

feat: goal-based savings tracking & milestones [Bounty #133 — $250]#397

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

feat: goal-based savings tracking & milestones [Bounty #133 — $250]#397
CelebrityPunks wants to merge 1 commit intorohitdash08:mainfrom
CelebrityPunks:feat/savings-goals

Conversation

@CelebrityPunks
Copy link

Summary

Full-stack savings goals feature with milestone tracking:

Backend (Python/Flask):

  • SavingsGoal and SavingsContribution models
  • CRUD endpoints: GET/POST/PATCH/DELETE /savings-goals
  • Contribution endpoint: POST /savings-goals/:id/contribute
  • Withdrawal endpoint: POST /savings-goals/:id/withdraw
  • Contribution history: GET /savings-goals/:id/contributions
  • Auto milestone tracking at 25%, 50%, 75%, 100%
  • SQL schema with indexes

Frontend (React/TypeScript/Tailwind):

  • SavingsGoals page with progress bars and milestone badges
  • Overview cards (total saved, target, progress %, completed count)
  • Create/edit goal modal with category and deadline
  • Contribute/withdraw modal with balance validation
  • Route at /savings, nav link added

Tests:

  • 6 backend test functions (CRUD, validation, contributions, milestones, withdrawals)
  • Frontend integration tests

Test plan

  • pytest packages/backend/tests/test_savings_goals.py
  • Create goal, add contributions, verify milestone badges appear
  • Withdraw funds, verify balance validation
  • Delete goal, verify cascade cleanup

Closes #133

🤖 Generated with Claude Code

Full-stack implementation:
- Backend: SavingsGoal/SavingsContribution models, CRUD API endpoints,
  contribution/withdrawal support, milestone auto-tracking (25/50/75/100%)
- Frontend: SavingsGoals page with progress bars, milestone badges,
  create/edit/contribute modals, overview stats cards
- SQL schema for savings_goals and savings_contributions tables
- Backend tests (6 functions) and frontend integration tests
- Navigation link added to sidebar

Closes rohitdash08#133

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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

2 participants