yyqdbngt opened a new pull request, #4104:
URL: https://github.com/apache/rocketmq-dashboard/pull/4104
## Summary
Add a "复制 JSON" action to each topic row that copies
`JSON.stringify(topic, null, 2)` to the clipboard via the new shared
`copyTextToClipboard` util (Clipboard API with an execCommand fallback),
with success/error feedback.
## Why
Sharing a topic's full configuration (name, cluster, queues, permissions,
timestamps) with another team usually means retyping fields from the
details modal. One-click JSON makes the row portable for tickets and
scripts.
## Testing
- `cd web && ./node_modules/.bin/tsc -b tsconfig.app.json` — passes (exit 0).
- `./node_modules/.bin/vitest run
src/pages/instance/__tests__/TopicPage.test.tsx`
(Node 20 build server) — 24/24 passed, including the new case asserting the
clipboard receives the selected topic 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]