This repository was archived by the owner on Jun 19, 2026. It is now read-only.
feat: Smart Digest - Weekly Financial Summary (#121)#147
Open
George3307 wants to merge 1 commit into
Open
Conversation
…8#121) - Backend: GET /digest/weekly endpoint with category breakdown, week-over-week comparison, trends, and smart insights - Frontend: Digest page with card-based UI, category bars, WoW change badges, week navigation - Tests: 6 test cases covering empty/populated/WoW/auth/validation - Docs: Updated README with digest endpoint and UI description Closes rohitdash08#121
Author
✅ All Tests PassingFull test suite (existing + new digest tests) runs clean:
No regressions. All 19 tests pass on Python 3.13 + SQLite (in-memory) + Redis. |
Owner
|
@George3307, just following up on this are you still working on this? Can you please connect over discord to discuss this further? @geekster007 |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
/claim #121
Summary
Implements the Smart Digest feature — weekly financial summaries highlighting spending trends and insights.
What's New
Backend (
packages/backend/):GET /digest/weekly?week=YYYY-WNN— new endpoint returning weekly spending summaryapp/services/digest.py— business logic: category aggregation, week-over-week comparison, trend detectionapp/routes/digest.py— route with input validation and JWT authapp/routes/__init__.pyFrontend (
app/):pages/Digest.tsx— card-based weekly summary pageapi/digest.tswith TypeScript typesApp.tsx, nav link inNavbar.tsxTests (
packages/backend/tests/test_digest.py):Docs:
API Response Shape
{ "week": "2026-W08", "period": {"start": "2026-02-16", "end": "2026-02-22"}, "total_spent": 350.0, "category_breakdown": {"Food": 150.0, "Transport": 200.0}, "week_over_week_change": { "Food": {"current": 150.0, "previous": 100.0, "change": 50.0, "change_pct": 50.0} }, "trends": ["Top spending category: Transport (200.00)"], "insights": ["You spent 75.0% more this week compared to last week."] }Closes #121