{"action":"created","comment":{"url":"https://api.github.com/repos/artsy/force/pulls/comments/117139647","pull_request_review_id":38819890,"id":117139647,"diff_hunk":"@@ -35,16 +40,45 @@ function validate (values) {\n   return errors\n }\n \n+function getSuggestionValue (suggestion) {\n+  return suggestion.description\n+}\n+\n+function renderSuggestion (suggestion) {\n+  return (\n+    <div className='autosuggest-suggestion'>\n+      <div>{suggestion.description}</div>\n+    </div>\n+  )\n+}\n+\n let DescribeWork = props => {","path":"desktop/apps/consignments2/components/describe_work/index.js","position":34,"original_position":34,"commit_id":"42ae448e5395c995b5e0dd8e289ffbbd3a08d747","original_commit_id":"42ae448e5395c995b5e0dd8e289ffbbd3a08d747","user":{"login":"damassi","id":236943,"avatar_url":"https://avatars2.githubusercontent.com/u/236943?v=3","gravatar_id":"","url":"https://api.github.com/users/damassi","html_url":"https://github.com/damassi","followers_url":"https://api.github.com/users/damassi/followers","following_url":"https://api.github.com/users/damassi/following{/other_user}","gists_url":"https://api.github.com/users/damassi/gists{/gist_id}","starred_url":"https://api.github.com/users/damassi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damassi/subscriptions","organizations_url":"https://api.github.com/users/damassi/orgs","repos_url":"https://api.github.com/users/damassi/repos","events_url":"https://api.github.com/users/damassi/events{/privacy}","received_events_url":"https://api.github.com/users/damassi/received_events","type":"User","site_admin":false},"body":"`const` or maybe `function DescribeWork` for consistency? ","created_at":"2017-05-18T00:25:10Z","updated_at":"2017-05-18T00:25:10Z","html_url":"https://github.com/artsy/force/pull/1441#discussion_r117139647","pull_request_url":"https://api.github.com/repos/artsy/force/pulls/1441","_links":{"self":{"href":"https://api.github.com/repos/artsy/force/pulls/comments/117139647"},"html":{"href":"https://github.com/artsy/force/pull/1441#discussion_r117139647"},"pull_request":{"href":"https://api.github.com/repos/artsy/force/pulls/1441"}}},"pull_request":{"url":"https://api.github.com/repos/artsy/force/pulls/1441","id":121177219,"html_url":"https://github.com/artsy/force/pull/1441","diff_url":"https://github.com/artsy/force/pull/1441.diff","patch_url":"https://github.com/artsy/force/pull/1441.patch","issue_url":"https://api.github.com/repos/artsy/force/issues/1441","number":1441,"state":"open","locked":false,"title":"@damassi => Location autocomplete and initial connection to convection","user":{"login":"sweir27","id":2081340,"avatar_url":"https://avatars0.githubusercontent.com/u/2081340?v=3","gravatar_id":"","url":"https://api.github.com/users/sweir27","html_url":"https://github.com/sweir27","followers_url":"https://api.github.com/users/sweir27/followers","following_url":"https://api.github.com/users/sweir27/following{/other_user}","gists_url":"https://api.github.com/users/sweir27/gists{/gist_id}","starred_url":"https://api.github.com/users/sweir27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweir27/subscriptions","organizations_url":"https://api.github.com/users/sweir27/orgs","repos_url":"https://api.github.com/users/sweir27/repos","events_url":"https://api.github.com/users/sweir27/events{/privacy}","received_events_url":"https://api.github.com/users/sweir27/received_events","type":"User","site_admin":false},"body":"This PR adds two things:\r\n- Location autocomplete based on Google's places API (we use this around Force already, and it's what powers the location-based autocomplete in the current system)\r\n  - I configured it to only return results at the `city` level, and from a subsequent `getDetails()` call we are able to get fine-grained data on the city, state, and country.\r\n- Hookup to convection (woo!)\r\n  - After clicking \"Next\" on the \"Describe your work\" section, we save a submission in Convection. On the next page (currently blank except for a submit button... but this is where you'll upload photos), we send a request with `state: 'submitted'`. This tells convection that you are ready to submit the consignment, and we send you/artsy specialists an email. It all works locally with emails going to mailtrap. :D \r\n\r\nNote that it's still in the early stages, so things like error handling is not super fleshed out. In the next PR I intend to clean up some of the loose edges and add an error state so you know if your submission was not accepted for some reason. \r\n\r\nFlow:\r\n![flow-with-loc](https://cloud.githubusercontent.com/assets/2081340/26181258/ce49c4d6-3b3c-11e7-8a5a-435e289aafaf.gif)\r\n\r\nProof of email:\r\n![image](https://cloud.githubusercontent.com/assets/2081340/26181265/da8ef540-3b3c-11e7-9c39-c25a69a227f6.png)\r\n","created_at":"2017-05-18T00:08:35Z","updated_at":"2017-05-18T00:25:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0d38ac934460796c568e4aba434b37fb5120c536","assignee":{"login":"damassi","id":236943,"avatar_url":"https://avatars2.githubusercontent.com/u/236943?v=3","gravatar_id":"","url":"https://api.github.com/users/damassi","html_url":"https://github.com/damassi","followers_url":"https://api.github.com/users/damassi/followers","following_url":"https://api.github.com/users/damassi/following{/other_user}","gists_url":"https://api.github.com/users/damassi/gists{/gist_id}","starred_url":"https://api.github.com/users/damassi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damassi/subscriptions","organizations_url":"https://api.github.com/users/damassi/orgs","repos_url":"https://api.github.com/users/damassi/repos","events_url":"https://api.github.com/users/damassi/events{/privacy}","received_events_url":"https://api.github.com/users/damassi/received_events","type":"User","site_admin":false},"assignees":[{"login":"damassi","id":236943,"avatar_url":"https://avatars2.githubusercontent.com/u/236943?v=3","gravatar_id":"","url":"https://api.github.com/users/damassi","html_url":"https://github.com/damassi","followers_url":"https://api.github.com/users/damassi/followers","following_url":"https://api.github.com/users/damassi/following{/other_user}","gists_url":"https://api.github.com/users/damassi/gists{/gist_id}","starred_url":"https://api.github.com/users/damassi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damassi/subscriptions","organizations_url":"https://api.github.com/users/damassi/orgs","repos_url":"https://api.github.com/users/damassi/repos","events_url":"https://api.github.com/users/damassi/events{/privacy}","received_events_url":"https://api.github.com/users/damassi/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/artsy/force/pulls/1441/commits","review_comments_url":"https://api.github.com/repos/artsy/force/pulls/1441/comments","review_comment_url":"https://api.github.com/repos/artsy/force/pulls/comments{/number}","comments_url":"https://api.github.com/repos/artsy/force/issues/1441/comments","statuses_url":"https://api.github.com/repos/artsy/force/statuses/42ae448e5395c995b5e0dd8e289ffbbd3a08d747","head":{"label":"sweir27:location-autocomplete","ref":"location-autocomplete","sha":"42ae448e5395c995b5e0dd8e289ffbbd3a08d747","user":{"login":"sweir27","id":2081340,"avatar_url":"https://avatars0.githubusercontent.com/u/2081340?v=3","gravatar_id":"","url":"https://api.github.com/users/sweir27","html_url":"https://github.com/sweir27","followers_url":"https://api.github.com/users/sweir27/followers","following_url":"https://api.github.com/users/sweir27/following{/other_user}","gists_url":"https://api.github.com/users/sweir27/gists{/gist_id}","starred_url":"https://api.github.com/users/sweir27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweir27/subscriptions","organizations_url":"https://api.github.com/users/sweir27/orgs","repos_url":"https://api.github.com/users/sweir27/repos","events_url":"https://api.github.com/users/sweir27/events{/privacy}","received_events_url":"https://api.github.com/users/sweir27/received_events","type":"User","site_admin":false},"repo":{"id":66878220,"name":"force","full_name":"sweir27/force","owner":{"login":"sweir27","id":2081340,"avatar_url":"https://avatars0.githubusercontent.com/u/2081340?v=3","gravatar_id":"","url":"https://api.github.com/users/sweir27","html_url":"https://github.com/sweir27","followers_url":"https://api.github.com/users/sweir27/followers","following_url":"https://api.github.com/users/sweir27/following{/other_user}","gists_url":"https://api.github.com/users/sweir27/gists{/gist_id}","starred_url":"https://api.github.com/users/sweir27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweir27/subscriptions","organizations_url":"https://api.github.com/users/sweir27/orgs","repos_url":"https://api.github.com/users/sweir27/repos","events_url":"https://api.github.com/users/sweir27/events{/privacy}","received_events_url":"https://api.github.com/users/sweir27/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sweir27/force","description":"The Artsy.net website:","fork":true,"url":"https://api.github.com/repos/sweir27/force","forks_url":"https://api.github.com/repos/sweir27/force/forks","keys_url":"https://api.github.com/repos/sweir27/force/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sweir27/force/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sweir27/force/teams","hooks_url":"https://api.github.com/repos/sweir27/force/hooks","issue_events_url":"https://api.github.com/repos/sweir27/force/issues/events{/number}","events_url":"https://api.github.com/repos/sweir27/force/events","assignees_url":"https://api.github.com/repos/sweir27/force/assignees{/user}","branches_url":"https://api.github.com/repos/sweir27/force/branches{/branch}","tags_url":"https://api.github.com/repos/sweir27/force/tags","blobs_url":"https://api.github.com/repos/sweir27/force/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sweir27/force/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sweir27/force/git/refs{/sha}","trees_url":"https://api.github.com/repos/sweir27/force/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sweir27/force/statuses/{sha}","languages_url":"https://api.github.com/repos/sweir27/force/languages","stargazers_url":"https://api.github.com/repos/sweir27/force/stargazers","contributors_url":"https://api.github.com/repos/sweir27/force/contributors","subscribers_url":"https://api.github.com/repos/sweir27/force/subscribers","subscription_url":"https://api.github.com/repos/sweir27/force/subscription","commits_url":"https://api.github.com/repos/sweir27/force/commits{/sha}","git_commits_url":"https://api.github.com/repos/sweir27/force/git/commits{/sha}","comments_url":"https://api.github.com/repos/sweir27/force/comments{/number}","issue_comment_url":"https://api.github.com/repos/sweir27/force/issues/comments{/number}","contents_url":"https://api.github.com/repos/sweir27/force/contents/{+path}","compare_url":"https://api.github.com/repos/sweir27/force/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sweir27/force/merges","archive_url":"https://api.github.com/repos/sweir27/force/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sweir27/force/downloads","issues_url":"https://api.github.com/repos/sweir27/force/issues{/number}","pulls_url":"https://api.github.com/repos/sweir27/force/pulls{/number}","milestones_url":"https://api.github.com/repos/sweir27/force/milestones{/number}","notifications_url":"https://api.github.com/repos/sweir27/force/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sweir27/force/labels{/name}","releases_url":"https://api.github.com/repos/sweir27/force/releases{/id}","deployments_url":"https://api.github.com/repos/sweir27/force/deployments","created_at":"2016-08-29T20:30:24Z","updated_at":"2016-08-29T20:30:28Z","pushed_at":"2017-05-18T00:19:56Z","git_url":"git://github.com/sweir27/force.git","ssh_url":"git@github.com:sweir27/force.git","clone_url":"https://github.com/sweir27/force.git","svn_url":"https://github.com/sweir27/force","homepage":"https://www.artsy.net","size":121302,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"artsy:master","ref":"master","sha":"be9f4a13a75ab0f6f2680c510b74c2eefe934e26","user":{"login":"artsy","id":546231,"avatar_url":"https://avatars0.githubusercontent.com/u/546231?v=3","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"repo":{"id":22887404,"name":"force","full_name":"artsy/force","owner":{"login":"artsy","id":546231,"avatar_url":"https://avatars0.githubusercontent.com/u/546231?v=3","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/artsy/force","description":"The Artsy.net website:","fork":false,"url":"https://api.github.com/repos/artsy/force","forks_url":"https://api.github.com/repos/artsy/force/forks","keys_url":"https://api.github.com/repos/artsy/force/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artsy/force/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artsy/force/teams","hooks_url":"https://api.github.com/repos/artsy/force/hooks","issue_events_url":"https://api.github.com/repos/artsy/force/issues/events{/number}","events_url":"https://api.github.com/repos/artsy/force/events","assignees_url":"https://api.github.com/repos/artsy/force/assignees{/user}","branches_url":"https://api.github.com/repos/artsy/force/branches{/branch}","tags_url":"https://api.github.com/repos/artsy/force/tags","blobs_url":"https://api.github.com/repos/artsy/force/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artsy/force/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artsy/force/git/refs{/sha}","trees_url":"https://api.github.com/repos/artsy/force/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artsy/force/statuses/{sha}","languages_url":"https://api.github.com/repos/artsy/force/languages","stargazers_url":"https://api.github.com/repos/artsy/force/stargazers","contributors_url":"https://api.github.com/repos/artsy/force/contributors","subscribers_url":"https://api.github.com/repos/artsy/force/subscribers","subscription_url":"https://api.github.com/repos/artsy/force/subscription","commits_url":"https://api.github.com/repos/artsy/force/commits{/sha}","git_commits_url":"https://api.github.com/repos/artsy/force/git/commits{/sha}","comments_url":"https://api.github.com/repos/artsy/force/comments{/number}","issue_comment_url":"https://api.github.com/repos/artsy/force/issues/comments{/number}","contents_url":"https://api.github.com/repos/artsy/force/contents/{+path}","compare_url":"https://api.github.com/repos/artsy/force/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artsy/force/merges","archive_url":"https://api.github.com/repos/artsy/force/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artsy/force/downloads","issues_url":"https://api.github.com/repos/artsy/force/issues{/number}","pulls_url":"https://api.github.com/repos/artsy/force/pulls{/number}","milestones_url":"https://api.github.com/repos/artsy/force/milestones{/number}","notifications_url":"https://api.github.com/repos/artsy/force/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artsy/force/labels{/name}","releases_url":"https://api.github.com/repos/artsy/force/releases{/id}","deployments_url":"https://api.github.com/repos/artsy/force/deployments","created_at":"2014-08-12T18:14:34Z","updated_at":"2017-05-17T18:40:56Z","pushed_at":"2017-05-18T00:19:57Z","git_url":"git://github.com/artsy/force.git","ssh_url":"git@github.com:artsy/force.git","clone_url":"https://github.com/artsy/force.git","svn_url":"https://github.com/artsy/force","homepage":"https://www.artsy.net","size":121580,"stargazers_count":177,"watchers_count":177,"language":"CoffeeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":65,"mirror_url":null,"open_issues_count":96,"forks":65,"open_issues":96,"watchers":177,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/artsy/force/pulls/1441"},"html":{"href":"https://github.com/artsy/force/pull/1441"},"issue":{"href":"https://api.github.com/repos/artsy/force/issues/1441"},"comments":{"href":"https://api.github.com/repos/artsy/force/issues/1441/comments"},"review_comments":{"href":"https://api.github.com/repos/artsy/force/pulls/1441/comments"},"review_comment":{"href":"https://api.github.com/repos/artsy/force/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/artsy/force/pulls/1441/commits"},"statuses":{"href":"https://api.github.com/repos/artsy/force/statuses/42ae448e5395c995b5e0dd8e289ffbbd3a08d747"}}}}
{"actor":{"display_login":"damassi"}}