-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Vis: Default editor] EUIficate top_aggregate and size param editors #36567
[Vis: Default editor] EUIficate top_aggregate and size param editors #36567
Conversation
💔 Build Failed |
Pinging @elastic/kibana-app |
💔 Build Failed |
💚 Build Succeeded |
9ae5a8d
to
019cf75
Compare
💚 Build Succeeded |
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.
Code LGTM with small comments. I also tested with custom locale and tested with screenreader VoiceOver, it works fine.
💚 Build Succeeded |
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.
Info moved to a help text: @cchaos please, take a look 😊 |
💔 Build Failed |
…ggregate_and_size
@sulemanof Is there anyway to disable both the "with" and "size" inputs and then have the help/error text span both columns? Also, it should actually be a |
💚 Build Succeeded |
@cchaos since |
@sulemanof Great solution! I agree that's a much better way to handle it, especially since it's the field that is causing the error, not the "with". I also like that you disabled the size field as well. However, I think they should only be disabled if the selected field is incompatible. This state should have all controls enabled No need to set the "Aggregate with" field as hasErrors But other than those two, nit-picky things, I do really like this solution. |
💚 Build Succeeded |
@cchaos I agree with validation logic, done! |
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! LGTM. Thanks @sulemanof !
💚 Build Succeeded |
💚 Build Succeeded |
@wylieconlon @chrisdavies please, review 😊 |
…ggregate_and_size
💚 Build Succeeded |
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
💚 Build Succeeded |
💚 Build Succeeded |
…lastic#36567) * EUIficate top_aggregate_and_size param editor * Remove template * Change typescript interfaces * Fix browser tests * Add an icon alert * Changes due to comments * Move error to a help text * Move error to a field * Change validation logic * Fix discarding changes action * Remove changed translation
…36567) (#37324) * EUIficate top_aggregate_and_size param editor * Remove template * Change typescript interfaces * Fix browser tests * Add an icon alert * Changes due to comments * Move error to a help text * Move error to a field * Change validation logic * Fix discarding changes action * Remove changed translation
…lastic#36567) * EUIficate top_aggregate_and_size param editor * Remove template * Change typescript interfaces * Fix browser tests * Add an icon alert * Changes due to comments * Move error to a help text * Move error to a field * Change validation logic * Fix discarding changes action * Remove changed translation
Summary
Part of #30922.
EUIfication of top_aggregate_and_size control for
Top Hit
aggregation parameter.Added new behavior:
disabled
, the icon becomesalert
type and the tooltip showsChosen field has no compatible aggregations
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers