rubyforgood / human-essentials

Human Essentials is an inventory management system for diaper, incontinence, and period-supply banks. It supports them in distributing to partners, tracking inventory, and reporting stats and analytics.
https://humanessentials.app
MIT License
446 stars 472 forks source link

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

Open cielf opened 2 months ago

cielf commented 2 months ago

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

pshong79 commented 2 months ago

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

cielf commented 2 months ago

It is yours!

github-actions[bot] commented 3 weeks ago

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] commented 2 weeks ago

Automatically unassigned after 7 days of inactivity.

cielf commented 2 weeks ago

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.