-
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
Have dashboard add panel use the embeddable layer #27985
Comments
Pinging @elastic/kibana-app |
@timroes @stacey-gammon @thomasneirynck @aaronjcaldwell @flash1293 Had a tag-up discussing today. Actions
ImplementationsDuring the discussion 2 implementations were discussed. Continue with existing tabs approachExpand embeddable API so that each embeddable type will register its own search UI that will be used to add embeddables for that type. The add layer panel will display a tab per embeddable type and have the embeddable type render its own search UI. pros: cons: Couple the embeddable API to saved objectsExpand embeddable API so that each embeddable must register the saved object type. Add panel will just be a single search interface that covers all embeddable types. Embeddable container will extract the required saved object types from the registry and use in the saved object client pros: cons: |
We already figured out the saved object client already support finding with different types (used in the saved object management page). So that step already is solved :-) |
In order to display instances of saved objects of different types in a sensible manner, the EmbeddableAPI has to be extended. It should provide the saved object type and an EUI icon (https://elastic.github.io/eui/#/display/icons, which is used to prefix the row in the unified saved object table in the add panel) |
Discussion about the unified list of saved objects in the finder: • No rows per page picker - do we even need this? Yes, I’d still add this because there are users with thousands of saved objects
|
awww, I liked that button! I added it because it took like 7 clicks otherwise to create a new visualization from dashboard and add it back to the dashboard. This button gives you the "save and add to dashboard" button directly on visualize app. No idea how much other people use it, but I'd be cautious about removing functionality in a minor, could be considered a breaking change. related: #6523 I could have sworn there was an issue somewhere to add the same button for saved searches too, but can't find it now. |
I would also suggest we keep that button for now (just move it outside the Also in the longer run we most likely want to change that button from a new visualization button to add any embeddable in place on the dashboard (and hopefully even have an in-place editors for everything). The only other thing I am a bit hesitant about is:
I am not sure if it's really "that" valuable even if you have a ton of saved objects stored? In that case you still would want to mainly dig into those objects by searching/filtering for them. To enlarge the amount of objects shown at the same time requires 2 clicks. I can use the same 2 clicks also to get to page 3 of the table. Meaning I will mainly save clicks once I am trying to find an object past page 3 of the table. Is it really likely users will ever do that, or instead just refine their search/filters? Though I don't have too strong feelings around that as a feature (in neither way), it just makes implementation a bit easier for now, if we're not needing that option :-) I totally agree with the other two points (sorting, filtering) we should build those into the component. |
Pinging @cchaos as this is her feedback |
FYI @cchaos |
As dicsussed with Joe offline, I would make the following suggestions to the design:
That way we have a more aligned behavior with the listing pages (at least once they are fixed again :D). |
Can we change |
Agree with all the above. Also, does it make sense to use the EuiSearchBar? I thought it had all that functionality baked in with the adding of filters and such. |
Thanks for the great feedback, I will implement it. Just to note it down somewhere:
|
Closed by #31400 |
Two options:
The text was updated successfully, but these errors were encountered: