-
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
[Maps] Add support for geohex_grid aggregation #127170
Conversation
@nreese Following from our conversation on Slack, I put together a few options for the 'Show as' configuration. I didn't dig too far into this, but based on the following criteria I put together 2 options to consider.
Options: Perhaps just a simple tooltip could work so users might understand why an option is no longer available. The copy could likely be improved upon, but just showing the overall idea. Could also consider simply showing as radio buttons. This will give more flexibility in what you want to show and perhaps also afford the option to guide the user which option is best. We could also include the tooltip option above for this as well. Again, just some quick thoughts and happy to dig more into this—i'm guessing there's a few states of this form that I'm not considering. |
@elasticmachine merge upstream |
@mdefazio I decided to go with the first option and provide a tooltip on the label. What do you think? |
@nreese With this much copy, I think it's best to have this be a popover as opposed to a tooltip so the user doesn't have to keep their cursor stationary while reading. The link is also likely more visible/likely to be clicked on than the tooltip icon. If we want to stick with the tooltip, perhaps shortening this and then using the right side link to go to docs for these options? Is the concern that users won't know the difference between them? Or why some options are available depending on the field selected? Do we need to describe each with this much detail? With the popover, we could try and provide a small visualization next to each. I think you could also keep line 'Hexbins require geo_point field' visible as help text for the button group, again assuming the requirement here is to let users know why an option is disabled. Here's a quick mockup using the popover. Popover title is maybe not necessary. |
If we trim down the copy, I think the tooltip is fine (and we then also stick with exisiting patterns for the label + tooltip). My main concern is just the length of that copy. |
What would you trim? |
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.
This is a stab at updating the copy—hopefully i'm not changing definitions here, but trying to get them into single sentences.
...ck/plugins/maps/public/classes/sources/es_geo_grid_source/render_as_select/show_as_label.tsx
Outdated
Show resolved
Hide resolved
...ck/plugins/maps/public/classes/sources/es_geo_grid_source/render_as_select/show_as_label.tsx
Outdated
Show resolved
Hide resolved
...ck/plugins/maps/public/classes/sources/es_geo_grid_source/render_as_select/show_as_label.tsx
Outdated
Show resolved
Hide resolved
@elasticmachine merge upstream |
Thanks I have incorporated the suggestions. |
@elasticmachine merge upstream |
x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/clusters_layer_wizard.tsx
Outdated
Show resolved
Hide resolved
...plugins/maps/public/classes/sources/es_geo_grid_source/render_as_select/render_as_select.tsx
Outdated
Show resolved
Hide resolved
...plugins/maps/public/classes/sources/es_geo_grid_source/render_as_select/render_as_select.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.
LGTM with addition of a link to the subscription page.
if (!getIsCloud() && !getIsGoldPlus()) { | ||
isHexDisabled = true; | ||
hexDisabledReason = i18n.translate('xpack.maps.hexbin.license.disabledReason', { | ||
defaultMessage: '{hexLabel} is a subscription feature.', |
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.
This should be:
xxx is a subscription feature.
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.
Should links be in tooltips? There is no way to click the link.
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.
Correct. Do you have a quick screenshot of where this copy is? Can see if there are maybe some other options.
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.
@elasticmachine merge upstream |
Pinging @elastic/kibana-gis (Team:Geo) |
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! code review and tested in chrome.
x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/clusters_layer_wizard.tsx
Show resolved
Hide resolved
x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/create_source_editor.js
Show resolved
Hide resolved
x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx
Outdated
Show resolved
Hide resolved
…es_geo_grid_source.tsx Co-authored-by: Nick Peihl <[email protected]>
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
This PR updates cluster layers with hexagons.
documentation updates https://kibana_127170.docs-preview.app.elstc.co/diff
Cluster layers are added to map by selecting "Clusters" wizard. Notice copy and icon updates.
Users now have option to select
Hexagons
to display clusters as hexagons. Tooltip added to describe options and provide disabled message. Hexagons only support geo_point fields. Hexagon aggregation is licensed basic in cloud and gold in on prem.