Open kesselb opened 3 months ago
Yup @kesselb, agree with all your suggestions. Regarding point 1: All the fields in the form should be disabled and the button should get a spinner icon, text updating to "Adding new account".
All the fields in the form should be disabled and the button should get a spinner icon, text updating to "Adding new account".
One hint: Never disable the submit button, that will make the loading information unavailable for screen readers. Instead set aria-disabled
and do not re-submit while loading.
We are currently working on this feature as part of the Dialog component (supporting forms as content) :)
⚠️ This issue respects the following points: ⚠️
Bug description
The UX for adding a new account could be improved.
Screencast from 2024-07-26 14-57-25.webm
1) No visual feedback for the add new account button. There should be a feedback (e.g., a spinner, blur the form,..) that the operation is running. 2) The button should be disabled to prevent submitting the request again. 3) It's possible to press the close button when the create user operations run, but this will not cancel the process. Maybe disable the close/x as well?
Steps to reproduce
Expected behavior
Visual feedback that the add new user operations is running.
Additional info
Patch to delay the user creation.
cc @nextcloud/designers