Commit 6ee3f57
fix(mcp): make submission-grader tell the truth about what is graded (#567)
The per-question review list in the submission-grader widget misreported how
much of a submission had actually been graded — the one thing a teacher opens
it to find out.
- An ungraded question (`points_earned: null`) rendered as `0/15 pts`, making
"nobody has looked at this yet" indistinguishable from "the student got it
wrong", and contradicting the `4/5 graded` summary a few hundred pixels
above. It now renders as `—/15 pts` alongside a "Not graded" pill, and the
`?? 0` coercion is gone.
- The grade panel now states how many points sit in ungraded questions, so the
`60 / 100` figure can no longer read as "the student lost 40 points" when 15
of those points have simply never been graded.
- `is_overridden` arrived in the payload and was never rendered, so a teacher
could not see which scores they had already corrected. Overridden rows now
carry a "Teacher adjusted" pill.
- AI confidence was plain grey text appended to a label, so 41% and 82% looked
identical. Confidence below 60% now renders as an amber "review this" pill
and tints the question's border, while high confidence stays quiet.
The server side needed no change: `lms_get_submission` already excludes null
scores from `total_points_earned` and `graded_count` (analytics.ts:382-385).
The misleading part was the denominator spanning ungraded questions, which is
a presentation concern and is handled in the widget.
Verified against the `lms_demo_submission_grader` default fixture (ungraded Q5,
overridden Q4, confidences 0.82 and 0.41) in both light and dark themes.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Zt1kZKdcWAcsiJdBgnX3D1 parent a6c88d3 commit 6ee3f57
1 file changed
Lines changed: 68 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
95 | 106 | | |
96 | 107 | | |
97 | 108 | | |
| |||
166 | 177 | | |
167 | 178 | | |
168 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
169 | 189 | | |
170 | 190 | | |
171 | 191 | | |
| |||
216 | 236 | | |
217 | 237 | | |
218 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
219 | 247 | | |
220 | 248 | | |
221 | 249 | | |
| |||
255 | 283 | | |
256 | 284 | | |
257 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
258 | 289 | | |
259 | 290 | | |
260 | 291 | | |
| |||
273 | 304 | | |
274 | 305 | | |
275 | 306 | | |
276 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
277 | 312 | | |
278 | 313 | | |
279 | 314 | | |
| |||
284 | 319 | | |
285 | 320 | | |
286 | 321 | | |
287 | | - | |
| 322 | + | |
288 | 323 | | |
289 | | - | |
290 | | - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
291 | 342 | | |
292 | 343 | | |
293 | 344 | | |
| |||
342 | 393 | | |
343 | 394 | | |
344 | 395 | | |
345 | | - | |
346 | | - | |
| 396 | + | |
| 397 | + | |
347 | 398 | | |
348 | | - | |
349 | | - | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
350 | 410 | | |
351 | 411 | | |
352 | 412 | | |
| |||
0 commit comments