{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/54928258","id":54928258,"diff_hunk":"@@ -6,44 +6,62 @@ import React from 'react';\n /**\n  * Internal dependencies\n  */\n+import Button from 'components/button';\n import Card from 'components/card';\n+import Gravatar from 'components/gravatar';\n import { isJetpackPlan } from 'lib/products-values';\n+import sample from 'lodash/sample';\n \n const CheckoutThankYouFooter = React.createClass( {\n \tpropTypes: {\n-\t\tisDataLoaded: React.PropTypes.bool.isRequired,\n-\t\treceipt: React.PropTypes.object.isRequired\n+\t\tpurchases: React.PropTypes.array\n \t},\n \n-\tgetText() {\n-\t\tif ( ! this.props.isDataLoaded ) {\n-\t\t\treturn this.translate( 'Loading…' );\n+\trenderContactButton() {\n+\t\tlet url = '/help/contact',\n+\t\t\ttarget = '';\n+\n+\t\tif ( this.props.purchases && this.props.purchases.some( isJetpackPlan ) ) {\n+\t\t\turl = 'https://jetpack.me/contact-support/';\n+\t\t\ttarget = '_blank';\n \t\t}\n \n-\t\tif ( this.props.receipt.data && this.props.receipt.data.purchases.some( isJetpackPlan ) ) {\n-\t\t\treturn this.translate(\n-\t\t\t\t'Check out our {{supportDocsLink}}support docs{{/supportDocsLink}} ' +\n-\t\t\t\t'or {{contactLink}}contact us{{/contactLink}}.',\n-\t\t\t\t{\n-\t\t\t\t\tcomponents: {\n-\t\t\t\t\t\tsupportDocsLink: <a href={ 'http://jetpack.me/support/' } target=\"_blank\" />,\n-\t\t\t\t\t\tcontactLink: <a href={ 'http://jetpack.me/contact-support/' } target=\"_blank\" />\n-\t\t\t\t\t}\n-\t\t\t\t}\n-\t\t\t);\n+\t\treturn (\n+\t\t\t<a className=\"button\" href={ url } target={ target }>","path":"client/my-sites/upgrades/checkout-thank-you/footer.jsx","position":41,"original_position":41,"commit_id":"8b1c633b82923e8571978fb550229e9279745802","original_commit_id":"8b1c633b82923e8571978fb550229e9279745802","user":{"login":"drewblaisdell","id":1130674,"avatar_url":"https://avatars.githubusercontent.com/u/1130674?v=3","gravatar_id":"","url":"https://api.github.com/users/drewblaisdell","html_url":"https://github.com/drewblaisdell","followers_url":"https://api.github.com/users/drewblaisdell/followers","following_url":"https://api.github.com/users/drewblaisdell/following{/other_user}","gists_url":"https://api.github.com/users/drewblaisdell/gists{/gist_id}","starred_url":"https://api.github.com/users/drewblaisdell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewblaisdell/subscriptions","organizations_url":"https://api.github.com/users/drewblaisdell/orgs","repos_url":"https://api.github.com/users/drewblaisdell/repos","events_url":"https://api.github.com/users/drewblaisdell/events{/privacy}","received_events_url":"https://api.github.com/users/drewblaisdell/received_events","type":"User","site_admin":false},"body":"What do you think about using `<Button />` for this? I assume you intended to use it, because it is imported at the top, but never used.","created_at":"2016-03-03T18:56:16Z","updated_at":"2016-03-03T18:56:16Z","html_url":"https://github.com/Automattic/wp-calypso/pull/3755#discussion_r54928258","pull_request_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/3755","_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/54928258"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/3755#discussion_r54928258"},"pull_request":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/3755"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/3755","id":61559765,"html_url":"https://github.com/Automattic/wp-calypso/pull/3755","diff_url":"https://github.com/Automattic/wp-calypso/pull/3755.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/3755.patch","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/3755","number":3755,"state":"open","locked":false,"title":"Checkout: Thank You: Update support section in footer with new copy","user":{"login":"stephanethomas","id":594356,"avatar_url":"https://avatars.githubusercontent.com/u/594356?v=3","gravatar_id":"","url":"https://api.github.com/users/stephanethomas","html_url":"https://github.com/stephanethomas","followers_url":"https://api.github.com/users/stephanethomas/followers","following_url":"https://api.github.com/users/stephanethomas/following{/other_user}","gists_url":"https://api.github.com/users/stephanethomas/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanethomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanethomas/subscriptions","organizations_url":"https://api.github.com/users/stephanethomas/orgs","repos_url":"https://api.github.com/users/stephanethomas/repos","events_url":"https://api.github.com/users/stephanethomas/events{/privacy}","received_events_url":"https://api.github.com/users/stephanethomas/received_events","type":"User","site_admin":false},"body":"This pull request addresses part of https://github.com/Automattic/wp-calypso/issues/2484 by updating the footer of the `Thank You` page with a new copy for the support section:\r\n \r\n![screenshot](https://cloud.githubusercontent.com/assets/594356/13495745/c760de2a-e14c-11e5-985f-15a4834d9728.png)\r\n  \r\n#### Testing instructions\r\n \r\n1. Run `git checkout update/thank-you-footer` and start your server\r\n2. Purchase any type of product\r\n3. Check that the footer of the `Thank You` page displays as expected for [large viewports](https://cloud.githubusercontent.com/assets/12596797/10023359/b4ba5952-611f-11e5-9d47-0969f56faea0.png)\r\n4. Check that the footer of the `Thank You` page displays as expected for [small viewports](https://cloud.githubusercontent.com/assets/12596797/9966352/6081dd0a-5e0a-11e5-917b-81f50e1dd087.png)\r\n5. Purchase a Jetpack plan\r\n6. Check that clicking on buttons now redirects you on the Jetpack site\r\n \r\n#### Additional notes\r\n \r\nI wasn't able to align vertically the gravatar, especially since there is a difference of placement for the buttons depending on the size of the viewport.\r\n \r\n#### Reviews\r\n \r\n- [ ] Code\r\n- [ ] Product","created_at":"2016-03-03T13:37:27Z","updated_at":"2016-03-03T18:56:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"169b199034d7d2d8b7f83a74a0c596a72418ecdd","assignee":{"login":"stephanethomas","id":594356,"avatar_url":"https://avatars.githubusercontent.com/u/594356?v=3","gravatar_id":"","url":"https://api.github.com/users/stephanethomas","html_url":"https://github.com/stephanethomas","followers_url":"https://api.github.com/users/stephanethomas/followers","following_url":"https://api.github.com/users/stephanethomas/following{/other_user}","gists_url":"https://api.github.com/users/stephanethomas/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanethomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanethomas/subscriptions","organizations_url":"https://api.github.com/users/stephanethomas/orgs","repos_url":"https://api.github.com/users/stephanethomas/repos","events_url":"https://api.github.com/users/stephanethomas/events{/privacy}","received_events_url":"https://api.github.com/users/stephanethomas/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/63","html_url":"https://github.com/Automattic/wp-calypso/milestones/Amber:%20Sprint","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/63/labels","id":1610097,"number":63,"title":"Amber: Sprint","description":null,"creator":{"login":"stephanethomas","id":594356,"avatar_url":"https://avatars.githubusercontent.com/u/594356?v=3","gravatar_id":"","url":"https://api.github.com/users/stephanethomas","html_url":"https://github.com/stephanethomas","followers_url":"https://api.github.com/users/stephanethomas/followers","following_url":"https://api.github.com/users/stephanethomas/following{/other_user}","gists_url":"https://api.github.com/users/stephanethomas/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanethomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanethomas/subscriptions","organizations_url":"https://api.github.com/users/stephanethomas/orgs","repos_url":"https://api.github.com/users/stephanethomas/repos","events_url":"https://api.github.com/users/stephanethomas/events{/privacy}","received_events_url":"https://api.github.com/users/stephanethomas/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":12,"state":"open","created_at":"2016-02-28T11:47:27Z","updated_at":"2016-03-03T18:43:30Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/3755/commits","review_comments_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/3755/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/3755/comments","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/8b1c633b82923e8571978fb550229e9279745802","head":{"label":"Automattic:update/thank-you-footer","ref":"update/thank-you-footer","sha":"8b1c633b82923e8571978fb550229e9279745802","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","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,"name":"wp-calypso","full_name":"Automattic/wp-calypso","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","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},"private":false,"html_url":"https://github.com/Automattic/wp-calypso","description":"The new 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":"2016-03-03T16:02:44Z","pushed_at":"2016-03-03T18:52:51Z","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":57586,"stargazers_count":6909,"watchers_count":6909,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":801,"mirror_url":null,"open_issues_count":1263,"forks":801,"open_issues":1263,"watchers":6909,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"25db9cf8d70458fb08af21f24846e5c8eec342da","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","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,"name":"wp-calypso","full_name":"Automattic/wp-calypso","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","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},"private":false,"html_url":"https://github.com/Automattic/wp-calypso","description":"The new 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":"2016-03-03T16:02:44Z","pushed_at":"2016-03-03T18:52:51Z","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":57586,"stargazers_count":6909,"watchers_count":6909,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":801,"mirror_url":null,"open_issues_count":1263,"forks":801,"open_issues":1263,"watchers":6909,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/3755"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/3755"},"issue":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/3755"},"comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/3755/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/3755/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/3755/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/wp-calypso/statuses/8b1c633b82923e8571978fb550229e9279745802"}}}}