feat: smart weekly financial summary digest#695
Open
shaidshark wants to merge 2 commits intorohitdash08:mainfrom
Open
feat: smart weekly financial summary digest#695shaidshark wants to merge 2 commits intorohitdash08:mainfrom
shaidshark wants to merge 2 commits intorohitdash08:mainfrom
Conversation
Implements weekly financial digests with: - Comprehensive weekly summary (income, expenses, net flow, savings rate) - Week-over-week trends analysis - Spending breakdown by category - Notable transactions highlights - Upcoming bills preview - AI-generated financial insights - Email delivery via existing SMTP infrastructure - Scheduled weekly generation (Sundays 9 AM UTC via APScheduler) New endpoints: - GET /digest/weekly - Get weekly digest data - POST /digest/weekly/send - Send digest email - GET /digest/weekly/preview - Preview email content - GET /scheduler/status - Check scheduler status CLI commands: - flask generate-digest --user-id ID --send-email Fixes rohitdash08#121
Author
|
I pushed a small follow-up to improve merge readiness: removed a redundant imedelta import in the digest route and made the weekly digest email use the user's preferred currency symbol instead of hardcoded USD formatting. This keeps the feature safer for non-USD users without changing the overall digest behavior. |
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 a comprehensive weekly financial digest feature as requested in #121.
Features
Weekly Financial Summary
Delivery
New Endpoints
CLI Commands
\\�ash
Generate digest for all users
flask generate-digest
Generate for specific user with email
flask generate-digest --user-id 1 --send-email
\\
Implementation Details
New Files
Modified Files
Testing
Tests cover:
\\�ash
Run digest tests
pytest packages/backend/tests/test_digest.py -v
\\
Example Email
\
Hello user@example.com,
Here's your weekly financial summary for 2024-01-08 to 2024-01-14:
═══════════════════════════════════════════════════
OVERVIEW
═══════════════════════════════════════════════════
Total Income: ,000.00
Total Expenses: .00
Net Flow: .00
Savings Rate: 60.00%
Transactions: 5
═══════════════════════════════════════════════════
INSIGHTS
═══════════════════════════════════════════════════
💡 Excellent savings rate of 60.0%! You're on track for strong financial growth.
💡 Your highest spending category was 'Food' at .00 (75.0% of total).
\\
Acceptance Criteria Met
Fixes #121