Conversation
|
Pinging @elastic/eui-design (EUI) |
x-pack/plugins/ui_actions_enhanced/public/custom_time_range_badge.tsx
Outdated
Show resolved
Hide resolved
|
@constancecchen Forgot to mention this in the original PR, but the - const MockedEuiSuperDatePicker = EuiSuperDatePicker as jest.MockedClass<typeof EuiSuperDatePicker>;
+ const MockedEuiSuperDatePicker = EuiSuperDatePicker as jest.MockedFunction<typeof EuiSuperDatePicker>; |
- Fix mock typeof: this changed because the exported EuiSuperDatePicker is no longer a class, but a functional component wrapper around a class - CI test: update now-capitalized datepicker select copy - Jest tests: update snapshots, find()s (`Memo()` selector change is due to the exported EuiSuperDatePicker change)
peteharverson
left a comment
There was a problem hiding this comment.
ML code change LGTM
|
Thanks y'all so much for the speedy approvals! Just wanted to give the remaining CODEOWNERS (@elastic/kibana-core , @elastic/kibana-app-services @elastic/security-solution) a heads up that we are on a timeline for this PR. Since it adds i18n for EuiSuperDatePicker (used extensively throughout Kibana), we're hoping to get this PR in before Friday, which will be when i18n tokens are extracted for translation. Thanks for your time! |
banderror
left a comment
There was a problem hiding this comment.
Security Solution LGTM 👍
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
💛 Build succeeded, but was flakyTest Failures
Metrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
* Upgrade EUI to v53.0.1 * Update i18n EUI mappings with new super date picker tokens * Update deprecated prettyDuration usage * Fix misc tests/type updates caused by EuiSuperDatePicker i18n release - Fix mock typeof: this changed because the exported EuiSuperDatePicker is no longer a class, but a functional component wrapper around a class - CI test: update now-capitalized datepicker select copy - Jest tests: update snapshots, find()s (`Memo()` selector change is due to the exported EuiSuperDatePicker change) * [kibana-app-services feedback] use renderToString Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 6a44f1f)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
* Upgrade EUI to v53.0.1 * Update i18n EUI mappings with new super date picker tokens * Update deprecated prettyDuration usage * Fix misc tests/type updates caused by EuiSuperDatePicker i18n release - Fix mock typeof: this changed because the exported EuiSuperDatePicker is no longer a class, but a functional component wrapper around a class - CI test: update now-capitalized datepicker select copy - Jest tests: update snapshots, find()s (`Memo()` selector change is due to the exported EuiSuperDatePicker change) * [kibana-app-services feedback] use renderToString Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 6a44f1f) Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Summary
eui@52.2.0⏩eui@53.0.153.0.1Bug fixes
EuiContext.i18n'smappingFuncnot being called forEuiI18ns with multiple tokens or function callbacks (#5748)EuiIconwhen using a custom data URItype(#5751)53.0.0EuiSuperDatePicker(#5743)Breaking changes
prettyDurationutility exported byEuiSuperDatePicker- this util was converted to aPrettyDurationcomponent andusePrettyDurationhook which should be used instead (#5743)commonDurationRangesexported byEuiSuperDatePicker. The new pretty duration utils will fall back tocommonDurationRangesby default if noquickRangesare passed (#5743)