Repository navigation
feat(report): one year at a time, or all - #73
Merged
Merged
Conversation
A person with payslips of several years gets a report of each year besides the whole, chosen from a row of years under their name: the months, charts, totals and contract of that year only. A month is still compared with the one before it, even in the year before. The choice keeps the tab shown; another person starts on all their years. The synthetic payslips take a year (synth -year).
6 tasks done
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.
Summary
With payslips of several years, the report mixed them all. A person with payslips of two or more years now gets a row of years under their name ("All · 2023 · 2024 · 2025 · 2026"). Choosing one narrows the whole report to that year.
What the year view shows
buildkeeps the full list forinsights.Previous.How it is built
Views: for each person, the whole report and one per year.<template data-person data-year>. The script swaps them, the same way it swaps people, and re-runsinit.Synthetic payslips: they take a year (
synth -year).Type of change
Checklist
CHANGELOG.mdupdated underUnreleasedfor user-visible changesNotes for the reviewer
Tests
TestYearscovers:Size
Local checks
go test -race, the web unit tests and the 14 e2e tests in Chromium pass.