Skip to content
This repository was archived by the owner on Jun 19, 2026. It is now read-only.

feat: Goal-based Savings Tracking (#133)#154

Open
George3307 wants to merge 1 commit into
rohitdash08:mainfrom
George3307:feat/savings-goals-133
Open

feat: Goal-based Savings Tracking (#133)#154
George3307 wants to merge 1 commit into
rohitdash08:mainfrom
George3307:feat/savings-goals-133

Conversation

@George3307

Copy link
Copy Markdown

/claim #133

Summary

Implements goal-based savings tracking with milestones as described in #133.

Backend

  • Models: SavingsGoal (id, user_id, name, target_amount, current_amount, currency, deadline, created_at) and SavingsMilestone (id, goal_id, name, amount, reached_at)
  • API Routes (/savings/goals):
    • POST /savings/goals — create a goal (auto-creates milestones at 25%, 50%, 75%, 100%)
    • GET /savings/goals — list user goals
    • PUT|PATCH /savings/goals/:id — update goal, add funds, edit fields
    • DELETE /savings/goals/:id — delete goal (cascades milestones)
    • GET /savings/goals/:id/milestones — list milestones with reached status
  • Milestones auto-mark as reached when current_amount meets threshold

Frontend

  • Savings page with progress bars, add-funds UI, expandable milestone badges
  • API client (savings.ts) with full CRUD
  • Route /savings + nav link in Navbar

Tests

  • 16 comprehensive pytest tests covering CRUD, validation, milestones, auth — all passing

Closes #133

- New SavingsGoal and SavingsMilestone models
- CRUD API routes at /savings/goals with JWT auth
- Auto-create milestones at 25%, 50%, 75%, 100% of target
- Milestones auto-mark as reached when funds are added
- React frontend page with progress bars and milestone badges
- Navigation link added to Navbar
- 16 comprehensive tests (all passing)

Closes rohitdash08#133
@rohitdash08

Copy link
Copy Markdown
Owner

@George3307, can we connect over discord in order to take this forward? @geekster007

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Goal-based savings tracking & milestones

2 participants