{"action":"created","issue":{"url":"https://api.github.com/repos/Nexmo/nexmo-developer/issues/919","repository_url":"https://api.github.com/repos/Nexmo/nexmo-developer","labels_url":"https://api.github.com/repos/Nexmo/nexmo-developer/issues/919/labels{/name}","comments_url":"https://api.github.com/repos/Nexmo/nexmo-developer/issues/919/comments","events_url":"https://api.github.com/repos/Nexmo/nexmo-developer/issues/919/events","html_url":"https://github.com/Nexmo/nexmo-developer/pull/919","id":354336707,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExMTIzMTI5","number":919,"title":"Block copy stats","user":{"login":"mheap","id":59130,"node_id":"MDQ6VXNlcjU5MTMw","avatar_url":"https://avatars0.githubusercontent.com/u/59130?v=4","gravatar_id":"","url":"https://api.github.com/users/mheap","html_url":"https://github.com/mheap","followers_url":"https://api.github.com/users/mheap/followers","following_url":"https://api.github.com/users/mheap/following{/other_user}","gists_url":"https://api.github.com/users/mheap/gists{/gist_id}","starred_url":"https://api.github.com/users/mheap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mheap/subscriptions","organizations_url":"https://api.github.com/users/mheap/orgs","repos_url":"https://api.github.com/users/mheap/repos","events_url":"https://api.github.com/users/mheap/events{/privacy}","received_events_url":"https://api.github.com/users/mheap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-27T14:13:53Z","updated_at":"2018-08-27T14:18:47Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/Nexmo/nexmo-developer/pulls/919","html_url":"https://github.com/Nexmo/nexmo-developer/pull/919","diff_url":"https://github.com/Nexmo/nexmo-developer/pull/919.diff","patch_url":"https://github.com/Nexmo/nexmo-developer/pull/919.patch"},"body":"## Description\r\n\r\nAdds a copy to clipboard button to building blocks. It works, but needs some design love.\r\n\r\n![screen shot 2018-08-27 at 15 09 31](https://user-images.githubusercontent.com/59130/44664483-4bed3880-aa0b-11e8-8192-6543d721b149.png)\r\n\r\nClicking copy will copy dependency configuration *and* the code itself as people seem to miss the dependency config section.\r\n\r\nThis only works on blocks using the `building_block` filter (currently Voice)\r\n\r\nWhen the user clicks on the copy button for the first time per page load, we store which language they have selected, and which building block they're using.\r\n\r\n## Deploy Notes\r\n\r\nThis adds a new DB migration to create the usage_copy_to_clipboard table. I believe they're run automatically but we should take care when deploying this"},"comment":{"url":"https://api.github.com/repos/Nexmo/nexmo-developer/issues/comments/416242250","html_url":"https://github.com/Nexmo/nexmo-developer/pull/919#issuecomment-416242250","issue_url":"https://api.github.com/repos/Nexmo/nexmo-developer/issues/919","id":416242250,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjI0MjI1MA==","user":{"login":"mheap","id":59130,"node_id":"MDQ6VXNlcjU5MTMw","avatar_url":"https://avatars0.githubusercontent.com/u/59130?v=4","gravatar_id":"","url":"https://api.github.com/users/mheap","html_url":"https://github.com/mheap","followers_url":"https://api.github.com/users/mheap/followers","following_url":"https://api.github.com/users/mheap/following{/other_user}","gists_url":"https://api.github.com/users/mheap/gists{/gist_id}","starred_url":"https://api.github.com/users/mheap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mheap/subscriptions","organizations_url":"https://api.github.com/users/mheap/orgs","repos_url":"https://api.github.com/users/mheap/repos","events_url":"https://api.github.com/users/mheap/events{/privacy}","received_events_url":"https://api.github.com/users/mheap/received_events","type":"User","site_admin":false},"created_at":"2018-08-27T14:18:47Z","updated_at":"2018-08-27T14:18:47Z","author_association":"CONTRIBUTOR","body":"I've added more visual clues to the icon as I don't think it was obvious what the button did\r\n\r\n![screen shot 2018-08-27 at 15 18 02](https://user-images.githubusercontent.com/59130/44664893-75f32a80-aa0c-11e8-8281-cfc0253cf57f.png)\r\n\r\nOnce you click:\r\n\r\n![screen shot 2018-08-27 at 15 18 08](https://user-images.githubusercontent.com/59130/44664895-77245780-aa0c-11e8-8a4f-c8e2c2718f12.png)\r\n"}}
{"actor":{"display_login":"mheap"}}