Skip to content

[Maps] Disable add layer button when flyout is open - #54932

Merged
thomasneirynck merged 6 commits into
elastic:masterfrom
thomasneirynck:maps/hide_button
Jan 22, 2020
Merged

thomasneirynck merged 6 commits into
elastic:masterfrom
thomasneirynck:maps/hide_button

Conversation

@thomasneirynck

@thomasneirynck thomasneirynck commented Jan 15, 2020 •

Copy link
Copy Markdown
Contributor

This is a proposal. Disable the add layer button when the flyout is open.

When the slide-out is open, it gets confusing sometimes when the add layer button is pressed, to determine what state exactly you're in as a user.

  • when the add layer wizard is open, clicking "add layer" button just clears everything. But the wizard has a back button, so there is always a more intuitive way to get back to the choose data source panel.
  • when the layer details are open, there's really no need to add a layer directly. This shortcut introduces more issues (e.g. having to deal with the popup for unsaved state, which may be unexpected). The close and cancel buttons in the layer-details seem much more explicit imho.

It's something a novice user often runs into it (also really annoying at demos). With this PR we just prevent this "broken" flow from happening altogether.

@thomasneirynck
thomasneirynck requested a review from a team as a code owner January 15, 2020 16:49
@thomasneirynck thomasneirynck added discuss release_note:enhancement Team:Geo Former Team Label for Geo Team. Now use Team:Presentation labels Jan 15, 2020
@elasticmachine

Copy link
Copy Markdown
Contributor

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

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

I like the idea. Just a few clean-ups in the code

@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

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

Tested locally and lgtm! 🎉

@kibanamachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@thomasneirynck
thomasneirynck merged commit 003d6e9 into elastic:master Jan 22, 2020
thomasneirynck added a commit to thomasneirynck/kibana that referenced this pull request Jan 22, 2020
thomasneirynck added a commit that referenced this pull request Jan 22, 2020
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants