-
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] allow saving maps to dashboards #88759
Conversation
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.
Core changes (x-pack/test/saved_object_tagging/functional/tests/maps_integration.ts
) LGTM!
x-pack/plugins/maps/public/routes/map_page/saved_map/saved_map.ts
Outdated
Show resolved
Hide resolved
Nice PR! Seems to work well overall. A few flow-related questions. Not sure how much control we have over these pieces but I'll still float them:
|
@elasticmachine merge upstream |
These are all great questions. Maybe @poffdeluxe can answer them. I think these need to be addressed from a Kibana standpoint and not uniquely in Maps. I am trying to make Maps as consistent with Lens as possible with regards to global chrome and dashboard works flows. The reason is that any differences between UIs take users out of their muscle memory flow and causes them to stutter/pause/think. A great tool is one that blurs into the background. UI differences shatter this blurring. |
I'm all for consistency between apps, just so long as there's some clear plan to update the common component or allow customization of it so that it works as expected across apps with differing needs. No real objections to the updates on our end, just unsure if we should move forward with merging with the component as is. I guess I'll also be interested in what @poffdeluxe has to say. One other odd feature is you can't save a new Map based on an old one in a different way. For example you can't:
The options stay greyed out and force you to save it the way the previous map was saved: |
Unchecking "Save as new map" will enable the "Add to dashboard" section. |
Ah good catch, that's good then. Still a bummer we can't change how it's saved (why are library and dashboard mutually exclusive?) but I already mentioned that in the first bullet in #88759 (comment) |
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!
tested in firefox.
I think the Save to Dashboard workflow is fine, because it redirects to a dashboard in a dirty state (unsaved). The user is required to consciously save the changes to the dashboard.
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.
Agreed with @aaronjcaldwell comments, but in +1 because it's consistent with the rest of Kibana.
Having to check an additional radio-button is also a price payed only once, at the firsti save. If the map is saved-to-library, it will automatically continue to do that.
@elasticmachine merge upstream |
My 2 cents. I support the consistency in Kibana when creating new visualizations/maps.
This is a good comment ^ The UX forces the user into one of two paths. If the user knows they want to build a dashboard, this is fine. We should not choose consistency without fully understanding the impact of that choice on real flows. This PR doesn't impede the customer, this PR improves and encourages the dashboard first flow, but it might annoy customers down the road when they want to clean up their library / manage their content. |
💚 Build SucceededMetrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
* [Maps] allow saving maps to dashboards * update saveMap functional test method * update tags functional test * review feedback Co-authored-by: Kibana Machine <[email protected]>
* [Maps] allow saving maps to dashboards * update saveMap functional test method * update tags functional test * review feedback Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
This PR adds support for
SavedObjectSaveModalDashboard
so when users save a new map they are presented with the option to save the map directly to a dashboard.