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 v51.1.0 #126926

Merged
merged 59 commits into from
Mar 16, 2022
Merged

Upgrade EUI to v51.1.0 #126926

merged 59 commits into from
Mar 16, 2022

Conversation

thompsongl
Copy link
Contributor

@thompsongl thompsongl commented Mar 4, 2022

Summary

eui@48.1.1eui@51.1.0

All breaking changes have been accounted for


51.1.0

  • Updated testenv mock for EuiFlyout to include default aria-label on the close button (#5702)
  • Changed the I18n token euiDataGridToolbar.fullScreenButton to euiFullscreenSelector.fullscreenButton, and its text to Enter fullscreen (with no space) (#5680)
  • Changed the I18n token euiDataGridToolbar.fullScreenButtonActive to euiFullscreenSelector.fullscreenButtonActive, and its text to Exit fullscreen (with no space) (#5680)

Bug fixes

  • Fixed type of SharedRenderCellElementProps.schema to be optional (#5704)
  • Fixed generated type definition file referencing nonexistant Jest util (#5704)

51.0.0

  • Enhanced EuiSuggest to fire the onItemClick callback on Enter key press as well as clicks (#5693)

Bug fixes

  • Fixed non-searchable EuiSelectables not selecting items with the Enter & Space keys (#5693)

Breaking changes

  • Removed the 'all' option in EuiTablePagination.itemsPerPage and itemsPerPageOptions in EuiBasicTable and EuiDataGrid due to Typescript issues. Use 0 instead to represent a "Show all" option (#5699)

50.0.0

  • Updated EuiComboBox to WAI-ARIA 1.2 pattern and improved keyboard navigation (#5636)
  • Added readOnly prop to EuiMarkdownEditor (#5627)
  • Added support for supplying breadcrumbs and breadcrumbProps directly to EuiPageHeader (#5634)
  • Extended props of EuiBreadcrumb to include HTMLElement and color inherited from EuiLink (#5634)
  • Added "xxl" size to EuiLoadingSpinner (#5668)
  • Added isLoading prop to EuiButtonIcon (#5668)
  • Updated EuiDataGrid to allow setting individual cell isExpandable state via setCellProps (#5667)
  • Added the ability for EuiSelectable and EuiSuggest to accept controlled value props (#5658)
  • Added textWrap to EuiSelectableListItem, EuiSelectableList, and EuiSelectable.listOptions (#5679)
  • Forced truncation on EuiSuggest items when isVirtualize (#5679)
  • Changed proportion handling between content and image in horizontal EuiEmptyPrompt and added spacing between (#5663)
  • Reduced SASS compilation time using a different math pow implementation (#5674)

Bug fixes

  • Fixed EuiDataGrid cell props not resetting on column sort (#5665)
  • Fixed EuiDataGrid not correctly closing cell popovers when the originating cell is clicked (#5681)
  • Fixed EuiSuggest not correctly passing props to the search input (#5658)
  • Fixed EuiSelectable incorrectly rendering the passed id prop on the listbox instead of the parent wrapper (#5658)
  • Fixed EuiSelectable to no longer call searchProps.onChange when list items are clicked (#5658)
  • Fixed EuiSelectable not respecting searchProps.inputRef (#5658)
  • Fixed render of EuiSelectableListItem when no icons are present (#5679)
  • Fixed render of EuiSelectableTemplateSitewide items when no icons are present (#5679)

Breaking changes

  • Removed the incremental prop from EuiSuggest and EuiSelectable's searchProps (#5658)
  • Removed EuiSelectable's searchProps.onSearch prop (since Enter keypresses do not trigger a search callback) - use searchProps.onChange instead (#5658)
  • Renamed EuiSuggest's onInputChange and onSearchChange callbacks to onInput/onSearch respectively, for consistency with our existing callback naming conventions (#5658)
  • Removed EuiSuggest's isLoading prop - use status.loading instead (#5658)

49.0.0

  • Added new renderCellPopover prop to EuiDataGrid (#5640)
  • Added cell schema info to EuiDataGrid's renderCellValue props (#5640)
  • Added isLoading prop to EuiDualRange (#5648)
  • Added an 'all' option to EuiTablePagination.itemsPerPage and itemsPerPageOptions to render a "Show all" option and updated EuiBasicTable and EuiDataGrid usages (#5547)

Bug fixes

  • Fixed EuiImage images' width in small containers by adding max-width: 100% (#5547)
  • Fixed EuiTablePagination layout in small containers by adding wrap (#5547)
  • Fixed EuiDataGrid throwing a console error when grids without trailing control columns are sorted and then all columns are hidden (#5635)

Breaking changes

  • Removed popoverContents props from EuiDataGrid (use new renderCellPopover instead) (#5640)
  • Changed the EuiTablePagination prop hidePerPageOptions to the positive form showPerPageOptions (#5547)

@thompsongl thompsongl added release_note:skip Skip the PR/issue when compiling release notes EUI ci:deploy-cloud v8.2.0 labels Mar 4, 2022
cee-chen and others added 4 commits March 4, 2022 09:13
@thompsongl thompsongl changed the title Upgrade EUI to v50.0.0 Upgrade EUI to v51.0.0 Mar 8, 2022
Copy link
Contributor

@estermv estermv left a comment

Choose a reason for hiding this comment

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

Unified Observability changes LGTM

Copy link
Contributor

@ymao1 ymao1 left a comment

Choose a reason for hiding this comment

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

Response Ops changes LGTM. Code review only.

Copy link
Contributor

@YulNaumenko YulNaumenko left a comment

Choose a reason for hiding this comment

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

Security Solution changes LGTM

Copy link
Contributor

@walterra walterra left a comment

Choose a reason for hiding this comment

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

ML/Transform changes LGTM, also did a local test. Thanks for the popover refactor!!

@thompsongl
Copy link
Contributor Author

All remaining codeowner reviews are for snapshot updates or hidePerPageOptions to showPerPageOptions type changes. I'll merge (pending CI) EOD or first thing tomorrow morning (US Central).

@thompsongl
Copy link
Contributor Author

@elastic/kibana-reporting-services @elastic/security-onboarding-and-lifecycle-mgt @elastic/uptime @elastic/apm-ui @elastic/kibana-vis-editors @joeypoon @dasansol92

🙏 Still looking for reviews; I'd like to get this merged this week.

Copy link
Member

@joeypoon joeypoon left a comment

Choose a reason for hiding this comment

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

👌 for OLM

Copy link
Contributor

@awahab07 awahab07 left a comment

Choose a reason for hiding this comment

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

Uptime changes LGTM.

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
apm 2.7MB 2.7MB +1.0B
dataViewFieldEditor 148.0KB 148.0KB -37.0B
lens 1.1MB 1.1MB -15.0B
ml 3.3MB 3.3MB -189.0B
observability 408.6KB 408.4KB -184.0B
securitySolution 4.8MB 4.8MB -1.0B
total -425.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
core 295.3KB 295.8KB +574.0B
globalSearchBar 19.7KB 19.6KB -153.0B
kbnUiSharedDeps-css 592.6KB 595.5KB +3.0KB
kbnUiSharedDeps-npmDll 4.8MB 4.8MB +1.4KB
total +4.7KB

History

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

@spalger
Copy link
Contributor

spalger commented Mar 16, 2022

Merging early without the last few reviews, but we're pretty sure this won't be a problem and there have been tons of eyes on this already.

@spalger spalger merged commit 854da93 into elastic:main Mar 16, 2022
maksimkovalev pushed a commit to maksimkovalev/kibana that referenced this pull request Mar 18, 2022
* eui to v50.0.0

* i18n tokens

* Deprecate EuiDataGrid's `popoverContents` prop for `renderCellPopover`

* [optional ML refactor] Use `renderCellValue.isDetails` to customize numeric popover content instead of `renderCellPopover`

 - since no especially custom popover rendering is occuring, just conditional content

* onChangeItemsPerPage update

* storyshots updates

* snapshot updates

* snapshot updates

* snapshot updates

* snapshot updates

* EuiComboBox listbox -> combobox

* remove invalid combobox aria attr

* Revert "onChangeItemsPerPage update"

This reverts commit 127c9e5.

* eui to v51.0.0

* WIP: schema

* WIP: schema

* EuiSelectable API changes

* WIP: schema

* hidePerPageOptions -> showPerpageOptions

* WIP: schema

* hidePerPageOptions -> showPerpageOptions

* WIP: schema

* breadcrumbs type

* clean up

* snapshot updates

* Fix E2E datagrid cell filter action test

- This changed in 50.0.0 because of elastic/eui#5681

- `await testSubjects.click('filterForButton')` applies to both the cell action button icon and the cell popover button
- The test was trying to click the cell action button icon and not the popover button, which closed the popover and caused nothing to actually get clicked

- the solution I went with was to simply avoid opening the cell popover but instead click the cell action icon directly

* WIP: selectable search

* clean up

* eui to v51.1.0

* i18n tokens

* resolve SharedRenderCellElementProps.schema optionality

* i18n, snapshot updates

* shapshot update

* consolidate url-parse

Co-authored-by: Constance Chen <constance.chen@elastic.co>
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Mar 18, 2022
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 126926 or prevent reminders by adding the backport:skip label.

@spalger spalger added the backport:skip This commit does not require backporting label Mar 18, 2022
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Mar 18, 2022
@tylersmalley tylersmalley added ci:cloud-deploy Create or update a Cloud deployment and removed ci:deploy-cloud labels Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting ci:cloud-deploy Create or update a Cloud deployment EUI release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v8.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.