Closed barry-mckay closed 6 years ago
@barry-learningpool, the dedicated view seems a bit opinionated. What was the reasoning for not using an alert the same way Spoor does?
@brian-learningpool are you referring to the 'SCORM log' window that appears when '_showDebugWindow' is enabled?
No, just the standard alert
or confirm
popups, e.g. "Could not connect to LMS"
Just to clarify, the title/description of this PR is no longer correct since the new view has been removed, it now does not blocks content and instead just displays an alert?
@ryan-lynch yeah, it just uses the core Notify alert functionality now, which doesn't block the user.
Added an ErrorView which is displayed to the user whenever the xAPI wrapper initialisation fails, or when a 'sendState()' or 'sendStatement()' call fails.
The display of this view is configurable as 'don't show', 'show and allow continue', 'show'. The second option allows the user to continue with the course, ignoring the LRS issues.
The text for this view is configurable using globals - the default text warns the user that their progress will not be saved.
The error view also features an 'Exit course' button.
Also implemented an ADL launch wrapper for local testing without an LRS. This includes and makes use of the 'js-cookie' library to cache state for testing purposes