Loyal-Young opened a new pull request, #5375:
URL: https://github.com/apache/rocketmq-dashboard/pull/5375

   ### Which Issue(s) This PR Fixes
   
   - Fixes #5374
   
   ### Brief Description
   
   The user-management page now clears rows and total when its latest filtered 
list request fails, so a previous filter's accounts cannot remain actionable. 
Synchronous guards and modal loading states prevent repeat create-user and 
password-reset requests while a mutation is pending. Validation errors stay on 
the form without producing a misleading API failure toast.
   
   ### Verification
   
   - On unmodified trunk, the new tests reproduce all three cases: a previous 
user row remains after filter failure, and repeated modal submissions each call 
the mutation API twice.
   - `cd web && node node_modules/vitest/vitest.mjs run 
src/pages/studio/__tests__/UserManagement.test.tsx --pool=threads 
--maxWorkers=1 --reporter=dot` — 15 tests passed.
   - `cd web && node node_modules/eslint/bin/eslint.js 
src/pages/studio/UserManagement.tsx 
src/pages/studio/__tests__/UserManagement.test.tsx` — passed.
   - `cd web && node node_modules/typescript/bin/tsc -p tsconfig.app.json 
--noEmit --pretty false` — passed.
   - `git diff --check` — passed.
   
   ### AI Assistance
   
   AI assistance helped trace the page's request state and draft focused 
regressions. I reproduced each failure on the original code, reviewed the 
guards and error handling, and ran the checks above.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to