feat: Add AI-powered weekly financial digest#943
Open
168062576-tech wants to merge 1 commit intorohitdash08:mainfrom
Open
feat: Add AI-powered weekly financial digest#943168062576-tech wants to merge 1 commit intorohitdash08:mainfrom
168062576-tech wants to merge 1 commit intorohitdash08:mainfrom
Conversation
## Summary Adds an AI-powered weekly financial digest feature that generates actionable insights, highlights, and tips based on user spending patterns. ## Features ### Backend - **Week Summary Generation**: Aggregate weekly financial data - **AI-powered insights**: Uses Gemini API to generate personalized insights - **Heuristic fallback**: Pure Python implementation when AI unavailable - **Week-over-week comparisons**: Percentage changes vs previous week - **Top spending categories**: Breakdown by expense category - **Upcoming bills integration**: Bills due this week - **Email endpoint**: Prepares email content (placeholder) ### Backend API - GET /weekly-digest/weekly-summary - Get weekly digest with AI insights - POST /weekly-digest/weekly-summary/send-email - Send digest email ### Frontend - **API Client**: TypeScript types and API functions - **Page Component**: WeeklyDigest.tsx with summary cards, insights, categories - **Navigation**: Added 'Weekly Digest' to Navbar menu - **Route**: /weekly-digest (Protected Route) ### Tests - 6 Backend integration tests - 3 Frontend component tests ## Acceptance Criteria (Issue rohitdash08#121) - ✅ Production ready implementation - ✅ Includes tests - ✅ Documentation ready for future email integration - ✅ AI-powered insights via Gemini API with heuristic fallback
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 an AI-powered weekly financial digest feature as requested in issue #121. The feature provides users with personalized insights, highlights, and actionable tips based on their weekly spending patterns.
Features
Backend
API Endpoints
Frontend
Tests
Acceptance Criteria for Issue #121
Closes #121