Repository navigation
Stacked popups - #15496
Stacked popups#15496
Conversation
|
For context... |
sergiou87
left a comment
There was a problem hiding this comment.
Looks good overall! Just a few comments. I'm a bit afraid of the regressions this new might introduce 😂
Maybe we could use a feature flag to make the PopupManager switch between using the stack or use the current single-popup approach? 🤔
Co-authored-by: Sergio Padrino <[email protected]>
Co-authored-by: Sergio Padrino <[email protected]>
Co-Authored-By: Sergio Padrino <[email protected]>
This reverts commit ba0cbcd. Co-Authored-By: Sergio Padrino <[email protected]>
Totally right -> I totally forgot to feature flag this.. |
Co-Authored-By: Sergio Padrino <[email protected]>
Oops! Sorry, I approved the code but forgot to test it
sergiou87
left a comment
There was a problem hiding this comment.
Now tested and seems to work as expected, with both the feature flag enabled and disabled 🙌
Description
This is one of of a couple PR's to introduce the idea of stacking popups. It does so through introducing a popup manager that works as a service introduced where needed.
Next PR, refactor the app errors to be part of the other popups so they are stacked as well.
Currently, this just shows one popup at a time, thus, on open and close the popup gets re-rendered and it's state effectively reset. This could be a problem for a popup with a more complicated state that we want to remember. A future pr will explore possibility of having the stack rendered by only one popup visible at a time or any other method for remembering states.
I am attempting to not change the current app behavior regarding popups. For example, we have cases where we close the popup without a type -> I preserved that capability by removing the latest in the stack when no type is provided. Also, the
_completeOpenInDesktopfeels out of place here.. maybe it should be moved to the cloning components or whatever method calls the close popup in coordination with cloning. Thus, these things could be improved as part of this work, but I would like to isolate them to other PRs to be able to regression test them separately.Open question:
Screenshots
Screen.Recording.2022-10-20.at.3.16.49.PM.mov
Release notes
Notes: [Improved] Opening a new popup up does not close the existing one.