-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Refactor usage of sparkline chart styles #179503
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
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
obs-ux-logs changes LGTM
...public/application/sections/alert_summary_widget/components/alert_summary_widget_compact.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome job! 💯
💛 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: |
Summary
Refactor usage of
EUI_SPARKLINE_THEME_PARTIAL
from eui across kibana.useSparklineOverrides
hook tocharts
plugintheme
servicebaseTheme
directly from localcharts
plugin within thetrigger_action_ui
plugin instead of where the component is used, passed asChartProps
.ChartProps.theme
fromalert_summary_widget
tothemeOverrides
Checklist