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

Upgrade EUI to v19.0.0 #57284

Merged
merged 18 commits into from
Feb 14, 2020
Merged

Upgrade EUI to v19.0.0 #57284

merged 18 commits into from
Feb 14, 2020

Conversation

thompsongl
Copy link
Contributor

@thompsongl thompsongl commented Feb 10, 2020

Summary

[email protected][email protected]

  • The idAria prop is not longer part of the EuiDescribedFormGroup API. A11y is now handled internally, so all instances have been removed.
  • EuiCode & EuiCodeBlock now use a React portal in some cases to render complex content. Jest tests for several components need a mocked version until EUI's more robust test environment solution is available (🔜)
  • The EuiToken change is marked as "breaking", but no instances were yet in use in Kibana

19.0.0

  • Added cheer glyph to EuiIcon (#2814)
  • Added tableCaption prop to EuiBasicTable and improved the default one (#2782)
  • Converted EuiDescribedFormGroup to TypeScript (#2810)
  • Changed SASS comments to non-compiled comments in invisibles files (#2807)
  • Optimized the third party logos Ceph, DropWizard, Golang, and Haproxy (#2812)
  • Added rowHeader prop to EuiBasicTable to allow consumers to set the identifying cell in a row (#2802)
  • Added prepend and append to EuiColorPicker (#2819)
  • Improved EuiDescribedFormGroup accessibility by avoiding duplicated output in screen readers (#2783)
  • Added optional key attribute to EuiContextMenu items and relaxed name attribute to allow any React node (#2817)
  • Converted EuiColorPicker color conversion functions to chroma-js methods (#2805)
  • Added direction parameter to euiPaletteColorBlind() for specifiying lighter or darker (or both) alternates (#2822)
  • Converted EuiSideNav to TypeScript (#2818)
  • Added babel-transformed and partially mocked commonjs build (test-env/) to target Kibana's Jest environment (#2698)
  • Altered styles of EuiToken and add added more token types to match ES field types of tokenAlias, tokenDate, tokenGeo, tokenIP, tokenNested, tokenRange, tokenShape (#2758)

Bug fixes

  • Exported missing EuiSelectProps type (#2815)
  • Fixed EuiCode's & EuiCodeBlock's ability to accept non-string children (#2792) (#2820)
  • Fixed EuiSearchBar, Query, and AST's ability to accept literal parenthesis characters (#2791)
  • Fixed coloring of input fields when autofill is on in Chrome (#2798)
  • Moved @types/enzyme and @types/react-virtualized to dependencies status (#2828)
  • Removed @elastic/charts from inclusion in eui.d.ts output (#2828)

Breaking changes

  • Removed idAria prop from EuiDescribedFormGroup (#2783)
  • Removed EuiToken's hideBorder and displayOptions prop for applying color, shape, and fill props directly. Changed fill prop type from boolean to light | dark | none. (#2758)

@thompsongl thompsongl requested review from aag6z, myasonik, cchaos and chandlerprall and removed request for aag6z February 11, 2020 19:39
Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

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

package.json, snaps, and code changes LGTM, but ideally the @types/enzyme installs can be unified.

yarn.lock Outdated Show resolved Hide resolved
Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Yeah nothing for EuiTokens as expected. Looks like most of the changes are for the idAria removal and code block portal stuffs. 👍

* - EuiPageContent
*/
foo bar {
"foo bar {
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

Copy link
Contributor

@myasonik myasonik left a comment

Choose a reason for hiding this comment

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

Looks right to me!

@thompsongl thompsongl marked this pull request as ready for review February 12, 2020 00:21
@thompsongl thompsongl requested a review from a team as a code owner February 12, 2020 00:21
@thompsongl thompsongl requested a review from a team February 12, 2020 00:21
@thompsongl thompsongl requested review from a team as code owners February 12, 2020 00:21
@tylersmalley
Copy link
Contributor

I am not sure what we can do about it now - but it's worth keeping an eye on master after merging. What has happened in the past is there are green PR's which have invalid snapshots that ultimately fail when merged into master following an EUI bump.

@legrego legrego self-requested a review February 12, 2020 12:32
Copy link
Member

@legrego legrego left a comment

Choose a reason for hiding this comment

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

Security/Spaces LGTM - tested locally

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

Tested ML locally and LGTM.

Copy link
Contributor

@myasonik myasonik left a comment

Choose a reason for hiding this comment

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

One more time for Kibana App 👍

Copy link
Contributor

@tylersmalley tylersmalley left a comment

Choose a reason for hiding this comment

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

Looks good for operations 👍

@thompsongl
Copy link
Contributor Author

Pinging @elastic/es-ui to look at the idAria changes

Copy link
Contributor

@cqliu1 cqliu1 left a comment

Choose a reason for hiding this comment

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

Canvas changes LGTM 👍

Copy link
Contributor

@afgomez afgomez left a comment

Choose a reason for hiding this comment

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

Infra changes LGTM

Copy link
Contributor

@alisonelizabeth alisonelizabeth left a comment

Choose a reason for hiding this comment

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

es-ui changes LGTM.

@thompsongl
Copy link
Contributor Author

Remaining code owner ping is for a single snapshot update. Will merge when green.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

@thompsongl thompsongl merged commit 0abfd3c into elastic:master Feb 14, 2020
thompsongl added a commit to thompsongl/kibana that referenced this pull request Feb 14, 2020
* eui to v19.0.0

* typescript updates; idAria removal

* src snapshot updates

* mock euicode and euicodeblock for jest

* x-pack snapshot updates

* mock euicode for jest

* more euicode snapshots

* mock euicode in storyshots

* types/enzyme yarn.lock

* sidenav type update
thompsongl added a commit that referenced this pull request Feb 14, 2020
* eui to v19.0.0

* typescript updates; idAria removal

* src snapshot updates

* mock euicode and euicodeblock for jest

* x-pack snapshot updates

* mock euicode for jest

* more euicode snapshots

* mock euicode in storyshots

* types/enzyme yarn.lock

* sidenav type update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EUI release_note:skip Skip the PR/issue when compiling release notes v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.