-
Notifications
You must be signed in to change notification settings - Fork 0
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
[SpaceTime] [Saved Search] Inline editing #10
[SpaceTime] [Saved Search] Inline editing #10
Conversation
a87c86e
to
d263fa8
Compare
Really impressive work here @Heenawter! After testing this locally, my recommendation is not to re-use the main Unified Search bar for the saved search panel. During my testing this felt quite confusing and I had already watched the recording where Hannah explains the behavior. I anticipate this causing confusion to users who are completely new to the feature. Instead, I suggest we incorporate some of the ideas @MichaelMarcialis had explored as he was iterating on (*) Doesn't include functionality for loading and saving queries, which Hannah and I think should be excluded from this UI. Note The above is a quick mock and we still have a number of open questions which include
|
Branched from elastic#180536
Warning
This PR is just a proof of concept - I made some changes to behaviour that would need a longer discussion before it is ready to be merged. Would also definitely need some design help 🙈
Summary
This PR is a proof of concept for inline editing + creation for the saved search embeddable. When creating a new saved search embeddable via the dashboard, I opted to only include ES|QL editing - however, editing existing saved search embeddables based on data views is also supported.
Data view
Note that, in the following video, opening the editor flyout causes the "Auto refresh" option to be removed from the time picker in the unified search bar - this is because auto-refresh is not applicable at a panel level.
Screen.Recording.2024-06-27.at.12.15.01.PM.mov
ES|QL
Note that, in the following video, opening the editor flyout causes everything in the unified search bar except the time filter to get disabled - that is because the time range is the only applicable local filter for ES|QL saved searches. The auto-refresh is also removed in this editor, just like for data view saved searches.
Screen.Recording.2024-06-27.at.12.00.28.PM.mov
Other notes
As part of this, I also made a few changes to the saved search embeddable to make its behaviour more consistent with other embeddables: