{"action":"created","comment":{"url":"https://api.github.com/repos/ndlib/beehive/pulls/comments/41145047","id":41145047,"diff_hunk":"@@ -0,0 +1,94 @@\n+'use strict'\n+var React = require('react');\n+var mui = require('material-ui');\n+\n+var SearchSidebar = React.createClass({\n+  mixins: [PageHeightMixin, MuiThemeMixin],\n+  propTypes: {\n+    collection: React.PropTypes.array,\n+    facets: React.PropTypes.array,\n+    selectedIndex: React.PropTypes.number,\n+    selectedFacet: React.PropTypes.object,\n+    sortOptions: React.PropTypes.array,\n+  },\n+\n+    getInitialState: function () {\n+    return {\n+      show: true\n+    };\n+  },\n+\n+  toggleSidebar: function() {\n+    this.setState({show: !this.state.show});\n+  },\n+\n+  render: function() {\n+    var searchSort;\n+    if(this.props.sortOptions && this.props.sortOptions.length > 1) {\n+        searchSort = (<SearchSort\n+          collection={this.props.collection}\n+          sortOptions={this.props.sortOptions}\n+          selectedIndex={this.props.selectedIndex}\n+        />);\n+    }\n+    return (\n+      <div style={{minHeight: this.getHeight()}}>\n+        <div\n+            className={this.state.show ? \"row-fluid col-sm-2\" : \"row-fluid col-sm-1\"}\n+            style={{","path":"app/assets/javascripts/components/search/SearchSidebar.jsx","position":38,"original_position":38,"commit_id":"09448d7ab6bc4b022bd49d095dc9962c27961713","original_commit_id":"09448d7ab6bc4b022bd49d095dc9962c27961713","user":{"login":"jonhartzler","id":124502,"avatar_url":"https://avatars.githubusercontent.com/u/124502?v=3","gravatar_id":"","url":"https://api.github.com/users/jonhartzler","html_url":"https://github.com/jonhartzler","followers_url":"https://api.github.com/users/jonhartzler/followers","following_url":"https://api.github.com/users/jonhartzler/following{/other_user}","gists_url":"https://api.github.com/users/jonhartzler/gists{/gist_id}","starred_url":"https://api.github.com/users/jonhartzler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonhartzler/subscriptions","organizations_url":"https://api.github.com/users/jonhartzler/orgs","repos_url":"https://api.github.com/users/jonhartzler/repos","events_url":"https://api.github.com/users/jonhartzler/events{/privacy}","received_events_url":"https://api.github.com/users/jonhartzler/received_events","type":"User","site_admin":false},"body":"consider making this a function.  ","created_at":"2015-10-05T13:49:24Z","updated_at":"2015-10-05T13:49:24Z","html_url":"https://github.com/ndlib/beehive/pull/194#discussion_r41145047","pull_request_url":"https://api.github.com/repos/ndlib/beehive/pulls/194","_links":{"self":{"href":"https://api.github.com/repos/ndlib/beehive/pulls/comments/41145047"},"html":{"href":"https://github.com/ndlib/beehive/pull/194#discussion_r41145047"},"pull_request":{"href":"https://api.github.com/repos/ndlib/beehive/pulls/194"}}},"pull_request":{"url":"https://api.github.com/repos/ndlib/beehive/pulls/194","id":46641173,"html_url":"https://github.com/ndlib/beehive/pull/194","diff_url":"https://github.com/ndlib/beehive/pull/194.diff","patch_url":"https://github.com/ndlib/beehive/pull/194.patch","issue_url":"https://api.github.com/repos/ndlib/beehive/issues/194","number":194,"state":"open","locked":false,"title":"Search UI Enhancements","user":{"login":"danthewolfe","id":416559,"avatar_url":"https://avatars.githubusercontent.com/u/416559?v=3","gravatar_id":"","url":"https://api.github.com/users/danthewolfe","html_url":"https://github.com/danthewolfe","followers_url":"https://api.github.com/users/danthewolfe/followers","following_url":"https://api.github.com/users/danthewolfe/following{/other_user}","gists_url":"https://api.github.com/users/danthewolfe/gists{/gist_id}","starred_url":"https://api.github.com/users/danthewolfe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danthewolfe/subscriptions","organizations_url":"https://api.github.com/users/danthewolfe/orgs","repos_url":"https://api.github.com/users/danthewolfe/repos","events_url":"https://api.github.com/users/danthewolfe/events{/privacy}","received_events_url":"https://api.github.com/users/danthewolfe/received_events","type":"User","site_admin":false},"body":"* move sort box\r\n* recolor sortbox\r\n* recolor grid/list buttons\r\n* changes to facet layout\r\n* add collapsable menu for facets and sort box\r\n* some general cleanup of layout","created_at":"2015-10-02T14:28:32Z","updated_at":"2015-10-05T13:49:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ccc75a1a4fdb26f5eb36d3b10b41e3dfb463509","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ndlib/beehive/pulls/194/commits","review_comments_url":"https://api.github.com/repos/ndlib/beehive/pulls/194/comments","review_comment_url":"https://api.github.com/repos/ndlib/beehive/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ndlib/beehive/issues/194/comments","statuses_url":"https://api.github.com/repos/ndlib/beehive/statuses/09448d7ab6bc4b022bd49d095dc9962c27961713","head":{"label":"ndlib:search-ui","ref":"search-ui","sha":"09448d7ab6bc4b022bd49d095dc9962c27961713","user":{"login":"ndlib","id":160943,"avatar_url":"https://avatars.githubusercontent.com/u/160943?v=3","gravatar_id":"","url":"https://api.github.com/users/ndlib","html_url":"https://github.com/ndlib","followers_url":"https://api.github.com/users/ndlib/followers","following_url":"https://api.github.com/users/ndlib/following{/other_user}","gists_url":"https://api.github.com/users/ndlib/gists{/gist_id}","starred_url":"https://api.github.com/users/ndlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndlib/subscriptions","organizations_url":"https://api.github.com/users/ndlib/orgs","repos_url":"https://api.github.com/users/ndlib/repos","events_url":"https://api.github.com/users/ndlib/events{/privacy}","received_events_url":"https://api.github.com/users/ndlib/received_events","type":"Organization","site_admin":false},"repo":{"id":31017337,"name":"beehive","full_name":"ndlib/beehive","owner":{"login":"ndlib","id":160943,"avatar_url":"https://avatars.githubusercontent.com/u/160943?v=3","gravatar_id":"","url":"https://api.github.com/users/ndlib","html_url":"https://github.com/ndlib","followers_url":"https://api.github.com/users/ndlib/followers","following_url":"https://api.github.com/users/ndlib/following{/other_user}","gists_url":"https://api.github.com/users/ndlib/gists{/gist_id}","starred_url":"https://api.github.com/users/ndlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndlib/subscriptions","organizations_url":"https://api.github.com/users/ndlib/orgs","repos_url":"https://api.github.com/users/ndlib/repos","events_url":"https://api.github.com/users/ndlib/events{/privacy}","received_events_url":"https://api.github.com/users/ndlib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ndlib/beehive","description":"Frontend display application for ndlib/honeycomb","fork":false,"url":"https://api.github.com/repos/ndlib/beehive","forks_url":"https://api.github.com/repos/ndlib/beehive/forks","keys_url":"https://api.github.com/repos/ndlib/beehive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndlib/beehive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndlib/beehive/teams","hooks_url":"https://api.github.com/repos/ndlib/beehive/hooks","issue_events_url":"https://api.github.com/repos/ndlib/beehive/issues/events{/number}","events_url":"https://api.github.com/repos/ndlib/beehive/events","assignees_url":"https://api.github.com/repos/ndlib/beehive/assignees{/user}","branches_url":"https://api.github.com/repos/ndlib/beehive/branches{/branch}","tags_url":"https://api.github.com/repos/ndlib/beehive/tags","blobs_url":"https://api.github.com/repos/ndlib/beehive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndlib/beehive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndlib/beehive/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndlib/beehive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndlib/beehive/statuses/{sha}","languages_url":"https://api.github.com/repos/ndlib/beehive/languages","stargazers_url":"https://api.github.com/repos/ndlib/beehive/stargazers","contributors_url":"https://api.github.com/repos/ndlib/beehive/contributors","subscribers_url":"https://api.github.com/repos/ndlib/beehive/subscribers","subscription_url":"https://api.github.com/repos/ndlib/beehive/subscription","commits_url":"https://api.github.com/repos/ndlib/beehive/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndlib/beehive/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndlib/beehive/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndlib/beehive/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndlib/beehive/contents/{+path}","compare_url":"https://api.github.com/repos/ndlib/beehive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndlib/beehive/merges","archive_url":"https://api.github.com/repos/ndlib/beehive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndlib/beehive/downloads","issues_url":"https://api.github.com/repos/ndlib/beehive/issues{/number}","pulls_url":"https://api.github.com/repos/ndlib/beehive/pulls{/number}","milestones_url":"https://api.github.com/repos/ndlib/beehive/milestones{/number}","notifications_url":"https://api.github.com/repos/ndlib/beehive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndlib/beehive/labels{/name}","releases_url":"https://api.github.com/repos/ndlib/beehive/releases{/id}","created_at":"2015-02-19T13:52:59Z","updated_at":"2015-08-17T18:52:08Z","pushed_at":"2015-10-02T17:30:15Z","git_url":"git://github.com/ndlib/beehive.git","ssh_url":"git@github.com:ndlib/beehive.git","clone_url":"https://github.com/ndlib/beehive.git","svn_url":"https://github.com/ndlib/beehive","homepage":"","size":20968,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"ndlib:master","ref":"master","sha":"70a80367435a313715cb3e1956317dbc42273ebe","user":{"login":"ndlib","id":160943,"avatar_url":"https://avatars.githubusercontent.com/u/160943?v=3","gravatar_id":"","url":"https://api.github.com/users/ndlib","html_url":"https://github.com/ndlib","followers_url":"https://api.github.com/users/ndlib/followers","following_url":"https://api.github.com/users/ndlib/following{/other_user}","gists_url":"https://api.github.com/users/ndlib/gists{/gist_id}","starred_url":"https://api.github.com/users/ndlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndlib/subscriptions","organizations_url":"https://api.github.com/users/ndlib/orgs","repos_url":"https://api.github.com/users/ndlib/repos","events_url":"https://api.github.com/users/ndlib/events{/privacy}","received_events_url":"https://api.github.com/users/ndlib/received_events","type":"Organization","site_admin":false},"repo":{"id":31017337,"name":"beehive","full_name":"ndlib/beehive","owner":{"login":"ndlib","id":160943,"avatar_url":"https://avatars.githubusercontent.com/u/160943?v=3","gravatar_id":"","url":"https://api.github.com/users/ndlib","html_url":"https://github.com/ndlib","followers_url":"https://api.github.com/users/ndlib/followers","following_url":"https://api.github.com/users/ndlib/following{/other_user}","gists_url":"https://api.github.com/users/ndlib/gists{/gist_id}","starred_url":"https://api.github.com/users/ndlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndlib/subscriptions","organizations_url":"https://api.github.com/users/ndlib/orgs","repos_url":"https://api.github.com/users/ndlib/repos","events_url":"https://api.github.com/users/ndlib/events{/privacy}","received_events_url":"https://api.github.com/users/ndlib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ndlib/beehive","description":"Frontend display application for ndlib/honeycomb","fork":false,"url":"https://api.github.com/repos/ndlib/beehive","forks_url":"https://api.github.com/repos/ndlib/beehive/forks","keys_url":"https://api.github.com/repos/ndlib/beehive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndlib/beehive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndlib/beehive/teams","hooks_url":"https://api.github.com/repos/ndlib/beehive/hooks","issue_events_url":"https://api.github.com/repos/ndlib/beehive/issues/events{/number}","events_url":"https://api.github.com/repos/ndlib/beehive/events","assignees_url":"https://api.github.com/repos/ndlib/beehive/assignees{/user}","branches_url":"https://api.github.com/repos/ndlib/beehive/branches{/branch}","tags_url":"https://api.github.com/repos/ndlib/beehive/tags","blobs_url":"https://api.github.com/repos/ndlib/beehive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndlib/beehive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndlib/beehive/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndlib/beehive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndlib/beehive/statuses/{sha}","languages_url":"https://api.github.com/repos/ndlib/beehive/languages","stargazers_url":"https://api.github.com/repos/ndlib/beehive/stargazers","contributors_url":"https://api.github.com/repos/ndlib/beehive/contributors","subscribers_url":"https://api.github.com/repos/ndlib/beehive/subscribers","subscription_url":"https://api.github.com/repos/ndlib/beehive/subscription","commits_url":"https://api.github.com/repos/ndlib/beehive/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndlib/beehive/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndlib/beehive/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndlib/beehive/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndlib/beehive/contents/{+path}","compare_url":"https://api.github.com/repos/ndlib/beehive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndlib/beehive/merges","archive_url":"https://api.github.com/repos/ndlib/beehive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndlib/beehive/downloads","issues_url":"https://api.github.com/repos/ndlib/beehive/issues{/number}","pulls_url":"https://api.github.com/repos/ndlib/beehive/pulls{/number}","milestones_url":"https://api.github.com/repos/ndlib/beehive/milestones{/number}","notifications_url":"https://api.github.com/repos/ndlib/beehive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndlib/beehive/labels{/name}","releases_url":"https://api.github.com/repos/ndlib/beehive/releases{/id}","created_at":"2015-02-19T13:52:59Z","updated_at":"2015-08-17T18:52:08Z","pushed_at":"2015-10-02T17:30:15Z","git_url":"git://github.com/ndlib/beehive.git","ssh_url":"git@github.com:ndlib/beehive.git","clone_url":"https://github.com/ndlib/beehive.git","svn_url":"https://github.com/ndlib/beehive","homepage":"","size":20968,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ndlib/beehive/pulls/194"},"html":{"href":"https://github.com/ndlib/beehive/pull/194"},"issue":{"href":"https://api.github.com/repos/ndlib/beehive/issues/194"},"comments":{"href":"https://api.github.com/repos/ndlib/beehive/issues/194/comments"},"review_comments":{"href":"https://api.github.com/repos/ndlib/beehive/pulls/194/comments"},"review_comment":{"href":"https://api.github.com/repos/ndlib/beehive/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ndlib/beehive/pulls/194/commits"},"statuses":{"href":"https://api.github.com/repos/ndlib/beehive/statuses/09448d7ab6bc4b022bd49d095dc9962c27961713"}}}}