Skip to content

feat: smart weekly financial digest with trends and insights (#121)#764

Open
alexchenai wants to merge 1 commit intorohitdash08:mainfrom
alexchenai:feat/weekly-digest-121
Open

feat: smart weekly financial digest with trends and insights (#121)#764
alexchenai wants to merge 1 commit intorohitdash08:mainfrom
alexchenai:feat/weekly-digest-121

Conversation

@alexchenai
Copy link
Copy Markdown

Summary

Implements a GET /weekly-digest/ endpoint that generates a comprehensive weekly financial summary for users.

Features

  • Week range calculation anchored to any date (defaults to current ISO week)
  • Total spending and income for the week
  • Category breakdown with percentage of total
  • Top single expense of the week
  • Week-over-week spending change (percentage delta vs previous week)
  • Upcoming bills in the 7 days following the current week end
  • Auto-generated plain-English insights:
    • Overspend alert (>20% increase vs last week)
    • Underspend recognition (>20% decrease vs last week)
    • Dominant category warning (>50% concentration)
    • Missing income notice
    • Upcoming bills reminder

Endpoints

  • GET /weekly-digest/ - Returns the weekly digest for the current week
  • GET /weekly-digest/?date=YYYY-MM-DD - Returns digest anchored to the specified date

Tests

11 passing, 2 skipped (Flask integration tests skipped without a full test server config)

Closes #121

…sh08#121)

Implements GET /weekly-digest/ endpoint that generates a comprehensive
weekly summary of a user financial activity.

Features:
- Week-over-week spending change (percentage)
- Category breakdown with percentage of total
- Top single expense of the week
- Upcoming bills in next 7 days from week end
- Auto-generated plain-English insights (overspend alerts, income gaps)
- Optional date query param to anchor to any historical week

Tests: 11 passing, 2 skipped (Flask integration skipped without full server)

Closes rohitdash08#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