{"action":"created","comment":{"url":"https://api.github.com/repos/wevote/WebApp/pulls/comments/362887313","pull_request_review_id":338180520,"id":362887313,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM2Mjg4NzMxMw==","diff_hunk":"@@ -0,0 +1,100 @@\n+import React, { Component } from 'react';\n+import PropTypes from 'prop-types';\n+import styled from 'styled-components';\n+import { openSnackbar } from '../Widgets/SnackNotifier';\n+\n+class ShareModalOption extends Component {\n+  static propTypes = {\n+    link: PropTypes.string,\n+    icon: PropTypes.string,\n+    title: PropTypes.string,\n+    background: PropTypes.string,\n+  };\n+\n+  constructor (props) {\n+    super(props);\n+    this.state = {};\n+\n+    this.textAreaRef = React.createRef();\n+    this.copyLink = this.copyLink.bind(this);\n+  }\n+\n+  copyLink (e) {\n+    this.textAreaRef.current.select();\n+\n+    document.execCommand('copy');\n+    e.target.focus();\n+\n+    openSnackbar({ message: 'Copied!' });\n+  }\n+\n+  render () {\n+    return (\n+      <Wrapper href={this.props.copyLink ? null : this.props.link || '/'} onClick={this.props.copyLink ? this.copyLink : null}>\n+        <Icon background={this.props.background}>\n+          {this.props.icon}\n+        </Icon>\n+        <Text>\n+          {this.props.title}\n+        </Text>\n+        {this.props.copyLink ? (\n+          <TextArea ref={this.textAreaRef} value={this.props.link} />","path":"src/js/components/Ballot/ShareModalOption.jsx","position":41,"original_position":41,"commit_id":"ea9d8ac0698d4df13a7dc6d31946a13783d759a9","original_commit_id":"ea9d8ac0698d4df13a7dc6d31946a13783d759a9","user":{"login":"accesslint[bot]","id":25971091,"node_id":"MDM6Qm90MjU5NzEwOTE=","avatar_url":"https://avatars1.githubusercontent.com/in/1502?v=4","gravatar_id":"","url":"https://api.github.com/users/accesslint%5Bbot%5D","html_url":"https://github.com/apps/accesslint","followers_url":"https://api.github.com/users/accesslint%5Bbot%5D/followers","following_url":"https://api.github.com/users/accesslint%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/accesslint%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/accesslint%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/accesslint%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/accesslint%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/accesslint%5Bbot%5D/repos","events_url":"https://api.github.com/users/accesslint%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/accesslint%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"Looks like there's a label missing for this input. That makes it hard for people using screen readers or voice control to use the input.","created_at":"2020-01-03T17:11:54Z","updated_at":"2020-01-03T17:11:55Z","html_url":"https://github.com/wevote/WebApp/pull/2723#discussion_r362887313","pull_request_url":"https://api.github.com/repos/wevote/WebApp/pulls/2723","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/wevote/WebApp/pulls/comments/362887313"},"html":{"href":"https://github.com/wevote/WebApp/pull/2723#discussion_r362887313"},"pull_request":{"href":"https://api.github.com/repos/wevote/WebApp/pulls/2723"}}},"pull_request":{"url":"https://api.github.com/repos/wevote/WebApp/pulls/2723","id":359058854,"node_id":"MDExOlB1bGxSZXF1ZXN0MzU5MDU4ODU0","html_url":"https://github.com/wevote/WebApp/pull/2723","diff_url":"https://github.com/wevote/WebApp/pull/2723.diff","patch_url":"https://github.com/wevote/WebApp/pull/2723.patch","issue_url":"https://api.github.com/repos/wevote/WebApp/issues/2723","number":2723,"state":"open","locked":false,"title":"Share Ballot Modal","user":{"login":"jarodpeachey","id":46693952,"node_id":"MDQ6VXNlcjQ2NjkzOTUy","avatar_url":"https://avatars3.githubusercontent.com/u/46693952?v=4","gravatar_id":"","url":"https://api.github.com/users/jarodpeachey","html_url":"https://github.com/jarodpeachey","followers_url":"https://api.github.com/users/jarodpeachey/followers","following_url":"https://api.github.com/users/jarodpeachey/following{/other_user}","gists_url":"https://api.github.com/users/jarodpeachey/gists{/gist_id}","starred_url":"https://api.github.com/users/jarodpeachey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarodpeachey/subscriptions","organizations_url":"https://api.github.com/users/jarodpeachey/orgs","repos_url":"https://api.github.com/users/jarodpeachey/repos","events_url":"https://api.github.com/users/jarodpeachey/events{/privacy}","received_events_url":"https://api.github.com/users/jarodpeachey/received_events","type":"User","site_admin":false},"body":"### What github.com/wevote/WebApp/issues does this fix?\r\n#2720 \r\n\r\n### Changes included this pull request?\r\nThis is the rough draft for the share modal on desktop. I still need to add functionality that displays different text based on whether or not the user is sharing their own opinions or just the ballot.","created_at":"2020-01-03T17:11:46Z","updated_at":"2020-01-03T17:11:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"128ca715ca3277f6d0fb3ab8eb02cb9c28faeebf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wevote/WebApp/pulls/2723/commits","review_comments_url":"https://api.github.com/repos/wevote/WebApp/pulls/2723/comments","review_comment_url":"https://api.github.com/repos/wevote/WebApp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wevote/WebApp/issues/2723/comments","statuses_url":"https://api.github.com/repos/wevote/WebApp/statuses/ea9d8ac0698d4df13a7dc6d31946a13783d759a9","head":{"label":"jarodpeachey:JarodJan2","ref":"JarodJan2","sha":"ea9d8ac0698d4df13a7dc6d31946a13783d759a9","user":{"login":"jarodpeachey","id":46693952,"node_id":"MDQ6VXNlcjQ2NjkzOTUy","avatar_url":"https://avatars3.githubusercontent.com/u/46693952?v=4","gravatar_id":"","url":"https://api.github.com/users/jarodpeachey","html_url":"https://github.com/jarodpeachey","followers_url":"https://api.github.com/users/jarodpeachey/followers","following_url":"https://api.github.com/users/jarodpeachey/following{/other_user}","gists_url":"https://api.github.com/users/jarodpeachey/gists{/gist_id}","starred_url":"https://api.github.com/users/jarodpeachey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarodpeachey/subscriptions","organizations_url":"https://api.github.com/users/jarodpeachey/orgs","repos_url":"https://api.github.com/users/jarodpeachey/repos","events_url":"https://api.github.com/users/jarodpeachey/events{/privacy}","received_events_url":"https://api.github.com/users/jarodpeachey/received_events","type":"User","site_admin":false},"repo":{"id":178247604,"node_id":"MDEwOlJlcG9zaXRvcnkxNzgyNDc2MDQ=","name":"WebApp","full_name":"jarodpeachey/WebApp","private":false,"owner":{"login":"jarodpeachey","id":46693952,"node_id":"MDQ6VXNlcjQ2NjkzOTUy","avatar_url":"https://avatars3.githubusercontent.com/u/46693952?v=4","gravatar_id":"","url":"https://api.github.com/users/jarodpeachey","html_url":"https://github.com/jarodpeachey","followers_url":"https://api.github.com/users/jarodpeachey/followers","following_url":"https://api.github.com/users/jarodpeachey/following{/other_user}","gists_url":"https://api.github.com/users/jarodpeachey/gists{/gist_id}","starred_url":"https://api.github.com/users/jarodpeachey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarodpeachey/subscriptions","organizations_url":"https://api.github.com/users/jarodpeachey/orgs","repos_url":"https://api.github.com/users/jarodpeachey/repos","events_url":"https://api.github.com/users/jarodpeachey/events{/privacy}","received_events_url":"https://api.github.com/users/jarodpeachey/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jarodpeachey/WebApp","description":"We Vote's javascript (client-side) mobile website built with React/Flux. Twitter: @WeVote Apple Store: https://itunes.apple.com/us/app/we-vote-voter-guide/id1347335726 Android: https://play.google.com/store/apps/details?id=org.wevote.cordova&hl=en_US","fork":true,"url":"https://api.github.com/repos/jarodpeachey/WebApp","forks_url":"https://api.github.com/repos/jarodpeachey/WebApp/forks","keys_url":"https://api.github.com/repos/jarodpeachey/WebApp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jarodpeachey/WebApp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jarodpeachey/WebApp/teams","hooks_url":"https://api.github.com/repos/jarodpeachey/WebApp/hooks","issue_events_url":"https://api.github.com/repos/jarodpeachey/WebApp/issues/events{/number}","events_url":"https://api.github.com/repos/jarodpeachey/WebApp/events","assignees_url":"https://api.github.com/repos/jarodpeachey/WebApp/assignees{/user}","branches_url":"https://api.github.com/repos/jarodpeachey/WebApp/branches{/branch}","tags_url":"https://api.github.com/repos/jarodpeachey/WebApp/tags","blobs_url":"https://api.github.com/repos/jarodpeachey/WebApp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jarodpeachey/WebApp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jarodpeachey/WebApp/git/refs{/sha}","trees_url":"https://api.github.com/repos/jarodpeachey/WebApp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jarodpeachey/WebApp/statuses/{sha}","languages_url":"https://api.github.com/repos/jarodpeachey/WebApp/languages","stargazers_url":"https://api.github.com/repos/jarodpeachey/WebApp/stargazers","contributors_url":"https://api.github.com/repos/jarodpeachey/WebApp/contributors","subscribers_url":"https://api.github.com/repos/jarodpeachey/WebApp/subscribers","subscription_url":"https://api.github.com/repos/jarodpeachey/WebApp/subscription","commits_url":"https://api.github.com/repos/jarodpeachey/WebApp/commits{/sha}","git_commits_url":"https://api.github.com/repos/jarodpeachey/WebApp/git/commits{/sha}","comments_url":"https://api.github.com/repos/jarodpeachey/WebApp/comments{/number}","issue_comment_url":"https://api.github.com/repos/jarodpeachey/WebApp/issues/comments{/number}","contents_url":"https://api.github.com/repos/jarodpeachey/WebApp/contents/{+path}","compare_url":"https://api.github.com/repos/jarodpeachey/WebApp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jarodpeachey/WebApp/merges","archive_url":"https://api.github.com/repos/jarodpeachey/WebApp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jarodpeachey/WebApp/downloads","issues_url":"https://api.github.com/repos/jarodpeachey/WebApp/issues{/number}","pulls_url":"https://api.github.com/repos/jarodpeachey/WebApp/pulls{/number}","milestones_url":"https://api.github.com/repos/jarodpeachey/WebApp/milestones{/number}","notifications_url":"https://api.github.com/repos/jarodpeachey/WebApp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jarodpeachey/WebApp/labels{/name}","releases_url":"https://api.github.com/repos/jarodpeachey/WebApp/releases{/id}","deployments_url":"https://api.github.com/repos/jarodpeachey/WebApp/deployments","created_at":"2019-03-28T17:00:23Z","updated_at":"2020-01-02T15:48:46Z","pushed_at":"2020-01-03T17:10:05Z","git_url":"git://github.com/jarodpeachey/WebApp.git","ssh_url":"git@github.com:jarodpeachey/WebApp.git","clone_url":"https://github.com/jarodpeachey/WebApp.git","svn_url":"https://github.com/jarodpeachey/WebApp","homepage":"","size":37563,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":1,"default_branch":"develop"}},"base":{"label":"wevote:develop","ref":"develop","sha":"7595a4f52d28d645724006b36f6be5c5a97b0902","user":{"login":"wevote","id":8534106,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg1MzQxMDY=","avatar_url":"https://avatars1.githubusercontent.com/u/8534106?v=4","gravatar_id":"","url":"https://api.github.com/users/wevote","html_url":"https://github.com/wevote","followers_url":"https://api.github.com/users/wevote/followers","following_url":"https://api.github.com/users/wevote/following{/other_user}","gists_url":"https://api.github.com/users/wevote/gists{/gist_id}","starred_url":"https://api.github.com/users/wevote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wevote/subscriptions","organizations_url":"https://api.github.com/users/wevote/orgs","repos_url":"https://api.github.com/users/wevote/repos","events_url":"https://api.github.com/users/wevote/events{/privacy}","received_events_url":"https://api.github.com/users/wevote/received_events","type":"Organization","site_admin":false},"repo":{"id":48076651,"node_id":"MDEwOlJlcG9zaXRvcnk0ODA3NjY1MQ==","name":"WebApp","full_name":"wevote/WebApp","private":false,"owner":{"login":"wevote","id":8534106,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg1MzQxMDY=","avatar_url":"https://avatars1.githubusercontent.com/u/8534106?v=4","gravatar_id":"","url":"https://api.github.com/users/wevote","html_url":"https://github.com/wevote","followers_url":"https://api.github.com/users/wevote/followers","following_url":"https://api.github.com/users/wevote/following{/other_user}","gists_url":"https://api.github.com/users/wevote/gists{/gist_id}","starred_url":"https://api.github.com/users/wevote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wevote/subscriptions","organizations_url":"https://api.github.com/users/wevote/orgs","repos_url":"https://api.github.com/users/wevote/repos","events_url":"https://api.github.com/users/wevote/events{/privacy}","received_events_url":"https://api.github.com/users/wevote/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/wevote/WebApp","description":"We Vote's javascript (client-side) mobile website built with React/Flux. Twitter: @WeVote Apple Store: https://itunes.apple.com/us/app/we-vote-voter-guide/id1347335726 Android: https://play.google.com/store/apps/details?id=org.wevote.cordova&hl=en_US","fork":false,"url":"https://api.github.com/repos/wevote/WebApp","forks_url":"https://api.github.com/repos/wevote/WebApp/forks","keys_url":"https://api.github.com/repos/wevote/WebApp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wevote/WebApp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wevote/WebApp/teams","hooks_url":"https://api.github.com/repos/wevote/WebApp/hooks","issue_events_url":"https://api.github.com/repos/wevote/WebApp/issues/events{/number}","events_url":"https://api.github.com/repos/wevote/WebApp/events","assignees_url":"https://api.github.com/repos/wevote/WebApp/assignees{/user}","branches_url":"https://api.github.com/repos/wevote/WebApp/branches{/branch}","tags_url":"https://api.github.com/repos/wevote/WebApp/tags","blobs_url":"https://api.github.com/repos/wevote/WebApp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wevote/WebApp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wevote/WebApp/git/refs{/sha}","trees_url":"https://api.github.com/repos/wevote/WebApp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wevote/WebApp/statuses/{sha}","languages_url":"https://api.github.com/repos/wevote/WebApp/languages","stargazers_url":"https://api.github.com/repos/wevote/WebApp/stargazers","contributors_url":"https://api.github.com/repos/wevote/WebApp/contributors","subscribers_url":"https://api.github.com/repos/wevote/WebApp/subscribers","subscription_url":"https://api.github.com/repos/wevote/WebApp/subscription","commits_url":"https://api.github.com/repos/wevote/WebApp/commits{/sha}","git_commits_url":"https://api.github.com/repos/wevote/WebApp/git/commits{/sha}","comments_url":"https://api.github.com/repos/wevote/WebApp/comments{/number}","issue_comment_url":"https://api.github.com/repos/wevote/WebApp/issues/comments{/number}","contents_url":"https://api.github.com/repos/wevote/WebApp/contents/{+path}","compare_url":"https://api.github.com/repos/wevote/WebApp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wevote/WebApp/merges","archive_url":"https://api.github.com/repos/wevote/WebApp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wevote/WebApp/downloads","issues_url":"https://api.github.com/repos/wevote/WebApp/issues{/number}","pulls_url":"https://api.github.com/repos/wevote/WebApp/pulls{/number}","milestones_url":"https://api.github.com/repos/wevote/WebApp/milestones{/number}","notifications_url":"https://api.github.com/repos/wevote/WebApp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wevote/WebApp/labels{/name}","releases_url":"https://api.github.com/repos/wevote/WebApp/releases{/id}","deployments_url":"https://api.github.com/repos/wevote/WebApp/deployments","created_at":"2015-12-16T00:19:13Z","updated_at":"2020-01-03T05:30:36Z","pushed_at":"2020-01-03T17:11:47Z","git_url":"git://github.com/wevote/WebApp.git","ssh_url":"git@github.com:wevote/WebApp.git","clone_url":"https://github.com/wevote/WebApp.git","svn_url":"https://github.com/wevote/WebApp","homepage":"","size":36934,"stargazers_count":68,"watchers_count":68,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":191,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":23,"license":null,"forks":191,"open_issues":23,"watchers":68,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/wevote/WebApp/pulls/2723"},"html":{"href":"https://github.com/wevote/WebApp/pull/2723"},"issue":{"href":"https://api.github.com/repos/wevote/WebApp/issues/2723"},"comments":{"href":"https://api.github.com/repos/wevote/WebApp/issues/2723/comments"},"review_comments":{"href":"https://api.github.com/repos/wevote/WebApp/pulls/2723/comments"},"review_comment":{"href":"https://api.github.com/repos/wevote/WebApp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wevote/WebApp/pulls/2723/commits"},"statuses":{"href":"https://api.github.com/repos/wevote/WebApp/statuses/ea9d8ac0698d4df13a7dc6d31946a13783d759a9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"accesslint"}}