Skip to content

feat: add weekly financial digest insights#1036

Open
wognsdl2 wants to merge 1 commit into
rohitdash08:mainfrom
wognsdl2:smart-weekly-digest
Open

feat: add weekly financial digest insights#1036
wognsdl2 wants to merge 1 commit into
rohitdash08:mainfrom
wognsdl2:smart-weekly-digest

Conversation

@wognsdl2
Copy link
Copy Markdown

Summary

  • Adds a new authenticated /insights/weekly-digest endpoint for weekly income, expense, net-flow, previous-week comparison, daily totals, top categories, insights, and recommended actions.
  • Exposes a frontend getWeeklyDigest API client and TypeScript response type.
  • Documents the endpoint in OpenAPI and README.
  • Adds focused tests for weekly digest success and invalid week_start, plus a fake Redis test client so auth/cache tests run without a live Redis container.

Verification

  • python -m black --check packages/backend/app/services/ai.py packages/backend/app/routes/insights.py packages/backend/tests/test_insights.py packages/backend/tests/conftest.py
  • python -m flake8 packages/backend/app/services/ai.py packages/backend/app/routes/insights.py packages/backend/tests/test_insights.py packages/backend/tests/conftest.py
  • python -m pytest tests/test_insights.py -q from packages/backend

Closes #121

@wognsdl2 wognsdl2 requested a review from rohitdash08 as a code owner May 13, 2026 13:17
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.

Smart digest with weekly financial summary

1 participant