-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
[Presentation] Deprecate Solution Toolbar Button in favor of Shared UX Component #126916
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.
Change LGTM!
I'm wondering though, since it seems like this component is only used in Presentation Util itself, it could be quite trivial to migrate to the version in shared UX immediately, and remove the version in presentation_util.
Is there a reason to leave it deprecated for a while? Or should we think about removing it ASAP?
…n' into deprecate-solution-toolbar-button
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.
Fine on our end...just seeing the scss file deletions for our review.
…n' into deprecate-solution-toolbar-button
"embeddable", | ||
"expressions", | ||
"dataViews", | ||
"sharedUx" |
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.
The plugin's name is sharedUX
; I think that's why the build went crazy.
src/plugins/presentation_util/public/components/solution_toolbar/items/popover.tsx
Outdated
Show resolved
Hide resolved
@@ -25,6 +25,12 @@ export const LazySolutionToolbarButton = React.lazy(() => | |||
})) | |||
); | |||
|
|||
export const LazySolutionToolbarButtonProps = React.lazy(() => | |||
import('./toolbar/index').then(({ SolutionToolbarButtonProps }: any) => ({ |
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.
Two things: first, this should exist.
LazySolutionToolbarButtonProps
is a Typescript interface, so there's no lazy load necessary-- types are removed at compile time.
Second, as @majagrubic pointed out: no need to tack /index
onto this import.
@@ -39,6 +45,8 @@ export const ExitFullScreenButton = withSuspense(LazyExitFullScreenButton); | |||
*/ | |||
export const SolutionToolbarButton = withSuspense(LazySolutionToolbarButton); | |||
|
|||
export const SolutionToolbarButtonProps = withSuspense(LazySolutionToolbarButtonProps); |
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.
export const SolutionToolbarButtonProps = withSuspense(LazySolutionToolbarButtonProps); |
src/plugins/presentation_util/public/components/solution_toolbar/solution_toolbar.tsx
Outdated
Show resolved
Hide resolved
…n' into deprecate-solution-toolbar-button
@@ -18,7 +18,7 @@ | |||
"embeddable", | |||
"expressions", | |||
"dataViews", | |||
"sharedUx" | |||
"sharedUX" |
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.
For plugin ids we have historically kept to the most simple form of camelcase, and only capitalized the first letter in an abbreviation. Said another way, the capital just replaces the _
in the snake_case version of the word, so shared_ux
would be come sharedUx
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.
Oh, I was confused about which PR this is, maybe @clintandrewhall is open to a rename PR outside of this work or maybe when the number of inflight PRs is a bit lower.
…n' into deprecate-solution-toolbar-button
💔 Build FailedFailed CI Steps
Test Failures
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
ESLint disabled in files
ESLint disabled line counts
References to deprecated APIs
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Summary
Related to #125998
The solution toolbar button was moved to the Shared UX team. This PR deprecates the solution toolbar button for the presentation team so that both components do not have to be maintained.