This repository has been archived by the owner on Aug 4, 2019. It is now read-only.
attempt to detect apiHost and session, show host+login input window if needed #7
Labels
A-sencha-app
Area: General app infrastructure, viewport, and navigation
C-feature
Category: New functionality or behavior
E-hard
Effort: Very difficult; do not attempt without significant relevant experience and motivation.
L-sencha
Language: Sencha/Ext JS (JavaScript)
Milestone
Create an optional singleton or controller for the emergence-apikit package that provides an optional stock UI on top of the existing apikit classes.
Any 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.
The 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.apiHost would be determined from, in priority order:
window.SiteEnvironment
is definedsession would be loaded from, in priority order:
window.SiteEnvironment
if apiHost is nullAPI.getSessionData(...)
SlateAdmin can then wrap its viewport initialization and/or defer its routing until
requireAuthentication
executes its callbackThe text was updated successfully, but these errors were encountered: