Skip to content

added copy button to copy response#6131

Merged
sid-bruno merged 5 commits intousebruno:feat/copy-response-to-clipboard-5409from
pooja-bruno:feat/add-copy-button-for-response
Dec 2, 2025
Merged

added copy button to copy response#6131
sid-bruno merged 5 commits intousebruno:feat/copy-response-to-clipboard-5409from
pooja-bruno:feat/add-copy-button-for-response

Conversation

@pooja-bruno
Copy link
Collaborator

@pooja-bruno pooja-bruno commented Nov 18, 2025

Description

JIRA
Issue: #5408

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.
Screen.Recording.2025-11-18.at.4.42.57.PM.mov

@pull-request-size pull-request-size bot added size/L and removed size/M labels Nov 18, 2025
@pooja-bruno pooja-bruno marked this pull request as ready for review November 18, 2025 11:47
@sid-bruno sid-bruno changed the base branch from main to feat/copy-response-to-clipboard-5409 December 2, 2025 09:24
…d-5409' into feat/add-copy-button-for-response
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 2, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (2)
  • main
  • release/*

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Comment @coderabbitai help to get the list of available commands and usage tips.

@sid-bruno sid-bruno merged commit 4c11726 into usebruno:feat/copy-response-to-clipboard-5409 Dec 2, 2025
2 checks passed
sid-bruno added a commit that referenced this pull request Dec 2, 2025
* added copy button to copy response

* add: response action component

* fix: lint error

* add: playwright test

---------

Co-authored-by: Shashank Shekhar <48152748+sha5-git@users.noreply.github.com>
Co-authored-by: Sid <siddharth@usebruno.com>
sid-bruno added a commit that referenced this pull request Dec 2, 2025
* added copy button to copy response

* add: response action component

* fix: lint error

* add: playwright test

---------

Co-authored-by: Shashank Shekhar <48152748+sha5-git@users.noreply.github.com>
Co-authored-by: Sid <siddharth@usebruno.com>
sid-bruno added a commit that referenced this pull request Dec 2, 2025
* added copy button to copy response

* add: response action component

* fix: lint error

* add: playwright test

---------

Co-authored-by: Shashank Shekhar <48152748+sha5-git@users.noreply.github.com>
Co-authored-by: Sid <siddharth@usebruno.com>
sid-bruno added a commit that referenced this pull request Dec 2, 2025
* added copy button to copy response

* add: response action component

* fix: lint error

* add: playwright test

---------

Co-authored-by: Shashank Shekhar <48152748+sha5-git@users.noreply.github.com>
Co-authored-by: Sid <siddharth@usebruno.com>

const StyledWrapper = styled.div`
button {
color: var(--color-tab-inactive);
Copy link
Contributor

Choose a reason for hiding this comment

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

@pooja-bruno @sid-bruno We should not be using css vars. We should use theme props.

await copyButton.click();

// Verify toast notification appears
await expect(page.getByText('Response copied to clipboard')).toBeVisible();
Copy link
Contributor

Choose a reason for hiding this comment

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

A better check would be to confirm that the clipboard was indeed populated

const clipboardText = await page.evaluate(() => navigator.clipboard.readText());

expect(clipboardText).toBe('Expected copied value');

naman-bruno pushed a commit to naman-bruno/bruno that referenced this pull request Dec 3, 2025
* added copy button to copy response

* add: response action component

* fix: lint error

* add: playwright test

---------

Co-authored-by: Shashank Shekhar <48152748+sha5-git@users.noreply.github.com>
Co-authored-by: Sid <siddharth@usebruno.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants