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

Desktop notifications: ask for notification permission only when saving the form #247

Open
julianbrost opened this issue Jul 23, 2024 · 3 comments
Labels
low priority Something for later...

Comments

@julianbrost
Copy link
Collaborator

When enabling the desktop notifications in the user settings, the site asks for the notification permission immediately. However, to actually enable the feature, you still have to save the updated settings. I failed to do so for the second time now because asking for the permission felt like the feature was already activated and I continued without explicitly saving and wondered why it didn't work. I think this could be improved by simply delaying the permission request until the save button is clicked (or maybe until the next page is loaded where it actually subscribes to the event stream).

@julianbrost julianbrost added enhancement New feature or improvement area/desktop-notifications Affects the Desktop Notifications labels Jul 23, 2024
@nilmerg
Copy link
Member

nilmerg commented Jul 23, 2024

and I continued without explicitly saving and wondered why it didn't work

Interesting. Why If I may ask? I'd expect that in a form the user is familiar with, any change is saved or otherwise the user is aware that it is not effective.

or maybe until the next page is loaded where it actually subscribes to the event stream

That's not possible. Browsers require user input in order to ask for the permission.

@julianbrost
Copy link
Collaborator Author

and I continued without explicitly saving and wondered why it didn't work

Interesting. Why If I may ask? I'd expect that in a form the user is familiar with, any change is saved or otherwise the user is aware that it is not effective.

Is there any other situation in Icinga Web where you click a checkbox and then a browser permission request appears? I wouldn't say users are familiar with that and it deviates quite a bit from the regular filling out form fields and then submitting the form flow. I didn't consciously decide against clicking the save button, seeing the permission request felt like a confirmation of my action and I didn't see a need to do anything more.

@nilmerg
Copy link
Member

nilmerg commented Jan 21, 2025

The location of the button is still subject to change. Having it inside the preference form (or in a form rather) is not the final goal.

Let's keep it how it is for now.

@nilmerg nilmerg added low priority Something for later... and removed enhancement New feature or improvement area/desktop-notifications Affects the Desktop Notifications labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low priority Something for later...
Projects
None yet
Development

No branches or pull requests

2 participants