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 v95.1.0 #186324

Merged
merged 11 commits into from
Jun 21, 2024
Merged

Upgrade EUI to v95.1.0 #186324

merged 11 commits into from
Jun 21, 2024

Conversation

cee-chen
Copy link
Contributor

@cee-chen cee-chen commented Jun 17, 2024

v95.0.0-backport.0v95.1.0-backport.0

This PR primarily concerns converting multiple common/building block form control components to Emotion (text, number, and search fields). This means that custom CSS or direct className usage of these form controls should be manually QA'd to ensure they still look the same before visually, with no regressions.

Questions? Please see our Kibana upgrade FAQ.


v95.1.0

  • Updated EuiFormControlLayout to automatically pass icon padding affordance down to child inputs (#7799)

Bug fixes

  • Fixed broken focus/invalid styling on compressed EuiDatePickerRanges (#7770)

CSS-in-JS conversions

  • Converted EuiFieldText to Emotion (#7770)
  • Updated the autofill colors of Chrome (and other webkit browsers) to better match EUI's light and dark mode (#7776)
  • Converted EuiFieldNumber to Emotion (#7802)
  • Converted EuiFieldSearch to Emotion (#7802)
  • Converted EuiFieldPassword to Emotion (#7802)
  • Converted EuiTextArea to Emotion (#7812)
  • Converted EuiSelect to Emotion (#7812)
  • Converted EuiSuperSelect to Emotion (#7812)

v95.1.0-backport.0

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

  • Updated EuiSteps to support a new titleSize="xxs" style, which outputs the same title font size but smaller unnumbered step indicators (#7813)
  • Updated EuiStepsHorizontal to support a new size="xs" style, which outputs smaller unnumbered step indicators (#7813)
  • Updated EuiStepNumber to support new titleSize="none" which omits rendering step numbers, and will only render icons (#7813)

cee-chen added 4 commits June 18, 2024 10:53
- in favor of icon configuration which sets the icon on the desired side (right) and automatically accounts for other icons/padding

- remove `[readonly]` CSS, as the component isn't even setting a readonly prop so I'm not sure what that CSS is doing??
cee-chen added 5 commits June 18, 2024 12:39
- no longer has any styles attached as of Emotion conversion, so manually apply styles instead
- should be using the top level import, not reaching directly into the file
- prefer `.render()`ed snapshot instead Enzyme wrapper snapshot
@cee-chen
Copy link
Contributor Author

/ci

@cee-chen cee-chen marked this pull request as ready for review June 18, 2024 21:59
@cee-chen cee-chen requested review from a team as code owners June 18, 2024 21:59
@cee-chen cee-chen requested a review from dhurley14 June 18, 2024 21:59
@cee-chen cee-chen added release_note:skip Skip the PR/issue when compiling release notes EUI v8.15.0 labels Jun 18, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/eui-team (EUI)

@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Jun 18, 2024
@yuliacech yuliacech self-requested a review June 20, 2024 09:22
@jennypavlova jennypavlova self-requested a review June 20, 2024 13:45
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.

detection engine team changes LGTM. Thanks. Just snapshot updates.

Copy link
Member

@jennypavlova jennypavlova left a comment

Choose a reason for hiding this comment

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

The code changes look good! 💯
I am not 100% sure if it's related to the PR but I saw this while testing:

  • The left paddings of the control drop-downs are missing (Infra -> Hosts)
    image

  • Some search bars have borders on click some do not (APM & Infra -> Alerts)

Screen.Recording.2024-06-20.at.17.06.04.mov
Screen.Recording.2024-06-20.at.16.58.42.mov

@Heenawter
Copy link
Contributor

Heenawter commented Jun 20, 2024

The left paddings of the control drop-downs are missing (Infra -> Hosts)

@jennypavlova FYI - I looked into this, and this is most likely a result of #184533 + how the Hosts page modifies the renderPrepend in .../pages/metrics/hosts/components/search_bar/controls_content.tsx :) Don't think it's related to this EUI update.

@jennypavlova
Copy link
Member

FYI - I looked into this, and this is most likely a result of #184533 + how the Hosts page modifies the renderPrepend in .../pages/metrics/hosts/components/search_bar/controls_content.tsx :) Don't think it's related to this EUI update.

@Heenawter Thanks for pointing that out! Looks like it's a recent bug as I couldn't see it on an earlier main version. Do we have an open issue for fixing that?

@cee-chen Sorry for that, I wasn't sure where this bug came from and I saw it on the branch, I will approve 👍

From a scan of this theme, this likely shouldn't be affecting _all_ `input` elements wholesale in any case
@cee-chen cee-chen requested a review from a team as a code owner June 20, 2024 16:17
Copy link
Contributor

@Heenawter Heenawter left a comment

Choose a reason for hiding this comment

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

Canvas snapshot changes + quick review of Dashboard to ensure no style impacts. LGTM 👍

@cee-chen
Copy link
Contributor Author

@jennypavlova Thanks so much for the thorough QA Jenny and Hannah, y'all rock! The missing border on focus issue should be fixed now with the latest commit, and I appreciate you flagging that so much 🙇

Feel free to ping us if we can help out with the odd padding behavior of form prepend/append nodes. As Hannah noted, those should not have been affected by this PR (not yet migrated to Emotion), although that will be happening soon.

@jennypavlova
Copy link
Member

@cee-chen Thank you for fixing the borders, they look fine now! 💯

@kibana-ci
Copy link
Collaborator

kibana-ci commented Jun 20, 2024

💛 Build succeeded, but was flaky

Failed CI Steps

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
security 587.8KB 587.8KB -37.0B
securitySolution 13.6MB 13.6MB -537.0B
triggersActionsUi 1.7MB 1.7MB -23.0B
total -597.0B

Page load bundle

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

id before after diff
kbnUiSharedDeps-css 240.9KB 217.9KB -23.0KB
kbnUiSharedDeps-npmDll 6.0MB 6.0MB +9.7KB
total -13.3KB

History

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

Copy link
Member

@saarikabhasi saarikabhasi left a comment

Choose a reason for hiding this comment

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

Search changes LGTM. Tested locally.

@cee-chen cee-chen enabled auto-merge (squash) June 21, 2024 14:49
@Ikuni17 Ikuni17 disabled auto-merge June 21, 2024 16:10
@Ikuni17 Ikuni17 merged commit 04d6c1d into elastic:main Jun 21, 2024
52 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Jun 21, 2024
bhapas pushed a commit to bhapas/kibana that referenced this pull request Jun 24, 2024
`v95.0.0-backport.0` ⏩ `v95.1.0-backport.0`

This PR primarily concerns converting multiple common/building block
form control components to Emotion (text, number, and search fields).
This means that custom CSS or direct `className` usage of these form
controls **should be manually QA'd** to ensure they still look the same
before visually, with no regressions.

_[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_

---

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

- Updated `EuiFormControlLayout` to automatically pass icon padding
affordance down to child `input`s
([elastic#7799](elastic/eui#7799))

**Bug fixes**

- Fixed broken focus/invalid styling on compressed `EuiDatePickerRange`s
([elastic#7770](elastic/eui#7770))

**CSS-in-JS conversions**

- Converted `EuiFieldText` to Emotion
([elastic#7770](elastic/eui#7770))
- Updated the autofill colors of Chrome (and other webkit browsers) to
better match EUI's light and dark mode
([elastic#7776](elastic/eui#7776))
- Converted `EuiFieldNumber` to Emotion
([elastic#7802](elastic/eui#7802))
- Converted `EuiFieldSearch` to Emotion
([elastic#7802](elastic/eui#7802))
- Converted `EuiFieldPassword` to Emotion
([elastic#7802](elastic/eui#7802))
- Converted `EuiTextArea` to Emotion
([elastic#7812](elastic/eui#7812))
- Converted `EuiSelect` to Emotion
([elastic#7812](elastic/eui#7812))
- Converted `EuiSuperSelect` to Emotion
([elastic#7812](elastic/eui#7812))

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

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

- Updated `EuiSteps` to support a new `titleSize="xxs"` style, which
outputs the same title font size but smaller unnumbered step indicators
([elastic#7813](elastic/eui#7813))
- Updated `EuiStepsHorizontal` to support a new `size="xs"` style, which
outputs smaller unnumbered step indicators
([elastic#7813](elastic/eui#7813))
- Updated `EuiStepNumber` to support new `titleSize="none"` which omits
rendering step numbers, and will only render icons
([elastic#7813](elastic/eui#7813))
@cee-chen cee-chen deleted the eui/v95.1.0 branch June 24, 2024 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apm:review backport:skip This commit does not require backporting ci:project-deploy-observability Create an Observability project EUI release_note:skip Skip the PR/issue when compiling release notes v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.