Fix: Expanded feedback to add images and more control (fixes #222)#223
Merged
oliverfoster merged 7 commits intomasterfrom Oct 19, 2022
Merged
Fix: Expanded feedback to add images and more control (fixes #222)#223oliverfoster merged 7 commits intomasterfrom
oliverfoster merged 7 commits intomasterfrom
Conversation
Contributor
|
The testing json, 'c-60' provided above is missing a closing bracket for _incorrectNotFinal._graphic |
kirsty-hames
reviewed
Sep 9, 2022
Contributor
kirsty-hames
left a comment
There was a problem hiding this comment.
No problems testing this but I've raised a couple of queries around the popup layout.
- Update text/image layout to 60/40 for right and left aligned images (for desktop view) - Stack text/image for mobile view - Update alignment selectors for consistency with other plugin popup alignment classes (Hotgraphic, Hotgrid etc) - Removed legacy alignment classes (line 53 onwards). I can't see that classes ever got appended to .notify__content for these to work. Both component level and feedback level _classes get applied to .notify only.
- for consistency where 'image' has been used elsewhere
Contributor
|
I've just committed my suggestions to notify.less and notifyPopup.hbs. A couple of things to note:
|
joe-allen-89
approved these changes
Sep 16, 2022
Contributor
joe-allen-89
left a comment
There was a problem hiding this comment.
Working as expected with FW v5.22.4.
eleanor-heath
approved these changes
Oct 18, 2022
|
🎉 This PR is included in version 6.20.5 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This was referenced Mar 3, 2023
This was referenced Jul 12, 2023
This was referenced Nov 30, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #222
This behaviour is fully backward compatible if the old style of
_feedbackobjects are used. The new style feedback can be used in the new AAT and if building by hand, it will not be supported in the classic AATNew
_feedback._correct,_feedback._partlyCorrectNotFinal,_feedback._partlyCorrectFinal,_feedback._incorrectNotFinal,_feedback._incorrectFinaland for_items[].feedback{ "altTitle": "", "title": "", "body": "Incorrect feedback final", "_classes": "", "_imageAlignment": "left", "_graphic": { "_src": "course/en/images/single-width.png", "alt": "test", "attribution": "" } }Removed
Fix
comparecan now be used as a boolean helperTesting
{ "_id": "c-60", "_parentId": "b-40", "_type": "component", "_component": "mcq", "_classes": "", "_layout": "left", "_attempts": 3, "_questionWeight": 1, "_canShowModelAnswer": true, "_shouldDisplayAttempts": false, "_isRandom": true, "_selectable": 1, "title": "Multiple Choice Question", "displayTitle": "Multiple Choice Question 1sel 1att new", "body": "In what year was the first recorded instance of a large scale assessment that consists solely of multiple choice questions?", "instruction": "Choose one option and select Submit.", "_items": [ { "text": "1917", "_shouldBeSelected": true }, { "text": "1888", "_shouldBeSelected": false, "feedback": "Item specific 1888 incorrect feedback" }, { "text": "1953", "_shouldBeSelected": false, "feedback": { "altTitle": "", "title": "Item specific 1953 incorrect feedback", "body": "Item specific 1953 incorrect feedback", "_imageAlignment": "right", "_graphic": { "_src": "course/en/images/single-width.png", "alt": "test", "attribution": "" } } }, { "text": "1977", "_shouldBeSelected": false, "feedback": "Item specific 1977 incorrect feedback" } ], "_feedback": { "altTitle": "", "title": "Feedback global title", "_classes": "", "_correct": { "altTitle": "", "title": "", "body": "Correct feedback final", "_classes": "", "_imageAlignment": "left", "_graphic": { "_src": "course/en/images/single-width.png", "alt": "test", "attribution": "" } }, "_incorrectNotFinal": { "altTitle": "", "title": "", "body": "Incorrect feedback not final", "_classes": "", "_imageAlignment": "right", "_graphic": { "_src": "course/en/images/single-width.png", "alt": "test", "attribution": "" } }, "_incorrectFinal": { "altTitle": "", "title": "", "body": "Incorrect feedback final", "_classes": "", "_imageAlignment": "left", "_graphic": { "_src": "course/en/images/single-width.png", "alt": "test", "attribution": "" } } }, "_pageLevelProgress": { "_isEnabled": true, "_isCompletionIndicatorEnabled": true } }Requires
ref adaptlearning/adapt-contrib-tutor#79
Todo