Conversation
8cdad05 to
c4fb12a
Compare
+ backport
- removed in EUI, and no longer needed, as range components now contain their own resize observer and update automatically on width changes
| // TODO: https://github.com/elastic/kibana/issues/161456 | ||
| // The About step page contains EuiRange component which does not work properly within memoized parents. | ||
| // EUI team suggested not to memoize EuiRange/EuiDualRange: https://github.com/elastic/eui/issues/6846 | ||
| // Workaround: We force EuiRange re-rendering by removing/adding it into the DOM. | ||
| // NOTE: We should remove this workaround once EUI team fixed EuiRange. | ||
| // Related ticket: https://github.com/elastic/kibana/issues/160561 | ||
| } | ||
| {isActive && ( | ||
| <EuiFormRow |
There was a problem hiding this comment.
@e40pud I tested this locally and it appears to be working for me, but would super appreciate a second confirmation/QA! ✨
There was a problem hiding this comment.
Tested locally. There is no issue anymore! Thanks for fixing this!!
|
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
| const rangeRef = useRef<EuiDualRangeRef>(null); | ||
|
|
||
| const onPanelResize = (width: number) => { | ||
| rangeRef.current?.onResize(width); | ||
| }; |
There was a problem hiding this comment.
This ref and method call were removed because EuiDualRange now contains its own resize observer and automatically adjusts its width accordingly.
PhilippeOberti
left a comment
There was a problem hiding this comment.
changes LGTM for the Protections Experience team!
Heenawter
left a comment
There was a problem hiding this comment.
EUI-provided resize observer works great for the time slider 🎉 Thanks for that change!
opauloh
left a comment
There was a problem hiding this comment.
Cloud Security Posture changes LGTM
smith
left a comment
There was a problem hiding this comment.
APM/Synthetics/Uptime changes look good.
peteharverson
left a comment
There was a problem hiding this comment.
ML code changes LGTM
| // TODO: https://github.com/elastic/kibana/issues/161456 | ||
| // The About step page contains EuiRange component which does not work properly within memoized parents. | ||
| // EUI team suggested not to memoize EuiRange/EuiDualRange: https://github.com/elastic/eui/issues/6846 | ||
| // Workaround: We force EuiRange re-rendering by removing/adding it into the DOM. | ||
| // NOTE: We should remove this workaround once EUI team fixed EuiRange. | ||
| // Related ticket: https://github.com/elastic/kibana/issues/160561 | ||
| } | ||
| {isActive && ( | ||
| <EuiFormRow |
There was a problem hiding this comment.
Tested locally. There is no issue anymore! Thanks for fixing this!!
efegurkan
left a comment
There was a problem hiding this comment.
Enterprise Search LGTM. Code review only
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
`v91.3.1`⏩`v92.0.0-backport.0` --- ## [`v92.0.0-backport.0`](https://github.com/elastic/eui/releases/v92.0.0-backport.0) **This is a backport release only intended for use by Kibana.** **Bug fixes** - Fixed an `EuiTreeView` JSX Typescript error ([elastic#7452](elastic/eui#7452)) - Fixed a color console warning being generated by disabled `EuiStep`s ([elastic#7454](elastic/eui#7454)) ## [`v92.0.0`](https://github.com/elastic/eui/releases/v92.0.0) - Updated generic types of `EuiBasicTable`, `EuiInMemoryTable` and `EuiSearchBar.Query.execute` to add `extends object` constraint ([elastic#7340](elastic/eui#7340)) - This change should have no impact on your applications since the updated types only affect properties that exclusively accept object values. - Added a new `EuiFlyoutResizable` component ([elastic#7439](elastic/eui#7439)) - Updated `EuiTextArea` to accept `isClearable` and `icon` as props ([elastic#7449](elastic/eui#7449)) **Bug fixes** - `EuiRange`/`EuiDualRange`'s track ticks & highlights now update their positions on resize ([elastic#7442](elastic/eui#7442)) **Deprecations** - Updated `EuiFilterButton` to remove the second `.euiFilterButton__textShift` span wrapper. Target `.euiFilterButton__text` instead ([elastic#7444](elastic/eui#7444)) **Breaking changes** - Removed deprecated `EuiNotificationEvent`. We recommend copying the component to your application if necessary ([elastic#7434](elastic/eui#7434)) - Removed deprecated `EuiControlBar`. We recommend using `EuiBottomBar` instead ([elastic#7435](elastic/eui#7435))
kpatticha
left a comment
There was a problem hiding this comment.
APM code changes LGTM. I didn't check for UI regressions though
v91.3.1⏩v92.0.0-backport.0v92.0.0-backport.0This is a backport release only intended for use by Kibana.
Bug fixes
EuiTreeViewJSX Typescript error (#7452)EuiSteps (#7454)v92.0.0EuiBasicTable,EuiInMemoryTableandEuiSearchBar.Query.executeto addextends objectconstraint (#7340)EuiFlyoutResizablecomponent (#7439)EuiTextAreato acceptisClearableandiconas props (#7449)Bug fixes
EuiRange/EuiDualRange's track ticks & highlights now update their positions on resize (#7442)Deprecations
EuiFilterButtonto remove the second.euiFilterButton__textShiftspan wrapper. Target.euiFilterButton__textinstead (#7444)Breaking changes
EuiNotificationEvent. We recommend copying the component to your application if necessary (#7434)EuiControlBar. We recommend usingEuiBottomBarinstead (#7435)