This repository has been archived by the owner on Jul 12, 2024. It is now read-only.
Component: Date Picker Display / Launcher #62
Labels
focus: analytics
Issues about Analytics/Reports
type: enhancement
The issue is a request for an enhancement.
Child task of #59
The Date Picker will be shown in a variety of situations ( ref the parent task above and linked p2 post for more design background there ), but one recurring use case is it being launched via a drop/down popover selector. For example, this is how it would appear when launched from the Store Performance block:
Closed
![date-picker-launcher](https://user-images.githubusercontent.com/22080/40151874-2fc9dcbe-5937-11e8-8fc7-a41fe45d60d2.png)
Open
![date-picker-launcher-open](https://user-images.githubusercontent.com/22080/40151878-35c00238-5937-11e8-86e0-f3aafeccb789.png)
Based off the design, it seems the launcher/display needs to be aware of possible props:
isOpen <Bool>
Is the date picker currently open/shownlabel <String/>
The active date range, summarized for the label shownAnd it seems like it should be aware of the start/end date of both ranges ( the range being shown and the one being compared against ). Though not 💯 certain on that.
Design Needs
I did note this in a prior p2 conversation that thus far most of the designs have always shown "Today vs Yesterday" in the launcher label. I think we need to have some design mocks done for other things like custom date ranges, or "This Quarter vs Last Quarter" - strings that will overflow the minimal space we have to display text. /cc @LevinMedia @jameskoster
The text was updated successfully, but these errors were encountered: