-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
Alerting: Expression card improvements #70395
Alerting: Expression card improvements #70395
Conversation
…t depending on the type
I think there are a few small UI issues to fix here (like the empty footer which looks a bit out-of-place) and I'm a tad concerned about the dual-column design which isn't very responsive for larger screens. |
what do you mean with the 'empty footer'? @gillesdemey
we should tag @dhalachliyski regarding this one |
Good catch! yes, I agree. |
.../features/alerting/unified/components/rule-editor/query-and-alert-condition/reducer.test.tsx
Show resolved
Hide resolved
…he screen width for non classic conditions
b6907eb
to
20f4db8
Compare
a6c40bb
to
6fa5b79
Compare
I think in terms of expression comprehension we've taken a step back here – some of the other improvements in this PR are great but the expression card layout isn't one of them. Below some screenshots with multiple expressions (before / after) and some thoughts Before
After
I'd love to cherry pick the improvements that make sense so we can merge the PR. The dynamic width of the chart visualization is great, I love the new expression "picker" with the dropdown and the alert condition in the header makes sense (though it was in the footer so we could align time series). |
…ing on the screen width for non classic conditions" This reverts commit 20f4db8.
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.
Great improvements, LGTM!
* Show description for each expression type in the body and change widht depending on the type * Move condition indicator to the header * Make order of fields in expressions to be consistent for each expression type * Add tooltip for expression type menu * Update styles depending on the expression type * Update styles and move add query button under queries * Add NeedHelpInfo component * Adress PR review comments * Apply description updates from #70540 * Rename gelTypes to expressionTypes * Update layout for expressions according to the real usecases * Update footer to include series count in all expressions --------- Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
* Show description for each expression type in the body and change widht depending on the type * Move condition indicator to the header * Make order of fields in expressions to be consistent for each expression type * Add tooltip for expression type menu * Update styles depending on the expression type * Update styles and move add query button under queries * Add NeedHelpInfo component * Adress PR review comments * Apply description updates from #70540 * Rename gelTypes to expressionTypes * Update layout for expressions according to the real usecases * Update footer to include series count in all expressions --------- Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
What is this feature?
This PR adds several changes to the expression section, providing a more streamlined and intuitive experience.
Why do we need this feature?
We introduce some improvements regarding ease of use and consistency.
Who is this feature for?
All users
Which issue(s) does this PR fix?:
Fixes #68194
Fixes #68195
Special notes for your reviewer:
improve-expressions.webm
Please check that: