Skip to content

feature(examlense): restyle grading mode cards#10

Merged
zhngharry merged 2 commits into
mainfrom
restyle-grading-mode-cards
Jul 14, 2026
Merged

feature(examlense): restyle grading mode cards#10
zhngharry merged 2 commits into
mainfrom
restyle-grading-mode-cards

Conversation

@zhngharry

Copy link
Copy Markdown
Contributor

No description provided.

zhngharry and others added 2 commits July 14, 2026 18:48
Split the grading task into a card-less question block (prompt + collapsible
learning goals) and a primary grade card (AI answer / choice options + score),
so the gradable answer is the only "work object" on the page. Polish score
entry (unified 0.5-step slider with a full-height hit area + tick marks, a
value/max number input) and add a snake-style danger border on tasks that
still need grading.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Route each exam to the canonical mode for its status (draft->edit,
grading->grade, finished->results) and redirect mismatched links instead of
silently transitioning the exam into the accessed mode. Re-opening a finished
exam for grading is now an explicit action on the results page. Enforce the
invariant server-side too: the finished transition requires all tasks graded,
and grade edits require the exam to be in grading status.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@zhngharry
zhngharry requested review from florivn and yinggez July 14, 2026 16:51

@yinggez yinggez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot:
Risk level: Medium.
The UI changes are significant in grading flows; QA should exercise full grading roundtrip (generate answer, change score, concurrent grading attempts) before merging.
The backend check prevents obvious data corruption, but please make it atomic to avoid rare races.

@zhngharry
zhngharry merged commit 1632fe7 into main Jul 14, 2026
10 checks passed
@zhngharry
zhngharry deleted the restyle-grading-mode-cards branch July 14, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants