mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
adding feedback
This commit is contained in:
@@ -70,7 +70,29 @@ this is a matching question
|
||||
^ left answer - right dropdown
|
||||
^ other thing - another option
|
||||
^ - distractor
|
||||
^ - other distractor`;
|
||||
^ - other distractor
|
||||
---
|
||||
Points: 3
|
||||
FEEDBACK EXAMPLE
|
||||
What is 2+3?
|
||||
+ Correct! Good job
|
||||
- Incorrect, try again
|
||||
... This is general feedback shown regardless
|
||||
*a) 4
|
||||
*b) 5
|
||||
c) 6
|
||||
---
|
||||
Points: 2
|
||||
FEEDBACK EXAMPLE
|
||||
Multiline feedback example
|
||||
+
|
||||
Great work!
|
||||
You understand the concept.
|
||||
-
|
||||
Not quite right.
|
||||
Review the material and try again.
|
||||
*a) correct answer
|
||||
b) wrong answer`;
|
||||
};
|
||||
|
||||
export default function EditQuiz({
|
||||
|
||||
@@ -80,6 +80,42 @@ function QuizQuestionPreview({ question }: { question: LocalQuizQuestion }) {
|
||||
</div>
|
||||
</div>
|
||||
<MarkdownDisplay markdown={question.text} className="ms-4 mb-2" />
|
||||
|
||||
{/* Feedback Section */}
|
||||
{(question.correctComments ||
|
||||
question.incorrectComments ||
|
||||
question.neutralComments) && (
|
||||
<div className=" m-2 ps-2 py-1 rounded flex bg-slate-950/50">
|
||||
<div>Feedback</div>
|
||||
<div className="mx-4 space-y-1">
|
||||
{question.correctComments && (
|
||||
<div className="border-l-2 border-green-700 pl-2 py-1">
|
||||
<span className="text-green-500">+ </span>
|
||||
<span className="text-slate-300">
|
||||
{question.correctComments}
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
{question.incorrectComments && (
|
||||
<div className="border-l-2 border-red-700 pl-2 py-1">
|
||||
<span className="text-red-500">- </span>
|
||||
<span className="text-slate-300">
|
||||
{question.incorrectComments}
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
{question.neutralComments && (
|
||||
<div className="border-l-2 border-blue-800 pl-2 py-1">
|
||||
<span className="text-blue-500">... </span>
|
||||
<span className="text-slate-300">
|
||||
{question.neutralComments}
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{question.questionType === QuestionType.MATCHING && (
|
||||
<div>
|
||||
{question.answers.map((answer) => (
|
||||
|
||||
Reference in New Issue
Block a user