Repository navigation
[EuiSuperDatePicker] “Now” tab titled “Set to Now” - #1620
Conversation
|
@cchaos Rewording helps a bit, but in my opinion this option is different than Absolute / Relative, in that those two translate each other, whereas Now destroys any date input you previously made. You can argue that relative translates Now, but not much help for the user as they will almost certainly have to start over. The expectations set in Absolute and Relative don't match the "Set to now". I'd much prefer to have it in the Relative pane because as you say, it's Would it make sense to put it in the Relative pane by the date input field, i.e.: The description in the Now pane could be displayed as a tooltip with a delay Alternatively, adding a button to the Now pane after the description, basically like an Apply button in the Quick select. |
|
@formgeist We've decided to go with the button options because adding the The "Set to now" text on the relative input doesn't really describe what the "now" time means. We still think the description in the tab is valuable. I've updated the description of the PR, can you take another look? @nreese I'm adding you as a PR reviewer. If you don't mind checking over my onChange event handlers and making sure that the Kibana implementation will be good with it. |
|
My only concern with this change is it makes the |
nreese
left a comment
There was a problem hiding this comment.
code changes lgtm as long as everyone is happy with the fact that switching tabs has incosistent behavior across absolute, relative, and now
|
That's correct. We understand that just switching to the Now tab does nothing until you hit the button. It allows for more discoverability of the option without losing the previous selection since switching between relative and absolute stays around the selected date, while the now tab would change the selected date. Any thoughts on why the update button would not update correctly anymore? |
that is actually a bug in master |
|
Ohh it's on master. I checked the published docs so I thought it was my fault. Ok. Do we have an issue or PR for it? |
I have not seen one. First time I have seen the issue |
|
hmm, I'll check the change log. Thanks @nreese ! |
|
Mysteriously, it's working again.... |
formgeist
left a comment
There was a problem hiding this comment.
LGTM 👍Much calmer introduction of the Now option.
…he "now" time selection (elastic#1620)" This reverts commit 255d330.
…he "now" time selection (elastic#1620)" This reverts commit 255d330.
…rigger the "now" time selection (elastic#1620)"" This reverts commit d74f18f.


Fixes #1598 by changing the wording of the tab.
Checklist
[ ] This was checked in mobile[ ] This was checked in IE11[ ] This was checked in dark mode[ ] Any props added have proper autodocs[ ] Documentation examples were added[ ] This was checked for breaking changes and labeled appropriately[ ] Jest tests were updated or added to match the most common scenarios[ ] This was checked against keyboard-only and screenreader scenarios[ ] This required updates to Framer X components