Repository navigation
Monthly and budget-period reports, discount totals, default receipts filter, dates in the app's language - #113
Merged
Merged
Conversation
…pts filter and app-language dates - Reports page gets tabs: categories, month by month (bars per month, per category) and budget across periods (plan vs spending per group, editors only). - Receipts list shows the discounts of the filtered receipts under the total; a receipt shows its own discount. - Receipts list starts from the first day of the previous month; an empty "from" in the address still shows every date. - Dates are picked with MudBlazor's calendar, which follows the app's language instead of the browser's (dd.MM.yyyy in Polish). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TDvFH9QhdsTuo8nmnfmBxm
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.
Requested by Frognar · project thread
Before: Reports had only spending by category. Discounts were visible only per line. The receipts list opened with no date filter. Date fields were the browser's native picker, so on a browser set to English the Polish UI showed MM/DD/YYYY.
After: Reports has three tabs: Kategorie (unchanged), Miesiące (one bar per month for all categories or a chosen one, with the average of full months and a list of categories by monthly average), and Budżet (editors only: the last 3/6/12 periods side by side, spent vs planned per group in red when over, outside groups, total, funds, free pool, and an average of finished periods). The receipts list shows "Rabaty" under the filter total, and a receipt shows its discount under its total. The receipts list starts from the first day of the previous month. Dates use MudBlazor's calendar, which follows the app language (dd.MM.yyyy, Monday first in Polish).
Clearing the filters still shows every date: the page address keeps an empty
from=for that, and only an address withoutfromgets the default.How: new endpoints
GET /api/v1/reports/monthly?months=(1–24, default 6) andGET /api/v1/budget/history?count=(1–24, default 6, editors only; periods that have started, oldest first, built from the same per-period calculation as the budget screen).ReceiptResponse.DiscountandReceiptListResponse.TotalDiscountcome from SQL / the domain. API tests cover both reports and the discount totals. Screenshots are in the project files underscreens/raporty.🤖 Generated with Claude Code
https://claude.ai/code/session_01TDvFH9QhdsTuo8nmnfmBxm
Generated by Claude Code