-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add 'Prior year to date' time range #5419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for actualbudget ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Bundle Stats — desktop-clientHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger
Smaller No assets were smaller Unchanged
|
Bundle Stats — loot-coreHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
WalkthroughThis change adds a new "Prior year to date" date range option to the desktop client's reporting components. The option is integrated into the date range selection UI, the array of available date range options, and the list of disabled interval options. The date range calculation logic is extended with a new mode to compute the start of the previous year through the equivalent date last year. The Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested labels✨ Merged Suggested reviewers
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (7)
📒 Files selected for processing (7)
🚧 Files skipped from review as they are similar to previous changes (7)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
"Last year to date" reads to me as "from the start of last year, to the current date on this year". Eg today 2024-01-01 -> 2025-08-02 I agree though, better wording is difficult. I'll keep thinking it over, but I don't want to merge yet. |
The only two I can come up with:
|
It seems that PYTD (Prior/Previous Year to Date) is a term used in financial reports globally, so I guess your idea is the good one :D |
/update-vrt |
ba34c24
to
b437336
Compare
b437336
to
2d4ed6e
Compare
2d4ed6e
to
a558000
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
I can see the use in this, so I'll add my approval.
We do need to be careful that we don't clutter the top bar with lots of more niche filters that could be set up manually for those that want them though.
Will give it a couple of days for any other opinions before I merge.
At some point it would be nice to just have the live ranges be configurable. That would remove the need for most of the different range options that are there. |
* add 'Last year to date' time range * Rename 'Last YTD' to 'Prior YTD' * Day accurate prevYear for Prior YTD * Update VRT
@youngcw just out of interest, would something akin to Datadog's |
We would need to have a date range picker that supported start and end dates, as well as an update time. So pick a starting window, then you need to decide if you want that window to update every year, quarter, month, week, day, etc. |
This add a live time range similar to "Year to date" but for the previous year.
This is useful to compare to current and previous year on the same time range.
I am not sure of the wording though (nor the placement withing the dropdown).