feat(builder): score yes/no fields in the quiz scoring system#193
Merged
Conversation
Yes/No fields can now award points per answer, like single-choice options. The scores live on two synthetic options (values "yes"/"no") so they flow through the shared scoreSubmission, which maps the boolean answer to those values. The builder gains a points editor with a "Yes" and "No" row for yes_no fields; untouched fields carry no score and stay out of scoring. Localized in all 7 languages.
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.
Customer request: Yes/No questions should be part of the point/scoring system, just like single-choice options.
What changed
yes_nofields with a "Yes" and a "No" row (mirrors the single-choice option points).yes/no, so they flow through the existingscoreSubmissionunchanged. The scorer maps the boolean answer to those values.__score), submission score column and detail view.Localized in all 7 languages. Added a shared test for yes_no scoring. Typecheck, lint, tests (86) and build all green. No schema or migration (scores live in the form spec JSON).