-
Notifications
You must be signed in to change notification settings - Fork 39
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
_canCycleThroughPagination conflict with narrative controls #286
Comments
Currently the narrative controls asses if they should be enabled with canCycleThroughPagination but are unable to cycle like the hotgraphic. To fix this issue we have 2 options,
Any preferences to this? Any potential downsides or ramifications? |
Do you have a code reference? This seems a bit weird. I'm not sure if cycling the narrative is a good idea. It's easy to know when you're at the end because you can't go any further. There is little indication that you're complete otherwise. |
adapt-contrib-narrative/js/NarrativeView.js Line 238 in 2b31480
Good point on indicating completion. |
I'm also in favour of removing the canCycleThroughPagination check. Narrative is functionally differrent to the hotgraphic. The main reason cycling is requested for hotgraphic is because you can 'start' at any pin and clients find it too cumbersome to click in and out of pin/notify. Narrative doesn't have this issue as it always starts at the beginning and as Ollie says, its easy to know when you're done. Having said that, I'd argue narrative does need a visual representation of completeness on the component I think. But that's a separate issue. |
I think this is slightly different. Pagination as a whole, displaying the back and next buttons is the bit that alleviates the cumbersome nature of having to click, close, click, close the pins. You can see the two properties and their descriptions here https://github.com/adaptlearning/adapt-contrib-hotgraphic/blob/0a9504acee1229e9eee9f443312cce6fbf7d04c9/properties.schema#L140-L157
canCycleThroughPagination seems intentful enough as a flag for looping around at the ends. Putting it more into context and looking at the code, I see no reason why we shouldn't allow cycling the pagination in narrative. It may give us more impetus to fix the completion indication issue. |
Yep, that's what I was getting at.
Sure, I wouldn't say that it shouldn't have it. I was really agreeing as my thoughts were its an unnecessary config option in that I don't recall it ever been requested. Happy to go with the consensus however. |
🎉 This issue has been resolved in version 7.9.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Subject of the issue/enhancement/features
I think this is a bug. Certainly not intuitive.
Your environment
FW 5.33.1
The hotgraphic version I'm using is 6.7.0, but I've just created a brand new course and the same issue exists in hotgraphic version 6.8.0
Steps to reproduce
In your hotgraphic component, set
"_canCycleThroughPagination": true;
and"_isNarrativeOnMobile": true;
Expected behaviour
When the HG reverts to narrative on mobile, the right narrative control should either be disabled when the last item is reached, or it should be enabled and take you back to the first item (i.e. cycle).
Actual behaviour
It's not doing either - it's enabled but doesn't do anything.
The text was updated successfully, but these errors were encountered: