Skip to content

feat: Implement Weekly Smart Digest (fixes #121)#1182

Open
Ishant5436 wants to merge 1 commit into
rohitdash08:mainfrom
Ishant5436:feat/weekly-smart-digest
Open

feat: Implement Weekly Smart Digest (fixes #121)#1182
Ishant5436 wants to merge 1 commit into
rohitdash08:mainfrom
Ishant5436:feat/weekly-smart-digest

Conversation

@Ishant5436
Copy link
Copy Markdown

This PR implements the weekly smart digest as requested in #121.

Changes:

  • Added weekly_digest_suggestion logic to app/services/ai.py to compute user spending trends, compare with budgets, and generate insights using Gemini with a heuristic fallback.
  • Added /weekly-digest endpoint to app/routes/insights.py to fetch the latest analytics.
  • Added send-weekly-digests CLI command to app/__init__.py for cron-scheduled bulk sending.
  • Added comprehensive unit tests in tests/test_insights.py.

Tests pass locally.

@Ishant5436 Ishant5436 requested a review from rohitdash08 as a code owner June 5, 2026 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant