human-essentials icon indicating copy to clipboard operation
human-essentials copied to clipboard

Add more shortcuts to the date range selection -- last year, last 12 months

Open cielf opened this issue 1 year ago • 5 comments

Summary

We should have a couple more shortcuts on the date range selectors throughout the system --prior year, and last 12 months

Why?

At the beginning of each year, especially, the default "this year" is not very useful, and the banks have trouble getting the lists they want out of the system

Details

There are several places where we use date ranges -- many of the indices are filterable by date. I'm not sure if they are all using the same piece of code to specify the shortcuts-- I hope so! Prior year --- this would be January 1 to December 31 of the calendar year before the current year Last 12 months -- this would be going back 12 months from today (if today is July 14, 2024, the range should be July 15, 2023 to July 14, 2024).

Criteria for completion

  • [ ] the two shortcuts are in place
  • [ ] tests to demonstrate that they work, wherever we are already doing date-related testing

cielf avatar Jul 14 '24 15:07 cielf

Hi. 👋 It's been a minute. Can I try and pick this up?

pshong79 avatar Jul 14 '24 19:07 pshong79

It is yours!

cielf avatar Jul 14 '24 23:07 cielf

This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned.

github-actions[bot] avatar Aug 28 '24 00:08 github-actions[bot]

Automatically unassigned after 7 days of inactivity.

github-actions[bot] avatar Sep 04 '24 00:09 github-actions[bot]

This one has an outstanding PR that needs a little work - @pshong79 said it's ok if someone else takes it over the finish line.

cielf avatar Sep 04 '24 13:09 cielf