Make WordPress Core

Opened 17 months ago

Last modified 4 weeks ago

#44588 assigned enhancement

Denote the Copy action is complete by updating the Copy button to state 'Copied'

Reported by: garrett-eclipse Owned by: garrett-eclipse
Milestone: 5.4 Priority: normal
Severity: normal Version: 4.9.6
Component: Privacy Keywords: needs-patch
Focuses: administration Cc:
PR Number:



With the Suggested Privacy content introduced in 4.9.6 the sections provide a 'Copy' button;

It would be nice if once the action is complete that the button would update to state 'Copied' briefly before switching back to 'Copy' for more copying. By switching to 'Copied' temporarily the users gets direct feedback that the copy action was completed so they don't keep clicking the button unnecessarily.


Attachments (3)

Screen Shot 2018-07-16 at 11.19.30 AM.png (9.8 KB) - added by garrett-eclipse 17 months ago.
Copy Button
Screen Shot 2019-11-14 at 10.36.46 PM.png (126.1 KB) - added by garrett-eclipse 4 weeks ago.
Copy to TextEdit
Screen Shot 2019-11-14 at 10.37.07 PM.png (850.4 KB) - added by garrett-eclipse 4 weeks ago.
Copy to Microsoft Word (Mac)

Download all attachments as: .zip

Change History (16)

This ticket was mentioned in Slack in #core-privacy by desrosj. View the logs.

17 months ago

#2 @desrosj
17 months ago

  • Focuses administration added; privacy removed
  • Keywords ui-feedback added
  • Milestone changed from Awaiting Review to Future Release

Good find, @garrett-eclipse. This should definitely get improved. I think adding user feedback to indicate the copy happened successfully is a good idea, but I also don't know that there is enough information here. What should the user do after copying? What does "Copy" actually do? Maybe the button could be "Copy to Clipboard".

I am marking this as ui-feedback to explore this a bit more.

#3 @desrosj
17 months ago

It's also worth noting that there is one copy button for the entire suggested text provided with core. Each plugin that suggests text will receive their own copy button. Maybe "Copy Section" after each section, or a way to bulk select the sections to copy would be useful.

#4 @garrett-eclipse
17 months ago

Thanks @desrosj, good thoughts

I've created #44677 to address the verbiage suggestion of 'Copy to Clipboard'.

And created #44678 to address the enhancement idea for bulk copy of sections.


#5 @birgire
16 months ago

The "Email Data" button, on the privacy export data page, comes to mind, as it gives an immediate feedback when it's clicked on.

But it can only be clicked once, for each page load.

I think we should be able to click many times on the Copy button, without reloading the page.

I wonder about the following flow, with a javascript timer:

  • Copy button is clicked.
  • Button text changes immediately to "Copied".
  • After n milliseconds, the button text is back to "Copy".

Another one is to have a label near the button showing the state, but it should be cleared when the user copies other sections or makes other manual copies of text on the page. For a very long text (many plugin sections), this might be slower than the first option.

Third option could be to not show any feedback at all (status quo).


Here's an interesting discussion I found on the topic:


#6 @garrett-eclipse
16 months ago

  • Keywords ux-feedback added

Thanks @birgire, I do like the idea of providing feedback directly in the button there so maybe the timer is the best idea.
There was an idea in your link I thought interesting of checking the clipboard to see if the contents is in there and while it's there keep the button as 'Copied' until the clipboard changes.

#7 @garrett-eclipse
9 months ago

  • Keywords needs-patch added; ui-feedback ux-feedback removed
  • Milestone changed from Future Release to 5.3
  • Owner set to garrett-eclipse
  • Status changed from new to assigned

With r45044 from #46647 the clipboard.js library was introduced to core. We should follow the convention presented for the Site Health 'Copy to Clipboard' button on the Privacy Policy guide's Copy button.

This ticket was mentioned in Slack in #core-privacy by garrett-eclipse. View the logs.

5 months ago

#9 @birgire
3 months ago

#47998 was marked as a duplicate.

This ticket was mentioned in Slack in #core-privacy by garrett-eclipse. View the logs.

3 months ago

This ticket was mentioned in Slack in #core-privacy by garrett-eclipse. View the logs.

3 months ago

#12 @davidbaumwald
3 months ago

  • Milestone changed from 5.3 to 5.4

@garrett-eclipse This ticket still needs a patch. With version 5.3 Beta 1 landing tomorrow, this enhancement is being moved for consideration in 5.4. If this can be patched for 5.3, feel free to update the ticket.

#13 @garrett-eclipse
4 weeks ago

Rather than open a new ticket wanted to flag the copy to TextEdit & Microsoft Word should be tested once clipboard.js is adopted here to ensure the unnecessary formatting is cleaned up.
[Edit] In the attached screens below the main unnecessary formatting that comes over is the background and empty space.

Last edited 4 weeks ago by garrett-eclipse (previous) (diff)

4 weeks ago

Copy to Microsoft Word (Mac)

Note: See TracTickets for help on using tickets.