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

All dialogs should have atleast one button #6076

Closed
parneet-guraya opened this issue Dec 24, 2024 · 6 comments · Fixed by #6078
Closed

All dialogs should have atleast one button #6076

parneet-guraya opened this issue Dec 24, 2024 · 6 comments · Fixed by #6078
Assignees

Comments

@parneet-guraya
Copy link
Contributor

In some dialogs there's neither positive nor negative button available since dialogs are modal (non dismissable) it blocks the app. So, solution is to keep the dialogs modal but add atleast cancel or dismiss button.

document_6294057105208906596.mp4

Do you want to work on this?

Yes

@sonalyadav1
Copy link
Contributor

@parneet-guraya Yes, I completely agree with you. It can be quite frustrating at times to have to reopen the app.
I had solve some part of this issue in PR #6067

@parneet-guraya
Copy link
Contributor Author

I had solve some part of this issue in PR #6067

@sonalyadav1
Yes, about that, actually we made the attempt to make dialogs non dismissable (here #6015) so that was intended. Ideally what we can do is provide a button in case user don't want to do any action (which will be solved with this issue fixed).

Big reason of making them modal was if user touched outside accidentally when dialog was shown, it led to user missing the dialog (You can see it in the PR's fixed issue). Hope that makes sense :-)

P.S: Little tip for you, whenever trying to work on some part/feature/bug try to find related issue or why it was done the way it is, sometimes it is intended. So, this will also avoid unintentional rejections as well as lead you to write better solutions.

For eg. the solution that you pushed fixed the problem no doubt, but if you did find that it was intentionally kept (non dismissable) you could have covered more such dialogs that were also needed the fix (same as I done in this PR #6078 .

@sonalyadav1
Copy link
Contributor

@parneet-guraya Thank you for the explanation and the helpful tip! I understand now why the dialogs were made non-dismissible and will ensure to check related issues and PRs more thoroughly in the future. I’ll review PR #6078 for reference and strive to align my solutions better with the project’s intent. Thanks again for the guidance! 😊

@parneet-guraya
Copy link
Contributor Author

I realize I have been spelling dismissible wrong 😅

@sonalyadav1
Copy link
Contributor

No worries, it happens to the best of us! 😊

@nicolas-raoul
Copy link
Member

Good catch about the "report violation" popup! 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants