haxtheweb / issues

Issue queue for hax, haxcms, elmsln, lrnwebcomponents, wcfactory, websites and more.
Apache License 2.0
10 stars 1 forks source link

[matching-question] assessment type #1997

Closed btopro closed 1 month ago

btopro commented 1 month ago

We have multiple choice, sort, and drag and drop via tagging. A matching question is not terribly different from sort + tagging. Instead of putting in order you are moving to different zones.

There's not a ton I can reuse from question element as far as the actual processing and logic with question element but could possible leverage the "correct order" notion from sorting to just be displaying it in a non-sorted way (tho there is still an obvious 'correct order') to things.

We'll need some kind of target connotation like...

<input correct data-matching="target" value="Planets"> with <input correct data-matches="Planets" value="Mercury"><input value="Moon" data-selected="A moon is where stonks go and is not on the same classification as say Earth. Think primary vs subordinate heavenly bodies.">

order would at least allow for

Data could possibly be stored just as target or match much like 'correct'. In this method, the data is flat and always pointing back to the previously loaded target. This would be pretty easy to mark up in a side panel in HAX via booleans much like 'correct'. Could even possibly only make it for 'target' and then everything in between is associated to that target.

<input value="Label" data-target />
<input value="Label 2" />
<input value="Label 3" />
<input value="Label 4" data-target />
<input value="Label 5" />
<input value="Label 6" data-target />

Targets can be a vertically aligned grid. That then has a drop zone associated on the other side for the index. The grid in the element is also built based on

Show targets ahead of time or targets are mixed in with valid answers