{"action":"opened","issue":{"url":"https://api.github.com/repos/SlateFoundation/slate-admin/issues/7","labels_url":"https://api.github.com/repos/SlateFoundation/slate-admin/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/SlateFoundation/slate-admin/issues/7/comments","events_url":"https://api.github.com/repos/SlateFoundation/slate-admin/issues/7/events","html_url":"https://github.com/SlateFoundation/slate-admin/issues/7","id":79540025,"number":7,"title":"attempt to detect apiHost and session, show host+login input window if needed","user":{"login":"themightychris","id":458494,"avatar_url":"https://avatars.githubusercontent.com/u/458494?v=3","gravatar_id":"","url":"https://api.github.com/users/themightychris","html_url":"https://github.com/themightychris","followers_url":"https://api.github.com/users/themightychris/followers","following_url":"https://api.github.com/users/themightychris/following{/other_user}","gists_url":"https://api.github.com/users/themightychris/gists{/gist_id}","starred_url":"https://api.github.com/users/themightychris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themightychris/subscriptions","organizations_url":"https://api.github.com/users/themightychris/orgs","repos_url":"https://api.github.com/users/themightychris/repos","events_url":"https://api.github.com/users/themightychris/events{/privacy}","received_events_url":"https://api.github.com/users/themightychris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-22T17:29:26Z","updated_at":"2015-05-22T17:29:26Z","closed_at":null,"body":"Create an optional singleton or controller for the emergence-apikit package that provides an optional stock UI on top of the existing apikit classes.\r\n\r\nAny existing use of Ext.Msg in the API connection classes should be removed in favor of events, such that none of the data classes have any dependency on framework components outside of the data package.\r\n\r\nThe controller could provide error/retry UI as well as a method applications could use called `requireAuthentication` that takes a callback that will be run after an API host has been connected to and authenticated against.\r\n\r\napiHost would be determined from, in priority order:\r\n1. page query parameter\r\n2. set to null if `window.SiteEnvironment` is defined\r\n3. included as field is login prompt to user\r\n\r\nsession would be loaded from, in priority order:\r\n1. `window.SiteEnvironment` if apiHost is null\r\n2. `API.getSessionData(...)`"}}