feat: Add weekly financial digest with smart insights#253
Open
DebuggingMax wants to merge 1 commit intorohitdash08:mainfrom
Open
feat: Add weekly financial digest with smart insights#253DebuggingMax wants to merge 1 commit intorohitdash08:mainfrom
DebuggingMax wants to merge 1 commit intorohitdash08:mainfrom
Conversation
Implements a comprehensive weekly financial summary digest feature with: - GET /digest/weekly - Full weekly digest with all data - GET /digest/weekly/summary - Condensed summary for widgets Features: - Week period info (start, end, week number) - Summary: income, expenses, net flow, transaction count - Week-over-week trends with percentage changes - Category breakdown with percentages and counts - Daily breakdown (Mon-Sun) for spending patterns - Upcoming bills due within the week - Top transactions for quick review - AI-powered insights via Gemini (falls back to heuristics) - Caching for performance (5 min TTL) Files added: - packages/backend/app/services/digest.py - Core digest logic - packages/backend/app/routes/digest.py - API endpoints - packages/backend/tests/test_digest.py - Comprehensive tests Updated: - OpenAPI spec with new endpoints and schemas - README with feature documentation - Routes __init__.py to register blueprint Closes rohitdash08#121
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.
Summary
This PR implements issue #121: Smart digest with weekly financial summary.
Features Added
New Endpoints
GET /digest/weekly- Comprehensive weekly financial digestGET /digest/weekly/summary- Condensed summary for dashboard widgetsWeekly Digest Contents
Technical Implementation
packages/backend/app/services/digest.py- Core digest generation logicpackages/backend/app/routes/digest.py- API endpoints with validation and cachingpackages/backend/tests/test_digest.py- 11 comprehensive testsCaching
Testing
Acceptance Criteria Met
Closes #121