{"action":"created","comment":{"url":"https://api.github.com/repos/WorldBrain/webmarks/pulls/comments/82866313","pull_request_review_id":3743268,"id":82866313,"diff_hunk":"@@ -0,0 +1,95 @@\n+import _ from 'lodash'\n+import React from 'react';\n+import ReactSelector from 'react-selector';\n+import { connect } from 'react-redux';\n+import { bindActionCreators } from 'redux';\n+\n+import * as actions from '../redux/actions/search-sources-selector'\n+\n+const mapStateToProps = state => state.searchSourcesSelector;\n+\n+const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch);\n+\n+// TODO: get this list from back-end\n+const allSources = [\n+\t{\n+\t\tid: 0,\n+\t\tname: 'Trustable Stuff',\n+\t},\n+\t{\n+\t\tid: 1,\n+\t\tname: 'Science Unleashed',\n+\t},\n+\t{\n+\t\tid: 2,\n+\t\tname: 'We-Say-So',\n+\t},\n+\t{\n+\t\tid: 3,\n+\t\tname: 'Mom knows better',\n+\t},\n+\t{\n+\t\tid: 4,\n+\t\tname: 'Grandma knows even better still',\n+\t},\n+\t{\n+\t\tid: 5,\n+\t\tname: 'Factual reporting',\n+\t},\n+\t{\n+\t\tid: 6,\n+\t\tname: 'Intergalactic whispers',\n+\t},\n+\t{\n+\t\tid: 7,\n+\t\tname: 'Written with toes',\n+\t},\n+\t{\n+\t\tid: 8,\n+\t\tname: 'The pedantic paper',\n+\t},\n+]\n+\n+\n+class SearchSourcesSelector extends React.Component {\n+\tconstructor() {","path":"src/components/search-sources-selector.js","position":null,"original_position":55,"commit_id":"88883f362bb9b62eab5f612b98e3279ec0f49255","original_commit_id":"a337cebdcd4222a8ab434038eb2002b0ffe8a1a6","user":{"login":"Treora","id":4191409,"avatar_url":"https://avatars.githubusercontent.com/u/4191409?v=3","gravatar_id":"","url":"https://api.github.com/users/Treora","html_url":"https://github.com/Treora","followers_url":"https://api.github.com/users/Treora/followers","following_url":"https://api.github.com/users/Treora/following{/other_user}","gists_url":"https://api.github.com/users/Treora/gists{/gist_id}","starred_url":"https://api.github.com/users/Treora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Treora/subscriptions","organizations_url":"https://api.github.com/users/Treora/orgs","repos_url":"https://api.github.com/users/Treora/repos","events_url":"https://api.github.com/users/Treora/events{/privacy}","received_events_url":"https://api.github.com/users/Treora/received_events","type":"User","site_admin":false},"body":"Forgotten, removed.","created_at":"2016-10-11T19:06:58Z","updated_at":"2016-10-11T19:06:58Z","html_url":"https://github.com/WorldBrain/webmarks/pull/37#discussion_r82866313","pull_request_url":"https://api.github.com/repos/WorldBrain/webmarks/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/WorldBrain/webmarks/pulls/comments/82866313"},"html":{"href":"https://github.com/WorldBrain/webmarks/pull/37#discussion_r82866313"},"pull_request":{"href":"https://api.github.com/repos/WorldBrain/webmarks/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/WorldBrain/webmarks/pulls/37","id":88682667,"html_url":"https://github.com/WorldBrain/webmarks/pull/37","diff_url":"https://github.com/WorldBrain/webmarks/pull/37.diff","patch_url":"https://github.com/WorldBrain/webmarks/pull/37.patch","issue_url":"https://api.github.com/repos/WorldBrain/webmarks/issues/37","number":37,"state":"open","locked":false,"title":"Add sources selector widget","user":{"login":"Treora","id":4191409,"avatar_url":"https://avatars.githubusercontent.com/u/4191409?v=3","gravatar_id":"","url":"https://api.github.com/users/Treora","html_url":"https://github.com/Treora","followers_url":"https://api.github.com/users/Treora/followers","following_url":"https://api.github.com/users/Treora/following{/other_user}","gists_url":"https://api.github.com/users/Treora/gists{/gist_id}","starred_url":"https://api.github.com/users/Treora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Treora/subscriptions","organizations_url":"https://api.github.com/users/Treora/orgs","repos_url":"https://api.github.com/users/Treora/repos","events_url":"https://api.github.com/users/Treora/events{/privacy}","received_events_url":"https://api.github.com/users/Treora/received_events","type":"User","site_admin":false},"body":"Adresses #29.\r\n- [x] Adding and removing items from a list of sources\r\n- [x] Remembers selection in local storage (pouchdb, slight overkill..)\r\n- [x] Text input for filtering of available sources\r\n- [ ] Message for sources that are not yet available + ability to request addition\r\n- [ ] Getting the list of sources from the back-end","created_at":"2016-10-10T15:25:31Z","updated_at":"2016-10-11T19:06:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f85ae721b498217134731cd1c0b96c9d678a3b4a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/WorldBrain/webmarks/pulls/37/commits","review_comments_url":"https://api.github.com/repos/WorldBrain/webmarks/pulls/37/comments","review_comment_url":"https://api.github.com/repos/WorldBrain/webmarks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WorldBrain/webmarks/issues/37/comments","statuses_url":"https://api.github.com/repos/WorldBrain/webmarks/statuses/88883f362bb9b62eab5f612b98e3279ec0f49255","head":{"label":"Treora:searchsourceselector","ref":"searchsourceselector","sha":"88883f362bb9b62eab5f612b98e3279ec0f49255","user":{"login":"Treora","id":4191409,"avatar_url":"https://avatars.githubusercontent.com/u/4191409?v=3","gravatar_id":"","url":"https://api.github.com/users/Treora","html_url":"https://github.com/Treora","followers_url":"https://api.github.com/users/Treora/followers","following_url":"https://api.github.com/users/Treora/following{/other_user}","gists_url":"https://api.github.com/users/Treora/gists{/gist_id}","starred_url":"https://api.github.com/users/Treora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Treora/subscriptions","organizations_url":"https://api.github.com/users/Treora/orgs","repos_url":"https://api.github.com/users/Treora/repos","events_url":"https://api.github.com/users/Treora/events{/privacy}","received_events_url":"https://api.github.com/users/Treora/received_events","type":"User","site_admin":false},"repo":{"id":70331209,"name":"webmarks","full_name":"Treora/webmarks","owner":{"login":"Treora","id":4191409,"avatar_url":"https://avatars.githubusercontent.com/u/4191409?v=3","gravatar_id":"","url":"https://api.github.com/users/Treora","html_url":"https://github.com/Treora","followers_url":"https://api.github.com/users/Treora/followers","following_url":"https://api.github.com/users/Treora/following{/other_user}","gists_url":"https://api.github.com/users/Treora/gists{/gist_id}","starred_url":"https://api.github.com/users/Treora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Treora/subscriptions","organizations_url":"https://api.github.com/users/Treora/orgs","repos_url":"https://api.github.com/users/Treora/repos","events_url":"https://api.github.com/users/Treora/events{/privacy}","received_events_url":"https://api.github.com/users/Treora/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Treora/webmarks","description":"Webmarks front-end repo. ","fork":true,"url":"https://api.github.com/repos/Treora/webmarks","forks_url":"https://api.github.com/repos/Treora/webmarks/forks","keys_url":"https://api.github.com/repos/Treora/webmarks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Treora/webmarks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Treora/webmarks/teams","hooks_url":"https://api.github.com/repos/Treora/webmarks/hooks","issue_events_url":"https://api.github.com/repos/Treora/webmarks/issues/events{/number}","events_url":"https://api.github.com/repos/Treora/webmarks/events","assignees_url":"https://api.github.com/repos/Treora/webmarks/assignees{/user}","branches_url":"https://api.github.com/repos/Treora/webmarks/branches{/branch}","tags_url":"https://api.github.com/repos/Treora/webmarks/tags","blobs_url":"https://api.github.com/repos/Treora/webmarks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Treora/webmarks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Treora/webmarks/git/refs{/sha}","trees_url":"https://api.github.com/repos/Treora/webmarks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Treora/webmarks/statuses/{sha}","languages_url":"https://api.github.com/repos/Treora/webmarks/languages","stargazers_url":"https://api.github.com/repos/Treora/webmarks/stargazers","contributors_url":"https://api.github.com/repos/Treora/webmarks/contributors","subscribers_url":"https://api.github.com/repos/Treora/webmarks/subscribers","subscription_url":"https://api.github.com/repos/Treora/webmarks/subscription","commits_url":"https://api.github.com/repos/Treora/webmarks/commits{/sha}","git_commits_url":"https://api.github.com/repos/Treora/webmarks/git/commits{/sha}","comments_url":"https://api.github.com/repos/Treora/webmarks/comments{/number}","issue_comment_url":"https://api.github.com/repos/Treora/webmarks/issues/comments{/number}","contents_url":"https://api.github.com/repos/Treora/webmarks/contents/{+path}","compare_url":"https://api.github.com/repos/Treora/webmarks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Treora/webmarks/merges","archive_url":"https://api.github.com/repos/Treora/webmarks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Treora/webmarks/downloads","issues_url":"https://api.github.com/repos/Treora/webmarks/issues{/number}","pulls_url":"https://api.github.com/repos/Treora/webmarks/pulls{/number}","milestones_url":"https://api.github.com/repos/Treora/webmarks/milestones{/number}","notifications_url":"https://api.github.com/repos/Treora/webmarks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Treora/webmarks/labels{/name}","releases_url":"https://api.github.com/repos/Treora/webmarks/releases{/id}","deployments_url":"https://api.github.com/repos/Treora/webmarks/deployments","created_at":"2016-10-08T12:56:34Z","updated_at":"2016-10-08T12:56:35Z","pushed_at":"2016-10-11T18:43:28Z","git_url":"git://github.com/Treora/webmarks.git","ssh_url":"git@github.com:Treora/webmarks.git","clone_url":"https://github.com/Treora/webmarks.git","svn_url":"https://github.com/Treora/webmarks","homepage":"","size":8949,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":"WorldBrain:master","ref":"master","sha":"495edb3c119a37bbb4422dffae99f3f824b3b2fb","user":{"login":"WorldBrain","id":9511853,"avatar_url":"https://avatars.githubusercontent.com/u/9511853?v=3","gravatar_id":"","url":"https://api.github.com/users/WorldBrain","html_url":"https://github.com/WorldBrain","followers_url":"https://api.github.com/users/WorldBrain/followers","following_url":"https://api.github.com/users/WorldBrain/following{/other_user}","gists_url":"https://api.github.com/users/WorldBrain/gists{/gist_id}","starred_url":"https://api.github.com/users/WorldBrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WorldBrain/subscriptions","organizations_url":"https://api.github.com/users/WorldBrain/orgs","repos_url":"https://api.github.com/users/WorldBrain/repos","events_url":"https://api.github.com/users/WorldBrain/events{/privacy}","received_events_url":"https://api.github.com/users/WorldBrain/received_events","type":"Organization","site_admin":false},"repo":{"id":63450839,"name":"webmarks","full_name":"WorldBrain/webmarks","owner":{"login":"WorldBrain","id":9511853,"avatar_url":"https://avatars.githubusercontent.com/u/9511853?v=3","gravatar_id":"","url":"https://api.github.com/users/WorldBrain","html_url":"https://github.com/WorldBrain","followers_url":"https://api.github.com/users/WorldBrain/followers","following_url":"https://api.github.com/users/WorldBrain/following{/other_user}","gists_url":"https://api.github.com/users/WorldBrain/gists{/gist_id}","starred_url":"https://api.github.com/users/WorldBrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WorldBrain/subscriptions","organizations_url":"https://api.github.com/users/WorldBrain/orgs","repos_url":"https://api.github.com/users/WorldBrain/repos","events_url":"https://api.github.com/users/WorldBrain/events{/privacy}","received_events_url":"https://api.github.com/users/WorldBrain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WorldBrain/webmarks","description":"Webmarks front-end repo. ","fork":false,"url":"https://api.github.com/repos/WorldBrain/webmarks","forks_url":"https://api.github.com/repos/WorldBrain/webmarks/forks","keys_url":"https://api.github.com/repos/WorldBrain/webmarks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WorldBrain/webmarks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WorldBrain/webmarks/teams","hooks_url":"https://api.github.com/repos/WorldBrain/webmarks/hooks","issue_events_url":"https://api.github.com/repos/WorldBrain/webmarks/issues/events{/number}","events_url":"https://api.github.com/repos/WorldBrain/webmarks/events","assignees_url":"https://api.github.com/repos/WorldBrain/webmarks/assignees{/user}","branches_url":"https://api.github.com/repos/WorldBrain/webmarks/branches{/branch}","tags_url":"https://api.github.com/repos/WorldBrain/webmarks/tags","blobs_url":"https://api.github.com/repos/WorldBrain/webmarks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WorldBrain/webmarks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WorldBrain/webmarks/git/refs{/sha}","trees_url":"https://api.github.com/repos/WorldBrain/webmarks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WorldBrain/webmarks/statuses/{sha}","languages_url":"https://api.github.com/repos/WorldBrain/webmarks/languages","stargazers_url":"https://api.github.com/repos/WorldBrain/webmarks/stargazers","contributors_url":"https://api.github.com/repos/WorldBrain/webmarks/contributors","subscribers_url":"https://api.github.com/repos/WorldBrain/webmarks/subscribers","subscription_url":"https://api.github.com/repos/WorldBrain/webmarks/subscription","commits_url":"https://api.github.com/repos/WorldBrain/webmarks/commits{/sha}","git_commits_url":"https://api.github.com/repos/WorldBrain/webmarks/git/commits{/sha}","comments_url":"https://api.github.com/repos/WorldBrain/webmarks/comments{/number}","issue_comment_url":"https://api.github.com/repos/WorldBrain/webmarks/issues/comments{/number}","contents_url":"https://api.github.com/repos/WorldBrain/webmarks/contents/{+path}","compare_url":"https://api.github.com/repos/WorldBrain/webmarks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WorldBrain/webmarks/merges","archive_url":"https://api.github.com/repos/WorldBrain/webmarks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WorldBrain/webmarks/downloads","issues_url":"https://api.github.com/repos/WorldBrain/webmarks/issues{/number}","pulls_url":"https://api.github.com/repos/WorldBrain/webmarks/pulls{/number}","milestones_url":"https://api.github.com/repos/WorldBrain/webmarks/milestones{/number}","notifications_url":"https://api.github.com/repos/WorldBrain/webmarks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WorldBrain/webmarks/labels{/name}","releases_url":"https://api.github.com/repos/WorldBrain/webmarks/releases{/id}","deployments_url":"https://api.github.com/repos/WorldBrain/webmarks/deployments","created_at":"2016-07-15T21:03:32Z","updated_at":"2016-08-12T10:02:01Z","pushed_at":"2016-10-11T18:43:29Z","git_url":"git://github.com/WorldBrain/webmarks.git","ssh_url":"git@github.com:WorldBrain/webmarks.git","clone_url":"https://github.com/WorldBrain/webmarks.git","svn_url":"https://github.com/WorldBrain/webmarks","homepage":"","size":8940,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":11,"forks":6,"open_issues":11,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WorldBrain/webmarks/pulls/37"},"html":{"href":"https://github.com/WorldBrain/webmarks/pull/37"},"issue":{"href":"https://api.github.com/repos/WorldBrain/webmarks/issues/37"},"comments":{"href":"https://api.github.com/repos/WorldBrain/webmarks/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/WorldBrain/webmarks/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/WorldBrain/webmarks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WorldBrain/webmarks/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/WorldBrain/webmarks/statuses/88883f362bb9b62eab5f612b98e3279ec0f49255"}}}}
{"actor":{"display_login":"Treora"}}