feat: smart weekly financial digest with trends and insights#359
Open
CorradoZDeLuca wants to merge 2 commits intorohitdash08:mainfrom
Open
feat: smart weekly financial digest with trends and insights#359CorradoZDeLuca wants to merge 2 commits intorohitdash08:mainfrom
CorradoZDeLuca wants to merge 2 commits intorohitdash08:mainfrom
Conversation
Implements three endpoints under /gdpr: - GET /gdpr/export — collects all user-linked data (profile, categories, expenses, recurring expenses, bills, reminders, subscriptions) into a structured JSON response. Excludes password_hash. Logs a PII_EXPORT audit event. - POST /gdpr/delete — permanently deletes the user account after password re-verification. Leverages existing ON DELETE CASCADE foreign keys to remove all associated records. Audit log entry survives via ON DELETE SET NULL, preserving compliance records after deletion. - GET /gdpr/audit — returns the authenticated user's audit trail sorted by most recent first. Includes 18 tests covering: auth guards, export completeness, password verification, cascade deletion, audit log persistence, and edge cases. Closes rohitdash08#76
…sh08#121) - GET /digest/weekly — full weekly summary with spending/income totals, week-over-week comparison, top categories, daily breakdown, upcoming bills, and auto-generated insights - GET /digest/weekly/history — multi-week history (up to 12 weeks) - 26 tests covering auth, calculations, date validation, empty data, history pagination, and audit logging - Smart insights engine: spending trend warnings, savings celebrations, top category alerts, upcoming bill reminders - Follows existing codebase patterns (Flask Blueprint, jwt_required, SQLAlchemy) - No new dependencies /claim rohitdash08#121 Closes rohitdash08#121 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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 Smart Digest with Weekly Financial Summary requested in #121:
Smart Insights Engine
Auto-generates actionable insights: spending increase warnings, savings celebrations, top category alerts, upcoming bill reminders, and no-data prompts.
Tests
26 tests covering auth, calculations, date validation, empty data, history pagination, and audit logging.
Checklist
/claim #121
Closes #121