feat: Smart weekly financial digest with trends and insights#222
Open
dagangtj wants to merge 2 commits intorohitdash08:mainfrom
Open
feat: Smart weekly financial digest with trends and insights#222dagangtj wants to merge 2 commits intorohitdash08:mainfrom
dagangtj wants to merge 2 commits intorohitdash08:mainfrom
Conversation
Implements smart weekly summary feature (closes rohitdash08#121): - GET /digest/weekly endpoint with year/week params - Aggregates income, expenses, transaction count per week - Computes week-over-week trends (expense/income change %) - Category breakdown with share percentages - Daily spending breakdown - Top transactions by amount - Auto-generated insights (spending trends, category changes, peak days) - Redis caching (10min current week, 1hr past weeks) - Cache invalidation on expense changes - OpenAPI spec updated - 14 tests covering endpoint and service logic - Documentation updated
- Add /digest/weekly API with JWT auth - Aggregate weekly expenses, income, category breakdown - Week-over-week spending comparison - Upcoming bills for the week - Smart highlights (spending trends, top category, bills due) - Redis caching with 15min TTL - Comprehensive test coverage (5 tests)
Author
|
Hi @rohitdash08, this PR is ready for review. All acceptance criteria met: production-ready implementation, tests included, and follows existing code patterns. Let me know if any changes are needed! |
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
Implements the weekly financial digest feature requested in #121.
Changes
GET /digest/weekly?year=&week=returns comprehensive weekly summaryTechnical Details
Files Changed
packages/backend/app/routes/digest.py- New endpointpackages/backend/app/services/weekly_digest.py- Core logicpackages/backend/tests/test_digest.py- Test suitepackages/backend/app/openapi.yaml- API specREADME.md- DocumentationCloses #121