{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/77661066","id":77661066,"diff_hunk":"@@ -0,0 +1,110 @@\n+/**\n+ * External dependencies\n+ */\n+import React from 'react';\n+import { connect } from 'react-redux';\n+\n+/**\n+ * Internal dependencies\n+ */\n+import LoggedOutForm from 'components/logged-out-form';\n+\n+import formState from 'lib/form-state';\n+import FormFieldset from 'components/forms/form-fieldset';\n+import FormButton from 'components/forms/form-button';\n+import FormTextInput from 'components/forms/form-text-input';\n+\n+import { getSiteTitle } from 'state/signup/steps/site-title/selectors';\n+import { setSiteTitle } from 'state/signup/steps/site-title/actions';\n+\n+const SignupSiteTitle = React.createClass( {\n+\tdisplayName: 'Signup Site Title',\n+\n+\tcontextTypes: {\n+\t\tstore: React.PropTypes.object,\n+\t},\n+\n+\tpropTypes: {\n+\t\tonSubmit: React.PropTypes.func.isRequired,\n+\t},\n+\n+\tgetInitialState() {\n+\t\treturn {\n+\t\t\tform: {\n+\t\t\t\tsiteTitle: {\n+\t\t\t\t\tvalue: this.props.siteTitle\n+\t\t\t\t}\n+\t\t\t}\n+\t\t};\n+\t},\n+\n+\tcomponentWillMount() {\n+\t\tthis.formStateController = new formState.Controller( {\n+\t\t\tfieldNames: [ 'siteTitle' ],\n+\t\t\tvalidatorFunction: () => {},\n+\t\t\tonNewState: this.setFormState,\n+\t\t\tonError: this.handleFormControllerError,\n+\t\t\thideFieldErrorsOnChange: true,\n+\t\t\tinitialState: this.state.form","path":"client/components/signup-site-title/index.js","position":48,"original_position":48,"commit_id":"a5cb4145c9df1d9ba28e9474091414f3e5eedfbc","original_commit_id":"a5cb4145c9df1d9ba28e9474091414f3e5eedfbc","user":{"login":"mcsf","id":150562,"avatar_url":"https://avatars.githubusercontent.com/u/150562?v=3","gravatar_id":"","url":"https://api.github.com/users/mcsf","html_url":"https://github.com/mcsf","followers_url":"https://api.github.com/users/mcsf/followers","following_url":"https://api.github.com/users/mcsf/following{/other_user}","gists_url":"https://api.github.com/users/mcsf/gists{/gist_id}","starred_url":"https://api.github.com/users/mcsf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcsf/subscriptions","organizations_url":"https://api.github.com/users/mcsf/orgs","repos_url":"https://api.github.com/users/mcsf/repos","events_url":"https://api.github.com/users/mcsf/events{/privacy}","received_events_url":"https://api.github.com/users/mcsf/received_events","type":"User","site_admin":false},"body":"There's some indirection here, in that `initialState` comes from `this.state.form`, which itself is derived from `this.props.siteTitle`. Could we ditch the `getInitialState` method, just refer to `this.props.siteTitle` in the controller's `initialState` option, and let the controller be the only piece setting component state (using `this.setFormState`)? (If not, that's fine)","created_at":"2016-09-06T15:42:02Z","updated_at":"2016-09-06T15:42:02Z","html_url":"https://github.com/Automattic/wp-calypso/pull/7386#discussion_r77661066","pull_request_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7386","_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/77661066"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/7386#discussion_r77661066"},"pull_request":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7386"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7386","id":80807960,"html_url":"https://github.com/Automattic/wp-calypso/pull/7386","diff_url":"https://github.com/Automattic/wp-calypso/pull/7386.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/7386.patch","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/7386","number":7386,"state":"open","locked":false,"title":"Signup: Add Site Title step","user":{"login":"bisko","id":184938,"avatar_url":"https://avatars.githubusercontent.com/u/184938?v=3","gravatar_id":"","url":"https://api.github.com/users/bisko","html_url":"https://github.com/bisko","followers_url":"https://api.github.com/users/bisko/followers","following_url":"https://api.github.com/users/bisko/following{/other_user}","gists_url":"https://api.github.com/users/bisko/gists{/gist_id}","starred_url":"https://api.github.com/users/bisko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bisko/subscriptions","organizations_url":"https://api.github.com/users/bisko/orgs","repos_url":"https://api.github.com/users/bisko/repos","events_url":"https://api.github.com/users/bisko/events{/privacy}","received_events_url":"https://api.github.com/users/bisko/received_events","type":"User","site_admin":false},"body":"This PR adds a Site Title step to the signup flows. It will allow the user to set their site title early in signup and it will give us the option to automatically fire domain suggestions based on what the user entered as a site title.\r\n\r\n## Design mockup:\r\n\r\n![artboard](https://cloud.githubusercontent.com/assets/184938/17690286/3a086562-6396-11e6-8b9f-9e2e23da5df0.png)\r\n\r\n## Testing instructions:\r\n\r\nPrerequisites: Apply D2525-code \r\n\r\n1. Checkout branch or use the `calypso.live` branch.\r\n2. Go to `/start/sitetitle`.\r\n3. Choose something in the Survey and you will land on the Site Title step.\r\n4. Make sure the step works without breaking anything. \r\n5. Complete signup\r\n6. Check if the site title on the newly created site is the one that you typed during signup.\r\n\r\nTest live: https://calypso.live/start/sitetitle/?branch=add/site-title-step-in-signup\r\n\r\ncc @michaeldcain @coreh @meremagee ","created_at":"2016-08-10T14:49:41Z","updated_at":"2016-09-06T15:42:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a7929ed92d632a3503de8da7823867f0b99209c","assignee":{"login":"bisko","id":184938,"avatar_url":"https://avatars.githubusercontent.com/u/184938?v=3","gravatar_id":"","url":"https://api.github.com/users/bisko","html_url":"https://github.com/bisko","followers_url":"https://api.github.com/users/bisko/followers","following_url":"https://api.github.com/users/bisko/following{/other_user}","gists_url":"https://api.github.com/users/bisko/gists{/gist_id}","starred_url":"https://api.github.com/users/bisko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bisko/subscriptions","organizations_url":"https://api.github.com/users/bisko/orgs","repos_url":"https://api.github.com/users/bisko/repos","events_url":"https://api.github.com/users/bisko/events{/privacy}","received_events_url":"https://api.github.com/users/bisko/received_events","type":"User","site_admin":false},"assignees":[{"login":"bisko","id":184938,"avatar_url":"https://avatars.githubusercontent.com/u/184938?v=3","gravatar_id":"","url":"https://api.github.com/users/bisko","html_url":"https://github.com/bisko","followers_url":"https://api.github.com/users/bisko/followers","following_url":"https://api.github.com/users/bisko/following{/other_user}","gists_url":"https://api.github.com/users/bisko/gists{/gist_id}","starred_url":"https://api.github.com/users/bisko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bisko/subscriptions","organizations_url":"https://api.github.com/users/bisko/orgs","repos_url":"https://api.github.com/users/bisko/repos","events_url":"https://api.github.com/users/bisko/events{/privacy}","received_events_url":"https://api.github.com/users/bisko/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7386/commits","review_comments_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7386/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/7386/comments","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/a5cb4145c9df1d9ba28e9474091414f3e5eedfbc","head":{"label":"Automattic:add/site-title-step-in-signup","ref":"add/site-title-step-in-signup","sha":"a5cb4145c9df1d9ba28e9474091414f3e5eedfbc","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-09-06T09:26:48Z","pushed_at":"2016-09-06T15:19:47Z","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":108750,"stargazers_count":7791,"watchers_count":7791,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":972,"mirror_url":null,"open_issues_count":1439,"forks":972,"open_issues":1439,"watchers":7791,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"908d4555a15796633559ebdeb56361a9b658ca2a","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-09-06T09:26:48Z","pushed_at":"2016-09-06T15:19:47Z","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":108750,"stargazers_count":7791,"watchers_count":7791,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":972,"mirror_url":null,"open_issues_count":1439,"forks":972,"open_issues":1439,"watchers":7791,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7386"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/7386"},"issue":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/7386"},"comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/7386/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7386/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/7386/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/wp-calypso/statuses/a5cb4145c9df1d9ba28e9474091414f3e5eedfbc"}}}}
{"actor":{"display_login":"mcsf"}}