Skip to content
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

dApp Tx sign dialogs - clicking outside of dialog should not close the dialog #16327

Open
benjthayer opened this issue Sep 12, 2024 · 4 comments · May be fixed by #16349
Open

dApp Tx sign dialogs - clicking outside of dialog should not close the dialog #16327

benjthayer opened this issue Sep 12, 2024 · 4 comments · May be fixed by #16349
Assignees
Milestone

Comments

@benjthayer
Copy link

SIWE / Tx dialogs issued via WalletConnect for signing inside Status should not be dismissible by clicking outside of the dialog.

Accidentally dismissing the dialog in this way cannot be construed as an explicity rejection of the sign event and leads to ambiguity about what should be done with the dApp request.

Eventually, the user should be able to click the [X] icon button top right of the dialog to dismiss the request - but this should only be implemented when the user can re-launch the sign request dialog via the corresponding notification centre item. Until the notification centre items are implemented, it may be safer to remove the close [X] as well as the ability to click outside of the sign dialog to dismiss it - this way, the user must make an explicit in-the-moment call to reject or sign the sign request.

We should apply this logic/behaviour to all Signing dialogs - even those initiated from inside Status via Send/Swap/Bridge etc for consistency.

Screenshot 2024-09-12 at 17 34 58

cc @caybro

@caybro
Copy link
Member

caybro commented Sep 12, 2024

CC @alexjba

Gonna do the same for the Swap sign dialog unless you guys @Khushboo-dev-cpp @dlipicar object

@alexjba
Copy link
Contributor

alexjba commented Sep 13, 2024

@benjthayer WDYT if we try to activate the app as well whenever this popup shows up? It has an expiry date and we'll need the user attention when a sign is requested.

@caybro
Copy link
Member

caybro commented Sep 13, 2024

@benjthayer WDYT if we try to activate the app as well whenever this popup shows up? It has an expiry date and we'll need the user attention when a sign is requested.

Great idea actually; won't work on Linux though as the policies prevent you from stealing the focus but why not :)

@benjthayer
Copy link
Author

@benjthayer WDYT if we try to activate the app as well whenever this popup shows up? It has an expiry date and we'll need the user attention when a sign is requested.

Hey @alexjba , as discussed on the user stories call, perhaps we show an OS notification when there is a sign request - which, when clicked, refocuses the app. I think that's where we landed - correct me if I'm wrong.

I can add this to the flows, but do you want to check feasibility first from an implementation perspective?

caybro added a commit that referenced this issue Sep 16, 2024
- show countdown until which the sign (WalletConnect and Swap) dialogs
expire
- after expiration, hide the Reject/Sign buttons and display a plain
Close button
- make the dialogs non-closable by clicking outside or pressing Esc; the
user has to explicitely click some of the footer buttons

Fixes #16327
Fixes #16314
caybro added a commit that referenced this issue Sep 19, 2024
- show countdown until which the sign (WalletConnect and Swap) dialogs
expire
- after expiration, hide the Reject/Sign buttons and display a plain
Close button
- make the dialogs non-closable by clicking outside or pressing Esc; the
user has to explicitely click some of the footer buttons

Fixes #16327
Fixes #16314
caybro added a commit that referenced this issue Sep 19, 2024
- show countdown until which the sign (WalletConnect and Swap) dialogs
expire
- after expiration, hide the Reject/Sign buttons and display a plain
Close button
- make the dialogs non-closable by clicking outside or pressing Esc; the
user has to explicitely click some of the footer buttons

Fixes #16327
Fixes #16314
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Code Review
Development

Successfully merging a pull request may close this issue.

3 participants