coder999o opened a new pull request, #4215:
URL: https://github.com/apache/rocketmq-dashboard/pull/4215

   ## What is the purpose of the change
   
   Add an AI prompt template library to RocketMQ Studio so operators can start 
common RocketMQ diagnosis, query, and management workflows from structured 
prompts instead of repeatedly typing long instructions.
   
   Each template carries its chat mode (`chat`, `diagnose`, `manage`, or 
`query`) and prompt enhancement setting into the next AI request. Users can 
also save the current input as a custom local template, then search, reuse, 
append, or delete it later.
   
   ## Brief changelog
   
   - Add built-in RocketMQ operations prompt templates for consumer lag 
diagnosis, message trace investigation, topic change planning, broker health 
checks, operations handoff summaries, and ACL risk checks.
   - Add a prompt template modal on the AI chat page with search, mode 
filtering, replace/append actions, and custom template save/delete support.
   - Add an explicit chat mode selector and send the selected/template mode 
with AI chat requests.
   - Store custom templates in bounded browser localStorage with safe fallback 
when storage is unavailable.
   - Localize the new template UI and built-in template content.
   - Add tests for template persistence, filtering, bounds, page application, 
and AI request parameters.
   
   ## Verifying this change
   
   - `npm test -- promptTemplates AiPage --run`
   - `npx eslint src/pages/ai/index.tsx src/pages/ai/__tests__/AiPage.test.tsx 
src/pages/ai/promptTemplates.ts src/pages/ai/promptTemplates.test.ts 
src/i18n/translations.ts`
   - `git diff --check`
   - `npm run build`


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