RocketChat / RocketChat/Rocket.Chat

admin's ability to create/update users allows multiple clicks on save button resulting in unhandled loading state of save button

Open
#31,734 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

admin's ability to create/update users allows for multiple clicks on the save button, resulting in a suboptimal UX

Steps to reproduce:
  1. Go to the admin panel section
  2. Navigate to the user's tab
  3. Create a new user or select an existing user to update.
  4. Fill in the necessary details or modify existing information.
  5. Click the save button multiple times, rapidly.

https://github.com/RocketChat/Rocket.Chat/assets/68157847/5b3abe0e-fe74-4d22-a3b1-91d8ec6d9e70

Expected behavior:

save button should be disabled if the create/update user API is in a pending state

Setup Information:
  • Chrome
  • Operating System: macOS
  • Version - 6.7.0-develop

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the admin panel's Users tab and trace the create/update user API flow used by the save button. Reproduce rapid clicks, then verify that the button is disabled while the request is pending and that create and update actions both return to a usable state afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.