btlqql opened a new pull request, #1992: URL: https://github.com/apache/rocketmq-dashboard/pull/1992
## What is the purpose of the change Three web UI bugs found in the Studio pages: - `loadTopicConsumers` in the topic detail modal had no request guard, so paging or switching topics quickly let a slower earlier response overwrite a newer one (the same guard pattern already exists in `message.tsx` / `consumer.tsx`). - `MetricsExplorer` reset `dataSourceKey` state to `''` when the selected data source left `availableDataSources`, but left `dataSourceKeyRef.current` pointing at the stale key; subsequent queries kept hitting the de-registered data source while the UI showed the default. - Two visible buttons did nothing: the consumer table's "查看分布" action and the AI page's "Prompt 增强" toggle had no click handling. ## Brief changelog - Guard `loadTopicConsumers` with a per-request sequence id so only the latest page applies. - Sync `dataSourceKeyRef.current` when the selected data source is reset because it left the available set. - Disable the unimplemented "查看分布" button instead of leaving a dead control. - Wire the AI page "Prompt 增强" toggle to an `enhance` state passed into `handleSend`/`chatStream`. ## Verifying this change - `npx tsc -b` (type check clean) - `npx eslint src/pages/instance/topic.tsx src/components/MetricsExplorer.tsx src/pages/instance/consumer.tsx src/pages/ai/index.tsx` (only a pre-existing refs warning on an untouched line) - `git diff --check` -- 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]
