-
Notifications
You must be signed in to change notification settings - Fork 860
[Flyout System] Make session logic truly opt-in #9163
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
[Flyout System] Make session logic truly opt-in #9163
Conversation
7e80d70 to
8231b64
Compare
f98c459 to
44c5fdb
Compare
|
I reviewed and tested this PR and found that the current behavior of the |
|
As it currently is in this PR, a flyout could be structured within a managed flyout but not be a child - it would even then need cc @tkajtoch |
|
I'm gonna test it shortly. Thank you @tsullivan! |
|
|
|
The modifications mentioned here have been implemented. @tkajtoch @weronikaolejniczak this is ready for another look |
|
@tsullivan I'll take a look at this today, one doubt I have is - we should merge it into the feature branch, not |
@weronikaolejniczak thanks! You are correct. This PR is targeted to the |
|
I've removed the |
41f8990 to
e2b53f0
Compare
cf826f9 to
0481268
Compare
0481268 to
2b2ea52
Compare
💚 Build SucceededHistory
|
💚 Build Succeeded
History
|
tkajtoch
left a 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.
Thank you for updating the session inheritance logic! LGTM
Summary
Makes the Flyout System truly opt-in by changing the
sessionvalue default frominherittonever.EuiFlyoutsessionpropThe default has been changed from
inherittoneverCloses #9158.
Why are we making this change?
The default of inherit was problematic. It meant that a flyout with no session value added would automatically become a child if a session flyout is active. This would be a problem in Kibana, where all flyouts currently have no session value. Work would be needed to address the problem by adding session="start" on them to avoid possible bugs, which means the default logic planned would amount to a breaking change.
Impact to users
BREAKING CHANGE - the default of
sessionhas been changed tonever.The default value of
EuiFlyoutsessionprop is changing frominherittonever. This makes the flyout session management system truly opt-in: a flyout that has not been modified and has nosessionprop set will not become a child flyout of an active main flyout and will continue to act as a regular flyout. Flyouts will only become a child of when they have thesessionvalue set toinherit.sessionand is nested within a main flyout, it behaves as a child flyout.session="inherit"and there is no main flyout, it will behave as a regular flyout.To continue the previous behavior of a flyout rendered as a child, you can explicitly set the
sessionprop toinherit, or you can nest the flyout into a main flyout.This breaking change only effects the code in the feature branch. There are no EUI releases that have the previous behavior.
QA
Remove or strikethrough items that do not apply to your PR.
General checklist
[ ] Checked in both light and dark modes[ ] Checked in both MacOS and Windows high contrast modes[ ] Checked in mobile[ ] Checked in Chrome, Safari, Edge, and Firefox[ ] Checked for accessibility including keyboard-only and screenreader modes@defaultif default values are missing) and playground toggles[ ] Updated visual regression tests[ ] If the changes unblock an issue in a different repo, smoke tested carefully (see Testing EUI features in Kibana ahead of time)[ ] If applicable, file an issue to update EUI's Figma library with any corresponding UI changes. (This is an internal repo, if you are external to Elastic, ask a maintainer to submit this request)