Skip to content

feat(builder): score yes/no fields in the quiz scoring system#193

Merged
Musiker15 merged 1 commit into
mainfrom
feat/yesno-scoring
Jul 9, 2026
Merged

feat(builder): score yes/no fields in the quiz scoring system#193
Musiker15 merged 1 commit into
mainfrom
feat/yesno-scoring

Conversation

@Musiker15

Copy link
Copy Markdown
Member

Customer request: Yes/No questions should be part of the point/scoring system, just like single-choice options.

What changed

  • The builder shows a points editor for yes_no fields with a "Yes" and a "No" row (mirrors the single-choice option points).
  • Scores are stored on two synthetic options with the values yes/no, so they flow through the existing scoreSubmission unchanged. The scorer maps the boolean answer to those values.
  • A yes_no field with no points entered carries no score and stays out of scoring (non-quiz forms remain scoreless).
  • This also feeds the existing score-based automations (__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).

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.
@Musiker15 Musiker15 merged commit 6d3f410 into main Jul 9, 2026
3 checks passed
@Musiker15 Musiker15 deleted the feat/yesno-scoring branch July 9, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant