ankane/blazer

[Idea] Customizing Time Ranges

jnunemaker opened this issue · 1 comments

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:

ranges: {
"Today": [dateStr(), dateStr()],
"Last 7 Days": [dateStr(6), dateStr()],
"Last 30 Days": [dateStr(29), dateStr()]
},

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