Repository navigation
feat: Student Exam Center with submission review and instructor submission drill-down - #173
Merged
Merged
Conversation
Copilot
AI
changed the title
[WIP] Add functionality for students to view submitted exams
feat: Student Exam Center with submission review and instructor submission drill-down
Jul 22, 2026
kristofer
approved these changes
Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Students had no way to view exams they had already submitted. Instructors could see aggregate scores but couldn't drill into a student's individual answers.
New API endpoint
GET /exam/submission?attempt_id={id}&user_id={id}— returns full submission detail: each question, all answer choices, the student's selection, and per-question correctness. Authorization: students can only access their own attempts; admins can access any.Both
GetExamStatusandGetAssignedExamsForUserSQL queries updated to selectatt.id; InMemoryDB implementations updated to match.New pages
/exam-center.html— dedicated student Exam Center (replaces the inline dashboard panel). Two sections: pending exams (Start button) and submitted exams (View Submission + Retake)./exam-review.html— per-attempt review showing each question with the student's answer highlighted (✅ correct / ❌ wrong / ✓ correct-not-selected). Works for both students and instructors (admins see any attempt).Changes to existing pages
admin-exams.htmlscoring table — "View Submission" link added to each completed row (uses the instructor's ownuser_idas the requesting user, satisfying the admin auth check on the new endpoint).