{"action":"created","issue":{"url":"https://api.github.com/repos/invisible-college/tawk.space/issues/8","repository_url":"https://api.github.com/repos/invisible-college/tawk.space","labels_url":"https://api.github.com/repos/invisible-college/tawk.space/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/invisible-college/tawk.space/issues/8/comments","events_url":"https://api.github.com/repos/invisible-college/tawk.space/issues/8/events","html_url":"https://github.com/invisible-college/tawk.space/issues/8","id":180348514,"number":8,"title":"Swap slow-network notifications for ambient display","user":{"login":"toomim","id":101208,"avatar_url":"https://avatars.githubusercontent.com/u/101208?v=3","gravatar_id":"","url":"https://api.github.com/users/toomim","html_url":"https://github.com/toomim","followers_url":"https://api.github.com/users/toomim/followers","following_url":"https://api.github.com/users/toomim/following{/other_user}","gists_url":"https://api.github.com/users/toomim/gists{/gist_id}","starred_url":"https://api.github.com/users/toomim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toomim/subscriptions","organizations_url":"https://api.github.com/users/toomim/orgs","repos_url":"https://api.github.com/users/toomim/repos","events_url":"https://api.github.com/users/toomim/events{/privacy}","received_events_url":"https://api.github.com/users/toomim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-30T16:36:39Z","updated_at":"2016-10-01T19:06:08Z","closed_at":null,"body":"The chrome notifications were a quick way to show us network issues, but we don't need to demand the user's attention for this information. It would be better to have an ambient visualization of the network strength.\r\n\r\nFor instance, we could set some state for each notification:\r\n\r\n```coffeescript\r\nslowness = fetch('slowness')\r\nslowness.all ||= []\r\nslowness.all.push(\r\n  when: new Date()\r\n  what: \"local\"\r\n)\r\n```\r\n\r\nAnd render these with icons:\r\n\r\n```coffeescript\r\n  # Maybe this goes in top bar?\r\n  for slowdown in fetch('slowness').all\r\n    fade = (new Date() - s.when) / fade_time\r\n    IMG\r\n      src: 'hourglass.png'  # or something\r\n      style: opacity: fade\r\n```\r\n\r\nAnd clean them up periodically with:\r\n\r\n```coffeescript\r\nfade_time = 5 * 60 * 1000  # 5 seconds\r\nclean_slowness = ->\r\n  slowness = fetch('slowness')\r\n  slowness.all = (s for s in slowness.all when new Date() - s.when < fade_time)\r\n  save(slowness)      \r\nsetInterval(clean_slowness, 1000)\r\n```"},"comment":{"url":"https://api.github.com/repos/invisible-college/tawk.space/issues/comments/250930832","html_url":"https://github.com/invisible-college/tawk.space/issues/8#issuecomment-250930832","issue_url":"https://api.github.com/repos/invisible-college/tawk.space/issues/8","id":250930832,"user":{"login":"toomim","id":101208,"avatar_url":"https://avatars.githubusercontent.com/u/101208?v=3","gravatar_id":"","url":"https://api.github.com/users/toomim","html_url":"https://github.com/toomim","followers_url":"https://api.github.com/users/toomim/followers","following_url":"https://api.github.com/users/toomim/following{/other_user}","gists_url":"https://api.github.com/users/toomim/gists{/gist_id}","starred_url":"https://api.github.com/users/toomim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toomim/subscriptions","organizations_url":"https://api.github.com/users/toomim/orgs","repos_url":"https://api.github.com/users/toomim/repos","events_url":"https://api.github.com/users/toomim/events{/privacy}","received_events_url":"https://api.github.com/users/toomim/received_events","type":"User","site_admin":false},"created_at":"2016-10-01T19:06:08Z","updated_at":"2016-10-01T19:06:08Z","body":"Oh really? Yeah, that would be the best.\r\n\r\nOr maybe a [X]"}}
{"actor":{"display_login":"toomim"}}