1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-02 22:02:39 +02:00

Merge branch 'feat/ai-quiz' of github.com:kamranahmedse/developer-roadmap into feat/ai-quiz

This commit is contained in:
Kamran Ahmed
2025-07-07 17:13:46 +01:00
2 changed files with 5 additions and 2 deletions

View File

@@ -57,6 +57,7 @@ export function AIOpenEndedQuestion(props: AIOpenEndedQuestionProps) {
} }
setCorrectAnswer(data.feedback || ''); setCorrectAnswer(data.feedback || '');
onSubmit(data?.status || 'incorrect');
}, },
}); });
@@ -107,7 +108,9 @@ export function AIOpenEndedQuestion(props: AIOpenEndedQuestionProps) {
title={ title={
feedbackStatus === 'can_be_improved' feedbackStatus === 'can_be_improved'
? 'Can be improved' ? 'Can be improved'
: 'Feedback' : feedbackStatus === 'correct'
? 'Correct'
: 'Incorrect'
} }
explanation={feedback} explanation={feedback}
/> />

View File

@@ -96,7 +96,7 @@ export function AIQuizResults(props: AIQuizResultsProps) {
label="Try Again" label="Try Again"
icon={<RotateCcw className="h-4 w-4" />} icon={<RotateCcw className="h-4 w-4" />}
onClick={onRetry} onClick={onRetry}
className="border border-gray-300 bg-white text-gray-700" className="border border-gray-300 bg-white text-gray-700 hover:bg-gray-100"
/> />
<ResultAction <ResultAction
label="New Quiz" label="New Quiz"