Loyal-Young opened a new pull request, #5801: URL: https://github.com/apache/rocketmq-dashboard/pull/5801
## What is the purpose of the change Fixes #5796. Recover when Clipboard API copying is rejected, and safely handle environments without a supported legacy copy command. ## Brief changelog - Attempt the existing textarea fallback when a Clipboard API write rejects or is unavailable. - Catch unsupported legacy copy operations and always remove the temporary textarea. - Expose the successful copied state through the button label as well as its tooltip/icon. - Preserve the primary Clipboard API path and avoid claiming success on failure. ## Verifying this change - Before the fix, rejected Clipboard API writes never invoked the fallback, and missing/throwing legacy commands emitted window errors. - All 24 AssistantBubble tests passed after the fix. - Changed-file ESLint, Prettier, and git diff --check passed. - The local incremental TypeScript app check stalled; a fresh check without the shared incremental cache is still running. - Full app build and backend tests were not rerun locally. ## AI assistance AI assisted with tracing browser capability/error paths, drafting the fallback handling and component regressions, and reviewing test output. Tests cover primary success, rejected-write recovery, missing commands, thrown commands, and false return values. ## Upstream CI baseline (2026-10-09) The unchanged base c99b9ad50b79467546997e51f3401d57ceebea5f already fails its packaging checks: - [Frontend build](https://github.com/apache/rocketmq-dashboard/actions/runs/37896884738/job/113710149978): build artifact license verification fails for assets/index-*.js. - [Backend build](https://github.com/apache/rocketmq-dashboard/actions/runs/37896884738/job/113710149451): failureaccess-1.0.1.jar is missing the complete upstream LICENSE/COPYING in the binary distribution. - [Frontend Docker build](https://github.com/apache/rocketmq-dashboard/actions/runs/37896884738/job/113710149904): the same frontend artifact license gate fails. These failures were verified in the base commit CI logs. Full CI remains failing; the local verification listed above is limited to the stated checks. -- 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]
