{"action":"created","comment":{"url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/pulls/comments/186294032","pull_request_review_id":117846678,"id":186294032,"diff_hunk":"@@ -0,0 +1,91 @@\n+import React, { Component } from 'react'\n+import PropTypes from 'prop-types'\n+\n+import VerticalAlignHelper from '../../shared/VerticalAlignHelper/VerticalAlignHelper'\n+import UploadDropzone from '../../UploadDropzone/UploadDropzone'\n+import styles from './ProfilePictureForm.scss'\n+\n+class ProfilePictureForm extends Component {\n+  constructor (props) {\n+    super(props)\n+\n+    this.state = {\n+      showForm: false\n+    }\n+  }\n+\n+  saveFile (file) {\n+    this.uploadImage(file)\n+  }\n+\n+  async uploadImage (file) {\n+    await this.props.updateProfilePicture(file)\n+\n+    this.setState({ showForm: false })\n+  }\n+\n+  renderImageUpload (field) {\n+    return (\n+      <UploadDropzone\n+        className={styles.inputImageUpload}\n+        saveFile={this.saveFile.bind(this)}\n+      />\n+    )\n+  }\n+\n+  renderForm () {\n+    return (\n+      <form\n+        id=\"uploadProfilePictureForm\"\n+        className={styles.form} >\n+        {this.renderImageUpload()}\n+      </form>\n+    )\n+  }\n+\n+  renderProfilePicture () {\n+    const { user } = this.props\n+    return (\n+      <div\n+        className={styles.profilePicture}\n+        onClick={() => this.setState({ showForm: true })}>","path":"client/components/Profile/ProfilePictureForm/ProfilePictureForm.js","position":51,"original_position":51,"commit_id":"b5d6b6333149add921131a54b76e0ab62c026ae9","original_commit_id":"b5d6b6333149add921131a54b76e0ab62c026ae9","user":{"login":"mattwills8","id":20155429,"avatar_url":"https://avatars3.githubusercontent.com/u/20155429?v=4","gravatar_id":"","url":"https://api.github.com/users/mattwills8","html_url":"https://github.com/mattwills8","followers_url":"https://api.github.com/users/mattwills8/followers","following_url":"https://api.github.com/users/mattwills8/following{/other_user}","gists_url":"https://api.github.com/users/mattwills8/gists{/gist_id}","starred_url":"https://api.github.com/users/mattwills8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattwills8/subscriptions","organizations_url":"https://api.github.com/users/mattwills8/orgs","repos_url":"https://api.github.com/users/mattwills8/repos","events_url":"https://api.github.com/users/mattwills8/events{/privacy}","received_events_url":"https://api.github.com/users/mattwills8/received_events","type":"User","site_admin":false},"body":"sure, no problem!","created_at":"2018-05-06T15:17:40Z","updated_at":"2018-05-06T15:17:40Z","html_url":"https://github.com/CodeForSocialGood/calltocode.org/pull/153#discussion_r186294032","pull_request_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/pulls/153","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/pulls/comments/186294032"},"html":{"href":"https://github.com/CodeForSocialGood/calltocode.org/pull/153#discussion_r186294032"},"pull_request":{"href":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/pulls/153"}},"in_reply_to_id":186275218},"pull_request":{"url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/pulls/153","id":165559629,"html_url":"https://github.com/CodeForSocialGood/calltocode.org/pull/153","diff_url":"https://github.com/CodeForSocialGood/calltocode.org/pull/153.diff","patch_url":"https://github.com/CodeForSocialGood/calltocode.org/pull/153.patch","issue_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/issues/153","number":153,"state":"open","locked":false,"title":"Kevin and Mary can upload a picture","user":{"login":"mattwills8","id":20155429,"avatar_url":"https://avatars3.githubusercontent.com/u/20155429?v=4","gravatar_id":"","url":"https://api.github.com/users/mattwills8","html_url":"https://github.com/mattwills8","followers_url":"https://api.github.com/users/mattwills8/followers","following_url":"https://api.github.com/users/mattwills8/following{/other_user}","gists_url":"https://api.github.com/users/mattwills8/gists{/gist_id}","starred_url":"https://api.github.com/users/mattwills8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattwills8/subscriptions","organizations_url":"https://api.github.com/users/mattwills8/orgs","repos_url":"https://api.github.com/users/mattwills8/repos","events_url":"https://api.github.com/users/mattwills8/events{/privacy}","received_events_url":"https://api.github.com/users/mattwills8/received_events","type":"User","site_admin":false},"body":"#### Pivotal Tracker Story ID: [#154303612]\r\n\r\n#### Pre-Submission Checklist:\r\n\r\n- [x] Your pull request targets the `master` branch of calltocode.org\r\n- [x] Your branch is updated with the latest changes on `master`\r\n- [x] Your branch passes linting, building and all new and existing tests with command `yarn test`\r\n- [x] The story that this pull request addresses is referenced above by ID\r\n\r\n#### Post-Submission Checklist:\r\n<!-- After creating the pull request, tick the boxes below that are completed -->\r\n<!-- Make sure you keep up with your pull request after submission until it is merged: -->\r\n\r\n- [x] Address any reviews on your pull request, as it will not be merged until it is approved\r\n- [x] Your branch has no conflicts with `master` (find this out at the bottom of your pull request)\r\n\r\n#### Description of Changes:\r\n\r\n- add profile picture area to Profile page\r\n- initally shows profile picture\r\n- on hover, given the option to update profile picture\r\n- on click, switches to upload photo form\r\n\r\n**-- we just need to update the logic for actually uploading the photo and saving the src in the db, but someone else is already working on that, so updating this could just be a separate chore?**\r\n\r\n<!-- LINKS:\r\nContributing guidelines: https://github.com/CodeForSocialGood/calltocode.org/blob/master/docs/CONTRIBUTING.md\r\n\r\nPull requests: https://github.com/CodeForSocialGood/calltocode.org/blob/master/docs/CONTRIBUTING.md#pr\r\n-->\r\n","created_at":"2018-01-28T09:53:42Z","updated_at":"2018-05-06T15:17:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f4841269d3d1ad6d4c28d19ab45810f45a0fee2b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/pulls/153/commits","review_comments_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/pulls/153/comments","review_comment_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/issues/153/comments","statuses_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/statuses/b5d6b6333149add921131a54b76e0ab62c026ae9","head":{"label":"CodeForSocialGood:feature/#154303612","ref":"feature/#154303612","sha":"b5d6b6333149add921131a54b76e0ab62c026ae9","user":{"login":"CodeForSocialGood","id":31825936,"avatar_url":"https://avatars3.githubusercontent.com/u/31825936?v=4","gravatar_id":"","url":"https://api.github.com/users/CodeForSocialGood","html_url":"https://github.com/CodeForSocialGood","followers_url":"https://api.github.com/users/CodeForSocialGood/followers","following_url":"https://api.github.com/users/CodeForSocialGood/following{/other_user}","gists_url":"https://api.github.com/users/CodeForSocialGood/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeForSocialGood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeForSocialGood/subscriptions","organizations_url":"https://api.github.com/users/CodeForSocialGood/orgs","repos_url":"https://api.github.com/users/CodeForSocialGood/repos","events_url":"https://api.github.com/users/CodeForSocialGood/events{/privacy}","received_events_url":"https://api.github.com/users/CodeForSocialGood/received_events","type":"Organization","site_admin":false},"repo":{"id":103044914,"name":"calltocode.org","full_name":"CodeForSocialGood/calltocode.org","owner":{"login":"CodeForSocialGood","id":31825936,"avatar_url":"https://avatars3.githubusercontent.com/u/31825936?v=4","gravatar_id":"","url":"https://api.github.com/users/CodeForSocialGood","html_url":"https://github.com/CodeForSocialGood","followers_url":"https://api.github.com/users/CodeForSocialGood/followers","following_url":"https://api.github.com/users/CodeForSocialGood/following{/other_user}","gists_url":"https://api.github.com/users/CodeForSocialGood/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeForSocialGood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeForSocialGood/subscriptions","organizations_url":"https://api.github.com/users/CodeForSocialGood/orgs","repos_url":"https://api.github.com/users/CodeForSocialGood/repos","events_url":"https://api.github.com/users/CodeForSocialGood/events{/privacy}","received_events_url":"https://api.github.com/users/CodeForSocialGood/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CodeForSocialGood/calltocode.org","description":"A platform where anyone can get development experience by matching them with nonprofits, calltocode.org is a nonprofit and open-sourced product built by volunteers to accomplish a positive mission.","fork":false,"url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org","forks_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/forks","keys_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/teams","hooks_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/hooks","issue_events_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/issues/events{/number}","events_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/events","assignees_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/assignees{/user}","branches_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/branches{/branch}","tags_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/tags","blobs_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/statuses/{sha}","languages_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/languages","stargazers_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/stargazers","contributors_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/contributors","subscribers_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/subscribers","subscription_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/subscription","commits_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/contents/{+path}","compare_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/merges","archive_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/downloads","issues_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/issues{/number}","pulls_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/pulls{/number}","milestones_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/milestones{/number}","notifications_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/labels{/name}","releases_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/releases{/id}","deployments_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/deployments","created_at":"2017-09-10T16:38:01Z","updated_at":"2018-05-05T08:09:56Z","pushed_at":"2018-05-06T00:17:37Z","git_url":"git://github.com/CodeForSocialGood/calltocode.org.git","ssh_url":"git@github.com:CodeForSocialGood/calltocode.org.git","clone_url":"https://github.com/CodeForSocialGood/calltocode.org.git","svn_url":"https://github.com/CodeForSocialGood/calltocode.org","homepage":"https://test.calltocode.org","size":2470,"stargazers_count":16,"watchers_count":16,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":28,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":28,"open_issues":3,"watchers":16,"default_branch":"master"}},"base":{"label":"CodeForSocialGood:master","ref":"master","sha":"07315a1d317bdb79dbfb80e8c74915216370e5ad","user":{"login":"CodeForSocialGood","id":31825936,"avatar_url":"https://avatars3.githubusercontent.com/u/31825936?v=4","gravatar_id":"","url":"https://api.github.com/users/CodeForSocialGood","html_url":"https://github.com/CodeForSocialGood","followers_url":"https://api.github.com/users/CodeForSocialGood/followers","following_url":"https://api.github.com/users/CodeForSocialGood/following{/other_user}","gists_url":"https://api.github.com/users/CodeForSocialGood/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeForSocialGood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeForSocialGood/subscriptions","organizations_url":"https://api.github.com/users/CodeForSocialGood/orgs","repos_url":"https://api.github.com/users/CodeForSocialGood/repos","events_url":"https://api.github.com/users/CodeForSocialGood/events{/privacy}","received_events_url":"https://api.github.com/users/CodeForSocialGood/received_events","type":"Organization","site_admin":false},"repo":{"id":103044914,"name":"calltocode.org","full_name":"CodeForSocialGood/calltocode.org","owner":{"login":"CodeForSocialGood","id":31825936,"avatar_url":"https://avatars3.githubusercontent.com/u/31825936?v=4","gravatar_id":"","url":"https://api.github.com/users/CodeForSocialGood","html_url":"https://github.com/CodeForSocialGood","followers_url":"https://api.github.com/users/CodeForSocialGood/followers","following_url":"https://api.github.com/users/CodeForSocialGood/following{/other_user}","gists_url":"https://api.github.com/users/CodeForSocialGood/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeForSocialGood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeForSocialGood/subscriptions","organizations_url":"https://api.github.com/users/CodeForSocialGood/orgs","repos_url":"https://api.github.com/users/CodeForSocialGood/repos","events_url":"https://api.github.com/users/CodeForSocialGood/events{/privacy}","received_events_url":"https://api.github.com/users/CodeForSocialGood/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CodeForSocialGood/calltocode.org","description":"A platform where anyone can get development experience by matching them with nonprofits, calltocode.org is a nonprofit and open-sourced product built by volunteers to accomplish a positive mission.","fork":false,"url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org","forks_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/forks","keys_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/teams","hooks_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/hooks","issue_events_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/issues/events{/number}","events_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/events","assignees_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/assignees{/user}","branches_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/branches{/branch}","tags_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/tags","blobs_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/statuses/{sha}","languages_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/languages","stargazers_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/stargazers","contributors_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/contributors","subscribers_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/subscribers","subscription_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/subscription","commits_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/contents/{+path}","compare_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/merges","archive_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/downloads","issues_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/issues{/number}","pulls_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/pulls{/number}","milestones_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/milestones{/number}","notifications_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/labels{/name}","releases_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/releases{/id}","deployments_url":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/deployments","created_at":"2017-09-10T16:38:01Z","updated_at":"2018-05-05T08:09:56Z","pushed_at":"2018-05-06T00:17:37Z","git_url":"git://github.com/CodeForSocialGood/calltocode.org.git","ssh_url":"git@github.com:CodeForSocialGood/calltocode.org.git","clone_url":"https://github.com/CodeForSocialGood/calltocode.org.git","svn_url":"https://github.com/CodeForSocialGood/calltocode.org","homepage":"https://test.calltocode.org","size":2470,"stargazers_count":16,"watchers_count":16,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":28,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":28,"open_issues":3,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/pulls/153"},"html":{"href":"https://github.com/CodeForSocialGood/calltocode.org/pull/153"},"issue":{"href":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/issues/153"},"comments":{"href":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/issues/153/comments"},"review_comments":{"href":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/pulls/153/comments"},"review_comment":{"href":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/pulls/153/commits"},"statuses":{"href":"https://api.github.com/repos/CodeForSocialGood/calltocode.org/statuses/b5d6b6333149add921131a54b76e0ab62c026ae9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mattwills8"}}