Repository navigation
fix(author): settings that go stale when a chat changes a content are noted, and the outline says what a draw shows (#268) - #269
Conversation
… none, is noted (#268) poolSize reads as the number of questions and is how many are shown, drawn at random. A chat in ChatGPT wrote 3 for three questions, added three more, and the quiz went on showing three of six. Below the number of questions the build now says how many of how many are shown; at or above it, that it draws nothing and would hide a question added later. The Question Set type file says poolSize is not the number of questions, and to leave it out unless a random draw is asked for.
There was a problem hiding this comment.
All reported issues were addressed across 4 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
…and the outline says a draw's how many of how many (#268) A scan of the 80 libraries with semantics in the pack, for settings a chat that adds, removes or renames items may leave as they were: - a number of items drawn at random: Memory Game's numCardsToUse and Crossword's poolSize, as Question Set's poolSize, by one rule; at the list's length it now says it draws nothing, and above it, that it draws nothing until there are more than it; - a number of items to find: Find Multiple Hotspots' numberHotspots, against the hotspots marked correct; - a part named by what is not there: a Course Presentation button's slide, a drop zone's right element, Agamotto's start image, a Virtual Tour's scene id, a Personality Quiz answer's personality. Each is a note. None fires in the owner's 88 real packages, though drop zones name their right elements in some 20 of them. The outline's first line says how many of how many a quiz, a memory game or a crossword shows, where it draws. The Memory Game type file says numCardsToUse is not the number of cards.
There was a problem hiding this comment.
All reported issues were addressed across 6 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
…s script, and Drag and Drop's other list of places is read too (#268) A review of the issue found the notes written from the fields' labels. Read in the libraries' scripts: - Personality Quiz takes a name only as its personality has it, parted at a comma and a space: the note took another capital, or a comma with no space, as fine. - Find Multiple Hotspots does not use a number above its hotspots: the note said no learner could finish. - Agamotto holds a start image to the images there are: the note says where it starts. - Memory Game's number is of pairs, and the note and the outline say pairs. - A Course Presentation button and a Virtual Tour's scene id: the notes say what is named and what there is, not an effect that was not run. The scan had missed a Drag and Drop element's dropZones, the zones it can be dropped in: a zone that is not there is noted, and an element no zone it can reach takes as right. One real package names two elements right in a zone they cannot be dropped in, beside the one they can; that is left unsaid. The design says what is known of the ChatGPT case (a quiz of six with poolSize 3 after questions were added; its first source is not known), which of the checked types the 88 real packages hold, and what the scan did not look for.
There was a problem hiding this comment.
All reported issues were addressed across 4 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
…re counted as their libraries draw, and the outline test covers a memory game (#268) One function, drawOf, works out what each draw shows, read in its library's script, for the notes and the outline's first line both: - Crossword keeps the words fixed on the grid and draws only among the rest, so with fixed words it shows them and some of the others, or the fixed words alone where they reach poolSize; a word without an answer or a clue is not counted; - Question Set shuffles the questions whenever poolSize is set, so at or above the number of questions the note says they show in a random order; - Memory Game draws at least 2 pairs. The outline test now builds a memory game, as its title says.
… Agamotto's note leaves out a fraction the build refuses (#268) - Personality Quiz counts each name of an answer on its own, so an answer that names one personality wrongly still counts for the others: the note says that name, or those names, count for none, not the answer. An empty part, after a comma at the end, names nothing and is not said. - Agamotto's startImage takes a whole number, which the build holds it to, so a fraction never reaches the note: the note no longer reads one, and a test shows the build refuses it.
There was a problem hiding this comment.
All reported issues were addressed across 5 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
…#268) Question Set keeps slice(0, poolSize) questions, and Crossword splices to its number, both of which drop a fraction: drawOf rounded Question Set's up. A build holds both fields to whole numbers, so this reaches only a check of saved content.
Closes #268.
The build checks each source on its own, so a setting that was right before a content was changed, and is wrong after, passes unsaid. In ChatGPT a Question Set of six questions came with
poolSize: 3after the chat was asked to add questions, and went on showing three. This adds a note for each setting of that kind a scan of the pack found, and the outline now says what a draw shows.The scan
The 80 libraries with semantics in the pack: all 156 number fields, the fields drawn by a widget of the type's own, and the fields whose name or description says they name another part.
poolSize, Memory Gamebehaviour.numCardsToUse, Crosswordbehaviour.poolSizedraws)numberHotspotsgoToSlide; Drag and Drop a zone'scorrectElementsand an element'sdropZones; AgamottostartImage; Virtual TourstartSceneIdand a "go to scene"'snextSceneId; Personality Quiz an answer'spersonalitynextContentId(in range), Game Map paths (by stage label)finishScoreWhat changes
Each is a note, never a problem: a draw may be meant, and a package from elsewhere must still build. Each says what its library does with the value, read in the library's script.
lib/mistakes.mjs): one function,drawOf, works out what each draw shows as its library does, for the notes and the outline both. Below the list's length, both numbers ("shows 3 of the 6 questions each time, drawn at random, and leaves the rest out: leave it out to show them all, or tell the user that it draws"); at its length, "so it leaves none out, and one added later would leave one out at random"; above it, "until more than N are". Question Set shuffles wheneverpoolSizeis set, which the note says; Memory Game draws pairs, at least 2; Crossword keeps the words fixed on the grid and draws only among the rest ("shows 3 of the 4 words each time, the 2 fixed on the grid and 1 of the other 2 drawn at random", or "shows only the 2 words fixed on the grid, and never the other 2").Review of the issue
A review of #268 after the second commit found, and the third fixes:
dropZones.drawOf.poolSizeis not known.Testing
build.test.ts: the three cases of a draw (2, 3 and 5 of 3 questions); a memory game; a crossword, with and without words fixed on the grid; a Course Presentation button to slide 3 of 2; a Drag and Drop with a right element and a zone that are not there and an element that cannot be put right; a Personality Quiz answer with a renamed personality, one in another case, one ending in a comma, and one with a known and an unknown name; an Agamotto start image past the last, and a fraction refused.confine.test.ts: the outline's first line for a quiz, a crossword with and without a fixed word, and a memory game that draw, and none at the list's length.poolSize, and "random order" still gaverandomQuestions. Haiku does not make this mistake either way.poolSize3 and the build's answer with the note: it removedpoolSize, keptrandomQuestions, and told the user all six now show every time.Not verified
lib/mistakes.mjsandlib/outline.mjschanges in code.Release
@missing-elements/h5p-author0.17.0 (notes and an outline line added, nothing breaks), and the org site's pin after it.Summary by cubic
Says what goes stale when a chat changes a content, and the outline's first line says how many of how many a quiz, a memory game, or a crossword shows where it draws.
numberHotspots, and a part named by a number, id, or name that is not there: Course Presentation slides, Drag and Drop zones and elements, Agamotto's start image, Virtual Tour scene ids, and a Personality Quiz answer's personality.drawOf, works out what each draw shows as its library does, read in its script: Question Set shuffles wheneverpoolSizeis set, Memory Game draws pairs (at least 2), and Crossword keeps words fixed on the grid and draws only among the rest.drawOfdrops a fraction as Question Set'sslice(0, poolSize)and Crossword'ssplicedo; a build holds both fields to whole numbers, so this matters only for a check of saved content.design/author.mdrecords the rule, the ChatGPT case, and what the scan left out; tests cover draws at, below, and above the count, a crossword's fixed words, and each named-part note.Written for commit 0ba385b. Summary will update on new commits.