Commit f4ac391
* 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_017Zt1kZKdcWAcsiJdBgnX3D
* docs(mcp): before/after shots of the submission-grader grading states (#567)
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Zt1kZKdcWAcsiJdBgnX3D
* docs(qa): re-shoot #567 grading states on the merged widget
master's #578 rewrote this widget with i18n, so the PR's original
screenshots no longer show the code under review. Re-shot from the demo
fixture after the merge, plus a Spanish render — the three new
affordances are translated now, and es is the path the old shots could
not have covered.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Zt1kZKdcWAcsiJdBgnX3D
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 5de9ad2 commit f4ac391
8 files changed
Lines changed: 88 additions & 11 deletions
File tree
- docs
- images/issue-567
- qa/567
- mcp-server/resources/submission-grader
Loading
Loading
Loading
Loading
Loading
Loading
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
92 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
| |||
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
| 125 | + | |
120 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
121 | 131 | | |
122 | 132 | | |
123 | 133 | | |
| |||
132 | 142 | | |
133 | 143 | | |
134 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
135 | 160 | | |
136 | 161 | | |
137 | 162 | | |
| |||
216 | 241 | | |
217 | 242 | | |
218 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
219 | 253 | | |
220 | 254 | | |
221 | 255 | | |
| |||
272 | 306 | | |
273 | 307 | | |
274 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
275 | 315 | | |
276 | 316 | | |
277 | 317 | | |
| |||
311 | 351 | | |
312 | 352 | | |
313 | 353 | | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
314 | 357 | | |
315 | 358 | | |
316 | 359 | | |
| |||
329 | 372 | | |
330 | 373 | | |
331 | 374 | | |
332 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
333 | 380 | | |
334 | 381 | | |
335 | 382 | | |
| |||
340 | 387 | | |
341 | 388 | | |
342 | 389 | | |
343 | | - | |
| 390 | + | |
344 | 391 | | |
345 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
346 | 401 | | |
347 | | - | |
| 402 | + | |
348 | 403 | | |
349 | 404 | | |
350 | 405 | | |
351 | 406 | | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
352 | 417 | | |
353 | 418 | | |
354 | 419 | | |
| |||
401 | 466 | | |
402 | 467 | | |
403 | 468 | | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
411 | 488 | | |
412 | 489 | | |
413 | 490 | | |
| |||
0 commit comments