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 v23.3.1 #65877

Merged
merged 26 commits into from
May 21, 2020
Merged

Upgrade EUI to v23.3.1 #65877

merged 26 commits into from
May 21, 2020

Conversation

thompsongl
Copy link
Contributor

@thompsongl thompsongl commented May 8, 2020

Summary

v22.3.1v23.3.1

  • EUI components are 100% TypeScript 🎉
  • TypeScript updated to v3.7.2
  • Jest environment component mocks for EuiCode and EuiCodeBlock
  • Various methods of ID generation consolidated to a single htmlIdGenerator util
  • EuiIcon has a caching layer to prevent rerender flashes/flickers
  • EuiColorPicker at functional parity with TSVB picker
  • New EuiTour components
  • New EuiResizableContainer component
  • New EuiComment and EuiCommentList components
  • Components that support href now also set rel

23.3.1

Bug Fixes

  • Fixed EuiSuperDatePicker quick selection menu overriding specified time range with default values (#3446)
  • Fixed EuiDatePopoverContent onChange event to only accept string date input (#3460)

23.3.0

  • Added aria-hidden = true to EuiRangeSlider and EuiRangeTrack if showInput = true (#3423)
  • Added testenv mock for EuiCode and EuiCodeBlock (#3405)
  • Added displayName to components using React.forwardRef (#3440)

Bug Fixes

  • Fixed EuiCode and EuiCodeBlock from erroring in environments without a DOM implementation (#3405)
  • Fixed ApplyClassComponentDefaults typescript utility to correctly determine defaulted properties' types (#3430)
  • Fixed prettyDuration return type to be string, use fallback value (#3438)

23.2.0

  • Added iconType prop to EuiDatePicker (#3383)
  • Applied max-width: 100% to EuiPageBody so inner flex-based items don't overflow their containers (#3375)
  • Added titleSize prop to EuiStep and EuiSteps (#3340)
  • Handled ref passed to EuiHeaderSectionItemButton (#3378)
  • Added iconProps prop to EuiCollapsibleNavGroup to extend the props passed to the rendered EuiIcon (#3365)
  • Added closeButtonProps to EuiCollapsibleNav (#3398)
  • Added buffer prop to EuiPopover for altering minimum distance to container edges (#3398)
  • Allowed search prop changes to update EuiInMemoryTable internal query state (#3371)
  • Added EuiResizableContainer component (#2701)
  • Added caching layer on EuiIcon to prevent delays and flickering when rendering an already fetched icon (#3404)

Bug Fixes

  • Fixed EuiFieldSearch to trigger onSearch single time instead of two times (#3425)
  • Fixed EuiBasicTable item selection when id is 0 (#3417)
  • Fixed EuiNavDrawer not closing on outside click after being unlocked (#3415)
  • Fixed EuiBadge iconOnClick props makes badge text clickable (#3392)
  • Added id requirement if label is used in EuiRadio (#3382)
  • Fixed z-index issue in EuiDatePicker where it's popover would sit beneath other DOM siblings that had z-index applied (#3376)
  • Added download glyph to EuiIcon (#3364)
  • Applies max-width: 100% to EuiPageBody so inner flex-based items don't overflow their containers (#3375)
  • Added ReactElement to EuiCard image prop type to allow custom component (#3370)
  • Fixed EuiCollapsibleNavGroup titleSize prop type to properly exclude l and m sizes (#3365)
  • Fixed EuiDatePickerRange start date popover to sit left under the icon (#3383)
  • Fixed euiFormControlIsLoading SASS mixin to prevent the loading icon from overlapping with the text when the form control is compressed and adjusted the amount of padding (#3401
  • Fixed EuiHeader z-index issues with popovers and added body classes for the presence of EuiFlyout and EuiCollapsibleNav.isOpen (#3398)
  • Fixed EuiInMemoryTable data reset when filter is set and item is selected (#3419)
  • Fixed popoverPlacement default value for EuiDatePicker (#3427)

23.1.0

  • Removed additional padding applied to $euiHeaderHeightCompensation when EuiHeader is fixed (#3369)

Bug Fixes

  • Fixed EuiDescribedFormGroup issue that prevented it from shrinking down properly in smaller viewports (#3369)

23.0.0

  • Added showCloseButton and dockedBreakpoint flexibility to EuiCollapsibleNav (#3330)
  • Added panelStyle prop to EuiPopover to distinguish style object configuration (#3329)
  • Added popoverPlacement prop in EuiDatePicker (#3359)
  • Extended EuiDatePicker's startDate and endDate types to accept null values for better interoperability (#3343)
  • Added EuiCommentList component (#3344)
  • Added secondary color value input element to EuiColorPicker (#3336)

Bug Fixes

  • Fixed EuiInMemoryTable isClearable property to initiate reset (#3328)
  • Removed schema attribute form <input/> in EuiInMemoryTable (#3337)
  • Fixed EuiCollapsibleNav docked states on mobile (#3330)
  • Fixed EuiPopover positioning from being overridden by style prop (#3329)
  • Fixed EuiCodeBlock not copying updated content (#3351)
  • Fixed alignment of popover of end date of EuiDatePickerRange (#3359)

Breaking changes

  • Upgraded TypeScript to 3.7.2 (#3295)
  • Changed EuiCollapsibleNav prop name from hideButtonIfDocked to showButtonIfDocked and flipped default (#3330)

22.6.0

  • Converted NavDrawer, NavDrawerGroup, and NavDrawerFlyout to TypeScript (#3268)
  • Converted EuiDatePicker, EuiDatePickerRange, EuiSuperDatePicker, and EuiSuperUpdateButton to TypeScript (#2891)
  • Improved condensed EuiTabs focus states (#3299)
  • Added EuiTour, EuiTourStep, and useEuiTour components (#2766)
  • Added EuiBeacon component (#2766)
  • Added offset and arrowChildren props to EuiPopover for anchor element customization (#2766)

Bug Fixes

  • Fixed EuiProgress max property to allow undefined (#3198)

22.5.0

  • Added forceState prop to control EuiAccordion state from outside (#3240)

Bug Fixes

  • Fixed EuiI8n hasPropName utility errors on null values (#3303)
  • Fixed the inline styles being overwritten by consumer-passed inline styles in EuiBadge (#3284)

22.4.0

  • Added support for href, onClick, and related props in EuiBasicTable default actions (#3115)
  • Added support for EuiCodeEditor to set readonly and id on <textarea /> (#3212)
  • Added EuiComment component (#3179)

Deprecation

  • Updated makeId to DEPRECATED, shifted all the calls to htmlIdGenerator (#3129)

Bug Fixes

  • Fixed EuiTabbedContent focus discrepancy between selected and initialFocus tabs (#3285)
  • Fixed the initialSelectedTab prop of EuiTabbedContent to not steal focus from content. Which fixed the bug in EuiSuperDatePicker that required two clicks to focus input in relative tab (#3154)
  • Fixed the img element in EuiIcon using custom SVGs to have an alt attribute with an empty string, rather than no alt attribute at all (#3245)
  • Added overflows to EuiDataGrid toolbar dropdowns when there are many columns (#3238)
  • Fixed EuiIcon's icon type definition to allow custom React components (#3252)
  • Fixed initialSelectedTab properties used in EuiDatePopoverContent (#3254)
  • Fixed EuiSideNavItem overriding custom className of item and icon (#3283)
  • Fixed EuiFieldSearch clear button inconsistencies (#3270)
  • Fixed components with href usage of rel (#3258)

@thompsongl thompsongl added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes EUI v7.9.0 labels May 8, 2020
@thompsongl thompsongl changed the title Upgrade EUI to v23.3.0 Upgrade EUI to v23.3.1 May 14, 2020
@thompsongl thompsongl marked this pull request as ready for review May 15, 2020 21:00
@thompsongl thompsongl requested review from a team as code owners May 15, 2020 21:00
@thompsongl thompsongl requested a review from a team May 15, 2020 21:00
@thompsongl thompsongl requested a review from a team as a code owner May 15, 2020 21:00
Copy link
Contributor

@cjcenizal cjcenizal 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. Thanks for doing this!

Copy link
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

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

Operations: kbn-ui-shared update LGTM

Copy link
Contributor

@pgayvallet pgayvallet left a comment

Choose a reason for hiding this comment

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

LGTM for platform changes

@@ -35,7 +35,7 @@ export function DocViewer(renderProps: DocViewRenderProps) {
.getDocViewsSorted(renderProps.hit)
.map(({ title, render, component }: DocView, idx: number) => {
return {
id: title,
id: `kbn_doc_viewer_tab_${idx}`,
Copy link
Contributor

@flash1293 flash1293 May 18, 2020

Choose a reason for hiding this comment

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

Why was this change introduced? Generally it's better to not use the array position for these kind of identifiers. They will be reused when the array changes which can cause unexpected behavior. If there are uniqueness-concerns we could use both (kbn_doc_viewer_tab_${idx}_${title})

Copy link
Contributor Author

Choose a reason for hiding this comment

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

EUI now uses id as a DOM selector and these titles are not valid. We could remove spaces or otherwise transform the title string. Would that be preferable?

Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense, thanks for the explanation. I checked the code and it's not possible this particular array while change on the fly, so I think it's fine leaving it like this for now - no need to mess around with the title. If it would have been simple it would be preferable to not use the index, but no big deal.

Copy link
Contributor

@patrykkopycinski patrykkopycinski left a comment

Choose a reason for hiding this comment

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

SIEM changes look good, Thank you!

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.

Kibana App changes LGTM, code review only

Copy link
Contributor

@shahzad31 shahzad31 left a comment

Choose a reason for hiding this comment

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

For Fixed EuiFieldSearch clear button inconsistencies (#3270)
Seems like Clear button is displaying now, but it's position isn't alright, it's in the middle. see in below screen above table.

image

@thompsongl thompsongl requested a review from a team as a code owner May 18, 2020 21:39
@botelastic botelastic bot added the Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability label May 18, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@thompsongl
Copy link
Contributor Author

thompsongl commented May 18, 2020

Seems like Clear button is displaying now, but it's position isn't alright, it's in the middle. see in below screen above table.

@shahzad31 I updated the search field using a different layout approach. EuiFieldSearch is composed of a few different elements and setting a width via styled-components doesn't work well.
Used the full width option and limited size via a wrapping div. Handles responsive sizing better now, also.

Copy link
Contributor

@shahzad31 shahzad31 left a comment

Choose a reason for hiding this comment

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

LGTM !!

Copy link
Contributor

@lizozom lizozom left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@jonathan-buttner jonathan-buttner left a comment

Choose a reason for hiding this comment

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

Endpoint changes look good.

Copy link
Contributor

@igoristic igoristic 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 from Stack Monitoring pov 👍

@thompsongl
Copy link
Contributor Author

Google Cloud Storage timeout

jenkins test this

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

Copy link
Contributor

@poffdeluxe poffdeluxe left a comment

Choose a reason for hiding this comment

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

Canvas lgtm

@thompsongl thompsongl merged commit 204fd5b into elastic:master May 21, 2020
thompsongl added a commit to thompsongl/kibana that referenced this pull request May 21, 2020
* eui to 23.2.0

* nav drawer ts updates

* eui to 23.3.0

* src snapshot updates

* makeId -> htmlIdGenerator mocks

* EuiCodeBlock testenv element lookup

* x-pack snapshot updates

* remove obsolete EuiCode and EuiCodeBlock mocks

* eui to 23.3.1

* patch updates

* searchbar type update

* docViewer tabs use valid DOMString id

* docViewer snapshot

* header updates

* cert_search field wrapper update
thompsongl added a commit that referenced this pull request May 21, 2020
* eui to 23.2.0

* nav drawer ts updates

* eui to 23.3.0

* src snapshot updates

* makeId -> htmlIdGenerator mocks

* EuiCodeBlock testenv element lookup

* x-pack snapshot updates

* remove obsolete EuiCode and EuiCodeBlock mocks

* eui to 23.3.1

* patch updates

* searchbar type update

* docViewer tabs use valid DOMString id

* docViewer snapshot

* header updates

* cert_search field wrapper update
tsullivan pushed a commit to tsullivan/kibana that referenced this pull request May 21, 2020
* eui to 23.2.0

* nav drawer ts updates

* eui to 23.3.0

* src snapshot updates

* makeId -> htmlIdGenerator mocks

* EuiCodeBlock testenv element lookup

* x-pack snapshot updates

* remove obsolete EuiCode and EuiCodeBlock mocks

* eui to 23.3.1

* patch updates

* searchbar type update

* docViewer tabs use valid DOMString id

* docViewer snapshot

* header updates

* cert_search field wrapper 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 Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.9.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.