Refactor usage of sparkline chart styles#179503
Merged
nickofthyme merged 15 commits intoelastic:mainfrom Apr 10, 2024
Merged
Conversation
- remove usage of `EUI_SPARKLINE_THEME_PARTIAL` from eui - add `useSparklineOverrides` hook to charts.theme plugin - refactor usages across kibana - refactor trigger action ui alert summary to read base theme from charts.theme, rename theme props to themeOverrides
4 tasks
Contributor
|
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
yngrdyn
approved these changes
Apr 2, 2024
Contributor
yngrdyn
left a comment
There was a problem hiding this comment.
obs-ux-logs changes LGTM
...public/application/sections/alert_summary_widget/components/alert_summary_widget_compact.tsx
Outdated
Show resolved
Hide resolved
Member
maryam-saeidi
left a comment
There was a problem hiding this comment.
Overall, LGTM, nice improvement! ✨
I just added one clarification question to our discussion to make sure I understand how the current implementation works.
...on/observability/public/pages/overview/components/sections/metrics/metric_with_sparkline.tsx
Show resolved
Hide resolved
x-pack/plugins/triggers_actions_ui/public/application/sections/alert_summary_widget/types.ts
Show resolved
Hide resolved
XavierM
approved these changes
Apr 5, 2024
markov00
approved these changes
Apr 10, 2024
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refactor usage of
EUI_SPARKLINE_THEME_PARTIALfrom eui across kibana.useSparklineOverrideshook tochartspluginthemeservicebaseThemedirectly from localchartsplugin within thetrigger_action_uiplugin instead of where the component is used, passed asChartProps.ChartProps.themefromalert_summary_widgettothemeOverridesChecklist