-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Infra UI] Replace jump menu with EUI datepicker #20422
Merged
weltenwort
merged 3 commits into
elastic:feature-infra-ui
from
weltenwort:infra-ui-enhancement-eui-datepicker
Jul 13, 2018
Merged
[Infra UI] Replace jump menu with EUI datepicker #20422
weltenwort
merged 3 commits into
elastic:feature-infra-ui
from
weltenwort:infra-ui-enhancement-eui-datepicker
Jul 13, 2018
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
weltenwort
changed the title
[WIP] Replace jump menu with EUI datepicker
[WIP] [Infra UI] Replace jump menu with EUI datepicker
Jul 3, 2018
4 tasks
weltenwort
force-pushed
the
infra-ui-enhancement-eui-datepicker
branch
from
July 6, 2018 14:46
f2da831
to
bb20bd7
Compare
💔 Build Failed |
weltenwort
force-pushed
the
infra-ui-enhancement-eui-datepicker
branch
from
July 9, 2018 16:55
a6dd6f4
to
c25b752
Compare
💔 Build Failed |
weltenwort
force-pushed
the
infra-ui-enhancement-eui-datepicker
branch
from
July 12, 2018 09:50
c25b752
to
8a6386d
Compare
💔 Build Failed |
weltenwort
force-pushed
the
infra-ui-enhancement-eui-datepicker
branch
from
July 12, 2018 14:02
8a6386d
to
2f82f2a
Compare
This replaces the "Jump to time" menu with the EUI datepicker. It also tweaks the design of the streaming toggle. The date and time formats of the datepicker are depend on the current browser locale via the corresponding Moment.js format string tokens.
This wraps the `ScrollableLogTextStreamView` in a HoC, which in turn uses the `withStateFromLocation` HoC to retrieve the scroll state from the URL. It also updates the location accordingly when the visible log interval changes. The connection between the location and the app state is implemented as a HoC, because the location can be seen as a part of the UI. Additionally, this keeps the implementation agnostic of the state management used in the app, be it redux or apollo-link-state. The serialization is performed using the `mapStateToRisonAppLocation` and `mapRisonAppLocationToState` functions, that use the `_a` key of the query string for the sake of consistency with many parts of Kibana.
weltenwort
force-pushed
the
infra-ui-enhancement-eui-datepicker
branch
from
July 12, 2018 14:18
2f82f2a
to
4c588e2
Compare
weltenwort
changed the title
[WIP] [Infra UI] Replace jump menu with EUI datepicker
[Infra UI] Replace jump menu with EUI datepicker
Jul 12, 2018
💔 Build Failed |
simianhacker
approved these changes
Jul 12, 2018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (tested)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This replaces the "Jump to time" menu with the EUI datepicker. It also tweaks the design of the streaming toggle. The date and time formats of the datepicker are depend on the current browser locale via the corresponding Moment.js format string tokens.
It also stores the current scroll state of the log view in the url such that it persists across reloads and can be shared between users.
Normal
Open
Streaming