-
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
data view side panel explore button #135224
Conversation
a269e39
to
1fe308f
Compare
85526a2
to
dfda7e2
Compare
I think this is great as a first step 👍 I think it would make sense to show a tooltip when hovering over the button (something like "Use Kibana without persisting the data view. You can always save it later on") |
currently the tooltip says |
1b6c0c9
to
ed32da8
Compare
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.
I'm not sure how much feedback you want on the UX right now, but clicking "explore" doesn't select the ad-hoc data view (the previously-selected data view stays active), and it still says "Saved ." Can we make the notification text conditional on whether a saved object was actually created, and switch to the ad-hoc data view when "explore" is clicked?
@lukasolson no application is integrated with this jet, so explore button should never show up yet. If you would to enable it you would also need to correctly handle the ad hoc dataview (show it in the dropdown etc). @ghudgins what do you think about changing the notification text ? |
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
+1 for that, I'm currently having hands on this PR, and I think the text should be conditional |
I think this is out of scope for this PR - the consumer has to take care of that (Discover / Lens / ...) |
yes, adhoc data view gets an id and its not going to change if the dataview is persisted. |
What if the 'Explore' button instead said 'Preview data view'? And then the tooltip text:
Could maybe even go so far as to shorten them to be If we show a toast following these actions, when clicking 'Preview' we should mention it's not saved yet.
^^ That's not great copy, so just getting the idea down. |
We planned to also allow the user to save a Lens vis / discover search together with the ad-hoc data view - it won't show up in the data view listing, it's basically part of the vis/search. Not sure whether "preview" fully captures this, it sounds like you have to turn it into a "real" data view before being able to do anything else with it |
At what point would this ad-hoc view be discarded? If I'm able to create a Lens vis, and save it, does that then also save this data view? Apologies as I think I'm jumping into the middle here. How can I get this to show up if I run this PR locally? Or can we include the toast(s) in the pr description? Let me know if I'm expanding outside the scope of this PR :) |
+1 to Here's another suggestion for the tooltip:
I don't usually see a tooltip on a button. Is there another way we can present this information? |
@kertal can you share your code in a PR ? i am wondering why runtime fields etc are not working as it should come out of the box . |
Discussed with @gchaps and we are aligned on showing this tooltip on a button. There was some initial confusion on how this was presented, but having an EuiTooltip on a button is fine. |
This is so awesome 🙌 |
@gchaps Can you explain why you think "Preview" is the right wording in the context of #135224 (comment) ? I can totally imagining this way being a common approach of using Discover / Visualize at some point and at least to me "Preview" has a kind of temporary / "not the actual thing" feeling to it |
Here's a flow showing a complete path from creating an ad hoc view to saving it. When you all get a chance, do you mind reviewing it to make sure I am understanding the complete context? Hopefully this will also help lend some insight into what to label the buttons. I know that some of this is outside this PR and depends on the consumer of this, but thought it'd be good to nail down our preferred full flow for it regardless. Again, perhaps outside the scope here, but I didn't see how to save an ad hoc view once I've gone down the path of 'exploring' it. Whimsical flow |
This is a nice step forward but I wonder if long term it would make more sense to have a smaller UI for creating ad hoc data views. There's a lot of functionality in the main data view creation flow that we could reasonably expect a user to ignore if they're working quickly - ad hoc data views are unlikely to need a name (could just use the index pattern), field formatting and other field level options. |
@mattkime That's definitely the plan - @cchaos actually prepared some mockups for that already, but we decided to go with just the bare functionality and the existing UI first to de-risk shipping this. Then in a follow-up we can add an inline-ui (it's planned to live in the data view selection popover of unified search) |
I agree with @flash1293 that I also agree with @gchaps that Maybe we could come up with other ideas that are more explicit? I can't seem to get away with not changing the existing "Save data view to Kibana" because, technically, they're both data views in different states of re-use Here's an alternative:
...but i'm not sure I love it. ideas? |
Maybe we need to introduce the notion of the “data view library” to disambiguate? |
isn't the data view menu the library in this case? that's where you'll see data views. not sure we need another listing experience....but i'm also not sure the menu has a name for anyone but us |
That’s what I meant - we call the data views management page the “data view library” and refer to it as such everywhere. “Save to library” will have a clear meaning and it’s consistent with visualize library |
@flash1293 Sorry I missed your previous comment about "preview", and I see your point. Given your and Graham's suggestions, I wonder if this combination might work:
|
Hi! Sorry for jumping in here. As I understand we are introducing ad-hoc data views to make it easier/faster to start seeing data, right? I think having an option to not save a data view in a modal with "Create Data View" title looks confusing. Also we are integrating it inside the flyout which can be opened only after pressing "Create a data view" button in the data view switcher. User would have to make an extra decision at the end of the flow. What do you think about introducing a separate entry point? This way user decides first to save or not to save and then proceeds with entering an index pattern and a time field. And we could render a modal title and a single bottom button depending on that entry point. |
@jughosta we have plans for this in a subsequent phase. happy to share some designs to get your feedback! edit: this first phase is really about getting the minimum user interface in so we can work through the backend changes |
i would argue that everything you want to do with the saved one you want to do with the ad-hoc one. Yes possibly we want to have a quicker way to get there, but making some options not available at all just sets us back and gets us in this bad place again where the user experience is different based on wether you work with ad hoc or normal dataview. thats also the reason why i think the flow diagram @mdefazio posted is over complicated. It brings in lens, discover, .... |
@kertal it looks |
@ghudgins to move forward with this, what do you think about:
we leave the save dataview button for now and in a follow up we can rename the dataview management to dataview library and update all the other texts accordingly. |
sounds reasonable. I agree the library change is a bigger one |
We write data view as two words and try to avoid using Kibana in our copy. So if it is not necessary here, I suggest:
|
💚 Build SucceededMetrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Summary
Adds
explore
button to create dataview side panel which creates an ad-hoc dataview.The button is only shown if
allowAdHocDataView
prop is set to true.Clicking the button returns a dataview instance to the caller but does not create a saved object.
resolves #132709
Checklist
Delete any items that are not applicable to this PR.