Repository navigation
Add Excel report generation API (#67, 1/2) - #212
Merged
Merged
Conversation
This was referenced Nov 1, 2026
NotThaDev
marked this pull request as ready for review
November 15, 2026 11:02
NotThaDev
force-pushed
the
feature/67-report-api
branch
2 times, most recently
from
November 17, 2026 10:04
d9334a2 to
29d1b9d
Compare
NotThaDev
force-pushed
the
feature/67-report-api
branch
from
November 17, 2026 10:15
29d1b9d to
3eabf5f
Compare
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.
Part 1 of 2 for #67. Targets
main.What
Reportentity stores the generated.xlsx(bytea) with period, label, size; migrationAddReports(FK to user, cascade, index(UserId, CreatedAt)).ReportPeriodRange: previous complete calendar month / quarter / year and the period before it (UTC, end exclusive).ReportCalculator(pure): KPIs (income, expenses, net, savings rate, saved, invested, avg daily expense, largest expense, opening/closing balance, count) for the total and per pocket, trend buckets (daily for a month, monthly otherwise) with a Transfers column that reconciles each closing balance and a comment naming the other pocket of each move, categories with share and Δ vs previous, top expenses and top descriptions.ReportWorkbook(EPPlus 8.7.2): Summary, Trend, Expenses by category, Income by category, Top spending, onePocket - <name>sheet per pocket, Transactions (Excel table with totals). Native charts; skipped when there is no data./api/reports:GETlist (no bytes),POST {period}(201, max 50 per user),GET {id}/download,DELETE {id}.backend/docs/Reports.md, README links, backend skill.Why
Analytics.IsIncome/IsExpense(nowinternal) so report numbers match the Analytics page.Tested
dotnet format --verify-no-changes, Release build,dotnet test: 153/153.Out of scope
🤖 Generated with Claude Code