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 v93.1.1 #176762

Merged
merged 9 commits into from
Feb 20, 2024
Merged

Upgrade EUI to v93.1.1 #176762

merged 9 commits into from
Feb 20, 2024

Conversation

cee-chen
Copy link
Member

@cee-chen cee-chen commented Feb 12, 2024

v93.0.0v93.1.1


v93.1.1

This is a patch release primarily intended for use by Kibana.

  • Added top-level EuiTreeView.Item export (#7526)

v93.1.0

  • Added index glyph to EuiIcon (#7498)
  • Updated EuiHighlight to accept an array of search strings, which allows highlighting multiple, separate words within its children. This new type and behavior only works if highlightAll is also set to true. (#7496)
  • Updated EuiContextMenu with a new panels.items.renderItem property, which allows rendering completely custom items next to standard EuiContextMenuItem objects (#7510)
  • EuiSuperDatePicker updates:
    • Updated EuiSuperDatePicker with a new refreshIntervalUnits prop. Passing this prop allows controlling and overriding the default unit rounding behavior. (#7501)
    • Updated EuiAutoRefresh and EuiRefreshInterval with a new intervalUnits prop. Passing this prop allows controlling and overriding the default unit rounding behavior. (#7501)
    • Updated onRefreshChange to pass back a new intervalUnits key that contains the current interval unit format (seconds, minutes, or hours). (#7501)
    • Updated EuiSuperDatePicker with a new canRoundRelativeUnits prop, which defaults to true (current behavior). To preserve displaying the unit that users select for relative time, set this to false. (#7502)
    • Updated EuiSuperDatePicker with a new refreshMinInterval prop, which accepts a minimum number in milliseconds (#7516)
    • Updated EuiAutoRefresh and EuiRefreshInterval with a new minInterval prop, which accepts a minimum number in milliseconds (#7516)

Bug fixes

  • Fixed EuiHighlight to not parse search strings as regexes (#7496)
  • Fixed EuiSuperDatePicker submit bug when used within <form> elements (#7504)
  • Fixed an EuiTreeView bug where aria-expanded was being applied to items without expandable children (#7513)

CSS-in-JS conversions

  • Converted EuiTreeView to Emotion. Updates as part of the conversion: (#7513)
    • Removed .euiTreeView__wrapper div node
    • Enforced consistent icon size based on display size

@cee-chen cee-chen added release_note:skip Skip the PR/issue when compiling release notes EUI v8.14.0 labels Feb 12, 2024
@cee-chen cee-chen force-pushed the eui/v93.1.0 branch 4 times, most recently from 0f0b282 to a9f7324 Compare February 13, 2024 16:38
Copy link
Member Author

Choose a reason for hiding this comment

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

@opauloh Please feel free to pull down and QA this component locally. I'm fairly sure with the local data given that this still looks/works as expected, but would appreciate someone more familiar with production end-usage testing it!

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @cee-chen

Tested the Kubernetes TreeView with more data and the functionality looks good. There are two clusters with data from other integrations and it now shows the no data available message, thanks for adding that!

I only found one bug, when there were a lot of nested children it gets oddly positioned among the other elements of the tree, here's the screen recording:

Screen.Recording.2024-02-15.at.4.28.21.PM.mov

Tried to quickly figure out what was possibly causing the issue, looks like there's a max block size set to 100vh, and removing it seems to fix the issue.

Screen.Recording.2024-02-15.at.4.29.02.PM.mov

Copy link
Member Author

Choose a reason for hiding this comment

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

@opauloh 100vh override was pushed up in 740a1fb, let me know if that fixes the issue for you!

@cee-chen cee-chen marked this pull request as ready for review February 13, 2024 20:43
@cee-chen cee-chen requested review from a team as code owners February 13, 2024 20:43
@elasticmachine
Copy link
Contributor

Pinging @elastic/eui-team (EUI)

@botelastic botelastic bot added the Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team label Feb 13, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

Copy link
Contributor

@cauemarcondes cauemarcondes left a comment

Choose a reason for hiding this comment

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

APM LGTM

- also removed in EUI and doesn't really enhance SR experience (reviewed by a11y engineer)
…ation

- remove usages of EUI classNames, which no longer have any attached styles

- clean up/as many unecessary styles as possible in favor of using component instead

+ clean up loading UI in favor of using existing `icon` props on components
- put the `onKeyDown` on the text wrapper instead, since that already exists
- have a single expand/select action instead, which is more correct from an a11y perspective
…ems with arrow toggles but no children

+ remove hover/focus state for loading & empy messages
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Investigations - Security Solution Cypress Tests #6 / Basic esql search and filter operations "before each" hook for "should remove the query when the back button is pressed after adding a query" "before each" hook for "should remove the query when the back button is pressed after adding a query"

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
kubernetesSecurity 60 198 +138

Async chunks

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

id before after diff
enterpriseSearch 2.7MB 2.7MB -1.0B
kubernetesSecurity 38.6KB 205.1KB +166.6KB
maps 2.9MB 2.9MB -1.0B
serverlessSearch 426.8KB 426.7KB -1.0B
total +166.6KB

Page load bundle

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

id before after diff
core 384.6KB 384.4KB -185.0B
kbnUiSharedDeps-css 282.1KB 280.1KB -2.0KB
kbnUiSharedDeps-npmDll 6.2MB 6.2MB +6.0KB
kubernetesSecurity 5.8KB 6.0KB +213.0B
total +4.1KB

History

  • 💚 Build #193954 succeeded 68547a85dbda2ef3ddeac8ff4aab9d45efcc89d1
  • 💔 Build #193889 failed 715e42aa845678674ef9b8d08cca49a72291d6d0
  • 💚 Build #193424 succeeded eb0fc7131c677699bdd8d4b28f186b00ef751ec5
  • 💚 Build #193172 succeeded 0f0b282fd9713f16fbb40d5bd84066b702b85550
  • 💛 Build #193167 was flaky b5b968fce7f14e78cc7e5be6cc008eebad307748
  • 💔 Build #193137 failed ddb655a2c535da1413b943f03ea13ecc859669ea

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

Copy link
Contributor

@opauloh opauloh left a comment

Choose a reason for hiding this comment

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

LGTM 🚀 thanks @cee-chen !

@cee-chen cee-chen merged commit 2680755 into elastic:main Feb 20, 2024
35 checks passed
@cee-chen cee-chen deleted the eui/v93.1.0 branch February 20, 2024 17:29
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Feb 20, 2024
fkanout pushed a commit to fkanout/kibana that referenced this pull request Mar 4, 2024
`v93.0.0` ⏩ `v93.1.1`

---

## [`v93.1.1`](https://github.com/elastic/eui/releases/v93.2.0)

**This is a patch release primarily intended for use by Kibana.**

- Added top-level `EuiTreeView.Item` export
([elastic#7526](elastic/eui#7526))

## [`v93.1.0`](https://github.com/elastic/eui/releases/v93.1.0)

- Added `index` glyph to `EuiIcon`
([elastic#7498](elastic/eui#7498))
- Updated `EuiHighlight` to accept an array of `search` strings, which
allows highlighting multiple, separate words within its children. This
new type and behavior *only* works if `highlightAll` is also set to
true. ([elastic#7496](elastic/eui#7496))
- Updated `EuiContextMenu` with a new `panels.items.renderItem`
property, which allows rendering completely custom items next to
standard `EuiContextMenuItem` objects
([elastic#7510](elastic/eui#7510))
- `EuiSuperDatePicker` updates:
- Updated `EuiSuperDatePicker` with a new `refreshIntervalUnits` prop.
Passing this prop allows controlling and overriding the default unit
rounding behavior. ([elastic#7501](elastic/eui#7501))
- Updated `EuiAutoRefresh` and `EuiRefreshInterval` with a new
`intervalUnits` prop. Passing this prop allows controlling and
overriding the default unit rounding behavior.
([elastic#7501](elastic/eui#7501))
- Updated `onRefreshChange` to pass back a new `intervalUnits` key that
contains the current interval unit format (seconds, minutes, or hours).
([elastic#7501](elastic/eui#7501))
- Updated `EuiSuperDatePicker` with a new `canRoundRelativeUnits` prop,
which defaults to true (current behavior). To preserve displaying the
unit that users select for relative time, set this to false.
([elastic#7502](elastic/eui#7502))
- Updated `EuiSuperDatePicker` with a new `refreshMinInterval` prop,
which accepts a minimum number in milliseconds
([elastic#7516](elastic/eui#7516))
- Updated `EuiAutoRefresh` and `EuiRefreshInterval` with a new
`minInterval` prop, which accepts a minimum number in milliseconds
([elastic#7516](elastic/eui#7516))

**Bug fixes**

- Fixed `EuiHighlight` to not parse `search` strings as regexes
([elastic#7496](elastic/eui#7496))
- Fixed `EuiSuperDatePicker` submit bug when used within `<form>`
elements ([elastic#7504](elastic/eui#7504))
- Fixed an `EuiTreeView` bug where `aria-expanded` was being applied to
items without expandable children
([elastic#7513](elastic/eui#7513))

**CSS-in-JS conversions**

- Converted `EuiTreeView` to Emotion. Updates as part of the conversion:
([elastic#7513](elastic/eui#7513))
  - Removed `.euiTreeView__wrapper` div node
  - Enforced consistent `icon` size based on `display` size
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 Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v8.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants