-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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] Add warning for changes that impact other users #188728
[Spaces] Add warning for changes that impact other users #188728
Conversation
/ci |
Thank you, I like the solution!
|
The page does not always reload. Only if the user is editing the current active space. For that we still have the modal that warns the user before saving. |
I think it is good to have both a title and a description. Open to suggestion for both copy texts 👍 |
Oh, right, thanks! Then I agree we can leave Warning + text below. But my idea was to get rid of modal entirely (because showing modal only to say that the page will reload seems too much). So how about this — we show callout instead of modal, but with 2 alternate texts (depending on whether it's current space or not):
What do you think @sebelga? |
I don't feel confident making decision for the security team. |
Pinging @elastic/appex-sharedux (Team:SharedUX) |
Pinging @elastic/kibana-security (Team:Security) |
9bda5e8
to
7e1a031
Compare
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
To update your PR or re-run it, just comment with: cc @sebelga |
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.
Code changes LGTM! I've asked the team for their opinion on the modal. Happy to have this merged with a separate issue to remove/modify the modal.
Thanks for the review @SiddharthMantri ! |
Sorry for the delay, I was on PTO. I'm fine with the approach taken here. |
In this PR I've added a warning callout on top of the "Save" button to warn for changes that will impact other users.
The callout renders when:
undefined
toclassic
)Fixes https://github.com/elastic/platform-ux-team/issues/322
Screenshot