filecoin-saturn / L1-dashboard

https://dashboard.saturn.tech
Other
6 stars 4 forks source link

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

Open gruns opened 1 year ago

gruns commented 1 year ago

image

to add:

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

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