{"action":"created","comment":{"url":"https://api.github.com/repos/busyorg/busy/pulls/comments/122192176","pull_request_review_id":44285118,"id":122192176,"diff_hunk":"@@ -0,0 +1,78 @@\n+import React, { PropTypes } from 'react';\n+import { Popover } from 'antd';\n+import PopoverMenu, { PopoverMenuItem } from './PopoverMenu/PopoverMenu';\n+import Topic from './Button/Topic';\n+import './TopicSelector.less';\n+\n+class TopicSelector extends React.Component {\n+  static propTypes = {\n+    topics: PropTypes.arrayOf(PropTypes.string),\n+    onTopicClose: PropTypes.func,\n+    onSortChange: PropTypes.func\n+  }\n+\n+  static defaultProps = {\n+    topics: [],\n+    onTopicClose: () => {},\n+    onSortChange: () => {},\n+  }\n+\n+  state = {\n+    currentSort: 'trending',\n+    popoverVisible: false\n+  }\n+\n+  onSelect = (key) => {\n+    this.setState({ currentSort: key, popoverVisible: false }, () => {\n+      this.props.onSortChange(key);\n+    });\n+  };\n+  onVisibleChange = visible => this.setState({ popoverVisible: visible });\n+\n+  render() {\n+    const { topics, onTopicClose } = this.props;\n+    const { currentSort, popoverVisible } = this.state;\n+\n+    return (\n+      <div className=\"TopicSelector\">\n+        <div className=\"TopicSelector__topics\">\n+          {topics && topics.map(topic => (\n+            <Topic\n+              key={topic}\n+              closable\n+              name={topic}\n+              onClose={onTopicClose}\n+            />))}\n+        </div>\n+        <div className=\"TopicSelector__sort\">\n+          Sort by:\n+          <Popover\n+            trigger=\"click\"\n+            visible={popoverVisible}\n+            onVisibleChange={this.onVisibleChange}\n+            content={\n+              <PopoverMenu onSelect={this.onSelect}>\n+                <PopoverMenuItem key=\"trending\">Trending</PopoverMenuItem>\n+                <PopoverMenuItem key=\"created\">Created</PopoverMenuItem>\n+                <PopoverMenuItem key=\"active\">Active</PopoverMenuItem>\n+                <PopoverMenuItem key=\"cashout\">Active</PopoverMenuItem>","path":"src/components/TopicSelector.js","position":58,"original_position":58,"commit_id":"1cf4c8cef52035de2f8a1b14b9b04c2030a1ecb7","original_commit_id":"1cf4c8cef52035de2f8a1b14b9b04c2030a1ecb7","user":{"login":"adcpm","id":16245250,"avatar_url":"https://avatars0.githubusercontent.com/u/16245250?v=3","gravatar_id":"","url":"https://api.github.com/users/adcpm","html_url":"https://github.com/adcpm","followers_url":"https://api.github.com/users/adcpm/followers","following_url":"https://api.github.com/users/adcpm/following{/other_user}","gists_url":"https://api.github.com/users/adcpm/gists{/gist_id}","starred_url":"https://api.github.com/users/adcpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adcpm/subscriptions","organizations_url":"https://api.github.com/users/adcpm/orgs","repos_url":"https://api.github.com/users/adcpm/repos","events_url":"https://api.github.com/users/adcpm/events{/privacy}","received_events_url":"https://api.github.com/users/adcpm/received_events","type":"User","site_admin":false},"body":"There is 2 time \"Active\" label :)","created_at":"2017-06-15T12:39:19Z","updated_at":"2017-06-15T12:39:19Z","html_url":"https://github.com/busyorg/busy/pull/546#discussion_r122192176","pull_request_url":"https://api.github.com/repos/busyorg/busy/pulls/546","_links":{"self":{"href":"https://api.github.com/repos/busyorg/busy/pulls/comments/122192176"},"html":{"href":"https://github.com/busyorg/busy/pull/546#discussion_r122192176"},"pull_request":{"href":"https://api.github.com/repos/busyorg/busy/pulls/546"}}},"pull_request":{"url":"https://api.github.com/repos/busyorg/busy/pulls/546","id":125808896,"html_url":"https://github.com/busyorg/busy/pull/546","diff_url":"https://github.com/busyorg/busy/pull/546.diff","patch_url":"https://github.com/busyorg/busy/pull/546.patch","issue_url":"https://api.github.com/repos/busyorg/busy/issues/546","number":546,"state":"open","locked":false,"title":"Add TopicSelector","user":{"login":"Sekhmet","id":1968722,"avatar_url":"https://avatars0.githubusercontent.com/u/1968722?v=3","gravatar_id":"","url":"https://api.github.com/users/Sekhmet","html_url":"https://github.com/Sekhmet","followers_url":"https://api.github.com/users/Sekhmet/followers","following_url":"https://api.github.com/users/Sekhmet/following{/other_user}","gists_url":"https://api.github.com/users/Sekhmet/gists{/gist_id}","starred_url":"https://api.github.com/users/Sekhmet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sekhmet/subscriptions","organizations_url":"https://api.github.com/users/Sekhmet/orgs","repos_url":"https://api.github.com/users/Sekhmet/repos","events_url":"https://api.github.com/users/Sekhmet/events{/privacy}","received_events_url":"https://api.github.com/users/Sekhmet/received_events","type":"User","site_admin":false},"body":"**TopicSelector** component:\r\n![image](https://user-images.githubusercontent.com/1968722/27180952-c93a3b9c-51d5-11e7-8180-0c0c2a4fa170.png)\r\n","created_at":"2017-06-15T12:21:01Z","updated_at":"2017-06-15T12:39:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fd70c8888a948bc19a7f0d2bca76e7d772453107","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/busyorg/busy/pulls/546/commits","review_comments_url":"https://api.github.com/repos/busyorg/busy/pulls/546/comments","review_comment_url":"https://api.github.com/repos/busyorg/busy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/busyorg/busy/issues/546/comments","statuses_url":"https://api.github.com/repos/busyorg/busy/statuses/1cf4c8cef52035de2f8a1b14b9b04c2030a1ecb7","head":{"label":"busyorg:nd/topicselector","ref":"nd/topicselector","sha":"1cf4c8cef52035de2f8a1b14b9b04c2030a1ecb7","user":{"login":"busyorg","id":25360286,"avatar_url":"https://avatars3.githubusercontent.com/u/25360286?v=3","gravatar_id":"","url":"https://api.github.com/users/busyorg","html_url":"https://github.com/busyorg","followers_url":"https://api.github.com/users/busyorg/followers","following_url":"https://api.github.com/users/busyorg/following{/other_user}","gists_url":"https://api.github.com/users/busyorg/gists{/gist_id}","starred_url":"https://api.github.com/users/busyorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/busyorg/subscriptions","organizations_url":"https://api.github.com/users/busyorg/orgs","repos_url":"https://api.github.com/users/busyorg/repos","events_url":"https://api.github.com/users/busyorg/events{/privacy}","received_events_url":"https://api.github.com/users/busyorg/received_events","type":"Organization","site_admin":false},"repo":{"id":64382195,"name":"busy","full_name":"busyorg/busy","owner":{"login":"busyorg","id":25360286,"avatar_url":"https://avatars3.githubusercontent.com/u/25360286?v=3","gravatar_id":"","url":"https://api.github.com/users/busyorg","html_url":"https://github.com/busyorg","followers_url":"https://api.github.com/users/busyorg/followers","following_url":"https://api.github.com/users/busyorg/following{/other_user}","gists_url":"https://api.github.com/users/busyorg/gists{/gist_id}","starred_url":"https://api.github.com/users/busyorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/busyorg/subscriptions","organizations_url":"https://api.github.com/users/busyorg/orgs","repos_url":"https://api.github.com/users/busyorg/repos","events_url":"https://api.github.com/users/busyorg/events{/privacy}","received_events_url":"https://api.github.com/users/busyorg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/busyorg/busy","description":"Decentralized social network based on Steem blockchain","fork":false,"url":"https://api.github.com/repos/busyorg/busy","forks_url":"https://api.github.com/repos/busyorg/busy/forks","keys_url":"https://api.github.com/repos/busyorg/busy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/busyorg/busy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/busyorg/busy/teams","hooks_url":"https://api.github.com/repos/busyorg/busy/hooks","issue_events_url":"https://api.github.com/repos/busyorg/busy/issues/events{/number}","events_url":"https://api.github.com/repos/busyorg/busy/events","assignees_url":"https://api.github.com/repos/busyorg/busy/assignees{/user}","branches_url":"https://api.github.com/repos/busyorg/busy/branches{/branch}","tags_url":"https://api.github.com/repos/busyorg/busy/tags","blobs_url":"https://api.github.com/repos/busyorg/busy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/busyorg/busy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/busyorg/busy/git/refs{/sha}","trees_url":"https://api.github.com/repos/busyorg/busy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/busyorg/busy/statuses/{sha}","languages_url":"https://api.github.com/repos/busyorg/busy/languages","stargazers_url":"https://api.github.com/repos/busyorg/busy/stargazers","contributors_url":"https://api.github.com/repos/busyorg/busy/contributors","subscribers_url":"https://api.github.com/repos/busyorg/busy/subscribers","subscription_url":"https://api.github.com/repos/busyorg/busy/subscription","commits_url":"https://api.github.com/repos/busyorg/busy/commits{/sha}","git_commits_url":"https://api.github.com/repos/busyorg/busy/git/commits{/sha}","comments_url":"https://api.github.com/repos/busyorg/busy/comments{/number}","issue_comment_url":"https://api.github.com/repos/busyorg/busy/issues/comments{/number}","contents_url":"https://api.github.com/repos/busyorg/busy/contents/{+path}","compare_url":"https://api.github.com/repos/busyorg/busy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/busyorg/busy/merges","archive_url":"https://api.github.com/repos/busyorg/busy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/busyorg/busy/downloads","issues_url":"https://api.github.com/repos/busyorg/busy/issues{/number}","pulls_url":"https://api.github.com/repos/busyorg/busy/pulls{/number}","milestones_url":"https://api.github.com/repos/busyorg/busy/milestones{/number}","notifications_url":"https://api.github.com/repos/busyorg/busy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/busyorg/busy/labels{/name}","releases_url":"https://api.github.com/repos/busyorg/busy/releases{/id}","deployments_url":"https://api.github.com/repos/busyorg/busy/deployments","created_at":"2016-07-28T09:27:04Z","updated_at":"2017-06-07T19:13:29Z","pushed_at":"2017-06-15T12:28:26Z","git_url":"git://github.com/busyorg/busy.git","ssh_url":"git@github.com:busyorg/busy.git","clone_url":"https://github.com/busyorg/busy.git","svn_url":"https://github.com/busyorg/busy","homepage":"https://busy.org/","size":56365,"stargazers_count":36,"watchers_count":36,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":52,"forks":9,"open_issues":52,"watchers":36,"default_branch":"dev"}},"base":{"label":"busyorg:new-design","ref":"new-design","sha":"d23a0b55499f4754cd3742cda4949c71c5fbd5fc","user":{"login":"busyorg","id":25360286,"avatar_url":"https://avatars3.githubusercontent.com/u/25360286?v=3","gravatar_id":"","url":"https://api.github.com/users/busyorg","html_url":"https://github.com/busyorg","followers_url":"https://api.github.com/users/busyorg/followers","following_url":"https://api.github.com/users/busyorg/following{/other_user}","gists_url":"https://api.github.com/users/busyorg/gists{/gist_id}","starred_url":"https://api.github.com/users/busyorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/busyorg/subscriptions","organizations_url":"https://api.github.com/users/busyorg/orgs","repos_url":"https://api.github.com/users/busyorg/repos","events_url":"https://api.github.com/users/busyorg/events{/privacy}","received_events_url":"https://api.github.com/users/busyorg/received_events","type":"Organization","site_admin":false},"repo":{"id":64382195,"name":"busy","full_name":"busyorg/busy","owner":{"login":"busyorg","id":25360286,"avatar_url":"https://avatars3.githubusercontent.com/u/25360286?v=3","gravatar_id":"","url":"https://api.github.com/users/busyorg","html_url":"https://github.com/busyorg","followers_url":"https://api.github.com/users/busyorg/followers","following_url":"https://api.github.com/users/busyorg/following{/other_user}","gists_url":"https://api.github.com/users/busyorg/gists{/gist_id}","starred_url":"https://api.github.com/users/busyorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/busyorg/subscriptions","organizations_url":"https://api.github.com/users/busyorg/orgs","repos_url":"https://api.github.com/users/busyorg/repos","events_url":"https://api.github.com/users/busyorg/events{/privacy}","received_events_url":"https://api.github.com/users/busyorg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/busyorg/busy","description":"Decentralized social network based on Steem blockchain","fork":false,"url":"https://api.github.com/repos/busyorg/busy","forks_url":"https://api.github.com/repos/busyorg/busy/forks","keys_url":"https://api.github.com/repos/busyorg/busy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/busyorg/busy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/busyorg/busy/teams","hooks_url":"https://api.github.com/repos/busyorg/busy/hooks","issue_events_url":"https://api.github.com/repos/busyorg/busy/issues/events{/number}","events_url":"https://api.github.com/repos/busyorg/busy/events","assignees_url":"https://api.github.com/repos/busyorg/busy/assignees{/user}","branches_url":"https://api.github.com/repos/busyorg/busy/branches{/branch}","tags_url":"https://api.github.com/repos/busyorg/busy/tags","blobs_url":"https://api.github.com/repos/busyorg/busy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/busyorg/busy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/busyorg/busy/git/refs{/sha}","trees_url":"https://api.github.com/repos/busyorg/busy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/busyorg/busy/statuses/{sha}","languages_url":"https://api.github.com/repos/busyorg/busy/languages","stargazers_url":"https://api.github.com/repos/busyorg/busy/stargazers","contributors_url":"https://api.github.com/repos/busyorg/busy/contributors","subscribers_url":"https://api.github.com/repos/busyorg/busy/subscribers","subscription_url":"https://api.github.com/repos/busyorg/busy/subscription","commits_url":"https://api.github.com/repos/busyorg/busy/commits{/sha}","git_commits_url":"https://api.github.com/repos/busyorg/busy/git/commits{/sha}","comments_url":"https://api.github.com/repos/busyorg/busy/comments{/number}","issue_comment_url":"https://api.github.com/repos/busyorg/busy/issues/comments{/number}","contents_url":"https://api.github.com/repos/busyorg/busy/contents/{+path}","compare_url":"https://api.github.com/repos/busyorg/busy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/busyorg/busy/merges","archive_url":"https://api.github.com/repos/busyorg/busy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/busyorg/busy/downloads","issues_url":"https://api.github.com/repos/busyorg/busy/issues{/number}","pulls_url":"https://api.github.com/repos/busyorg/busy/pulls{/number}","milestones_url":"https://api.github.com/repos/busyorg/busy/milestones{/number}","notifications_url":"https://api.github.com/repos/busyorg/busy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/busyorg/busy/labels{/name}","releases_url":"https://api.github.com/repos/busyorg/busy/releases{/id}","deployments_url":"https://api.github.com/repos/busyorg/busy/deployments","created_at":"2016-07-28T09:27:04Z","updated_at":"2017-06-07T19:13:29Z","pushed_at":"2017-06-15T12:28:26Z","git_url":"git://github.com/busyorg/busy.git","ssh_url":"git@github.com:busyorg/busy.git","clone_url":"https://github.com/busyorg/busy.git","svn_url":"https://github.com/busyorg/busy","homepage":"https://busy.org/","size":56365,"stargazers_count":36,"watchers_count":36,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":52,"forks":9,"open_issues":52,"watchers":36,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/busyorg/busy/pulls/546"},"html":{"href":"https://github.com/busyorg/busy/pull/546"},"issue":{"href":"https://api.github.com/repos/busyorg/busy/issues/546"},"comments":{"href":"https://api.github.com/repos/busyorg/busy/issues/546/comments"},"review_comments":{"href":"https://api.github.com/repos/busyorg/busy/pulls/546/comments"},"review_comment":{"href":"https://api.github.com/repos/busyorg/busy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/busyorg/busy/pulls/546/commits"},"statuses":{"href":"https://api.github.com/repos/busyorg/busy/statuses/1cf4c8cef52035de2f8a1b14b9b04c2030a1ecb7"}}}}
{"actor":{"display_login":"adcpm"}}