ankane / blazer

Business intelligence made simple
MIT License
4.5k stars 471 forks source link

[Idea] Customizing Time Ranges #430

Closed jnunemaker closed 1 year ago

jnunemaker commented 1 year ago

Love blazer. I use it on all my projects.

One thing I've been wanting is more time ranges in the time range picker.

Currently these are the ranges: https://github.com/ankane/blazer/blob/41f8df223ac3cfd3ef32399dbe8e5b84f84b0b92/app/views/blazer/_variables.html.erb#L90-L94

I'd love to add more (similar to quickbooks, see below) if that's ok or make a way for it to be configurable from blazer.yml.

I don't think we'd need all of the options below, but perhaps adding this week, (month, quarter, year), last week (month, quarter, year), along with "X to date" on those (like year to date) would be really helpful.

Any opposition to this or things I should know prior to cutting a PR?

Quickbooks drop down

Screenshot 2023-02-03 at 10 42 24 AM Screenshot 2023-02-03 at 10 42 31 AM Screenshot 2023-02-03 at 10 42 38 AM

jnunemaker commented 1 year ago

Apologies. I just saw https://github.com/ankane/blazer/pull/313/files.