Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add more available date ranges to the date range dropdown #14

Open
gruns opened this issue Dec 2, 2022 · 0 comments
Open

add more available date ranges to the date range dropdown #14

gruns opened this issue Dec 2, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@gruns
Copy link
Contributor

gruns commented Dec 2, 2022

image

to add:

  • past 90 days
  • past 365 days
  • customizable date range with granularity to the hour. eg they can select 12pm on 2022-11-01 to 2pm on 2022-11-02
  • all monthly earnings periods from november 2022 to the current month, inclusive

at a high level, these date ranges fall into three groups:

  • past N days
  • past monthly earnings periods
  • customizable date range

my first idea on the best way to visually separate all the options is into three discrete groups/sections in the new date range dropdown. each section can be separated with a divider and/or subtitle. for example:


#### Past N days
* Past 24 hours
* Past 7 days
* Past 30 days
* Past 90 days
* Past 365 days

#### Earnings periods
* November 2022
* December 2022
* January 2023

#### Date Range
[start date selector] [end date selector]

for the available earnings periods, make available all earnings period months from the current month back to november 2022, inclusive. this can be done client side in JS by looking at the current month, eg with new Date(), and then include the current month and all months back to, and including, november 2022

this new date range dropdown div will be larger than the current dropdown. so it could either open up in a bigger dropdown, like:

image

or if that's still too cramped or awkward, the date range could be moved to the upper right of the page

image

like google analytics

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants