Skip to content

Conversation

@hashicc
Copy link
Collaborator

@hashicc hashicc commented Nov 26, 2025

Description

This PR removes ember-cli-clipboard and the single CopyButton usage in our rose code editor toolbar.

Screenshots (if appropriate)

Before

image

After

image

How to Test

  1. Go to current code editor usage in main (eg: main vercel deployment) and compare against this branch (eg: this branch's vercel deployment)
  2. The functionality should be the same

Checklist

  • I have added before and after screenshots for UI changes
  • I have added JSON response output for API changes
  • I have added steps to reproduce and test for bug fixes in the description
  • I have commented on my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have added a11y-tests label to run a11y audit tests if needed

PCI review checklist

  • I have documented a clear reason for, and description of, the change I am making.
  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.
  • If applicable, I've documented the impact of any changes to security controls.
    Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.

@vercel
Copy link

vercel bot commented Nov 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
boundary-ui Ready Ready Preview Comment Nov 26, 2025 6:31pm
boundary-ui-desktop Ready Ready Preview Comment Nov 26, 2025 6:31pm

<CopyButton
@text={{@copyText}}
<Hds::Copy::Button
@text='Copy code'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@text is a different argument on Hds::Copy::Button (inner text) than the ember-cli-clipboard CopyButton (the text to copy)

@hashicc hashicc changed the title Remove ember cli clipboard Remove ember-cli-clipboard Nov 26, 2025
assert.dom(menuDividerSelector).doesNotExist();

await click(copyButtonSelector);
await onCopyPromise;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Test was failing in CI. After checking locally and refreshing the test it appears that there was a race condition. This promise guarantees that the callback was called before checking the value. I think it's still good to have the explicit assert since it's more explicit than the promise succeeding

@hashicc hashicc marked this pull request as ready for review November 26, 2025 18:34
@hashicc hashicc requested a review from a team as a code owner November 26, 2025 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant