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

   ## Summary
   
   Add a "复制 JSON" action to each audit record row that copies
   `JSON.stringify(record, null, 2)` to the clipboard via the shared
   `copyTextToClipboard` util (Clipboard API with an execCommand fallback),
   with success/error feedback.
   
   ## Why
   
   Audit records are often attached to compliance tickets. Copying the full
   record as JSON avoids retyping operator, action, and detail fields from the
   table.
   
   ## Testing
   
   - `cd web && ./node_modules/.bin/tsc -b tsconfig.app.json` — passes (exit 0).
   - `./node_modules/.bin/vitest run src/pages/ops/__tests__/AuditPage.test.tsx`
     (Node 20 build server) — 10/10 passed, including the new case asserting the
     clipboard receives the selected record serialized as JSON.
   


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