Skip to content

[Bug]: accounts -> new account UX improvable #46783

Open
@kesselb

Description

@kesselb

⚠️ 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

  1. Login as admin
  2. Visit accounts
  3. Add a new user

Expected behavior

Visual feedback that the add new user operations is running.

Additional info

Patch to delay the user creation.

Index: apps/provisioning_api/lib/Controller/UsersController.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php
--- a/apps/provisioning_api/lib/Controller/UsersController.php	(revision 87dc0614d703536843b878808a2721899df798b4)
+++ b/apps/provisioning_api/lib/Controller/UsersController.php	(date 1721998715741)
@@ -454,6 +454,7 @@
 		string $language = '',
 		?string $manager = null,
 	): DataResponse {
+		sleep(5);
 		$user = $this->userSession->getUser();
 		$isAdmin = $this->groupManager->isAdmin($user->getUID());
 		$isDelegatedAdmin = $this->groupManager->isDelegatedAdmin($user->getUID());

cc @nextcloud/designers

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    👓 Design review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions