-
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 tag cloud options tab #42070
[Vis: Default editor] EUIficate tag cloud options tab #42070
Conversation
@cchaos could you please take a look ? Maybe you have any suggestions |
💔 Build Failed |
@cchaos thanks ! |
Pinging @elastic/kibana-app |
💔 Build Failed |
retest |
💚 Build Succeeded |
💚 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.
Screenshots and code 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.
LGTM, just small comments.
checked locally on Chrome, Mac. It works as expected.
💚 Build Succeeded |
src/legacy/core_plugins/tagcloud/public/tag_cloud_vis_options.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.
@@ -0,0 +1,85 @@ | |||
/* |
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.
Nit: Maybe use tag_cloud_options.tsx
as name here to match the component name.
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.
That makes sense.
Also the components
folder created for the future react components
"tagCloud.visParams.maxFontSizeAriaLabel": "标记字体最大大小", | ||
"tagCloud.visParams.maxPixelsAriaLabel": "像素", | ||
"tagCloud.visParams.minFontSizeAriaLabel": "标记字体最小大小", | ||
"tagCloud.visParams.minPixelsAriaLabel": "像素", | ||
"tagCloud.visParams.orientationsLabel": "方向", |
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.
Any reason the orientations label was spared?
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.
The reason of removing other labels that they were not in sentence case (we try to follow EUI writing style guide) or labels become unnecessary, or they were changed.
Here the tagCloud.visParams.orientationsLabel
stayed the same as it was -> so there was not a reason to remove it
💚 Build Succeeded |
@flash1293 thanks Joe 👍 |
💚 Build Succeeded |
* EUIficate pie chart options tab * Fix tests * Size titles down to xs * Use FormattedMessage * EUIficate tag_cloud_vis options tab * Get rid of ticks in the range * Update snapshots * Fix comments * Change label * Create a components folder
* EUIficate pie chart options tab * Fix tests * Size titles down to xs * Use FormattedMessage * EUIficate tag_cloud_vis options tab * Get rid of ticks in the range * Update snapshots * Fix comments * Change label * Create a components folder
Summary
A part of #38273.
EUIfication of the
Options
tab in theTag cloud
vis.This includes:
ValidatedDualRange
component with existing validation (it's used inMaps
plugin), the component is also extended with additional props;i18n
all labels in select options in tag cloud config collections and pie chart config collections;no-ui-slider
lib, since it was only used there;Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers