-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Are schema _globals shared with Narrative needed in Hotgraphic schemas? #293
Comments
@kirsty-hames I do think we should keep them separate. When using |
Hmm.. does it? Weird... Ok, so... narrative sets up backLabel and nextLabel here https://github.com/adaptlearning/adapt-contrib-narrative/blob/c350f7610a0ee927a1259efdd2623e46e2847e94/js/NarrativeView.js#L249-L292 And hotgraphic does similar here adapt-contrib-hotgraphic/js/hotgraphicPopupView.js Lines 62 to 105 in 55b26b7
Narrative does not seem to use hotgraphic labels when it's used as a replacement for hotgraphic as the labels are only ever referenced by plugin name from the _globals object.
https://github.com/adaptlearning/adapt-contrib-narrative/blob/c350f7610a0ee927a1259efdd2623e46e2847e94/js/NarrativeView.js#L257 It does make sense to keep them separate as you'd need them both installed anyway to have the switching functionality. |
Thanks @swashbuck and @oliverfoster for looking into this. I'll close the ticket and agree to keep these separate. |
Subject of the issue
I started by raising an issue to update Hotgraphic as per the Narrative PR 294.
As the default mobile behaviour for Hotgraphic is Narrative, shared functionality should be updated for consistency. However, when testing this, I couldn't see that the Hotgraphic
_globals
previous
/next
are used. The Hotgraphic Narrative mobile view uses the Narrative_globals
instead. Is this expected and if so, do these properties need to exist in the Hotgraphic schemas as well?The text was updated successfully, but these errors were encountered: