{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/241863559","pull_request_review_id":185250684,"id":241863559,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MTg2MzU1OQ==","diff_hunk":"@@ -0,0 +1,35 @@\n+/**\n+ * Internal dependencies\n+ */\n+import edit from './edit';\n+import save from './save';\n+import { __ } from 'gutenberg/extensions/presets/jetpack/utils/i18n';\n+import renderMaterialIcon from 'gutenberg/extensions/presets/jetpack/utils/render-material-icon';\n+import { Path } from '@wordpress/components';\n+\n+export const name = 'subscriptions';\n+export const settings = {\n+\ttitle: __( 'Subscription form' ),\n+\n+\tdescription: (\n+\t\t<p>\n+\t\t\t{ __(\n+\t\t\t\t'A form enabling readers to get notifications when new posts are published from this site.'\n+\t\t\t) }\n+\t\t</p>\n+\t),\n+\ticon: renderMaterialIcon(\n+\t\t<Path d=\"M23 16v2h-3v3h-2v-3h-3v-2h3v-3h2v3h3zM20 2v9h-4v3h-3v4H4c-1.1 0-2-.9-2-2V2h18zM8 13v-1H4v1h4zm3-3H4v1h7v-1zm0-2H4v1h7V8zm7-4H4v2h14V4z\" />\n+\t),\n+\tcategory: 'jetpack',\n+\n+\tkeywords: [ __( 'subscribe' ), __( 'join' ), __( 'follow' ) ],\n+\n+\tattributes: {\n+\t\tsubscribePlaceholder: { type: 'string', default: 'Email Address' },","path":"client/gutenberg/extensions/subscriptions/index.js","position":29,"original_position":29,"commit_id":"6a9072b7460d52dc760c0a1063b76333dcd96de4","original_commit_id":"6a9072b7460d52dc760c0a1063b76333dcd96de4","user":{"login":"lezama","id":104869,"node_id":"MDQ6VXNlcjEwNDg2OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/104869?v=4","gravatar_id":"","url":"https://api.github.com/users/lezama","html_url":"https://github.com/lezama","followers_url":"https://api.github.com/users/lezama/followers","following_url":"https://api.github.com/users/lezama/following{/other_user}","gists_url":"https://api.github.com/users/lezama/gists{/gist_id}","starred_url":"https://api.github.com/users/lezama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lezama/subscriptions","organizations_url":"https://api.github.com/users/lezama/orgs","repos_url":"https://api.github.com/users/lezama/repos","events_url":"https://api.github.com/users/lezama/events{/privacy}","received_events_url":"https://api.github.com/users/lezama/received_events","type":"User","site_admin":false},"body":"'Email Address' could use translation?","created_at":"2018-12-14T19:24:05Z","updated_at":"2018-12-14T19:24:05Z","html_url":"https://github.com/Automattic/wp-calypso/pull/28887#discussion_r241863559","pull_request_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/28887","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/241863559"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/28887#discussion_r241863559"},"pull_request":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/28887"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/28887","id":233997142,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzOTk3MTQy","html_url":"https://github.com/Automattic/wp-calypso/pull/28887","diff_url":"https://github.com/Automattic/wp-calypso/pull/28887.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/28887.patch","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/28887","number":28887,"state":"open","locked":false,"title":"Gutenpack Subscription Block (Take two)","user":{"login":"gititon","id":3246867,"node_id":"MDQ6VXNlcjMyNDY4Njc=","avatar_url":"https://avatars2.githubusercontent.com/u/3246867?v=4","gravatar_id":"","url":"https://api.github.com/users/gititon","html_url":"https://github.com/gititon","followers_url":"https://api.github.com/users/gititon/followers","following_url":"https://api.github.com/users/gititon/following{/other_user}","gists_url":"https://api.github.com/users/gititon/gists{/gist_id}","starred_url":"https://api.github.com/users/gititon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gititon/subscriptions","organizations_url":"https://api.github.com/users/gititon/orgs","repos_url":"https://api.github.com/users/gititon/repos","events_url":"https://api.github.com/users/gititon/events{/privacy}","received_events_url":"https://api.github.com/users/gititon/received_events","type":"User","site_admin":false},"body":"#### Changes proposed in this Pull Request\r\n\r\nThis pull request adds the Gutenberg Subscription block. \r\n\r\nThe Subscription block invites visitors to sign up to be notified when there are new posts on a site.\r\n\r\nWhen the block has focus in the editor, editors can toggle whether to show the number of subscribers in the block. When it doesn't have focus, editors will see the number of subscribers if they toggled that on. \r\n\r\n#### Testing instructions\r\n\r\nNote that the block still is going to receive some CSS ❤️(cc @MichaelArestad) , so please focus on testing its functionality for now.\r\n\r\n1) Checkout this Calypso branch and the corresponding Jetpack branch, https://github.com/Automattic/jetpack/pull/10564.\r\n\r\n2) Run the command to build the Subscription block from your wp-calypso repo directory:\r\n\r\n```\r\nnpm run sdk gutenberg client/gutenberg/extensions/presets/jetpack -- --output-dir=/<path_to_jetpack_repo>/_inc/blocks -w\r\n```\r\n3) Connect Jetpack if it isn't connected\r\n\r\n4) Create a new post and add the Jetpack Subscription Block.\r\n\r\n5) Toggle the \"show number of subscribers\". Confirm that you see the number of subscribers when the block loses focus.\r\n\r\n6) Publish the post. Confirm that you see it on the frontend. \r\n\r\n7) Subscribe by using the block with a user or two (they will have to be a connected Jetpack user)\r\n\r\n8) Confirm that you see the number of subscribed users on the frontend (when the toggle was enabled for the block in the editor) and the editor when the block doesn't have focus.","created_at":"2018-11-27T17:24:49Z","updated_at":"2018-12-14T19:24:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eddc6db868549875ae23e233dededca59c19e358","assignee":{"login":"gititon","id":3246867,"node_id":"MDQ6VXNlcjMyNDY4Njc=","avatar_url":"https://avatars2.githubusercontent.com/u/3246867?v=4","gravatar_id":"","url":"https://api.github.com/users/gititon","html_url":"https://github.com/gititon","followers_url":"https://api.github.com/users/gititon/followers","following_url":"https://api.github.com/users/gititon/following{/other_user}","gists_url":"https://api.github.com/users/gititon/gists{/gist_id}","starred_url":"https://api.github.com/users/gititon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gititon/subscriptions","organizations_url":"https://api.github.com/users/gititon/orgs","repos_url":"https://api.github.com/users/gititon/repos","events_url":"https://api.github.com/users/gititon/events{/privacy}","received_events_url":"https://api.github.com/users/gititon/received_events","type":"User","site_admin":false},"assignees":[{"login":"gititon","id":3246867,"node_id":"MDQ6VXNlcjMyNDY4Njc=","avatar_url":"https://avatars2.githubusercontent.com/u/3246867?v=4","gravatar_id":"","url":"https://api.github.com/users/gititon","html_url":"https://github.com/gititon","followers_url":"https://api.github.com/users/gititon/followers","following_url":"https://api.github.com/users/gititon/following{/other_user}","gists_url":"https://api.github.com/users/gititon/gists{/gist_id}","starred_url":"https://api.github.com/users/gititon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gititon/subscriptions","organizations_url":"https://api.github.com/users/gititon/orgs","repos_url":"https://api.github.com/users/gititon/repos","events_url":"https://api.github.com/users/gititon/events{/privacy}","received_events_url":"https://api.github.com/users/gititon/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":285009991,"node_id":"MDU6TGFiZWwyODUwMDk5OTE=","url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Jetpack","name":"Jetpack","color":"006b75","default":false},{"id":1141887522,"node_id":"MDU6TGFiZWwxMTQxODg3NTIy","url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Subscriptions","name":"Subscriptions","color":"006b75","default":false},{"id":967391996,"node_id":"MDU6TGFiZWw5NjczOTE5OTY=","url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Goal]%20Gutenberg","name":"[Goal] Gutenberg","color":"97f4d2","default":false},{"id":285010018,"node_id":"MDU6TGFiZWwyODUwMTAwMTg=","url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20Needs%20Review","name":"[Status] Needs Review","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/28887/commits","review_comments_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/28887/comments","review_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/28887/comments","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/6a9072b7460d52dc760c0a1063b76333dcd96de4","head":{"label":"Automattic:subscriptions-block-two","ref":"subscriptions-block-two","sha":"6a9072b7460d52dc760c0a1063b76333dcd96de4","user":{"login":"Automattic","id":887802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4NzgwMg==","avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":45936895,"node_id":"MDEwOlJlcG9zaXRvcnk0NTkzNjg5NQ==","name":"wp-calypso","full_name":"Automattic/wp-calypso","private":false,"owner":{"login":"Automattic","id":887802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4NzgwMg==","avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Automattic/wp-calypso","description":"The JavaScript and API powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2018-12-14T18:09:07Z","pushed_at":"2018-12-14T19:14:21Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":126143,"stargazers_count":10682,"watchers_count":10682,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1508,"mirror_url":null,"archived":false,"open_issues_count":1743,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":1508,"open_issues":1743,"watchers":10682,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"3e17a4f9ed9cbc8bbd446055ec96f29253626bf5","user":{"login":"Automattic","id":887802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4NzgwMg==","avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":45936895,"node_id":"MDEwOlJlcG9zaXRvcnk0NTkzNjg5NQ==","name":"wp-calypso","full_name":"Automattic/wp-calypso","private":false,"owner":{"login":"Automattic","id":887802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4NzgwMg==","avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Automattic/wp-calypso","description":"The JavaScript and API powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2018-12-14T18:09:07Z","pushed_at":"2018-12-14T19:14:21Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":126143,"stargazers_count":10682,"watchers_count":10682,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1508,"mirror_url":null,"archived":false,"open_issues_count":1743,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":1508,"open_issues":1743,"watchers":10682,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/28887"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/28887"},"issue":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/28887"},"comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/28887/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/28887/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/28887/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/wp-calypso/statuses/6a9072b7460d52dc760c0a1063b76333dcd96de4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"lezama"}}