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
463 stars 491 forks source link

Add "prior year" to the date range drop downs #4082

Open cielf opened 9 months ago

cielf commented 9 months ago

Summary

Add "prior year" to the date range drop downs throughout.

Why?

In January, a lot of people are trying to get information about the year before. They very often are not entering the date range correctly, which causes exceptions

Details

The prior year range should be January 1 - December 31 of the calendar year preceding the current calendar year. i.e. in 2024 it would be January 1 2023 - December 31 2023. I suggest that you can likely use the "this year" selection as a model.

This might conflict with the Dashboard change that is coming in in the next few weeks at time of writing (January 2024). Be aware of that.

Criteria for completion

Gabe-Torres commented 7 months ago

Is this issue still open? Would love to take it

cielf commented 7 months ago

Hey @Gabe-Torres, it's technically open, but blocked by a PR that's currently in review. @awwaiid -- would it make sense for @Gabe-Torres to take this on branching off of the Dashboard branch?

cielf commented 5 months ago

No longer blocked -- Dashboard has been merged into main.

noah-puckett commented 4 months ago

Hi @cielf, could I try taking this one on?

cielf commented 4 months ago

Sure!

noah-puckett commented 4 months ago

Currently a bit blocked due to codespaces no longer working for me, due to getting failed javascript runtime errors as described in this PR.

jimmyli97 commented 4 months ago

Currently a bit blocked due to codespaces no longer working for me, due to getting failed javascript runtime errors as described in this PR.

For now you can run nvm install node followed by rbenv init in the shell of your choice and that should resolve the error until the PR gets merged

github-actions[bot] commented 3 months 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 months ago

Automatically unassigned after 7 days of inactivity.