{"action":"created","comment":{"url":"https://api.github.com/repos/codeforamerica/streetmix/pulls/comments/79520895","id":79520895,"diff_hunk":"@@ -0,0 +1,59 @@\n+import React from 'react'\n+import { formatDate } from '../util/date_format'\n+import { msg } from '../app/messages'\n+import { getSignInData, isSignedIn } from '../users/authentication'\n+import { getRemixOnFirstEdit } from './remix'\n+import { showGallery } from '../gallery/view'\n+import StreetWidth from './StreetWidth'\n+import Avatar from '../app/Avatar'\n+\n+export default class StreetMetaData extends React.Component {\n+  constructor (props) {\n+    super(props)\n+    this.state = {\n+      street: this.props.street\n+    }\n+    this.onAuthorClick = this.onAuthorClick.bind(this)\n+  }\n+\n+  componentWillReceiveProps (nextProps) {\n+    this.setState({\n+      street: nextProps.street\n+    })\n+  }\n+\n+  onAuthorClick (e) {\n+    if (e) {\n+      e.preventDefault()\n+    }\n+    showGallery(this.state.street.creatorId, false)\n+  }\n+\n+  render () {\n+    let author = null\n+    const creatorId = this.state.street.creatorId\n+    if (creatorId && (!isSignedIn() || (creatorId !== getSignInData().userId))) {\n+      author = <span>\n+        by <Avatar userId={creatorId} />\n+        <a className='user-gallery' href={'/' + creatorId} onClick={this.onAuthorClick}>{creatorId}</a>\n+      </span>\n+    } else if (!creatorId && (isSignedIn() || getRemixOnFirstEdit())) {\n+      author = <span> by {msg('USER_ANONYMOUS')} </span>","path":"assets/scripts/streets/StreetMetaData.jsx","position":41,"original_position":41,"commit_id":"5a5ffaa2e83eb1db7493646dcbd3ac737100f313","original_commit_id":"5a5ffaa2e83eb1db7493646dcbd3ac737100f313","user":{"login":"louh","id":2553268,"avatar_url":"https://avatars.githubusercontent.com/u/2553268?v=3","gravatar_id":"","url":"https://api.github.com/users/louh","html_url":"https://github.com/louh","followers_url":"https://api.github.com/users/louh/followers","following_url":"https://api.github.com/users/louh/following{/other_user}","gists_url":"https://api.github.com/users/louh/gists{/gist_id}","starred_url":"https://api.github.com/users/louh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/louh/subscriptions","organizations_url":"https://api.github.com/users/louh/orgs","repos_url":"https://api.github.com/users/louh/repos","events_url":"https://api.github.com/users/louh/events{/privacy}","received_events_url":"https://api.github.com/users/louh/received_events","type":"User","site_admin":false},"body":"Are the spaces padding the insides of `<span>` doing anything?","created_at":"2016-09-20T01:07:38Z","updated_at":"2016-09-20T01:25:41Z","html_url":"https://github.com/codeforamerica/streetmix/pull/592#discussion_r79520895","pull_request_url":"https://api.github.com/repos/codeforamerica/streetmix/pulls/592","_links":{"self":{"href":"https://api.github.com/repos/codeforamerica/streetmix/pulls/comments/79520895"},"html":{"href":"https://github.com/codeforamerica/streetmix/pull/592#discussion_r79520895"},"pull_request":{"href":"https://api.github.com/repos/codeforamerica/streetmix/pulls/592"}}},"pull_request":{"url":"https://api.github.com/repos/codeforamerica/streetmix/pulls/592","id":85833847,"html_url":"https://github.com/codeforamerica/streetmix/pull/592","diff_url":"https://github.com/codeforamerica/streetmix/pull/592.diff","patch_url":"https://github.com/codeforamerica/streetmix/pull/592.patch","issue_url":"https://api.github.com/repos/codeforamerica/streetmix/issues/592","number":592,"state":"open","locked":false,"title":"React: StreetNameCanvas, StreetName, StreetMetaData, StreetWidth, Avatar","user":{"login":"ryross","id":152982,"avatar_url":"https://avatars.githubusercontent.com/u/152982?v=3","gravatar_id":"","url":"https://api.github.com/users/ryross","html_url":"https://github.com/ryross","followers_url":"https://api.github.com/users/ryross/followers","following_url":"https://api.github.com/users/ryross/following{/other_user}","gists_url":"https://api.github.com/users/ryross/gists{/gist_id}","starred_url":"https://api.github.com/users/ryross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryross/subscriptions","organizations_url":"https://api.github.com/users/ryross/orgs","repos_url":"https://api.github.com/users/ryross/repos","events_url":"https://api.github.com/users/ryross/events{/privacy}","received_events_url":"https://api.github.com/users/ryross/received_events","type":"User","site_admin":false},"body":"I refactored the whole ```#street-name-canvas``` part of the site to React. And I also made an Avatar component that loads needed user profiles on demand. \r\n\r\nCriticisms welcome!","created_at":"2016-09-19T17:17:51Z","updated_at":"2016-09-20T01:25:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de4a69ba2a09b43cbf875266f9de3754b11bc60a","assignee":{"login":"louh","id":2553268,"avatar_url":"https://avatars.githubusercontent.com/u/2553268?v=3","gravatar_id":"","url":"https://api.github.com/users/louh","html_url":"https://github.com/louh","followers_url":"https://api.github.com/users/louh/followers","following_url":"https://api.github.com/users/louh/following{/other_user}","gists_url":"https://api.github.com/users/louh/gists{/gist_id}","starred_url":"https://api.github.com/users/louh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/louh/subscriptions","organizations_url":"https://api.github.com/users/louh/orgs","repos_url":"https://api.github.com/users/louh/repos","events_url":"https://api.github.com/users/louh/events{/privacy}","received_events_url":"https://api.github.com/users/louh/received_events","type":"User","site_admin":false},"assignees":[{"login":"louh","id":2553268,"avatar_url":"https://avatars.githubusercontent.com/u/2553268?v=3","gravatar_id":"","url":"https://api.github.com/users/louh","html_url":"https://github.com/louh","followers_url":"https://api.github.com/users/louh/followers","following_url":"https://api.github.com/users/louh/following{/other_user}","gists_url":"https://api.github.com/users/louh/gists{/gist_id}","starred_url":"https://api.github.com/users/louh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/louh/subscriptions","organizations_url":"https://api.github.com/users/louh/orgs","repos_url":"https://api.github.com/users/louh/repos","events_url":"https://api.github.com/users/louh/events{/privacy}","received_events_url":"https://api.github.com/users/louh/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/codeforamerica/streetmix/pulls/592/commits","review_comments_url":"https://api.github.com/repos/codeforamerica/streetmix/pulls/592/comments","review_comment_url":"https://api.github.com/repos/codeforamerica/streetmix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codeforamerica/streetmix/issues/592/comments","statuses_url":"https://api.github.com/repos/codeforamerica/streetmix/statuses/5a5ffaa2e83eb1db7493646dcbd3ac737100f313","head":{"label":"codeforamerica:react-street-name","ref":"react-street-name","sha":"5a5ffaa2e83eb1db7493646dcbd3ac737100f313","user":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"repo":{"id":7708819,"name":"streetmix","full_name":"codeforamerica/streetmix","owner":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeforamerica/streetmix","description":"Design, remix, and share your neighborhood street.","fork":false,"url":"https://api.github.com/repos/codeforamerica/streetmix","forks_url":"https://api.github.com/repos/codeforamerica/streetmix/forks","keys_url":"https://api.github.com/repos/codeforamerica/streetmix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeforamerica/streetmix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeforamerica/streetmix/teams","hooks_url":"https://api.github.com/repos/codeforamerica/streetmix/hooks","issue_events_url":"https://api.github.com/repos/codeforamerica/streetmix/issues/events{/number}","events_url":"https://api.github.com/repos/codeforamerica/streetmix/events","assignees_url":"https://api.github.com/repos/codeforamerica/streetmix/assignees{/user}","branches_url":"https://api.github.com/repos/codeforamerica/streetmix/branches{/branch}","tags_url":"https://api.github.com/repos/codeforamerica/streetmix/tags","blobs_url":"https://api.github.com/repos/codeforamerica/streetmix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeforamerica/streetmix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeforamerica/streetmix/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeforamerica/streetmix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeforamerica/streetmix/statuses/{sha}","languages_url":"https://api.github.com/repos/codeforamerica/streetmix/languages","stargazers_url":"https://api.github.com/repos/codeforamerica/streetmix/stargazers","contributors_url":"https://api.github.com/repos/codeforamerica/streetmix/contributors","subscribers_url":"https://api.github.com/repos/codeforamerica/streetmix/subscribers","subscription_url":"https://api.github.com/repos/codeforamerica/streetmix/subscription","commits_url":"https://api.github.com/repos/codeforamerica/streetmix/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeforamerica/streetmix/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeforamerica/streetmix/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeforamerica/streetmix/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeforamerica/streetmix/contents/{+path}","compare_url":"https://api.github.com/repos/codeforamerica/streetmix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeforamerica/streetmix/merges","archive_url":"https://api.github.com/repos/codeforamerica/streetmix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeforamerica/streetmix/downloads","issues_url":"https://api.github.com/repos/codeforamerica/streetmix/issues{/number}","pulls_url":"https://api.github.com/repos/codeforamerica/streetmix/pulls{/number}","milestones_url":"https://api.github.com/repos/codeforamerica/streetmix/milestones{/number}","notifications_url":"https://api.github.com/repos/codeforamerica/streetmix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeforamerica/streetmix/labels{/name}","releases_url":"https://api.github.com/repos/codeforamerica/streetmix/releases{/id}","deployments_url":"https://api.github.com/repos/codeforamerica/streetmix/deployments","created_at":"2013-01-19T21:03:45Z","updated_at":"2016-09-16T00:55:25Z","pushed_at":"2016-09-19T17:17:52Z","git_url":"git://github.com/codeforamerica/streetmix.git","ssh_url":"git@github.com:codeforamerica/streetmix.git","clone_url":"https://github.com/codeforamerica/streetmix.git","svn_url":"https://github.com/codeforamerica/streetmix","homepage":"http://streetmix.net","size":33736,"stargazers_count":214,"watchers_count":214,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":61,"mirror_url":null,"open_issues_count":118,"forks":61,"open_issues":118,"watchers":214,"default_branch":"master"}},"base":{"label":"codeforamerica:master","ref":"master","sha":"3bfd8d10fa908a3d569adb62299cd706b385ecfc","user":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"repo":{"id":7708819,"name":"streetmix","full_name":"codeforamerica/streetmix","owner":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeforamerica/streetmix","description":"Design, remix, and share your neighborhood street.","fork":false,"url":"https://api.github.com/repos/codeforamerica/streetmix","forks_url":"https://api.github.com/repos/codeforamerica/streetmix/forks","keys_url":"https://api.github.com/repos/codeforamerica/streetmix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeforamerica/streetmix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeforamerica/streetmix/teams","hooks_url":"https://api.github.com/repos/codeforamerica/streetmix/hooks","issue_events_url":"https://api.github.com/repos/codeforamerica/streetmix/issues/events{/number}","events_url":"https://api.github.com/repos/codeforamerica/streetmix/events","assignees_url":"https://api.github.com/repos/codeforamerica/streetmix/assignees{/user}","branches_url":"https://api.github.com/repos/codeforamerica/streetmix/branches{/branch}","tags_url":"https://api.github.com/repos/codeforamerica/streetmix/tags","blobs_url":"https://api.github.com/repos/codeforamerica/streetmix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeforamerica/streetmix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeforamerica/streetmix/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeforamerica/streetmix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeforamerica/streetmix/statuses/{sha}","languages_url":"https://api.github.com/repos/codeforamerica/streetmix/languages","stargazers_url":"https://api.github.com/repos/codeforamerica/streetmix/stargazers","contributors_url":"https://api.github.com/repos/codeforamerica/streetmix/contributors","subscribers_url":"https://api.github.com/repos/codeforamerica/streetmix/subscribers","subscription_url":"https://api.github.com/repos/codeforamerica/streetmix/subscription","commits_url":"https://api.github.com/repos/codeforamerica/streetmix/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeforamerica/streetmix/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeforamerica/streetmix/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeforamerica/streetmix/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeforamerica/streetmix/contents/{+path}","compare_url":"https://api.github.com/repos/codeforamerica/streetmix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeforamerica/streetmix/merges","archive_url":"https://api.github.com/repos/codeforamerica/streetmix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeforamerica/streetmix/downloads","issues_url":"https://api.github.com/repos/codeforamerica/streetmix/issues{/number}","pulls_url":"https://api.github.com/repos/codeforamerica/streetmix/pulls{/number}","milestones_url":"https://api.github.com/repos/codeforamerica/streetmix/milestones{/number}","notifications_url":"https://api.github.com/repos/codeforamerica/streetmix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeforamerica/streetmix/labels{/name}","releases_url":"https://api.github.com/repos/codeforamerica/streetmix/releases{/id}","deployments_url":"https://api.github.com/repos/codeforamerica/streetmix/deployments","created_at":"2013-01-19T21:03:45Z","updated_at":"2016-09-16T00:55:25Z","pushed_at":"2016-09-19T17:17:52Z","git_url":"git://github.com/codeforamerica/streetmix.git","ssh_url":"git@github.com:codeforamerica/streetmix.git","clone_url":"https://github.com/codeforamerica/streetmix.git","svn_url":"https://github.com/codeforamerica/streetmix","homepage":"http://streetmix.net","size":33736,"stargazers_count":214,"watchers_count":214,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":61,"mirror_url":null,"open_issues_count":118,"forks":61,"open_issues":118,"watchers":214,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codeforamerica/streetmix/pulls/592"},"html":{"href":"https://github.com/codeforamerica/streetmix/pull/592"},"issue":{"href":"https://api.github.com/repos/codeforamerica/streetmix/issues/592"},"comments":{"href":"https://api.github.com/repos/codeforamerica/streetmix/issues/592/comments"},"review_comments":{"href":"https://api.github.com/repos/codeforamerica/streetmix/pulls/592/comments"},"review_comment":{"href":"https://api.github.com/repos/codeforamerica/streetmix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codeforamerica/streetmix/pulls/592/commits"},"statuses":{"href":"https://api.github.com/repos/codeforamerica/streetmix/statuses/5a5ffaa2e83eb1db7493646dcbd3ac737100f313"}}}}
{"actor":{"display_login":"louh"}}