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 v99.2.0-borealis.0 #209690

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

tkajtoch
Copy link
Member

@tkajtoch tkajtoch commented Feb 5, 2025

99.1.0-borealis.099.2.0-borealis.0

Questions? Please see our Kibana upgrade FAQ.


v99.2.0

  • Changed EuiFieldText styles to prioritize disabled styling over readonly. (#8271)
  • Added plugs and web glyphs to EuiIcon (#8285)
  • Update title on EuiColorPalettePickerPaletteProps to be optional (#8289)

Bug fixes

  • Fixed an issue with EuiDataGrid with auto row height resulting in a table of 0 height (#8251)
  • Fixed disabled behavior of EuiFieldText to prevent input changes. (#8271)

Borealis changes

  • [Visual Refresh] Provide hooks for color palette functions (#8284)
  • [Visual Refresh] Make Borealis default theme in EUI (#8288)

As you can probably tell, there are plenty of updated tests and snapshots this time around. They are the result of the following:

  1. We've updated the default theme in @elastic/eui v99.2.0 to Borealis, which led to kibana tests using renderWithTheme, mountWithTheme, and other utility functions that wrap the tested component in <EuiThemeProvider> to switch to the correct, new color values. With this change, all tests should now use Borealis, regardless of the testing framework or its configuration.
  2. Because of the default theme change in EUI, some class name hash fragments (e.g., css-wprskz-euiButtonIcon-xs-empty-primary) regenerated.

Most Borealis-related changes in this PR are test env only and have no impact on what users see when using Kibana.

@tkajtoch
Copy link
Member Author

tkajtoch commented Feb 9, 2025

@elasticmachine merge upstream

@tkajtoch tkajtoch marked this pull request as ready for review February 9, 2025 22:24
@tkajtoch tkajtoch requested review from a team as code owners February 9, 2025 22:24
@tkajtoch tkajtoch requested review from a team as code owners February 9, 2025 22:24
@elasticmachine
Copy link
Contributor

Pinging @elastic/eui-team (EUI)

@tkajtoch tkajtoch requested a review from a team as a code owner February 9, 2025 22:24
@tkajtoch tkajtoch requested a review from dhurley14 February 9, 2025 22:24
@elasticmachine
Copy link
Contributor

elasticmachine commented Feb 9, 2025

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #15 / lens app - group 5 lens heatmap should reflect the apply stop value without rounding
  • [job] [logs] FTR Configs #15 / lens app - group 5 lens heatmap should reflect the apply stop value without rounding

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
controls 473 459 -14
dashboard 728 714 -14
maps 1337 1323 -14
ml 2217 2203 -14
visTypeVega 289 275 -14
total -70

Async chunks

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

id before after diff
controls 495.3KB 441.8KB -53.5KB
dashboard 600.9KB 547.4KB -53.5KB
maps 3.0MB 3.0MB -53.5KB
ml 4.7MB 4.7MB -53.5KB
visTypeVega 1.9MB 1.8MB -53.5KB
total -267.5KB

Page load bundle

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

id before after diff
controls 11.3KB 11.3KB +67.0B
dashboard 17.8KB 17.9KB +67.0B
kbnUiSharedDeps-npmDll 5.9MB 6.0MB +61.2KB
kbnUiSharedDeps-srcJs 3.6MB 3.6MB -57.5KB
maps 51.9KB 52.0KB +67.0B
ml 78.0KB 78.1KB +67.0B
visTypeVega 33.8KB 33.9KB +67.0B
total +4.1KB

History

cc @tkajtoch

Copy link
Contributor

@mattkime mattkime left a comment

Choose a reason for hiding this comment

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

codeowner changes lgtm

@botelastic botelastic bot added Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team Team:obs-ux-management Observability Management User Experience Team labels Feb 10, 2025
@elasticmachine
Copy link
Contributor

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

@elasticmachine
Copy link
Contributor

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

@jeramysoucy jeramysoucy self-requested a review February 10, 2025 09:58
Copy link
Contributor

@jeramysoucy jeramysoucy left a comment

Choose a reason for hiding this comment

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

Kibana-Security changes LGTM. Just a nit for non-snapshot testing.

@@ -78,7 +78,7 @@ test('updates identifier, initials and color when name is changed', () => {
id: 'space-2',
name: 'Space 2',
initials: 'S2',
color: '#9170B8',
color: '#BFDBFF',
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: it would be nice if these color values were constants somewhere that could be referenced across all tests.

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.

Code changes for ML LGTM - gave the color changes for the NER trained model test a visual check.

{ key: '8,529.2 - 11,335.66', name: '8,529.2 - 11,335.66', color: '#c8deff' },
{ key: '11,335.66 - 14,142.1', name: '11,335.66 - 14,142.1', color: '#f6f9fc' },
{ key: '14,142.1 - 16,948.55', name: '14,142.1 - 16,948.55', color: '#ffccc6' },
{ key: '7,747 - 8,529.2', name: '7,747 - 8,529.2', color: '#61a2ff' },
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure why this label would change here?

@tkajtoch tkajtoch added backport:version Backport to applied version labels v9.0.0 v9.1.0 release_note:skip Skip the PR/issue when compiling release notes labels Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels EUI release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team Team:obs-ux-management Observability Management User Experience Team v9.0.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants