feat: goal-based savings tracking & milestones (Closes #133)#622
Open
damiehttp wants to merge 1 commit intorohitdash08:mainfrom
Open
feat: goal-based savings tracking & milestones (Closes #133)#622damiehttp wants to merge 1 commit intorohitdash08:mainfrom
damiehttp wants to merge 1 commit intorohitdash08:mainfrom
Conversation
Full implementation of savings goals with milestone tracking. ## Backend (Flask) - Database schema: savings_goals, goal_milestones, goal_contributions tables - Full CRUD API endpoints for goals (/api/savings-goals) - Contribution management (deposit/withdraw) - Auto-milestone tracking (25%, 50%, 75%, 100%) - Custom milestone support - Category filtering (EMERGENCY, VACATION, HOME, EDUCATION, etc.) - Statistics endpoint with totals and category breakdown ## Frontend (React/TypeScript) - Type-safe API client (app/src/api/savings.ts) - Full CRUD operations with error handling ## Tests - 336 lines of comprehensive unit tests - CRUD, contributions, milestones, edge cases, authorization Closes rohitdash08#133
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal-based Savings Tracking & Milestones
962 lines of new code implementing full savings goal management with milestone tracking.
Backend (Flask)
savings_goals,goal_milestones,goal_contributionstables with proper indexes and foreign keys/api/savings-goalsPOST /— create goal with optional custom milestonesGET /— list goals with status/category filteringGET /<id>— get goal with milestones and recent contributionsPUT /<id>— update goal detailsDELETE /<id>— soft-delete (archive) goalPOST /<id>/contribute(deposit/withdraw)GET /statswith totals, category breakdown, completion ratesFrontend (TypeScript)
app/src/api/savings.ts)Tests
Closes #133