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 v90.0.1 #172261

Merged
merged 3 commits into from
Nov 30, 2023
Merged

Upgrade EUI to v90.0.1 #172261

merged 3 commits into from
Nov 30, 2023

Conversation

cee-chen
Copy link
Member

v90.0.0v90.0.1

This release also contains updates to EuiCollapsibleNavBeta, to support serverless UX (elastic/eui#7337).


90.0.1

This release is a backport intended for Kibana 8.12.

  • EuiSelectable now allows configurable text truncation via listProps.truncationProps (#7388)
  • EuiTextTruncate now supports a new calculationDelayMs prop for working around font loading or layout shifting scenarios (#7388)

cee-chen and others added 2 commits November 30, 2023 03:28
- save me Sebastian!

- component was updated to use an ExclusiveUnion and not accept both `href/linkProps` or `items/accordionProps` etc

- going to leave as-is for now as I'm not confident in my ability to not break code, and the component should handle excess props gracefully
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Page load bundle

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

id before after diff
kbnUiSharedDeps-npmDll 6.2MB 6.2MB +1.1KB

History

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

@cee-chen cee-chen marked this pull request as ready for review November 30, 2023 13:55
@cee-chen cee-chen requested review from a team as code owners November 30, 2023 13:55
@@ -290,6 +290,7 @@ const nodeToEuiCollapsibleNavProps = (
}

const items: Array<EuiCollapsibleNavItemProps | EuiCollapsibleNavSubItemPropsEnhanced> = [
// @ts-ignore - TODO
Copy link
Member Author

@cee-chen cee-chen Nov 30, 2023

Choose a reason for hiding this comment

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

@sebelga Apologies for these TODOs for you/your team - I briefly (5-15 minutes) spiked out resolving the Typescript errors, but it involved removing several props and I was not confident that I was doing it correctly.

Unfortunately the EUI team doesn't have bandwidth right now to correctly address this before 8.12FF, so I thought I'd just get in the component changes sooner and have you take a look at the type reconciliation later.

FWIW, the type was updated in elastic/eui#7337 to use an ExclusiveUnion and not accept either href/linkProps or items/accordionProps/isCollapsed, but not both.

The type errors do not affect actual production behavior, the component handles excess props gracefully and does not pass href down to accordions or groups with items.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok no worries, I'll fix the type in a separate PR 👍

@cee-chen cee-chen added release_note:skip Skip the PR/issue when compiling release notes EUI v8.12.0 labels Nov 30, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/eui-team (EUI)

Copy link
Contributor

@sebelga sebelga left a comment

Choose a reason for hiding this comment

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

Thanks for bringing the change to Kibana! 👍 I'll look into the type issue as a follow up work

@@ -290,6 +290,7 @@ const nodeToEuiCollapsibleNavProps = (
}

const items: Array<EuiCollapsibleNavItemProps | EuiCollapsibleNavSubItemPropsEnhanced> = [
// @ts-ignore - TODO
Copy link
Contributor

Choose a reason for hiding this comment

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

Ok no worries, I'll fix the type in a separate PR 👍

@cee-chen cee-chen merged commit 55b09e2 into elastic:main Nov 30, 2023
37 checks passed
@cee-chen cee-chen deleted the eui-90.0.1 branch November 30, 2023 14:10
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Nov 30, 2023
cee-chen added a commit that referenced this pull request Dec 4, 2023
`v90.0.1`⏩`v90.0.1-backport.0`

Backport/bugfix for #172261

---

##
[`v90.0.1-backport.0`](https://github.com/elastic/eui/releases/v90.0.1-backport.0)

**This is a backport release only intended for use by Kibana.**

**Bug fixes**

- Fixed a bug with `EuiSelectable`s with custom `truncationProps`, where
scrollbar widths were not being accounted for
([#7392](elastic/eui#7392))
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.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants