-
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
[Lens] Fix missing embeddable panel titles #203355
[Lens] Fix missing embeddable panel titles #203355
Conversation
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
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.
Thanks for the fix
x-pack/plugins/lens/public/react_embeddable/renderer/lens_custom_renderer_component.tsx
Outdated
Show resolved
Hide resolved
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.
usage of PublishesPanelTitle interface LGTM
code review only
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.
Tested fix locally 👍🏼 .
x-pack/plugins/lens/public/react_embeddable/renderer/lens_custom_renderer_component.tsx
Show resolved
Hide resolved
💔 Build Failed
Failed CI StepsTest Failures
Metrics [docs]Page load bundle
History
|
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/12259574288 |
## Summary When using the new Custom Lens embeddable component, the titles are hidden by default due to to a regression introduced in elastic#186642. This PR should fix the correct title handling of the header visibility by hiding or showing the wrapping Panel title depending on the `hidePanelTitles` props of the `LensRenderer` component fix elastic#203354 (cherry picked from commit 6e57a23)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.x`: - [[Lens] Fix missing embeddable panel titles (#203355)](#203355) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Marco Vettorello","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-10T15:39:15Z","message":"[Lens] Fix missing embeddable panel titles (#203355)\n\n## Summary\r\n\r\nWhen using the new Custom Lens embeddable component, the titles are\r\nhidden by default due to to a regression introduced in\r\nhttps://github.com//pull/186642.\r\nThis PR should fix the correct title handling of the header visibility\r\nby hiding or showing the wrapping Panel title depending on the\r\n`hidePanelTitles` props of the `LensRenderer` component\r\n\r\n\r\nfix https://github.com/elastic/kibana/issues/203354","sha":"6e57a23d18d949e7ac3118c1f27550e2ba9eedf8","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","Team:Visualizations","release_note:skip","Feature:Lens","v9.0.0","backport:prev-minor","Feature:Embeddables"],"title":"[Lens] Fix missing embeddable panel titles","number":203355,"url":"https://github.com/elastic/kibana/pull/203355","mergeCommit":{"message":"[Lens] Fix missing embeddable panel titles (#203355)\n\n## Summary\r\n\r\nWhen using the new Custom Lens embeddable component, the titles are\r\nhidden by default due to to a regression introduced in\r\nhttps://github.com//pull/186642.\r\nThis PR should fix the correct title handling of the header visibility\r\nby hiding or showing the wrapping Panel title depending on the\r\n`hidePanelTitles` props of the `LensRenderer` component\r\n\r\n\r\nfix https://github.com/elastic/kibana/issues/203354","sha":"6e57a23d18d949e7ac3118c1f27550e2ba9eedf8"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203355","number":203355,"mergeCommit":{"message":"[Lens] Fix missing embeddable panel titles (#203355)\n\n## Summary\r\n\r\nWhen using the new Custom Lens embeddable component, the titles are\r\nhidden by default due to to a regression introduced in\r\nhttps://github.com//pull/186642.\r\nThis PR should fix the correct title handling of the header visibility\r\nby hiding or showing the wrapping Panel title depending on the\r\n`hidePanelTitles` props of the `LensRenderer` component\r\n\r\n\r\nfix https://github.com/elastic/kibana/issues/203354","sha":"6e57a23d18d949e7ac3118c1f27550e2ba9eedf8"}}]}] BACKPORT--> Co-authored-by: Marco Vettorello <[email protected]>
## Summary When using the new Custom Lens embeddable component, the titles are hidden by default due to to a regression introduced in elastic#186642. This PR should fix the correct title handling of the header visibility by hiding or showing the wrapping Panel title depending on the `hidePanelTitles` props of the `LensRenderer` component fix elastic#203354
Summary
When using the new Custom Lens embeddable component, the titles are hidden by default due to to a regression introduced in #186642.
This PR should fix the correct title handling of the header visibility by hiding or showing the wrapping Panel title depending on the
hidePanelTitles
props of theLensRenderer
componentfix #203354