refactor: improve cohort report

This commit is contained in:
2026-09-19 22:19:25 -04:00
parent c06d5caa8c
commit 92c8a8fc75
6 changed files with 2194 additions and 311 deletions
+37
View File
@@ -261,6 +261,43 @@ fn policy_schema() -> Value {
"minimum": 1,
"description": "Below this many items on an objective, reports say 'not enough \
evidence' rather than classifying."
},
"grade_scale": {
"type": "array",
"description": "Letter-grade bands. Only the lower bound of each is recorded; a \
band runs up to the next one. Set this and a class report bins \
scores by letter rather than by ten-point interval.",
"items": {
"type": "object",
"required": ["letter", "min"],
"additionalProperties": false,
"properties": {
"letter": {
"type": "string",
"description": "The letter as it appears on a transcript."
},
"min": {
"type": "number",
"minimum": 0,
"maximum": 100,
"description": "Lowest percentage earning this letter, inclusive."
},
"gpa": {
"type": "number",
"minimum": 0,
"description": "Grade points the band carries."
},
"attainment": {
"type": "string",
"description": "The attainment word attached to the band."
},
"group": {
"type": "string",
"description": "Colour group for reports; defaults to the letter's \
first character."
}
}
}
}
}
})