Skip to content

[Maps] provide isLoading and hasError feedback when legend is collapsed - #47157

Merged
nreese merged 1 commit into
elastic:masterfrom
nreese:is_loading_expand_button
Oct 3, 2019
Merged

nreese merged 1 commit into
elastic:masterfrom
nreese:is_loading_expand_button

Conversation

@nreese

@nreese nreese commented Oct 2, 2019 •

Copy link
Copy Markdown
Contributor

part of #43695

There is not feedback for users when layers are loading or when layers have errors when the legend is collapsed. This PR changes the collapsed legend icon to a loading icon or alert icon when layers are loading or layers have errors.

To test, open any sample data map, collapse the legend, then click the Refresh button.

Screen Shot 2019-10-02 at 1 19 53 PM

@nreese nreese added release_note:enhancement Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v8.0.0 v7.5.0 labels Oct 2, 2019
@nreese
nreese requested review from kindsun and spong October 2, 2019 19:26
@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@spong spong left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Checked out, tested locally and all loading states look good in the SIEM app. LGTM 👍

Let's make sure we don't close #43695 though, as that request is specific to knowing when an embeddable is/isn't loading, which is functionality that we'll still need out of embeddables (e.g. to enable/disable our global refresh button when components are still loading). It's being tracked by the platform team as part of #43879.

@kindsun kindsun 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.

Very nice. Nicely handles prioritizing the loading state over the error state so you can still see if other layers are loading before it falls back to the error icon when complete.

  • code review
  • tested locally in chrome

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.5.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants