Skip to content

Copy/paste: implement "Copy" menu in frontend #10

Closed

Description

@ormsbee

For users with the feature flag #11 active, display the new "Copy" action in the Studio menu #50. Clicking it should use the new backend copy API from #51 to copy the component onto the clipboard. Display the status as a toast per the wireframes:

Screenshot 2023-02-17 at 2 28 47 PM

Screenshot 2023-02-17 at 2 28 59 PM

Activity

  1. changed the title [-]Copy Component into clipboard[/-] [+]Copy/paste: implement "Copy" menu in frontend[/+] on Feb 17, 2023
  2. moved this from Refined to In Progress in New Feature: Copy/Pasteon Mar 14, 2023
  3. bradenmacdonald commented on Mar 17, 2023

    @bradenmacdonald
    Contributor

    @ali-hugo It turns out that these existing Studio "toasts" don't support a "Complete" message; they just disappear when they're done. So it can say "Copying component" with the gear spinning, but there's no easy way to display "Copied!" without the gear spinning, and if I do so it would be different than all the other similar notifications in Studio. I can still find a way to implement it but it will take longer. How important is the "Copied!" success message? I can always create a separate task to implement it later if we have extra time.

  4. ali-hugo commented on Mar 20, 2023

    @ali-hugo

    @bradenmacdonald If there's time left over, I think it might be worthwhile implementing the success message. Here's why: When a component is duplicated, something happens on the screen (i.e. a second version of the component appears), but when a component is copied, nothing changes on the screen, so the user doesn't get any confirmation that the copy was successful.

    That said, it would be interesting to see how test users cope without the success message, so we could always leave it off for now, and add it if usability testing proves it to be necessary. What do you think?

  5. bradenmacdonald commented on Mar 21, 2023

    @bradenmacdonald
    Contributor

    @ali-hugo Sure, I think we'll have time so I should be able to take that on.

  6. moved this from In Progress to Done in New Feature: Copy/Pasteon Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions