Skip to content
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

Merged
merged 11 commits into from
Jul 21, 2020

Conversation

clintandrewhall
Copy link
Contributor

@clintandrewhall clintandrewhall commented Jun 30, 2020

Summary

This PR converts the Page Manager, Page Preview, DOM Preview and Link components to Typescript. It also removes recompose, adds missing i18n, fixes an issue where the ref may not be defined.

Screen Shot 2020-06-30 at 3 11 38 PM

Screen Shot 2020-06-30 at 3 11 52 PM

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.

@clintandrewhall clintandrewhall added review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas loe:medium Medium Level of Effort v8.0.0 release_note:skip Skip the PR/issue when compiling release notes impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. v7.9.0 labels Jun 30, 2020
@clintandrewhall clintandrewhall requested a review from a team as a code owner June 30, 2020 20:53
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-canvas (Team:Canvas)

@clintandrewhall
Copy link
Contributor Author

@elasticmachine merge upstream

@clintandrewhall
Copy link
Contributor Author

@elasticmachine merge upstream

@clintandrewhall
Copy link
Contributor Author

@elasticmachine merge upstream

@clintandrewhall
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Contributor

@crob611 crob611 left a 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 }
Copy link
Contributor

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.

Copy link
Contributor Author

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...

Corey Robertson and others added 2 commits July 21, 2020 11:46
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

async chunks size

id value diff baseline
canvas 1.5MB -4.0KB 1.5MB

page load bundle size

id value diff baseline
canvas 1.4MB +710.0B 1.4MB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@clintandrewhall clintandrewhall merged commit eb71e59 into elastic:master Jul 21, 2020
@clintandrewhall clintandrewhall deleted the page-manager branch July 21, 2020 18:13
clintandrewhall added a commit to clintandrewhall/kibana that referenced this pull request Jul 21, 2020
clintandrewhall added a commit that referenced this pull request Jul 21, 2020
…) (#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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:medium Medium Level of Effort release_note:skip Skip the PR/issue when compiling release notes review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants