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

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

Merged
merged 1 commit into from
Oct 3, 2019

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Oct 2, 2019

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 [Deprecated-Use Team:Presentation]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
Contributor

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

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Member

@spong spong left a comment

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.

Copy link
Contributor

@kindsun kindsun left a comment

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants