mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-08 02:28:25 -05:00
[PR #1415] [MERGED] fix(staffml/gauntlet): add rubric checkboxes and fix silent fail on empty question pool #8182
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1415
Author: @Shashank-Tripathi-07
Created: 4/20/2026
Status: ✅ Merged
Merged: 4/20/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/gauntlet-rubric-and-silent-fail📝 Commits (2)
5c63db7fix(staffml/gauntlet): add rubric checkboxes and fix silent fail on empty question poole066727ci: retrigger CI📊 Changes
1 file changed (+103 additions, -20 deletions)
View changed files
📝
interviews/staffml/src/app/gauntlet/page.tsx(+103 -20)📄 Description
What is fixed
Two bugs in the Gauntlet page.
Bug 1: No rubric in Gauntlet
The Practice page shows rubric checkboxes after revealing an answer. You check off which points you covered, and the score buttons cap at your rubric score. Gauntlet had none of this. Users were scoring themselves on gut feel with no structure.
This matters because Gauntlet is the mock interview mode, the highest-stakes session in the app. It had weaker self-assessment tooling than Practice.
What this PR adds to Gauntlet:
effectiveMaxScore(capped by rubric) so buttons above your rubric score are disabledBug 2: Silent fail when question pool is empty
In design mode, if no L5+ questions exist for the selected track,
startGauntlethitif (selected.length === 0) returnand did nothing. The user clicked Begin and nothing happened. No feedback, no error.Now shows a toast: "No questions found. Try a different track or difficulty level."
How to verify
Rubric:
Silent fail:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.