Simon-Initiative / course-digest

Tool to produce a summary or digest of OLI course package contents
MIT License
2 stars 0 forks source link

[ENHANCEMENT] include color map for custom ordering choice colors [MER-1803] #144

Closed andersweinstein closed 1 year ago

andersweinstein commented 1 year ago

Within ordering questions only, choices may include a custom color attribute, setting the background color. French uses this to color code choices by speaker in questions asking to order bits of dialog. This has the converter collect custom ordering choice colors and add them to the ordering question model in a new "choiceColors" attribute representing a map from choiceIDs to color namesas an array of [choiceID, colorName] pairs. Intention is for this to be added as an optional element in the torus model, so need not be included where custom colors not used.