-
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
[Data Views] UX: Improve sharing across spaces #124346
Comments
Pinging @elastic/kibana-app-services (Team:AppServicesUx) |
@mattkime Put this together just as a starting point. Some of these are questions, and some are kind of notes-to-self. Mostly around understanding our technical restraints for this work |
Pinging @elastic/kibana-design (Team:Kibana-Design) |
We're not able to show which space made the last modifications. We can get a last modified date.
@jportner Do we show the full set of spaces where an object is available or do we only show the ones a user has access to?
This is true, but it seems true of all shared saved objects, therefore it seems to me it should be solved at the api level. Seems to me that all visualizations - or anything else named - would face this as well. |
We have an open ER to track usage data in saved objects: #81130
We only show the ones the user has access to. If there are additional spaces, the API returns
Agreed, most/all saved object types already face an ambiguity problem, and it's probably going to happen more often with sharing. We can attempt to solve this before the problem occurs (e.g., during the import/copy/share step), but I know that we had concerns about overloading these UIs which already have a lot of complexity. At the very least, I think that we need 1. some way for consumers to tell Core if two different objects are similar, and 2. we need some way for consumers to find other objects that are similar to this one. We could attempt to solve this in a very coarse way by allowing consumers to specify a comparison field during type registration. |
Version 1 updates
Outlined the changes below, please let me know if I missed something. I went off the screenshots you provided in the issue, so there could be some scenarios I'm not accounting for. cc/ @mattkime Data View table updatesI've included our updates from the data view title work here as well. Not many edits (I don't think) from what you have now—mimics the saved object table / spaces pattern joe shared above. Delete confirmationsAs mentioned, these were perhaps a bit sparse on copy and warnings. Again, pulling from the saved object pattern. These should be reviewed by a copy writer though. Note that i'm also including the title + index pattern. I think it would be good for us to clearly outline the best way forward for these two attributes in regards to the UI. Is the Data view title enough? Should we only include the index pattern when viewing the data view detail page? If so, I'm fine removing these from the UI. Share to spaces flyoutA few tweaks on this one, and again pulling from the saved object pattern. I've removed the button group in favor of a Select all / Clear option atop the selectable list. |
Updated space selector flyout mockup to include search |
@mdefazio I'm looking at #123991 and determining what needs to be in that PR. The data view management list - I'd prefer to just address the spaces column in that PR. The rest could happen when data views get proper names. The changes to the share to space modal would be handled by @jportner and company as they own the component. We should verify there's nothing we're overlooking in regards to previous decisions. I can definitely make the delete modal confirm changes. Do we want to make any changes to the data view detail page? Do we want to show the used spaces? I think we might need to extend the spaces list - You can't both limit the length of the list AND use the list as a click target - the |
Makes sense—however you all want to segment it works for me.
Absolutely. I'll connect with him to revisit the past discussions.
I'm not sure on this one. I don't know that we have any existing patterns for this (displaying spaces on a detail page), but not to say we shouldn't explore it. I'll discuss with the team and get back to you.
I'll revisit this as well to see how we can improve. |
@gchaps Curious if we could get your thoughts about the language in the delete modals above. |
I think the warning message is a little repetitive and should be reduced to one line: Bulk delete from table1-line warning Text above table Single delete from table1-line warning Text above table Delete from within data viewCan you remove the warning and use this text instead? When you delete "kibana sample data", you remove it from every space it is shared in. You can't undo this action. Share to spaces flyoutAllow more spaces to view and edit the data view. (include ending period) |
I've updated the issue description with mockups and the new copy edits. (Thanks @gchaps !) |
@mattkime Digging into this more.
Perhaps I'm misunderstanding, but it seems that based on our sharing objects flow, clicking + X more will simply show all spaces in the cell. I was imagining that to trigger the share flyout, this would occur either from the row action menu, or from the bulk select menu. Do we need to do it another way? |
I chatted with Matt just now -- Technically the Spaces List won't let you do this today but it could be changed and I think it's a great idea.
These are great, I'm only a little iffy about the "Number of spaces" column. How would we render an object that has been shared to
Yeah, I am in favor of simplifying this in any way we can, but I don't think we can get rid of the button groups like this. Selecting all spaces explicitly is not the same thing as sharing to One thing we could consider is adding a separate option next to the "Select All"?
Might get crowded but it could be interesting to see how it looks. |
Good point. Thanks for bringing this up. What if we provide this as an additional checkbox:
|
I like the checkbox idea too, but (3) isn't technically feasible. In a nutshell, |
@jportner @mattkime I went back and forth on having a switch, but in the end I'm not certain it is clearer without doing some user testing. So without dragging this out further, we can keep the current button group above the space selector that Matt had previously. (I'm showing the space selector disabled when switching to All spaces—but if it hides it currently that's alright as well) And the data view management page (I believe the only change here is the tooltip on the asterisk). |
@mdefazio Unfortunately I think adding the |
@mattkime Makes sense. I updated the comment with the most recent version of the design (without the Last modified date) |
@mdefazio all looks great! |
Closed with #127557 |
Improve Data view sharing across spaces
If I have a data view in one space, I would like to be able to share that across multiple spaces.
This design issue will build off the existing work from #123991 to fix some UX concerns.
Target: 8.2
Questions to help drive our updates:
Are we able to determine when a Data view was updated in another space?
If we were to show a Last modified timestamp on the data view, would this reflect changes from other spaces?
Are we able to show which spaces the data view is available in?
Assuming the user has access to the other spaces, can we show that space badge? If the user does not have access, do we add
+X
indicating it is at least in other spaces?How can we improve the potential for duplicate titles when sharing to other spaces?
If I share a data view to a space with that data view already in it, there is no check for the same title currently.
How can we improve the delete confirmation?
When I delete a data view, there is currently only a simple dialog explaining this will effect other spaces. We should improve the copy and UI here so it's clear this will delete the data view from all spaces. We can reference the saved object flow here perhaps.
Designs
Data views index page:
Delete modals:
Share flyout:
Next steps
The text was updated successfully, but these errors were encountered: