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

   ## What is the purpose of the change
   
   Fixes #6710. The Data Sources table can temporarily show rows from a 
previous search, filter, or page. Edit, Delete, Test Connection, and Export 
were still available against that stale view.
   
   ## Brief changelog
   
   - Track which query produced the loaded rows and disable row actions and 
export until it matches the active query.
   - Keep those actions disabled while a typed search is waiting for its 
debounce; guard event handlers as well as buttons, including a delete 
confirmation opened before the query changes.
   - Reset the loaded-query marker when a list request fails.
   
   ## Verification
   
   - Reproduced the bug with a test that failed because Edit remained enabled 
immediately after a search change.
   - The full DataSourceTab test suite passed (20 tests), plus app TypeScript, 
changed-file ESLint, and `git diff --check`.
   
   ## AI assistance
   
   AI assistance helped trace the table's asynchronous query state and draft 
the regression. I reviewed the UI guard and checked the failing and passing 
test runs.
   


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