Skip to content

[Maps] Provide indication in LayerTOC when results are incomplete - #41271

Merged
thomasneirynck merged 11 commits into
elastic:masterfrom
thomasneirynck:maps/show_incomplete_indicator
Jul 19, 2019
Merged

thomasneirynck merged 11 commits into
elastic:masterfrom
thomasneirynck:maps/show_incomplete_indicator

Conversation

@thomasneirynck

@thomasneirynck thomasneirynck commented Jul 16, 2019 •

Copy link
Copy Markdown
Contributor

Closes #40805

After discussion with @cchaos, use info-button until we have dedicated icon.

image


Draft 3: use dagger https://en.wikipedia.org/wiki/Dagger_(typography) instead.

image


EDIT: Changed this to using an asterix behind the layer name and greying out the layername

Draft 2:

image


Draft 1:

Add a small info button to show this is the case. The tooltip-contents remain the same.

image

The info button is not there when all results are shown.

@thomasneirynck thomasneirynck added Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v7.4.0 v8.0.0 labels Jul 16, 2019
@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-gis

@thomasneirynck
thomasneirynck requested review from kindsun and nreese July 16, 2019 18:00
@nreese
nreese requested a review from cchaos July 16, 2019 18:03
@elasticmachine

Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@thomasneirynck
thomasneirynck requested a review from a team as a code owner July 17, 2019 19:20
@elasticmachine

Copy link
Copy Markdown
Contributor

💔 Build Failed

@nreese nreese left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm
code review, tested in chrome

return `${entitiesFoundMsg} ${trimmedMsg}`;
return {
tooltipContent: `${entitiesFoundMsg} ${trimmedMsg}`,
areResultsTrimmed: false

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this be set to true? Top hits results are trimmed and show only most recent hits.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

imho they are not trimmed. It's the intention of the user to limit results in this case.

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@cchaos cchaos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The one problem I’m noticing is that if the label is long enough to get truncated, you won’t see that indicator. If you’re ok with that, then I just have the few suggestions. Otherwise, it would take more effort to ensure that it’s always visible.

Screen Shot 2019-07-18 at 17 07 48 PM

Comment thread x-pack/legacy/plugins/maps/public/components/layer_toc_actions.js Outdated
Comment thread x-pack/legacy/plugins/maps/public/components/layer_toc_actions.js Outdated
Comment thread x-pack/legacy/plugins/maps/public/components/layer_toc_actions.js
@elasticmachine

Copy link
Copy Markdown
Contributor

💔 Build Failed

@cchaos cchaos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thx!

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:enhancement Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v7.4.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Maps] Layer TOC should indicate visually if not all features are returned

4 participants