{"action":"created","issue":{"url":"https://api.github.com/repos/refugeetech/platform/issues/78","labels_url":"https://api.github.com/repos/refugeetech/platform/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/refugeetech/platform/issues/78/comments","events_url":"https://api.github.com/repos/refugeetech/platform/issues/78/events","html_url":"https://github.com/refugeetech/platform/issues/78","id":125947969,"number":78,"title":"Add search feature to front page","user":{"login":"brylie","id":17307,"avatar_url":"https://avatars.githubusercontent.com/u/17307?v=3","gravatar_id":"","url":"https://api.github.com/users/brylie","html_url":"https://github.com/brylie","followers_url":"https://api.github.com/users/brylie/followers","following_url":"https://api.github.com/users/brylie/following{/other_user}","gists_url":"https://api.github.com/users/brylie/gists{/gist_id}","starred_url":"https://api.github.com/users/brylie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brylie/subscriptions","organizations_url":"https://api.github.com/users/brylie/orgs","repos_url":"https://api.github.com/users/brylie/repos","events_url":"https://api.github.com/users/brylie/events{/privacy}","received_events_url":"https://api.github.com/users/brylie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/refugeetech/platform/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/refugeetech/platform/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/refugeetech/platform/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"mark-mcevoy","id":12165681,"avatar_url":"https://avatars.githubusercontent.com/u/12165681?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-mcevoy","html_url":"https://github.com/mark-mcevoy","followers_url":"https://api.github.com/users/mark-mcevoy/followers","following_url":"https://api.github.com/users/mark-mcevoy/following{/other_user}","gists_url":"https://api.github.com/users/mark-mcevoy/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-mcevoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-mcevoy/subscriptions","organizations_url":"https://api.github.com/users/mark-mcevoy/orgs","repos_url":"https://api.github.com/users/mark-mcevoy/repos","events_url":"https://api.github.com/users/mark-mcevoy/events{/privacy}","received_events_url":"https://api.github.com/users/mark-mcevoy/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/refugeetech/platform/milestones/6","html_url":"https://github.com/refugeetech/platform/milestones/0.3","labels_url":"https://api.github.com/repos/refugeetech/platform/milestones/6/labels","id":1508477,"number":6,"title":"0.3","description":"Planned and prioritized tasks for 0.3 release.","creator":{"login":"brylie","id":17307,"avatar_url":"https://avatars.githubusercontent.com/u/17307?v=3","gravatar_id":"","url":"https://api.github.com/users/brylie","html_url":"https://github.com/brylie","followers_url":"https://api.github.com/users/brylie/followers","following_url":"https://api.github.com/users/brylie/following{/other_user}","gists_url":"https://api.github.com/users/brylie/gists{/gist_id}","starred_url":"https://api.github.com/users/brylie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brylie/subscriptions","organizations_url":"https://api.github.com/users/brylie/orgs","repos_url":"https://api.github.com/users/brylie/repos","events_url":"https://api.github.com/users/brylie/events{/privacy}","received_events_url":"https://api.github.com/users/brylie/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":1,"state":"open","created_at":"2016-01-15T08:49:36Z","updated_at":"2016-01-20T10:59:42Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-01-11T13:51:19Z","updated_at":"2016-01-20T19:19:58Z","closed_at":null,"body":"Based on issue #77, we will add a search button/user interface to the front page.\r\n\r\n* [x] show searchResults and allProjects template dynamically based on if currently searching"},"comment":{"url":"https://api.github.com/repos/refugeetech/platform/issues/comments/173330561","html_url":"https://github.com/refugeetech/platform/issues/78#issuecomment-173330561","issue_url":"https://api.github.com/repos/refugeetech/platform/issues/78","id":173330561,"user":{"login":"mark-mcevoy","id":12165681,"avatar_url":"https://avatars.githubusercontent.com/u/12165681?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-mcevoy","html_url":"https://github.com/mark-mcevoy","followers_url":"https://api.github.com/users/mark-mcevoy/followers","following_url":"https://api.github.com/users/mark-mcevoy/following{/other_user}","gists_url":"https://api.github.com/users/mark-mcevoy/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-mcevoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-mcevoy/subscriptions","organizations_url":"https://api.github.com/users/mark-mcevoy/orgs","repos_url":"https://api.github.com/users/mark-mcevoy/repos","events_url":"https://api.github.com/users/mark-mcevoy/events{/privacy}","received_events_url":"https://api.github.com/users/mark-mcevoy/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T19:19:57Z","updated_at":"2016-01-20T19:19:57Z","body":"I didn't get too far with this but noticed a bug with searchbars.js:\r\n```javascript\r\nwindow.setTimeout(function() {\r\n    Session.set('willShowAutoSuggestion',false);\r\n}, 100);\r\n```\r\n\r\nThe timeout is too short for me, so the click.result doesn't fire in autoSuggestRoutes. I think these kind of timeouts are too risky, as the behaviour is too unreliable from user to user. We should do the blur event a different way, for example by having a document.onclick event and checking if .result was clicked, else search button, etc. Would probably be a more reliable way of hiding the search bar & results."}}