tju-yxq opened a new pull request, #3981: URL: https://github.com/apache/rocketmq-dashboard/pull/3981
## What changed The AI history drawer showed only the most recent conversations and had no search control. Older conversations remained stored but were effectively unreachable through the drawer. This change adds history search: - add `searchAiChatConversations(conversations, searchTerm, limit)`; - trim and case-normalize the search term; - match the first user prompt plus message text, summaries, and thinking text; - preserve the most-recent ordering; - search all persisted conversations rather than only the default recent eight; - return the normal recent list when the search box is empty; - add a search input at the top of the history drawer; - keep the existing empty state when no conversation matches. Closes #3567 ## Validation - `npm test -- aiChatHistoryStore.test.ts --run` — 12 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]
