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

Convert EuiPage and related components to TS #2669

Merged
merged 11 commits into from
Dec 18, 2019
Merged

Conversation

snide
Copy link
Contributor

@snide snide commented Dec 13, 2019

Summary

Fixes #2646

Converts the following components to TS

EuiPage
EuiPageBody
EuiPageContent
EuiPageContentBody
EuiPageContentHeader
EuiPageContentHeaderSection
EuiPageHeader
EuiPageHeaderSection
EuiPageSideBar

Checklist

  • Checked in dark mode
  • Checked in mobile
  • Checked in IE11 and Firefox
  • Props have proper autodocs
  • Added documentation examples
  • Added or updated jest tests
  • Checked for breaking changes and labeled appropriately
  • Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

src/components/page/page.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just needs more extensions, one of which is still an open question

src/components/page/page.tsx Outdated Show resolved Hide resolved
src/components/page/page_content/page_content.tsx Outdated Show resolved Hide resolved
src/components/page/page_content/page_content_body.tsx Outdated Show resolved Hide resolved
src/components/page/page_content/page_content_header.tsx Outdated Show resolved Hide resolved
src/components/page/page_header/page_header.tsx Outdated Show resolved Hide resolved
src/components/page/page_header/page_header_section.tsx Outdated Show resolved Hide resolved
src/components/page/page_side_bar/page_side_bar.tsx Outdated Show resolved Hide resolved
src/components/page/page_body/page_body.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some new things, plus I missed a couple last time.

Need to export the the props types/interfaces from their respective index.ts, and from page/index.ts:
EuiPageProps
EuiPageBodyProps
EuiPageContentProps
EuiPageContentBodyProps
EuiPageContentHeaderProps
EuiPageContentHeaderSectionProps
EuiPageHeaderProps
EuiPageHeaderSectionProps
EuiPageSideBarProps

src/components/page/page_side_bar/page_side_bar.tsx Outdated Show resolved Hide resolved
src/components/page/page_body/page_body.tsx Outdated Show resolved Hide resolved
src/components/page/page_body/page_body.tsx Outdated Show resolved Hide resolved
@snide
Copy link
Contributor Author

snide commented Dec 18, 2019

Thanks @thompsongl. All the props should be exported now. Feedback addressed. Thanks for walking me through this one!

@thompsongl
Copy link
Contributor

jenkins test this

flaky test, I think

Copy link
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌

@snide snide merged commit 3bf9df5 into elastic:master Dec 18, 2019
@snide snide deleted the ts/page branch December 18, 2019 18:44
thompsongl added a commit that referenced this pull request Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EuiPage needs to be converted to TS
4 participants