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 v58.0.0 #132257

Merged
merged 60 commits into from
Jun 8, 2022
Merged

Upgrade EUI to v58.0.0 #132257

merged 60 commits into from
Jun 8, 2022

Conversation

breehall
Copy link
Contributor

@breehall breehall commented May 16, 2022

eui@55.1.2 ⏩ eui@58.0.0

Added .render() calls to snapshot tests are intended to reduce the output of EUI components that use Emotion for styling. If you prefer the more verbose snapshot output in your plugin, we can remove the call.

58.0.0

  • Updated EuiForm to use forwardRef (#5866)
  • Updated all CSS-in-JS shadow functions parameters to match a (euiTheme, { color? }) order (#5892)
  • Updated euiShadow() parameters to (euiTheme, size, { color? }) (#5892)

Bug fixes

  • Fixed EuiContextMenuPanel (when used within an EuiPopover) to correctly return focus to its popover toggle in all scenarios, not just keyboard Escape press (#5880)
  • Fixed EuiSelectableTemplateSitewide to allow re-opening the search popover (if closed via Escape key) via the Enter key (#5886)
  • Fixed EuiComboBox by centering the enter badge in the list options. (#5890)
  • Fixed EuiTour position calculation issues caused by popover width styles (#5897)
  • Fixed EuiIcon from producing console warning in React.StrictMode (#5899)

57.0.0

  • Updated EuiMarkdownFormat to allow mailto: links by default (#5790)
  • Updated EuiMarkdownEditor's euiMarkdownLinkValidator parsing plugin to allow customization of link validation (#5790)
  • Added logicals{}, logicalCSS(), logicalStyle(), logicalTextAlignCSS(), and logicalTextAlignSTyle() CSS property utilities (#5850)
  • Added euiPaddingSize(), useEuiPaddingSize(), and useEuiPaddingCSS() sizing utilities (#5850)
  • Added euiBackgroundColor(), useEuiBackgroundColor() and useEuiBackgroundColorCSS() color utilities (#5850)
  • Changed default EuiCallOut heading element from span to p (#5870)
  • Updated EuiOverlayMask to accept a React ref (#5876)
  • Renamed user glyph to userAvatar in EuiIcon (#5877)
  • Added new user glyph in EuiIcon (#5877)

Bug fixes

  • Fixed alignment of EuiCallOut icon with the heading text (#5870)
  • Fixed EuiFlyout outsideClickCloses not being scoped to overlay mask when ownFocus=true (#5876)

Deprecations

  • Sass mixin euiCallOutColor() deprecated in favor of using EuiCallOut directly (#5870)

Breaking changes

  • Removed deprecated options for EuiDatePicker's popoverPosition props - use EuiPopover values going forward (#5868)
  • Removed partition prop from EuiCharts theme configuration - use theme.partition instead (#5868)
  • Removed data-grid-cell-id attribute from EuiDataGrid cells - use separate data-gridcell-column-id & data-gridcell-row-index attributes instead (#5868)
  • Removed noDivider prop from EuiFilterButton - use withNext prop instead (#5868)
  • Removed isSelected and isComplete props from EuiHorizontalStep - use status prop instead (#5868)
  • Removed isHollow prop from EuiStep - this visual appearance is no longer used in Amsterdam (#5868)
  • Removed condensed display prop from EuiTabs & EuiTabbedContent - this visual appearance is no longer used in Amsterdam (#5868)
  • Removed descriptionDisplay and labelDisplay props from EuiSuggestItem - use truncate and labelWidth instead, respectively (#5868)
  • Removed .euiButton---subdued className and $euiButtonTypes.subdued Sass variable - use text color instead (#5868)
  • Removed .eui-textOverflowWrap - use .eui-textBreakWord instead (#5868)
  • Removed .euiYScrollWithShadows - use .eui-yScrollWithShadows instead (#5868)
  • EuiMarkdownEditor no longer automatically includes the tooltip plugin in custom plugin arrays passed to uiPlugins. To use EUI's tooltip plugin, use getDefaultEuiMarkdownPlugins() (#5868)

CSS-in-JS conversions

  • Converted EuiLink to Emotion and removed $euiLinkColors (#5856)
  • Converted EuiCallOut to Emotion (#5870)

56.0.0

  • Increased weight of EuiLoadingSpinner border (#5845)
  • Added role and default aria-label to EuiLoadingLogo, EuiLoadingContent, EuiLoadingElastic, and EuiLoadingSpinner (#5845)
  • Added euiTextTruncate, euiTextWordBreak, and euiNumberFormat CSS-in-JS text utilities (#5854)
  • Added focus token to global EuiTheme (#5855)
  • Added euiFocusRing() and useEuiFocusRing() function/hook for customizing focus outline (#5855)
  • Added the focusTrapProps prop to EuiFlyout to aid outside click detection and closing event (#5860)

Bug fixes

  • Fixed a number of EuiMarkdownEditor's default toolbar buttons to highlight when the text cursor is in a related location (#5840)
  • Fixed allotted animation size of EuiLoadingLogo (#5845)
  • Fixed EuiLoadingElastic in dark mode (#5845)
  • Fixed border-radius of nested EuiSplitPanels (#5855)
  • Fixed offset of global focus outline (#5855)
  • Fixed EuiCollapsibleNav failing to close when the button is clicked (#5860)

CSS-in-JS conversions

  • Converted EuiBottomBar to Emotion (#5823)
  • Converted EuiHealth to Emotion (#5832)
  • Converted EuiTitle to Emotion (#5842)
  • Converted EuiLoadingLogo, EuiLoadingContent, EuiLoadingElastic, and EuiLoadingSpinner; Removed $euiLoadingSpinnerSizes, $euiGradientStartStop, and $euiGradientMiddle (#5845)
  • Converted EuiSkipLink to Emotion (#5851)

Breaking change

  • As part of EuiTitle's Emotion conversion, the line-height of s and xxs sized EuiTitles have been slightly reduced (#5842)

@breehall breehall added release_note:skip Skip the PR/issue when compiling release notes EUI v8.3.0 labels May 16, 2022
…ts for euiLink and euiTitle as they have been converted to Emotion
…alth, euiAvatar, euiSpacer, euiTitle, and euiLink as they have recently been converted to Emotion
… EuiSpacer, EuiText, EuiCallout, EuiHorizontalRule, EuiTitle, and EuiLink have been converted to Emotion. Updated the i18n translation snapshots
…rade-57.0.0

Pulling in the latest code from the main branch
…EuiLink, EuiTitle, EuiHorizontalRule, EuiSpace, and EuiCallout have been converted to Emotion
…Spacer, EuiHorizontalRule, Eui Callout, and EuiLink have been converted to Emotion
…Props prop. It was recently deprecated in EUI PR# 5880 (elastic/eui#5880) as is no longer needed
…Props prop. It was recently deprecated in EUI PR# 5880 (elastic/eui#5880) as is no longer needed
…Props prop. It was recently deprecated in EUI PR# 5880 (elastic/eui#5880) as is no longer needed
…iDatePicket component with new / valid values. A list of values were deprecated and new values were added in EUI PR #5868 (elastic/eui#5868)
…condensed as it is no longer a part of the Amsterdam theme via EUI PR #5868(elastic/eui#5868)
@cee-chen cee-chen changed the title Upgrade EUI to v57.0.0 Upgrade EUI to v58.0.0 May 24, 2022
Copy link
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

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

VisEditors changes LGTM, only test adjustments for new element tree structure

@weltenwort weltenwort self-requested a review June 2, 2022 11:12
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
Member

@weltenwort weltenwort left a comment

Choose a reason for hiding this comment

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

infra and monitoring plugin changes LGTM

@breehall
Copy link
Contributor Author

breehall commented Jun 6, 2022

@elasticmachine merge upstream

Copy link
Member

@efegurkan efegurkan left a comment

Choose a reason for hiding this comment

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

Enterprise Search changes approved.

No issues found on local build.

Copy link
Contributor

@justinkambic justinkambic left a comment

Choose a reason for hiding this comment

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

Synth/RUM 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
cases 356.4KB 356.4KB +12.0B
dataVisualizer 535.8KB 535.8KB -64.0B
maps 2.6MB 2.6MB -12.0B
ml 3.3MB 3.3MB +7.0B
observability 495.8KB 495.8KB +12.0B
osquery 1.0MB 1.0MB -31.0B
rollup 129.1KB 129.1KB +36.0B
securitySolution 5.1MB 5.1MB -17.0B
snapshotRestore 266.4KB 266.5KB +140.0B
triggersActionsUi 810.8KB 810.9KB +43.0B
total +126.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 301.4KB 301.5KB +110.0B
esUiShared 130.3KB 130.3KB +20.0B
kbnUiSharedDeps-css 589.9KB 567.3KB -22.6KB
kbnUiSharedDeps-npmDll 4.8MB 4.9MB +36.5KB
total +14.0KB

History

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

Copy link
Contributor

@dhurley14 dhurley14 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 platform changes look good

Copy link
Member

@tsullivan tsullivan left a comment

Choose a reason for hiding this comment

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

app services changes LGTM

Copy link
Member

@cnasikas cnasikas left a comment

Choose a reason for hiding this comment

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

ResponseOps changes LTGM

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.

ML edits LGTM

Copy link
Contributor

@paul-tavares paul-tavares left a comment

Choose a reason for hiding this comment

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

Files in x-pack/plugins/security_solution/public/common/components/endpoint/* LGTM (on behalf of @elastic/security-onboarding-and-lifecycle-mgt team)

@@ -145,8 +145,127 @@ exports[`AnalyticsNoDataPageComponent renders correctly 1`] = `
>
<EuiLoadingSpinner>
<span
className="euiLoadingSpinner euiLoadingSpinner--medium"
/>
aria-label="Loading"
Copy link
Contributor

Choose a reason for hiding this comment

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

The bloat here will need to be resolved on our end, either with a shallow render or a mock. cc: @majagrubic @sebelga

@breehall breehall merged commit b7c4d89 into main Jun 8, 2022
@breehall breehall deleted the eui-upgrade-57.0.0 branch June 8, 2022 14:18
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Jun 8, 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 EUI release_note:skip Skip the PR/issue when compiling release notes v8.4.0
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet