{"action":"created","comment":{"url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/comments/93464921","pull_request_review_id":13993098,"id":93464921,"diff_hunk":"@@ -9,6 +14,47 @@ import LabelList from './LabelList';\n import Label from 'react-bootstrap/lib/Label';\n import LoadSpinner from './LoadSpinner';\n import getAttr from '../utils/getAttr';\n+import HearingsSearch from './HearingsSearch';\n+import toLower from 'lodash/toLower';\n+import upperFirst from 'lodash/upperFirst';\n+\n+\n+const HearingListTabs = () =>\n+  <Nav className=\"hearing-list__tabs\" bsStyle=\"tabs\" style={{width: '100%'}} activeKey=\"1\" pullRight={1}>\n+    <NavItem eventKey=\"3\" disabled style={{width: '70%'}}/>\n+    <NavItem eventKey=\"1\" href=\"/home\">Lista</NavItem>\n+    <NavItem eventKey=\"2\" title=\"Item\">Kartta</NavItem>\n+  </Nav>;\n+\n+const HearingListFilters = ({labels, handleChangeFilter, handleSort}) =>\n+  <div className=\"hearing-list__filter-bar\">\n+    <FormGroup controlId=\"formControlsSelect\" className=\"hearing-list__filter-bar-filter\">\n+      <ControlLabel><FormattedMessage id=\"sort\"/></ControlLabel>\n+      <FormControl componentClass=\"select\" placeholder=\"select\" onChange={(event) => handleSort(event.target.value)}>\n+        <option value=\"-created_at\"><FormattedMessage id=\"newestFirst\"/></option>\n+        <option value=\"created_at\"><FormattedMessage id=\"oldestFirst\"/></option>\n+        <option value=\"-close_at\"><FormattedMessage id=\"lastClosing\"/></option>\n+        <option value=\"close_at\"><FormattedMessage id=\"firstClosing\"/></option>\n+        <option value=\"-open_at\"><FormattedMessage id=\"lastOpen\"/></option>\n+        <option value=\"open_at\"><FormattedMessage id=\"firstOpen\"/></option>\n+        <option value=\"-n_comments\"><FormattedMessage id=\"mostCommented\"/></option>\n+        <option value=\"n_comments\"><FormattedMessage id=\"leastCommented\"/></option>\n+      </FormControl>\n+    </FormGroup>\n+    {labels.length !== 0 && <FormGroup controlId=\"formControlsSelect\" className=\"hearing-list__filter-bar-filter\">\n+      <ControlLabel><FormattedMessage id=\"chooseTopic\"/></ControlLabel>\n+      <FormControl componentClass=\"select\" placeholder=\"select\" onChange={(event) => handleChangeFilter(event.target.value)}>","path":"src/components/HearingList.js","position":44,"original_position":44,"commit_id":"c1378af590e1ff13ab29d4a1c44432a8724c321d","original_commit_id":"c1378af590e1ff13ab29d4a1c44432a8724c321d","user":{"login":"Rikuoja","id":9367712,"avatar_url":"https://avatars.githubusercontent.com/u/9367712?v=3","gravatar_id":"","url":"https://api.github.com/users/Rikuoja","html_url":"https://github.com/Rikuoja","followers_url":"https://api.github.com/users/Rikuoja/followers","following_url":"https://api.github.com/users/Rikuoja/following{/other_user}","gists_url":"https://api.github.com/users/Rikuoja/gists{/gist_id}","starred_url":"https://api.github.com/users/Rikuoja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rikuoja/subscriptions","organizations_url":"https://api.github.com/users/Rikuoja/orgs","repos_url":"https://api.github.com/users/Rikuoja/repos","events_url":"https://api.github.com/users/Rikuoja/events{/privacy}","received_events_url":"https://api.github.com/users/Rikuoja/received_events","type":"User","site_admin":false},"body":"Edit: I added the API filter for label searching. So you could use `/v1/label/?label=text` to search and autocomplete labels, matching the text typed by user.","created_at":"2016-12-21T15:57:58Z","updated_at":"2016-12-21T15:57:58Z","html_url":"https://github.com/City-of-Helsinki/kerrokantasi-ui/pull/291#discussion_r93464921","pull_request_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/291","_links":{"self":{"href":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/comments/93464921"},"html":{"href":"https://github.com/City-of-Helsinki/kerrokantasi-ui/pull/291#discussion_r93464921"},"pull_request":{"href":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/291"}}},"pull_request":{"url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/291","id":98944845,"html_url":"https://github.com/City-of-Helsinki/kerrokantasi-ui/pull/291","diff_url":"https://github.com/City-of-Helsinki/kerrokantasi-ui/pull/291.diff","patch_url":"https://github.com/City-of-Helsinki/kerrokantasi-ui/pull/291.patch","issue_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/issues/291","number":291,"state":"open","locked":false,"title":"Feature/hearing list search","user":{"login":"jonnetanninen","id":15027794,"avatar_url":"https://avatars.githubusercontent.com/u/15027794?v=3","gravatar_id":"","url":"https://api.github.com/users/jonnetanninen","html_url":"https://github.com/jonnetanninen","followers_url":"https://api.github.com/users/jonnetanninen/followers","following_url":"https://api.github.com/users/jonnetanninen/following{/other_user}","gists_url":"https://api.github.com/users/jonnetanninen/gists{/gist_id}","starred_url":"https://api.github.com/users/jonnetanninen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonnetanninen/subscriptions","organizations_url":"https://api.github.com/users/jonnetanninen/orgs","repos_url":"https://api.github.com/users/jonnetanninen/repos","events_url":"https://api.github.com/users/jonnetanninen/events{/privacy}","received_events_url":"https://api.github.com/users/jonnetanninen/received_events","type":"User","site_admin":false},"body":"Fixes #255","created_at":"2016-12-21T14:46:03Z","updated_at":"2016-12-21T15:57:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9ef93e7856c8422382b0e4e1d08b3698486eb800","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/291/commits","review_comments_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/291/comments","review_comment_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/issues/291/comments","statuses_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/statuses/c1378af590e1ff13ab29d4a1c44432a8724c321d","head":{"label":"vaaralav:feature/hearing-list-search","ref":"feature/hearing-list-search","sha":"c1378af590e1ff13ab29d4a1c44432a8724c321d","user":{"login":"vaaralav","id":8571541,"avatar_url":"https://avatars.githubusercontent.com/u/8571541?v=3","gravatar_id":"","url":"https://api.github.com/users/vaaralav","html_url":"https://github.com/vaaralav","followers_url":"https://api.github.com/users/vaaralav/followers","following_url":"https://api.github.com/users/vaaralav/following{/other_user}","gists_url":"https://api.github.com/users/vaaralav/gists{/gist_id}","starred_url":"https://api.github.com/users/vaaralav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vaaralav/subscriptions","organizations_url":"https://api.github.com/users/vaaralav/orgs","repos_url":"https://api.github.com/users/vaaralav/repos","events_url":"https://api.github.com/users/vaaralav/events{/privacy}","received_events_url":"https://api.github.com/users/vaaralav/received_events","type":"User","site_admin":false},"repo":{"id":74758435,"name":"kerrokantasi-ui","full_name":"vaaralav/kerrokantasi-ui","owner":{"login":"vaaralav","id":8571541,"avatar_url":"https://avatars.githubusercontent.com/u/8571541?v=3","gravatar_id":"","url":"https://api.github.com/users/vaaralav","html_url":"https://github.com/vaaralav","followers_url":"https://api.github.com/users/vaaralav/followers","following_url":"https://api.github.com/users/vaaralav/following{/other_user}","gists_url":"https://api.github.com/users/vaaralav/gists{/gist_id}","starred_url":"https://api.github.com/users/vaaralav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vaaralav/subscriptions","organizations_url":"https://api.github.com/users/vaaralav/orgs","repos_url":"https://api.github.com/users/vaaralav/repos","events_url":"https://api.github.com/users/vaaralav/events{/privacy}","received_events_url":"https://api.github.com/users/vaaralav/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vaaralav/kerrokantasi-ui","description":"Kerro kantasi participatory democracy UI","fork":true,"url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui","forks_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/forks","keys_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/teams","hooks_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/hooks","issue_events_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/issues/events{/number}","events_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/events","assignees_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/assignees{/user}","branches_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/branches{/branch}","tags_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/tags","blobs_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/languages","stargazers_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/stargazers","contributors_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/contributors","subscribers_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/subscribers","subscription_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/subscription","commits_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/contents/{+path}","compare_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/merges","archive_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/downloads","issues_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/issues{/number}","pulls_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/labels{/name}","releases_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/releases{/id}","deployments_url":"https://api.github.com/repos/vaaralav/kerrokantasi-ui/deployments","created_at":"2016-11-25T12:55:03Z","updated_at":"2016-11-25T12:55:04Z","pushed_at":"2016-12-21T15:57:12Z","git_url":"git://github.com/vaaralav/kerrokantasi-ui.git","ssh_url":"git@github.com:vaaralav/kerrokantasi-ui.git","clone_url":"https://github.com/vaaralav/kerrokantasi-ui.git","svn_url":"https://github.com/vaaralav/kerrokantasi-ui","homepage":null,"size":2498,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"City-of-Helsinki:master","ref":"master","sha":"2c69dd6a49b47e2978140e1108d994e838b8889b","user":{"login":"City-of-Helsinki","id":1875564,"avatar_url":"https://avatars.githubusercontent.com/u/1875564?v=3","gravatar_id":"","url":"https://api.github.com/users/City-of-Helsinki","html_url":"https://github.com/City-of-Helsinki","followers_url":"https://api.github.com/users/City-of-Helsinki/followers","following_url":"https://api.github.com/users/City-of-Helsinki/following{/other_user}","gists_url":"https://api.github.com/users/City-of-Helsinki/gists{/gist_id}","starred_url":"https://api.github.com/users/City-of-Helsinki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/City-of-Helsinki/subscriptions","organizations_url":"https://api.github.com/users/City-of-Helsinki/orgs","repos_url":"https://api.github.com/users/City-of-Helsinki/repos","events_url":"https://api.github.com/users/City-of-Helsinki/events{/privacy}","received_events_url":"https://api.github.com/users/City-of-Helsinki/received_events","type":"Organization","site_admin":false},"repo":{"id":44660727,"name":"kerrokantasi-ui","full_name":"City-of-Helsinki/kerrokantasi-ui","owner":{"login":"City-of-Helsinki","id":1875564,"avatar_url":"https://avatars.githubusercontent.com/u/1875564?v=3","gravatar_id":"","url":"https://api.github.com/users/City-of-Helsinki","html_url":"https://github.com/City-of-Helsinki","followers_url":"https://api.github.com/users/City-of-Helsinki/followers","following_url":"https://api.github.com/users/City-of-Helsinki/following{/other_user}","gists_url":"https://api.github.com/users/City-of-Helsinki/gists{/gist_id}","starred_url":"https://api.github.com/users/City-of-Helsinki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/City-of-Helsinki/subscriptions","organizations_url":"https://api.github.com/users/City-of-Helsinki/orgs","repos_url":"https://api.github.com/users/City-of-Helsinki/repos","events_url":"https://api.github.com/users/City-of-Helsinki/events{/privacy}","received_events_url":"https://api.github.com/users/City-of-Helsinki/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/City-of-Helsinki/kerrokantasi-ui","description":"Kerro kantasi participatory democracy UI","fork":false,"url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui","forks_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/forks","keys_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/teams","hooks_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/hooks","issue_events_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/issues/events{/number}","events_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/events","assignees_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/assignees{/user}","branches_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/branches{/branch}","tags_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/tags","blobs_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/languages","stargazers_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/stargazers","contributors_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/contributors","subscribers_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/subscribers","subscription_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/subscription","commits_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/contents/{+path}","compare_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/merges","archive_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/downloads","issues_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/issues{/number}","pulls_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/labels{/name}","releases_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/releases{/id}","deployments_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/deployments","created_at":"2015-10-21T07:48:35Z","updated_at":"2016-02-26T08:35:58Z","pushed_at":"2016-12-21T15:20:10Z","git_url":"git://github.com/City-of-Helsinki/kerrokantasi-ui.git","ssh_url":"git@github.com:City-of-Helsinki/kerrokantasi-ui.git","clone_url":"https://github.com/City-of-Helsinki/kerrokantasi-ui.git","svn_url":"https://github.com/City-of-Helsinki/kerrokantasi-ui","homepage":null,"size":2443,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":89,"forks":7,"open_issues":89,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/291"},"html":{"href":"https://github.com/City-of-Helsinki/kerrokantasi-ui/pull/291"},"issue":{"href":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/issues/291"},"comments":{"href":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/issues/291/comments"},"review_comments":{"href":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/291/comments"},"review_comment":{"href":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/291/commits"},"statuses":{"href":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/statuses/c1378af590e1ff13ab29d4a1c44432a8724c321d"}}}}
{"actor":{"display_login":"Rikuoja"}}