tju-yxq opened a new pull request, #3979: URL: https://github.com/apache/rocketmq-dashboard/pull/3979
## What changed The AI history drawer could list and select conversations, but removing one temporary diagnostic conversation required clearing all histories. The store had no per-conversation delete action. This change adds individual conversation deletion: - add a `deleteConversation(mode, conversationId)` store action; - remove only the requested conversation in the selected Mock/Real history; - when the deleted conversation is active, select the most recent remaining conversation; - when it is the last conversation, clear the active selection; - keep existing persistence, message limits, and history-size behavior unchanged; - add a confirmed delete action beside each history item; - keep the original row-level select action separate from delete; - update the active conversation ref so the next chat message continues in the newly selected conversation. Closes #3566 ## Validation - `npm test -- aiChatHistoryStore.test.ts --run` — 13 tests passed - `npm test -- AiPage.test.tsx --run` — 17 tests passed - `npm run lint -- --quiet` — 0 errors; 10 existing warnings remain elsewhere in the tree - `npm run build` — passed - `git diff --check` — passed The GitHub Actions status is not being described as green here; the checks above are local validation on this branch. -- 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]
