{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/75208894","id":75208894,"diff_hunk":"@@ -0,0 +1,67 @@\n+/**\n+ * External dependencies\n+ */\n+import React, { PropTypes, Component } from 'react';\n+import { localize } from 'i18n-calypso';\n+\n+/**\n+ * Internal dependencies\n+ */\n+import Bluehost from './bluehost';\n+import SiteGround from './siteground';\n+import SectionHeader from 'components/section-header';\n+\n+class HostCredentialsPage extends Component {\n+\tconstructor() {\n+\t\tsuper();\n+\t\tthis.state = { fieldValues: {} };","path":"client/my-sites/guided-transfer/host-credentials-page/index.jsx","position":17,"original_position":17,"commit_id":"77ea136fac0a30dc9319efd51a61e1e437e3e119","original_commit_id":"77ea136fac0a30dc9319efd51a61e1e437e3e119","user":{"login":"omarjackman","id":1854440,"avatar_url":"https://avatars.githubusercontent.com/u/1854440?v=3","gravatar_id":"","url":"https://api.github.com/users/omarjackman","html_url":"https://github.com/omarjackman","followers_url":"https://api.github.com/users/omarjackman/followers","following_url":"https://api.github.com/users/omarjackman/following{/other_user}","gists_url":"https://api.github.com/users/omarjackman/gists{/gist_id}","starred_url":"https://api.github.com/users/omarjackman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omarjackman/subscriptions","organizations_url":"https://api.github.com/users/omarjackman/orgs","repos_url":"https://api.github.com/users/omarjackman/repos","events_url":"https://api.github.com/users/omarjackman/events{/privacy}","received_events_url":"https://api.github.com/users/omarjackman/received_events","type":"User","site_admin":false},"body":"I'm not 100% sure about using the store vs state here but I think its worth some discussion","created_at":"2016-08-17T21:16:26Z","updated_at":"2016-08-17T21:16:26Z","html_url":"https://github.com/Automattic/wp-calypso/pull/7430#discussion_r75208894","pull_request_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7430","_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/75208894"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/7430#discussion_r75208894"},"pull_request":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7430"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7430","id":81073583,"html_url":"https://github.com/Automattic/wp-calypso/pull/7430","diff_url":"https://github.com/Automattic/wp-calypso/pull/7430.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/7430.patch","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/7430","number":7430,"state":"open","locked":false,"title":"Guided Transfer: Add SiteGround host details","user":{"login":"jordwest","id":416133,"avatar_url":"https://avatars.githubusercontent.com/u/416133?v=3","gravatar_id":"","url":"https://api.github.com/users/jordwest","html_url":"https://github.com/jordwest","followers_url":"https://api.github.com/users/jordwest/followers","following_url":"https://api.github.com/users/jordwest/following{/other_user}","gists_url":"https://api.github.com/users/jordwest/gists{/gist_id}","starred_url":"https://api.github.com/users/jordwest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordwest/subscriptions","organizations_url":"https://api.github.com/users/jordwest/orgs","repos_url":"https://api.github.com/users/jordwest/repos","events_url":"https://api.github.com/users/jordwest/events{/privacy}","received_events_url":"https://api.github.com/users/jordwest/received_events","type":"User","site_admin":false},"body":"This refactors the Guided Transfer `account-info.jsx` to support different host details forms for different hosts and updates the form for SiteGround.\r\n\r\n### Before\r\n\r\n| SiteGround | Bluehost |\r\n|------------|----------|\r\n| <img width=\"734\" alt=\"screen shot 2016-08-17 at 7 34 40 pm\" src=\"https://cloud.githubusercontent.com/assets/416133/17731692/c429df2a-64b1-11e6-9da9-0b2ca869a4b4.png\"> | <img width=\"736\" alt=\"screen shot 2016-08-17 at 7 34 36 pm\" src=\"https://cloud.githubusercontent.com/assets/416133/17731685/b8e33f8a-64b1-11e6-9eb2-39d805a0a4ac.png\"> | \r\n\r\n### After\r\n\r\n| SiteGround | Bluehost |\r\n|------------|----------|\r\n| <img width=\"685\" alt=\"screen shot 2016-08-17 at 7 32 39 pm\" src=\"https://cloud.githubusercontent.com/assets/416133/17731635/61cf5990-64b1-11e6-90be-beab2dda176e.png\"> | <img width=\"677\" alt=\"screen shot 2016-08-17 at 7 31 08 pm\" src=\"https://cloud.githubusercontent.com/assets/416133/17731581/39a8b862-64b1-11e6-8c31-fb8b63761827.png\"> |\r\n\r\nBluehost requires a username and password, while SiteGround requires a username and email address.\r\n\r\nThere is some duplication in the `Bluehost` and `SiteGround` components, but by moving the common fields to `fields.jsx` I think this finds a good balance between reusability and flexibility to alter the forms for different host requirements.\r\n\r\n~~To come in a future PR will be the destination site URL.~~ Destination URL field added in 77ea136\r\n\r\nTest live: https://calypso.live/?branch=add/guided-transfer/siteground-credentials","created_at":"2016-08-12T06:36:09Z","updated_at":"2016-08-17T21:16:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"217b13c72a847876ca3be2fd8dd53f5b74261dd5","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/101","html_url":"https://github.com/Automattic/wp-calypso/milestones/Guided%20Transfer:%20Initial%20Release","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/101/labels","id":1818957,"number":101,"title":"Guided Transfer: Initial Release","description":null,"creator":{"login":"jordwest","id":416133,"avatar_url":"https://avatars.githubusercontent.com/u/416133?v=3","gravatar_id":"","url":"https://api.github.com/users/jordwest","html_url":"https://github.com/jordwest","followers_url":"https://api.github.com/users/jordwest/followers","following_url":"https://api.github.com/users/jordwest/following{/other_user}","gists_url":"https://api.github.com/users/jordwest/gists{/gist_id}","starred_url":"https://api.github.com/users/jordwest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordwest/subscriptions","organizations_url":"https://api.github.com/users/jordwest/orgs","repos_url":"https://api.github.com/users/jordwest/repos","events_url":"https://api.github.com/users/jordwest/events{/privacy}","received_events_url":"https://api.github.com/users/jordwest/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":13,"state":"open","created_at":"2016-06-10T00:39:41Z","updated_at":"2016-08-17T08:44:39Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7430/commits","review_comments_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7430/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/7430/comments","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/77ea136fac0a30dc9319efd51a61e1e437e3e119","head":{"label":"Automattic:add/guided-transfer/siteground-credentials","ref":"add/guided-transfer/siteground-credentials","sha":"77ea136fac0a30dc9319efd51a61e1e437e3e119","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-08-17T14:40:31Z","pushed_at":"2016-08-17T21:16:13Z","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":85064,"stargazers_count":7715,"watchers_count":7715,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":976,"mirror_url":null,"open_issues_count":1439,"forks":976,"open_issues":1439,"watchers":7715,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"74ff63cfc0e3dba5f8cf357f99deed5ea3c7ba8d","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-08-17T14:40:31Z","pushed_at":"2016-08-17T21:16:13Z","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":85064,"stargazers_count":7715,"watchers_count":7715,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":976,"mirror_url":null,"open_issues_count":1439,"forks":976,"open_issues":1439,"watchers":7715,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7430"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/7430"},"issue":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/7430"},"comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/7430/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7430/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/7430/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/wp-calypso/statuses/77ea136fac0a30dc9319efd51a61e1e437e3e119"}}}}
{"actor":{"display_login":"omarjackman"}}