-
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
[pre-req] Convert Page Manager, Page Preview, DOM Preview #70370
[pre-req] Convert Page Manager, Page Preview, DOM Preview #70370
Conversation
Pinging @elastic/kibana-canvas (Team:Canvas) |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
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.
Looks great. Nice work.
|
||
export const Link: FC<Props & EuiLinkProps> = ( | ||
{ onClick, target, name, params, children, ...linkArgs }, | ||
{ router } |
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.
I added a RouterContextProvider and started stubbing out a type for the router as well. You could switch to using useContext
or at least use the type and add any aditional properties used here to it.
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.
@crob611 Could you perhaps push a change for my branch? Not quite following...
add UseContext to get router
💚 Build SucceededBuild metricsasync chunks size
page load bundle size
History
To update your PR or re-run it, just comment with: |
) Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Corey Robertson <[email protected]>
…) (#72709) Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Corey Robertson <[email protected]> Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Corey Robertson <[email protected]>
Summary
This PR converts the Page Manager, Page Preview, DOM Preview and Link components to Typescript. It also removes
recompose
, adds missingi18n
, fixes an issue where theref
may not be defined.This PR originally had Storybook stories (and I still have them on my PoC branch), but they depend on a Storybook Redux implementation that hasn't been approved/merged yet. I'll be tackling changes to #69357 next, and will use the Storybook examples I wrote as a test.