{"action":"created","comment":{"url":"https://api.github.com/repos/zendesk/linksf/pulls/comments/74355176","id":74355176,"diff_hunk":"@@ -0,0 +1,77 @@\n+/**\n+ * React Static Boilerplate\n+ * https://github.com/kriasoft/react-static-boilerplate\n+ *\n+ * Copyright © 2015-present Kriasoft, LLC. All rights reserved.\n+ *\n+ * This source code is licensed under the MIT license found in the\n+ * LICENSE.txt file in the root directory of this source tree.\n+ */\n+\n+import React, { PropTypes } from 'react'\n+import AdminTopBar from '../AdminTopBar'\n+import LocationList from '../LocationList'\n+import history from '../../core/history'\n+import { fetchLocations } from '../../core/firebaseApi'\n+\n+class Admin extends React.Component {\n+  constructor(props) {\n+    super(props)\n+    this.state = {\n+      showOpen: false,\n+      locations: [],\n+      filteredLocations: null,\n+    }\n+  }\n+\n+  componentWillMount() {\n+    fetchLocations()\n+      .then(locations => {\n+        this.setState(Object.assign({}, this.state, { locations }))\n+      })\n+  }\n+\n+  handleSearch = (event) => {\n+    const searchTerm = event.currentTarget.value\n+    let { locations, filteredLocations } = this.state\n+\n+    if (!searchTerm || searchTerm.length < 1) {","path":"components/Admin/Admin.js","position":38,"original_position":38,"commit_id":"fb71467882431f248e3898c946325b09b2860302","original_commit_id":"fb71467882431f248e3898c946325b09b2860302","user":{"login":"craig-day","id":6731804,"avatar_url":"https://avatars.githubusercontent.com/u/6731804?v=3","gravatar_id":"","url":"https://api.github.com/users/craig-day","html_url":"https://github.com/craig-day","followers_url":"https://api.github.com/users/craig-day/followers","following_url":"https://api.github.com/users/craig-day/following{/other_user}","gists_url":"https://api.github.com/users/craig-day/gists{/gist_id}","starred_url":"https://api.github.com/users/craig-day/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craig-day/subscriptions","organizations_url":"https://api.github.com/users/craig-day/orgs","repos_url":"https://api.github.com/users/craig-day/repos","events_url":"https://api.github.com/users/craig-day/events{/privacy}","received_events_url":"https://api.github.com/users/craig-day/received_events","type":"User","site_admin":false},"body":"This could just be `!searchTerm` because in JS `!\"\" == true`.  Maybe for a future PR.","created_at":"2016-08-11T00:22:35Z","updated_at":"2016-08-11T00:22:35Z","html_url":"https://github.com/zendesk/linksf/pull/293#discussion_r74355176","pull_request_url":"https://api.github.com/repos/zendesk/linksf/pulls/293","_links":{"self":{"href":"https://api.github.com/repos/zendesk/linksf/pulls/comments/74355176"},"html":{"href":"https://github.com/zendesk/linksf/pull/293#discussion_r74355176"},"pull_request":{"href":"https://api.github.com/repos/zendesk/linksf/pulls/293"}}},"pull_request":{"url":"https://api.github.com/repos/zendesk/linksf/pulls/293","id":80888252,"html_url":"https://github.com/zendesk/linksf/pull/293","diff_url":"https://github.com/zendesk/linksf/pull/293.diff","patch_url":"https://github.com/zendesk/linksf/pull/293.patch","issue_url":"https://api.github.com/repos/zendesk/linksf/issues/293","number":293,"state":"open","locked":false,"title":"initial admin pages and filtering on admin page","user":{"login":"craig-day","id":6731804,"avatar_url":"https://avatars.githubusercontent.com/u/6731804?v=3","gravatar_id":"","url":"https://api.github.com/users/craig-day","html_url":"https://github.com/craig-day","followers_url":"https://api.github.com/users/craig-day/followers","following_url":"https://api.github.com/users/craig-day/following{/other_user}","gists_url":"https://api.github.com/users/craig-day/gists{/gist_id}","starred_url":"https://api.github.com/users/craig-day/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craig-day/subscriptions","organizations_url":"https://api.github.com/users/craig-day/orgs","repos_url":"https://api.github.com/users/craig-day/repos","events_url":"https://api.github.com/users/craig-day/events{/privacy}","received_events_url":"https://api.github.com/users/craig-day/received_events","type":"User","site_admin":false},"body":"Brings in a bunch of stuff to get admin pages working. \r\n\r\n![](http://content.screencast.com/users/CDay.zendesk/folders/Jing/media/4d47128e-ab87-428c-a6ce-85fc1b82c666/00000268.png)\r\n\r\n/cc @zendesk/volunteer @zendesk/linksf ","created_at":"2016-08-11T00:06:46Z","updated_at":"2016-08-11T00:22:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f813e9e4adad910f54839508ecf92bcb02fdacf5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/zendesk/linksf/pulls/293/commits","review_comments_url":"https://api.github.com/repos/zendesk/linksf/pulls/293/comments","review_comment_url":"https://api.github.com/repos/zendesk/linksf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zendesk/linksf/issues/293/comments","statuses_url":"https://api.github.com/repos/zendesk/linksf/statuses/fb71467882431f248e3898c946325b09b2860302","head":{"label":"zendesk:craig-day/new-facility","ref":"craig-day/new-facility","sha":"fb71467882431f248e3898c946325b09b2860302","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":9108204,"name":"linksf","full_name":"zendesk/linksf","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/linksf","description":"A mobile website to connect those in need in to services that can help them","fork":false,"url":"https://api.github.com/repos/zendesk/linksf","forks_url":"https://api.github.com/repos/zendesk/linksf/forks","keys_url":"https://api.github.com/repos/zendesk/linksf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/linksf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/linksf/teams","hooks_url":"https://api.github.com/repos/zendesk/linksf/hooks","issue_events_url":"https://api.github.com/repos/zendesk/linksf/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/linksf/events","assignees_url":"https://api.github.com/repos/zendesk/linksf/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/linksf/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/linksf/tags","blobs_url":"https://api.github.com/repos/zendesk/linksf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/linksf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/linksf/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/linksf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/linksf/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/linksf/languages","stargazers_url":"https://api.github.com/repos/zendesk/linksf/stargazers","contributors_url":"https://api.github.com/repos/zendesk/linksf/contributors","subscribers_url":"https://api.github.com/repos/zendesk/linksf/subscribers","subscription_url":"https://api.github.com/repos/zendesk/linksf/subscription","commits_url":"https://api.github.com/repos/zendesk/linksf/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/linksf/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/linksf/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/linksf/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/linksf/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/linksf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/linksf/merges","archive_url":"https://api.github.com/repos/zendesk/linksf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/linksf/downloads","issues_url":"https://api.github.com/repos/zendesk/linksf/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/linksf/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/linksf/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/linksf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/linksf/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/linksf/releases{/id}","deployments_url":"https://api.github.com/repos/zendesk/linksf/deployments","created_at":"2013-03-29T22:59:29Z","updated_at":"2016-08-01T20:00:16Z","pushed_at":"2016-08-11T00:22:14Z","git_url":"git://github.com/zendesk/linksf.git","ssh_url":"git@github.com:zendesk/linksf.git","clone_url":"https://github.com/zendesk/linksf.git","svn_url":"https://github.com/zendesk/linksf","homepage":"http://link-sf.com","size":3542,"stargazers_count":33,"watchers_count":33,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":30,"forks":20,"open_issues":30,"watchers":33,"default_branch":"master"}},"base":{"label":"zendesk:open-referral","ref":"open-referral","sha":"8023afca14b2f552ec02055b281c1052265d7ad7","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":9108204,"name":"linksf","full_name":"zendesk/linksf","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/linksf","description":"A mobile website to connect those in need in to services that can help them","fork":false,"url":"https://api.github.com/repos/zendesk/linksf","forks_url":"https://api.github.com/repos/zendesk/linksf/forks","keys_url":"https://api.github.com/repos/zendesk/linksf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/linksf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/linksf/teams","hooks_url":"https://api.github.com/repos/zendesk/linksf/hooks","issue_events_url":"https://api.github.com/repos/zendesk/linksf/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/linksf/events","assignees_url":"https://api.github.com/repos/zendesk/linksf/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/linksf/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/linksf/tags","blobs_url":"https://api.github.com/repos/zendesk/linksf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/linksf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/linksf/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/linksf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/linksf/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/linksf/languages","stargazers_url":"https://api.github.com/repos/zendesk/linksf/stargazers","contributors_url":"https://api.github.com/repos/zendesk/linksf/contributors","subscribers_url":"https://api.github.com/repos/zendesk/linksf/subscribers","subscription_url":"https://api.github.com/repos/zendesk/linksf/subscription","commits_url":"https://api.github.com/repos/zendesk/linksf/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/linksf/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/linksf/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/linksf/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/linksf/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/linksf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/linksf/merges","archive_url":"https://api.github.com/repos/zendesk/linksf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/linksf/downloads","issues_url":"https://api.github.com/repos/zendesk/linksf/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/linksf/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/linksf/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/linksf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/linksf/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/linksf/releases{/id}","deployments_url":"https://api.github.com/repos/zendesk/linksf/deployments","created_at":"2013-03-29T22:59:29Z","updated_at":"2016-08-01T20:00:16Z","pushed_at":"2016-08-11T00:22:14Z","git_url":"git://github.com/zendesk/linksf.git","ssh_url":"git@github.com:zendesk/linksf.git","clone_url":"https://github.com/zendesk/linksf.git","svn_url":"https://github.com/zendesk/linksf","homepage":"http://link-sf.com","size":3542,"stargazers_count":33,"watchers_count":33,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":30,"forks":20,"open_issues":30,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zendesk/linksf/pulls/293"},"html":{"href":"https://github.com/zendesk/linksf/pull/293"},"issue":{"href":"https://api.github.com/repos/zendesk/linksf/issues/293"},"comments":{"href":"https://api.github.com/repos/zendesk/linksf/issues/293/comments"},"review_comments":{"href":"https://api.github.com/repos/zendesk/linksf/pulls/293/comments"},"review_comment":{"href":"https://api.github.com/repos/zendesk/linksf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zendesk/linksf/pulls/293/commits"},"statuses":{"href":"https://api.github.com/repos/zendesk/linksf/statuses/fb71467882431f248e3898c946325b09b2860302"}}}}
{"actor":{"display_login":"craig-day"}}