Implemented the Writing exercise's solution display

This commit is contained in:
Tiago Ribeiro
2023-06-22 16:59:13 +01:00
parent b194a9183e
commit fe4a97ec85
7 changed files with 334 additions and 110 deletions

View File

@@ -69,13 +69,23 @@ export type Exercise =
| WritingExercise
| SpeakingExercise;
export interface WritingEvaluation {
comment: string;
overall: number;
task_response: {[key: string]: number};
}
export interface WritingExercise {
id: string;
type: "writing";
info: string; //* The information about the task, like the amount of time they should spend on it
prompt: string; //* The context given to the user containing what they should write about
wordCounter: WordCounter; //* The minimum or maximum amount of words that should be written
attachment?: string; //* The url for an image to work as an attachment to show the user
attachment?: {
url: string;
description: string;
}; //* The url for an image to work as an attachment to show the user
evaluation?: WritingEvaluation;
userSolutions: {
id: string;
solution: string;