-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Lens] Hide the edit panel title for new metric visualizations #148563
Comments
Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations) |
cc @andrewctate not sure if it was discussed when we were adding the new metric but it seems that it confuses the users so we decided to hide it for now. |
In this case, would the Lens editor to use the existing With the Unified Panel Options pane we are expecting to move "Edit panel title" into a flyout that allows updating the title, description, and time range (when applicable) with the expectation that any embeddable could have a title and description. If #137770 was implemented, would we still need the option to hide the "Edit panel title" action from the metric visualization context menu? |
@markov00 keep me honest here but I understand that we don't want to show on the metric viz the title of the SO but a title that gives important information for the metric and makes sense to be part of the metric viz. We haven't figured out the details here but I feel that we might not want to show the panel title or at least the SO title (if it is saved on the library) I understand that it comes to conflict with the flyout, maybe we need to rediscuss it. |
I think we should make some clear definitions and distinctions:
The two types of titles should not be mixed or the default of the Within Lens the user shouldn't care much about the The same concept of a photo Gallery applies to Dashboard: I want all my visualization with their original title given at design time in Lens. I can't find a good use case for showing a different title just because I'm using a different dashboard. Embedding a visualization: the same example of the photo gallery applies, the visualization title should not change except for the edge case highlighted before. In my mind, I don't see an The description is instead a piece of metadata attached to the visualization or panel. A few more notes about the
|
It was noticed, but left in there since we expected that panel title to be shown inside the visualization once #137770 was complete. We were not drawing any distinctions like @markov00 has outlined. If it's easier than just completing #137770, or if we are accepting @markov00 's proposal to make the visualization title a different thing than the panel title, it probably makes sense to hide that menu option. |
Thanks for the detailed clarifications @markov00. With respect to titles, do you also see a breakdown for descriptions, ex. |
@markov00, I very much like your distinction between the The If at all possible, I would propose moving forward with adding the title to metric vis as is, using the existing title infrastructure. On the Presentation team side, we're considering shifting the embeddables system towards a more flexible method-call / interface based approach. Once we do that, it will be straightforward to change how any embeddable type or sub-type handles its titling. |
I like all the ideas here, my only concern is that having this panel title menu on the new metric while it doesn't do anything creates some confusion to the users (and support engineers) as they report it as bug. It is on technical preview and it is fine but I see 2 paths here:
|
@nickpeihl I see a
Thanks @ThomThomson definitely I prefer not to have an additional title over the visualization title. Due to the abstract nature of the Panel, I was considering that as a different title, attached to the panel frame and the internal rendering can render anything, and a title too. If that concept doesn't exist I'm happy to merge those ideas together in the visualization title: if the rendering has a title capability then we use the rendered one, if not the panel can render it on the frame @stratoula we have already the metric title design from @gvnmagni, so adding it is relatively quick. Let's quickly chat together about what to show by default reusing the "panel title" feature of the embeddable. |
@markov00, yes that ability does exist! You can read the title from the input, and render it internally instead, turning the panel title off with @stratoula, out of the two, I'd prefer looking into the second potential plan for the time being. I am pretty sure there is a way currently without any changes to the underlying architecture, to show only the Vis title in metric panel, without having to deal with the saved object title. |
Yes, we are happy with it too Devon, as long as it doesnt confuse the users! |
## Summary Closes #148563 After this [PR]( #148301) being merged, it will be easier to add the description info icon and the custom data range to the new metric. For this reason we decided to also allow the panel title for now. On the next minors we are going to hide it from the panel and display all the aforementioned info on the viz title. <img width="988" alt="image" src="https://user-images.githubusercontent.com/17003240/215037834-0f556673-8628-484e-aa32-c34188fc7064.png"> ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
## Summary Closes elastic#148563 After this [PR]( elastic#148301) being merged, it will be easier to add the description info icon and the custom data range to the new metric. For this reason we decided to also allow the panel title for now. On the next minors we are going to hide it from the panel and display all the aforementioned info on the viz title. <img width="988" alt="image" src="https://user-images.githubusercontent.com/17003240/215037834-0f556673-8628-484e-aa32-c34188fc7064.png"> ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
Describe the feature:
The new metric visualization doesn't allow to add a panel title (on purpose for now). We would like to hide this option on the dashboard level as it confused users.
In the future we are going to give the users the option to add a title on the new metric #137770 possibly from the Lens editor but we don't want the users to add a panel title (at least for now).
We should discuss with the @elastic/kibana-presentation team ways to make it configurable by the embeddable for this specific chart type.
The text was updated successfully, but these errors were encountered: