From b4bfa3e716bc385600bbeb385cddf2fe0e073f4f Mon Sep 17 00:00:00 2001 From: Sol Dubock <94075844+sjd210@users.noreply.github.com> Date: Fri, 7 Nov 2025 14:39:47 +0000 Subject: [PATCH] Replace "marksAwarded" with "marks" field in DTOs --- src/IsaacApiTypes.tsx | 2 +- src/app/components/elements/LLMFreeTextQuestionFeedbackView.tsx | 2 +- src/mocks/data.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IsaacApiTypes.tsx b/src/IsaacApiTypes.tsx index da235d0d86..fe64c57f69 100644 --- a/src/IsaacApiTypes.tsx +++ b/src/IsaacApiTypes.tsx @@ -360,6 +360,7 @@ export interface QuestionValidationResponseDTO { questionId?: string; answer?: ChoiceDTO; correct?: boolean; + marks?: number; explanation?: ContentDTO; dateAttempted?: Date; } @@ -374,7 +375,6 @@ export interface InlineRegionValidationResponseDTO extends QuestionValidationRes } export interface LLMFreeTextQuestionValidationResponseDTO extends QuestionValidationResponseDTO { - marksAwarded?: number; markBreakdown?: LLMFreeTextMarkSchemeEntryDTO[]; } diff --git a/src/app/components/elements/LLMFreeTextQuestionFeedbackView.tsx b/src/app/components/elements/LLMFreeTextQuestionFeedbackView.tsx index 4707dcb48f..da578dc7f9 100644 --- a/src/app/components/elements/LLMFreeTextQuestionFeedbackView.tsx +++ b/src/app/components/elements/LLMFreeTextQuestionFeedbackView.tsx @@ -39,7 +39,7 @@ export default function LLMFreeTextQuestionFeedbackView({validationResponse, max
- {`Prediction: ${validationResponse.marksAwarded} out of ${maxMarks} marks`} + {`Prediction: ${validationResponse.marks} out of ${maxMarks} marks`}
diff --git a/src/mocks/data.ts b/src/mocks/data.ts index ff75256957..b685070d4f 100644 --- a/src/mocks/data.ts +++ b/src/mocks/data.ts @@ -4462,7 +4462,7 @@ export const mockLLMMarkedValidationResponse = { }, "correct": true, "dateAttempted": 1760018609128, - "marksAwarded": 1, + "marks": 1, "markBreakdown": [ { "jsonField": "unreceivedMark0",