-
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] Euification of Metric options tab #46930
[Vis: Default editor] Euification of Metric options tab #46930
Conversation
…ns/heatmap # Conflicts: # src/legacy/core_plugins/kbn_vislib_vis_types/public/components/common/number_input.tsx # src/legacy/core_plugins/kbn_vislib_vis_types/public/components/options/gauge/ranges_panel.tsx # src/legacy/core_plugins/kbn_vislib_vis_types/public/components/options/index.ts # src/legacy/core_plugins/kbn_vislib_vis_types/public/types.ts # src/legacy/ui/public/vis/vis_types/vislib_vis_type.js
…ns/heatmap # Conflicts: # x-pack/plugins/translations/translations/ja-JP.json # x-pack/plugins/translations/translations/zh-CN.json
…ns/heatmap # Conflicts: # src/legacy/core_plugins/kbn_vislib_vis_types/public/gauge.js # src/legacy/core_plugins/kbn_vislib_vis_types/public/goal.js # src/legacy/core_plugins/kbn_vislib_vis_types/public/heatmap.js # src/legacy/core_plugins/kbn_vislib_vis_types/public/pie.js # src/legacy/ui/public/vis/vis_types/vislib_vis_type.js
…bana into EUIfication/options/heatmap
…ns/heatmap # Conflicts: # src/legacy/core_plugins/kbn_vislib_vis_types/public/controls/heatmap_options.html
…ns/heatmap # Conflicts: # src/legacy/core_plugins/kbn_vislib_vis_types/public/components/options/metrics_axes/label_options.tsx
…ns/metrics # Conflicts: # src/legacy/core_plugins/kbn_vislib_vis_types/public/components/common/index.ts # src/legacy/core_plugins/kbn_vislib_vis_types/public/gauge.d.ts # src/legacy/core_plugins/kbn_vislib_vis_types/public/gauge.js # src/legacy/core_plugins/kbn_vislib_vis_types/public/goal.js # src/legacy/core_plugins/kbn_vislib_vis_types/public/kbn_vislib_vis_types.js # src/legacy/core_plugins/kbn_vislib_vis_types/public/types.ts # src/legacy/core_plugins/kbn_vislib_vis_types/public/utils/collections.ts # src/legacy/core_plugins/kibana/public/discover/components/field_chooser/discover_index_pattern_directive.ts # src/legacy/ui/public/vis/editors/default/controls/ranges.tsx
Pinging @elastic/kibana-app |
💚 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.
I'm not sure about the separation of the panels - why is "percentage mode" part of "Ranges"?
Suggestion:
First panel "Settings", contains "Percentage mode" and "Show title"
Second panel "Ranges", contains ranges and color settings (get rid of "Color options" heading, like in Gauge options panel)
Third panel "Style", contains just the font size
Thanks @flash1293 , your proposal really makes sense! |
She's out on vacation so I'll fill in. I think @flash1293's suggestions make sense as well, so you're good from design. You can remove the tooltip by removing the |
Hey @flash1293 and @snide ! Thanks in advance! |
💔 Build Failed |
💚 Build Succeeded |
@elasticmachine merge upstream |
💚 Build Succeeded |
The changes look good to me. Not sure whether we should tackle this in this PR, but IMHO there is a lot of UI around ranges that are not used as long as "None" is selected - it feels weird that you can select ranges and then do nothing with them - why selecting them in the first place? My suggestion would be: There is a switch whether ranges are enabled or not - if it's set to off, none of the rest of the ranges UI is shown. If it is activated, the color is used for the labels initially and you can switch to background, but there is no setting for "none" (that's what the switch is for). What do you think @sulemanof @snide ? |
Hey @flash1293 ! I suppose it could be a great solution, but I think it should be discussed with more people from kibana side. Would it be better to create a separate issue with |
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.
@sulemanof you are probably right. Let's leave the decision to design whether we merge as is here and do this in a separate PR.
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, the new form largely follows the old form although it does do away with the accordions. Along with that, there are several design small visual tweaks we would likely want to make here, so let's do a follow-up PR, regardless. I'll add an approval under the assumption that we'll do some more tidying up.
* EUIfication of metric_vis_options * Small fixes * Remove unused translations * Fix style comments * Remove unused styles
… (elastic#47630) * EUIfication of metric_vis_options * Small fixes * Remove unused translations * Fix style comments * Remove unused styles
Summary
A part of #38273.
EUIfication of the
Options
tab in theMetric
visualization.Applied changes:
disabling
instead of removingUse color for
andColor schema
params;inequality.js
directives;sidebar.scss
;Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers