From 5ba4d1d793e66ede0bd0cd06eb87fe86d9595ed9 Mon Sep 17 00:00:00 2001 From: Brad Simpson Date: Tue, 5 Mar 2024 09:56:46 -0700 Subject: [PATCH] Fix: Add scoreAsPercent to help text, remove unnecessary triple squigglies (fixes #82) --- properties.schema | 6 +++--- schema/component.schema.json | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/properties.schema b/properties.schema index 6590c29..312c30c 100644 --- a/properties.schema +++ b/properties.schema @@ -104,7 +104,7 @@ "title": "Retry Text", "inputType": "TextArea", "validators": [], - "help": "This text is displayed only when more attempts remain. You can use the following variables: {{attemptsSpent}}, {{attempts}}, {{attemptsLeft}}, {{{score}}}, {{{maxScore}}}.", + "help": "This text is displayed only when more attempts remain. You can use the following variables: {{attemptsSpent}}, {{attempts}}, {{attemptsLeft}}, {{score}}, {{scoreAsPercent}} and {{maxScore}}.", "translatable": true }, "_routeToAssessment": { @@ -121,11 +121,11 @@ "_completionBody": { "type": "string", "required": false, - "default": "This component you're reading is a results component.
You have finished the assessment.
You scored {{{score}}} out of {{{maxScore}}}. {{{feedback}}}", + "default": "This component you're reading is a results component.
You have finished the assessment.
You scored {{score}} out of {{maxScore}}. {{{feedback}}}", "title": "Feedback Text", "inputType": "TextArea", "validators": [], - "help": "This text overwrites the standard body attribute upon completion of the assessment. It may make use of the following variables: {{attemptsSpent}}, {{attempts}}, {{attemptsLeft}}, {{{score}}}, {{{maxScore}}}. {{{feedback}}}, representing the feedback assigned to the appropriate band, is also allowed.", + "help": "This text overwrites the standard body attribute upon completion of the assessment. It may make use of the following variables: {{attemptsSpent}}, {{attempts}}, {{attemptsLeft}}, {{score}}, {{scoreAsPercent}} and {{maxScore}}. {{{feedback}}}, representing the feedback assigned to the appropriate band, is also allowed.", "translatable": true }, "_bands": { diff --git a/schema/component.schema.json b/schema/component.schema.json index fe8e268..b021c96 100644 --- a/schema/component.schema.json +++ b/schema/component.schema.json @@ -80,7 +80,7 @@ "feedback": { "type": "string", "title": "Retry feedback", - "description": "This text is displayed only when more attempts remain. You can use the following variables: {{attemptsSpent}}, {{attempts}}, {{attemptsLeft}}, {{{score}}}, {{{maxScore}}}", + "description": "This text is displayed only when more attempts remain. You can use the following variables: {{attemptsSpent}}, {{attempts}}, {{attemptsLeft}}, {{score}}, {{scoreAsPercent}} and {{maxScore}}", "default": "", "_adapt": { "translatable": true @@ -98,8 +98,8 @@ "_completionBody": { "type": "string", "title": "Default feedback", - "description": "This text overwrites the standard body attribute upon completion of the assessment. It may make use of the following variables: {{attemptsSpent}}, {{attempts}}, {{attemptsLeft}}, {{{score}}}, {{{maxScore}}}. {{{feedback}}}, representing the feedback assigned to the appropriate band, is also allowed", - "default": "This component you're reading is a results component.
You have finished the assessment.
You scored {{{score}}} out of {{{maxScore}}}. {{{feedback}}}", + "description": "This text overwrites the standard body attribute upon completion of the assessment. It may make use of the following variables: {{attemptsSpent}}, {{attempts}}, {{attemptsLeft}}, {{score}}, {{scoreAsPercent}} and {{maxScore}}. {{{feedback}}}, representing the feedback assigned to the appropriate band, is also allowed", + "default": "This component you're reading is a results component.
You have finished the assessment.
You scored {{score}} out of {{maxScore}}. {{{feedback}}}", "_adapt": { "translatable": true },