Skip to content

feat: add weekly smart digest financial summary endpoint#298

Open
lustsazeus-lab wants to merge 1 commit intorohitdash08:mainfrom
lustsazeus-lab:feat/issue-121-weekly-digest
Open

feat: add weekly smart digest financial summary endpoint#298
lustsazeus-lab wants to merge 1 commit intorohitdash08:mainfrom
lustsazeus-lab:feat/issue-121-weekly-digest

Conversation

@lustsazeus-lab
Copy link

@lustsazeus-lab lustsazeus-lab commented Mar 3, 2026

Summary

  • add GET /insights/weekly-summary for a 7-day financial digest
  • include totals, week-over-week trends, top categories, daily net flow, and actionable insights
  • expose weekly summary types/helpers in frontend API client
  • document endpoint in README and OpenAPI spec

Validation

  • python3 -m py_compile packages/backend/app/services/ai.py packages/backend/app/routes/insights.py packages/backend/tests/test_insights.py
  • exercised endpoint with in-memory SQLite + Flask test client (/insights/weekly-summary?end_date=2026-03-01 returned 200 and expected totals/trends)
  • note: full pytest run currently needs Redis host wiring in local env

Closes #121

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