UI changes to Solutions (Writing, Speaking and Interactive Speaking) as requested

This commit is contained in:
Carlos Mesquita
2024-08-06 17:02:17 +01:00
parent a4a40b9145
commit 7fd56357e0
4 changed files with 115 additions and 132 deletions

View File

@@ -1,4 +1,4 @@
import {Module} from ".";
import { Module } from ".";
export type Exam = ReadingExam | ListeningExam | WritingExam | SpeakingExam | LevelExam;
export type Variant = "full" | "partial";
@@ -115,17 +115,21 @@ export interface Evaluation {
misspelled_pairs?: {correction: string | null; misspelled: string}[];
}
interface InteractiveSpeakingEvaluation extends Evaluation {
perfect_answer_1?: {answer: string};
transcript_1?: string;
fixed_text_1?: string;
perfect_answer_2?: {answer: string};
transcript_2?: string;
fixed_text_2?: string;
perfect_answer_3?: {answer: string};
transcript_3?: string;
fixed_text_3?: string;
}
type InteractivePerfectAnswerKey = `perfect_answer_${number}`;
type InteractiveTranscriptKey = `transcript_${number}`;
type InteractiveFixedTextKey = `fixed_text_${number}`;
type InteractivePerfectAnswerType = { [key in InteractivePerfectAnswerKey]: { answer: string } };
type InteractiveTranscriptType = { [key in InteractiveTranscriptKey]?: string };
type InteractiveFixedTextType = { [key in InteractiveFixedTextKey]?: string };
interface InteractiveSpeakingEvaluation extends Evaluation,
InteractivePerfectAnswerType,
InteractiveTranscriptType,
InteractiveFixedTextType
{}
interface SpeakingEvaluation extends CommonEvaluation {
perfect_answer_1?: string;