Confirmation prompts: usability, accessibility, and clarity #18014
Labels
topic/ui-interaction
Change the process how users use Gitea instead of the visual appearance
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Feature Description
Some actions in Gitea require the user to confirm the action in a prompt, for example when removing an email address or deleting an account. Currently, these confirmation prompts are formatted as "Are you sure you want to delete this account?" or "Are you sure you want to delete this repository?".
While certainly better than a vague "Are you sure about this?", this still leaves room for error. Imagine a user removing one of multiple email addresses, but the user is unaware that they clicked the delete button next to the wrong email address. The user sees "Are you sure you want to remove this email address?", wrongly interpreting what "this" refers to, confirm the action, and accidentally remove the wrong email address.
I think the prompt text should be even clearer about what the user is about to do: "Are you sure you want to delete the account Frankie?" and "Are you sure you want to delete the repository Frankie/MyFirstRepo?". GitHub goes one step further when it comes to removing accounts/repos, and asks the user to write the name of the target in an input box. This would be great, but is, in my opinion, not required. (On the other hand, GitHub also does not mention the exact email address when removing an email address.)
Now that I look at Gitea's confirmation dialog, I think there's a few other important improvements to be made:
Esc
should close the dialog. Clicking in the grey area around the dialog should also close the dialog. Basically, doing anything other than clicking "Yes" should close the dialog.The text was updated successfully, but these errors were encountered: