-
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
[Spaces] UX improvements to spaces grid #188261
[Spaces] UX improvements to spaces grid #188261
Conversation
cf7a186
to
40c3457
Compare
40c3457
to
984fe8d
Compare
Pinging @elastic/kibana-security (Team:Security) |
Really nice set of UX improvements ticked off with a tidy, focused PR. Love it! |
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.
Need to make a decision about the "Switch" action in the table list of Spaces.
), | ||
isPrimary: true, | ||
name: i18n.translate('xpack.spaces.management.spacesGridPage.switchSpaceActionName', { | ||
defaultMessage: 'Switch', |
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.
You brought up a point about an overall goal to enforce more intentional navigation paths. In that regard, we maybe don't want to include a "Switch" action here to switch the user to another Space. We already have trained users to use the Space Selector: the drop-down in the top nav.
I would also mention one difference between how the Space Selector works:
- When the user changes their Space using the Space Selector, they are navigated to the "Space landing page" for that space
- When the user changes their Space using this action, the navigation would keep them in the Spaces Management page.
I'll put this PR in Draft mode for us to discuss. I'd like to avoid having to "undo" things as we roll out the project. :)
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.
I personally would vote for keeping the switch here too, because as Tim mentioned, it doesn't take the user away from their context or otherwise detract, given the way it's implemented here.
But also see your point Kevin. NOT having it here should not be a big problem either.
- One more thing to consider: if we remove this option, we're left with only 2 more: edit and delete. Hence, we can remove ellipses menu as well, and save some clicks (we were there before , I know, but just not to forget about it)
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.
I'll reach out to the folks involved in this project, and we'll use this comment to vote and make a decision.
👍🏻 = keep the "Switch" action
👎🏻 = remove it
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.
Upvoted to keep the switcher. IMO, while true this is a duplication of function, the user looking at the list of spaces is operating ON that list. Whether aware or not of the "active space" concept, their focus is on the list, not the breadcrumb bar. I'll draw a comparison to the Maximize button vs. double click on a title bar. Both accomplish the same thing. While dragging a window, the focus is on the title bar. Sure the user could drop it, navigate to the maximize button, and use that, but it's a cumbersome, disjointed experience.
Also, I believe this was discussed with Ryan during the design phase prior to engineering getting started and a decision was reached. That's why it appears in the design as it does. 🙂. Unless there is a dang good reason to change the design and jeopardize the MVP implementation, let's stick to the design.
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.
Hmm... I don't follow. What's the point of a user being able to switch spaces and still be in space settings? It's the same screen, same menu with all the same options and controls, but now i'm in a different space in the background?
It's odd to mix these usually separate things "administration" and "navigation."
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.
I agree it is odd to mix them, but I think our case is a bit unusual. In our case the space is sort of a non hierarchical third dimension or "layer", and since the active space is different from all the others, it just... "feels" right to be able to control it from the list of spaces. Not having it there feels like something is missing and the normal space switcher combo feels too "far" from my focus. These are just my gut opinions, but it looks like the majority of folks have the same gut.
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.
Thanks all, for the discussion. I believe it was worth it: got to voice concerns and listen. We have a result from the vote: the Switch action will stay.
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.
Nice to see this one moving fwd at pace. Bigger picture wise I'm totally on board, but in future situations, we definitely need to be able to answer the question, "what exactly is distinct purpose of a given UI element, from the user point of view?" Otherwise we're just adding ui clutter/complexity for no reason. But ack: that kind of consideration should happen earlier in the process prior to dev, for sure 👍 Onward and upward - excited for this one 🚀
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
History
cc @tsullivan |
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.
x-pack/test/functional/page_objects/space_selector_page.ts
changes LGTM
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.
Looks good!
Could we please add more tests for this enhanced UI? (current badge display, actions menu).
x-pack/plugins/spaces/public/management/spaces_grid/spaces_grid_page.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/spaces/public/management/spaces_grid/spaces_grid_page.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/spaces/public/management/spaces_grid/spaces_grid_page.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/spaces/public/management/spaces_grid/spaces_grid_page.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: elena-shostak <[email protected]>
/ci |
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#6667[✅] x-pack/test/functional/apps/spaces/config.ts: 42/42 tests passed. |
new functional tests are passing in flaky test run: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/6667 |
await this.find.clickByCssSelector(`#${spaceName}-actions ${collapsedButtonSelector}`); | ||
// click context menu item | ||
await this.find.clickByCssSelector( | ||
`.euiContextMenuItem[data-test-subj="${spaceName}-switchSpace"]` // can not use testSubj: multiple elements exist with the same data-test-subj |
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.
I couldn't see a way to click the link in the context menu simply using the data-test-subj, since multiple elements existed with the same attribute (the link text and the button). So I needed to use a more specific selector that involves the EUI class name.
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Summary
This PR offers UX improvements to the Spaces Management listing page which are part of epic: https://github.com/elastic/kibana-team/issues/785
In the Roles & Spaces UX Improvements project, our roll out plan is work in #184697 and to pull small mergeable changes a little at a time, to release the changes as separate PRs.
Screenshot
Before:
![image](https://private-user-images.githubusercontent.com/908371/348377504-2b6017f6-2395-464b-a176-3e8fbf51a2a4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GVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQxNjQ3NDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05NmVhYmRhYjU5ODE1NWUzZThjYzhiNDY1YmNmNzliNzIyMjE1MjI3ZTZlNGRkNjU4ZWEyZTQ5ZTBiMzU0NzI0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.BNaYoiMHHR6qKQKJYKyhU_EFEpLg1Yjb9NOklx8MGK0)
Release Note
Added minor user experience improvements to Spaces Management in Stack Management.
Checklist
Delete any items that are not applicable to this PR.