diff --git a/src/IsaacApiTypes.tsx b/src/IsaacApiTypes.tsx index bd97dbd6ab..17a5c28bc5 100644 --- a/src/IsaacApiTypes.tsx +++ b/src/IsaacApiTypes.tsx @@ -370,9 +370,6 @@ export interface InlineRegionValidationResponseDTO extends QuestionValidationRes } export interface LLMFreeTextQuestionValidationResponseDTO extends QuestionValidationResponseDTO { - markCalculationInstructions?: string; - additionalMarkingInstructions?: string; - maxMarks?: number; marksAwarded?: number; markBreakdown?: LLMFreeTextMarkSchemeEntryDTO[]; } diff --git a/src/app/components/content/IsaacQuestion.tsx b/src/app/components/content/IsaacQuestion.tsx index 64376b800a..62f92aa370 100644 --- a/src/app/components/content/IsaacQuestion.tsx +++ b/src/app/components/content/IsaacQuestion.tsx @@ -76,7 +76,6 @@ export const IsaacQuestion = withRouter(({doc, location}: {doc: ApiTypes.Questio const [hasSubmitted, setHasSubmitted] = useState(false); const hidingAttempts = useAppSelector(selectors.user.preferences)?.DISPLAY_SETTING?.HIDE_QUESTION_ATTEMPTS ?? false; - const {confidenceState, setConfidenceState, validationPending, setValidationPending, confidenceDisabled, recordConfidence, showQuestionFeedback} = useConfidenceQuestionsValues( currentGameboard?.tags?.includes("CONFIDENCE_RESEARCH_BOARD"), "question", @@ -289,7 +288,7 @@ export const IsaacQuestion = withRouter(({doc, location}: {doc: ApiTypes.Questio {/* LLM free-text question validation response */} {isLLMFreeTextQuestion && showQuestionFeedback && validationResponse && showInlineAttemptStatus && !canSubmit && - + } ; }); diff --git a/src/app/components/elements/LLMFreeTextQuestionFeedbackView.tsx b/src/app/components/elements/LLMFreeTextQuestionFeedbackView.tsx index 15051ada60..580812cb1f 100644 --- a/src/app/components/elements/LLMFreeTextQuestionFeedbackView.tsx +++ b/src/app/components/elements/LLMFreeTextQuestionFeedbackView.tsx @@ -12,11 +12,12 @@ const noFeedback = {disagree: false, partlyAgree: false, agree: false}; interface LLMFreeTextQuestionFeedbackViewProps { validationResponse: Immutable; + maxMarks: number; hasSubmitted: boolean; sentFeedback: boolean; setSentFeedback: (value: boolean) => void; } -export default function LLMFreeTextQuestionFeedbackView({validationResponse, hasSubmitted, sentFeedback, setSentFeedback}: LLMFreeTextQuestionFeedbackViewProps) { +export default function LLMFreeTextQuestionFeedbackView({validationResponse, maxMarks, hasSubmitted, sentFeedback, setSentFeedback}: LLMFreeTextQuestionFeedbackViewProps) { const dispatch = useAppDispatch(); const page = useAppSelector(selectors.doc.get); const pageId = page && page !== NOT_FOUND && page.id || undefined; @@ -35,7 +36,7 @@ export default function LLMFreeTextQuestionFeedbackView({validationResponse, has
- {`Prediction: ${validationResponse.marksAwarded} out of ${validationResponse.maxMarks} marks`} + {`Prediction: ${validationResponse.marksAwarded} out of ${maxMarks} marks`}