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
[Legacy Input Controls] Show deprecation badge in Dashboard #174302
[Legacy Input Controls] Show deprecation badge in Dashboard #174302
Conversation
Pinging @elastic/kibana-presentation (Team:Presentation) |
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.
While I know this is temporary, it's still best practice not to put code meant for specific embeddable types into the generic Embeddable code.
Instead, it would be much cleaner to create and register a new Action onto the panelBadge
trigger. This way all of the code for it can be contained within the Legacy input controls plugin.
c30367e
to
5914540
Compare
@ThomThomson I updated the PR and registered an input control deprecation badge instead of hardcoding the badge into the embeddable panel header component. |
…github.com/cqliu1/kibana into input-control-vis/show-deprecation-warning
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
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.
Nice work Catherine, thanks for the quick turnaround on the strategy for this one.
Code only review, LGTM!
…174302) ## Summary Closes elastic#134050. This adds a deprecation badge to legacy input control panels on dashboards. This badge is only visible in edit mode. I've also added support for displaying tooltips on badges shown in the embeddable panel header when `getDisplayNameTooltip` is defined. <img width="468" alt="Screenshot 2024-01-04 at 3 43 15 PM" src="https://github.com/elastic/kibana/assets/1697105/c3e8c8d2-d2df-4880-acbb-f13c5c5222bc"> #### Testing In order to test this, set `disableCreate: false` in the `InputControlVis` vis type definition to add a legacy input control to a dashboard if you don't have an existing dashboard that contains a legacy input control. https://github.com/elastic/kibana/blob/46a58541fa8ce21f86a32408cbc759c1bf22487b/src/plugins/input_control_vis/public/input_control_vis_type.ts#L33 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
…174302) ## Summary Closes elastic#134050. This adds a deprecation badge to legacy input control panels on dashboards. This badge is only visible in edit mode. I've also added support for displaying tooltips on badges shown in the embeddable panel header when `getDisplayNameTooltip` is defined. <img width="468" alt="Screenshot 2024-01-04 at 3 43 15 PM" src="https://github.com/elastic/kibana/assets/1697105/c3e8c8d2-d2df-4880-acbb-f13c5c5222bc"> #### Testing In order to test this, set `disableCreate: false` in the `InputControlVis` vis type definition to add a legacy input control to a dashboard if you don't have an existing dashboard that contains a legacy input control. https://github.com/elastic/kibana/blob/46a58541fa8ce21f86a32408cbc759c1bf22487b/src/plugins/input_control_vis/public/input_control_vis_type.ts#L33 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Summary
Closes #134050.
This adds a deprecation badge to legacy input control panels on dashboards. This badge is only visible in edit mode. I've also added support for displaying tooltips on badges shown in the embeddable panel header when
getDisplayNameTooltip
is defined.Testing
In order to test this, set
disableCreate: false
in theInputControlVis
vis type definition to add a legacy input control to a dashboard if you don't have an existing dashboard that contains a legacy input control.kibana/src/plugins/input_control_vis/public/input_control_vis_type.ts
Line 33 in 46a5854