Skip to content

feat(issues): Add copy request body to clipboard#106926

Merged
scttcper merged 3 commits intomasterfrom
scttcper/copy-body-to-clipboard
Jan 24, 2026
Merged

feat(issues): Add copy request body to clipboard#106926
scttcper merged 3 commits intomasterfrom
scttcper/copy-body-to-clipboard

Conversation

@scttcper
Copy link
Member

@scttcper scttcper commented Jan 23, 2026

image

fixes #91749

@scttcper scttcper requested a review from a team as a code owner January 23, 2026 23:01
@scttcper scttcper requested a review from a team January 23, 2026 23:02
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 23, 2026
Copy link
Contributor

@cvxluo cvxluo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i saw JsonEventData has 'showCopyButton' as a prop, would we want to use that?

Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

return hasStreamlinedUI ? (
<RequestCardPanel>
<KeyValueData.Title>{t('Body')}</KeyValueData.Title>
<KeyValueData.Title>{bodyTitle}</KeyValueData.Title>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy button missing for GraphQL in non-streamlined UI

Medium Severity

The bodyTitle component (containing the copy-to-clipboard button) is created but never rendered when hasStreamlinedUI is false and the request is a GraphQL request. In this code path, only GraphQlRequestBody is returned without the title, so users won't see the copy button. All other code paths correctly render bodyTitle.

Fix in Cursor Fix in Web

@scttcper
Copy link
Member Author

@cvxluo good call

@scttcper scttcper merged commit 2b4554e into master Jan 24, 2026
52 checks passed
@scttcper scttcper deleted the scttcper/copy-body-to-clipboard branch January 24, 2026 00:16
@github-actions github-actions bot locked and limited conversation to collaborators Feb 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add way to copy request body in Issue

2 participants