-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
Escape works as "go back" in settings #4205
base: main
Are you sure you want to change the base?
Conversation
works nicely! also the stacking is much more what one would expect. the PR needs a rebase or so, cannot say anything to the code by the thousands of changed lines :)
if possible, it would nice if cancelling the initial "Add Second Device" alert is also shown atop of the settings dialog and canceling it just gets you back to settings. this would back trying out things and "clicking around, discovering what is possible" more predictable. once the "Add Second Device" is started via "Continue", however, the settings dialog should disapepar so that one is full into the context of the "Add Second Device". but that is no biggie - if it is hard to do, it is also fine as it is now. |
31906b5
to
0365c4f
Compare
as i was asked: for the "X" button, indeed it would be a bit weird if it closes all dialogs if they are visually stacked. this is not what is done usually in this case. so either:
i would go with the second option, to not add additional noise to UI, also it is what user already learned in Delta Chat :) |
0365c4f
to
14cbb57
Compare
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.
what do you mean? |
Just not used to it I guess, the fact that I see Settings in the background and Notifications are much smaller. Nothing wrong with dialog contents |
Rebased, added that. But it doesn't close when we press Continue, doesn't bother me, if it's not critical I'd merge. I'm looking into the whole "close everything in stack when we confirm some action" question as part of #2268 |
similar issue exists on pressing escape when making a new profile, there it should never close the dialog completely |
I would like to have this question from r10s addressed before we merge it. I would personally also prefer the second option. |
To note, this pattern is also used in deltachat-desktop/packages/frontend/src/components/dialogs/ViewGroup.tsx Lines 284 to 290 in a5c0243
|
I was going back-n-forth with this. I pushed an opacity version for now, gonna test it a bit and then ask for re-review |
4ff611a
to
01fa5e6
Compare
a8c51af
to
4de8357
Compare
- return explicit dialog result, ignore for now "cancel" result - Settings passes down it's onClose to children dialogs so when they close via "close" - fix #3868
4de8357
to
94fec8e
Compare
Did this as a test, cause it seemed like an easy refactor. And it was
Works, Notifications do look kinda weird.
There's an explicit "close settings" call when we click on "Add Second Device". @r10s @nicodh Should that remain or no? Here's a video of how it works
20241011_014510.mp4
Depends on #4006 so I'm not asking for review right now, too many changes displayed here