Skip to content

Commit

Permalink
Fix: Add scoreAsPercent to help text, remove unnecessary triple squig…
Browse files Browse the repository at this point in the history
…glies (fixes #82)
  • Loading branch information
swashbuck committed Mar 5, 2024
1 parent 8850b48 commit 5ba4d1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions properties.schema
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -121,11 +121,11 @@
"_completionBody": {
"type": "string",
"required": false,
"default": "This component you're reading is a results component.<br>You have finished the assessment.<br>You scored {{{score}}} out of {{{maxScore}}}. {{{feedback}}}",
"default": "This component you're reading is a results component.<br>You have finished the assessment.<br>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": {
Expand Down
6 changes: 3 additions & 3 deletions schema/component.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.<br>You have finished the assessment.<br>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.<br>You have finished the assessment.<br>You scored {{score}} out of {{maxScore}}. {{{feedback}}}",
"_adapt": {
"translatable": true
},
Expand Down

0 comments on commit 5ba4d1d

Please sign in to comment.