l-min-components 1.7.1449 → 1.7.1451
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -59,7 +59,7 @@ const Response = ({
|
|
|
59
59
|
<p className={classNames({ "good-fallback": goodFallback })}>
|
|
60
60
|
{fallbackMessage ||
|
|
61
61
|
(isAiWordFlow
|
|
62
|
-
? "
|
|
62
|
+
? "Analysis unavailable. We couldn’t generate it this time."
|
|
63
63
|
: "No response was provided by the student for this question.")}
|
|
64
64
|
</p>
|
|
65
65
|
</FallbackResponse>
|
|
@@ -57,6 +57,7 @@ const ReportQuestions = ({
|
|
|
57
57
|
}) => {
|
|
58
58
|
const [comment, setComment] = useState(null);
|
|
59
59
|
const [intructorScore, setInstructorScore] = useState(0);
|
|
60
|
+
const [AIScore, setAIScore] = useState(0);
|
|
60
61
|
const [toggleGrade, setToggleGrade] = useState(false);
|
|
61
62
|
const [toggle, setToggle] = useState(null);
|
|
62
63
|
const { affiliateAccount } = useContext(OutletContext);
|
|
@@ -82,6 +83,8 @@ const ReportQuestions = ({
|
|
|
82
83
|
)
|
|
83
84
|
setInstructorScore(data?.grading_data?.score || 0);
|
|
84
85
|
else setInstructorScore(data?.score || 0);
|
|
86
|
+
|
|
87
|
+
setAIScore(data?.ai_score || 0);
|
|
85
88
|
}
|
|
86
89
|
}, [data?.question_id]);
|
|
87
90
|
|
|
@@ -128,7 +131,7 @@ const ReportQuestions = ({
|
|
|
128
131
|
{gradeQuestionData?.loading && <FullPageLoader fixed hasBackground />}
|
|
129
132
|
{toggleGrade && (
|
|
130
133
|
<GradingModal
|
|
131
|
-
aiValue={formatNumber(
|
|
134
|
+
aiValue={formatNumber(AIScore)}
|
|
132
135
|
suggestionValue={formatNumber(data?.suggested_score)}
|
|
133
136
|
noAi={noAi}
|
|
134
137
|
setScore={handleScore}
|
|
@@ -172,7 +175,7 @@ const ReportQuestions = ({
|
|
|
172
175
|
hidden: noAi,
|
|
173
176
|
})}
|
|
174
177
|
>
|
|
175
|
-
AI score: <span>{formatNumber(
|
|
178
|
+
AI score: <span>{formatNumber(AIScore)}%</span>
|
|
176
179
|
</ScoreBadge>
|
|
177
180
|
)
|
|
178
181
|
)}
|