Skip to content
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 heatmap options tab #45766

Merged
merged 25 commits into from
Sep 27, 2019

Conversation

sulemanof
Copy link
Contributor

@sulemanof sulemanof commented Sep 16, 2019

Summary

A part of #38273.
EUIfication of the Options tab in the Heatmap visualization.
Also fix #43666.

heatmap

The PR also includes next changes:

  • created a common component <ColorRanges />, which is used in Gauge, Goal, Heatmap vis. It will be also used in Metric vis --->

image

  • created a common component <ColorSchemaOptions />, which is used in Gauge, Goal, Heatmap vis.

image

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

…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
@elasticmachine
Copy link
Contributor

💔 Build Failed

@sulemanof sulemanof added release_note:skip Skip the PR/issue when compiling release notes v7.5.0 v8.0.0 Feature:Vis Editor Visualization editor issues Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Sep 16, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app

@elasticmachine
Copy link
Contributor

💔 Build Failed

@sulemanof sulemanof requested a review from cchaos September 17, 2019 11:21
@sulemanof
Copy link
Contributor Author

Hi @cchaos !
Could you please take a look and help with UI suggestions!
Thanks in advance ❤

@elasticmachine
Copy link
Contributor

💔 Build Failed

…ns/heatmap

# Conflicts:
#	x-pack/plugins/translations/translations/ja-JP.json
#	x-pack/plugins/translations/translations/zh-CN.json
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@cchaos
Copy link
Contributor

cchaos commented Sep 18, 2019

Here is some initial feedback from your screenshot.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

…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
Copy link
Contributor

@maryia-lapata maryia-lapata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, checked locally, also tested with dark mode and pseudo-localization.

@maryia-lapata maryia-lapata added the Feature:Heatmap Heatmap visualization label Sep 24, 2019
Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple more suggestions:

@sulemanof
Copy link
Contributor Author

There is a reason why I wouldn't swap switches positions:

Just a couple more suggestions:

There is a standalone component which represents Legend position and Show tooltip form rows -> <BasicOptions />. This component is used in several visualizations (with the same params order) ->

  • Area / Line / Bar:

image

  • Pie :

image

  • Coordinate Map :

image

  • and here in Heatmap.

To swap positions I need to restructure BasicOptions common component to accept children and to render it between Legend position and Show tooltip rows.
Could you please confirm that it's worth it?

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM, tested and didn't notice any bugs

defaultMessage: 'Percentage mode',
})}
paramName="percentageMode"
value={stateParams.setColorRange ? false : stateParams.percentageMode}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Why hiding the value of this switch if it's disabled? This isn't done in other places (e.g. label settings):
Screenshot 2019-09-25 at 18 13 20

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it can be confusing if the user sees "4 colors" in the config panel but that's really being overridden by the custom ranges they've established which may be 3 colors.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cchaos
The Percentage mode switch (which Joe asked about) does not have any relation to the Number of colors, it is a standalone param which is excluded from visualization config if Use custom ranges is turned on! The same work for Number of colors.
I suppose @flash1293 asked why we didn't do the same in the Labels panel -> means to turn off all of params (Rotate and Overwrite automatic color) if Show labels is off.
Could you please confirm it is a right UX solution ? Thanks

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'm still confused, can you show me some screenshots?

@cchaos
Copy link
Contributor

cchaos commented Sep 25, 2019

@sulemanof

Could you please confirm that it's worth it?

It's not. Thanks.

…ns/heatmap

# Conflicts:
#	src/legacy/core_plugins/kbn_vislib_vis_types/public/controls/heatmap_options.html
@sulemanof sulemanof requested a review from myasonik September 26, 2019 11:14
@sulemanof sulemanof mentioned this pull request Sep 26, 2019
3 tasks
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💔 Build Failed

…ns/heatmap

# Conflicts:
#	src/legacy/core_plugins/kbn_vislib_vis_types/public/components/options/metrics_axes/label_options.tsx
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@sulemanof sulemanof merged commit b322b60 into elastic:master Sep 27, 2019
@sulemanof sulemanof deleted the EUIfication/options/heatmap branch September 27, 2019 14:00
sulemanof added a commit to sulemanof/kibana that referenced this pull request Sep 29, 2019
* EUIficate heatmap options

* Move collections

* Split labels in a panel

* Remove angular templates

* Remove unused translations

* Fix functional tests

* Fix validation

* Fix UI details

* Compress color picker

* Improve types

* Replace headings h2 with h3

* Add functional tests

* Create setCustomRangeByIndex
sulemanof added a commit that referenced this pull request Sep 29, 2019
…6886)

* EUIficate heatmap options

* Move collections

* Split labels in a panel

* Remove angular templates

* Remove unused translations

* Fix functional tests

* Fix validation

* Fix UI details

* Compress color picker

* Improve types

* Replace headings h2 with h3

* Add functional tests

* Create setCustomRangeByIndex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported Feature:Heatmap Heatmap visualization Feature:Vis Editor Visualization editor issues release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.5.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show reset colors in Gauge, Goal, Heatmap vis after reload
6 participants