feat: AI grading bug (#420)

* worked on the AI grading task

* worked on the AI grading task

* improved the ai grading function

* improved the ai grading function

* update types

---------

Co-authored-by: Rotimi Best <[email protected]>
This commit is contained in:
Nwosu Emmanuel
2025-09-28 20:08:56 +01:00
committed by GitHub
co-authored by Rotimi Best
parent 7e0443fc37
commit 594eb97caa
10 changed files with 119 additions and 36 deletions
@@ -515,6 +515,11 @@
"accept_grade": "Akzeptieren",
"reject_grade": "Ablehnen",
"add_comment_placeholder": "Hinterlasse einen Kommentar",
"allocated": "Diese Punktzahl wurde vergeben, weil",
"total_try": "der Gesamtversuche:",
"options_correct": "Es wurden die richtigen Optionen ausgewählt",
"out_of": "aus",
"options_wrong": "und die Anzahl der falschen Auswahlen war",
"questions_tried": "Diese Punktzahl wurde aufgrund der Gesamtzahl der Versuche vergeben:",
"delete_prompt": "Löschen",
"delete_error": "Die Übermittlung konnte nicht gelöscht werden",
@@ -1581,4 +1586,4 @@
"message": "Sie haben nicht gerettete Änderungen. Bist du sicher, dass du gehen willst?"
}
}
}
}
@@ -912,6 +912,11 @@
"submit_grades": "Submit Grades",
"accept_grade": "Accept",
"reject_grade": "Reject",
"allocated": "Allocated this score because",
"total_try": "of total tries:",
"options_correct": "correct options were selected",
"out_of": "out of",
"options_wrong": "and the number of wrong selections were",
"questions_tried": "Allocated this score because of total tries:",
"delete_prompt": "Delete",
"delete_error": "Failed to delete submission",
@@ -515,6 +515,11 @@
"accept_grade": "Aceptar",
"reject_grade": "Rechazar",
"add_comment_placeholder": "Deja un comentario",
"allocated": "Asignó esta puntuación porque",
"total_try": "de intentos totales:",
"options_correct": "se seleccionaron las opciones correctas",
"out_of": "fuera de",
"options_wrong": "y el número de selecciones incorrectas fue",
"questions_tried": "Se asignó esta puntuación debido al total de intentos:",
"delete_prompt": "Borrar",
"delete_error": "No se pudo eliminar el envío",
@@ -1581,4 +1586,4 @@
"message": "Tienes cambios no salvos. ¿Estás seguro de que quieres irte?"
}
}
}
}
@@ -515,6 +515,11 @@
"accept_grade": "Accepter",
"reject_grade": "Rejeter",
"add_comment_placeholder": "laissez un commentaire",
"allocated": "J'ai attribué ce score parce que",
"total_try": "du total d'essais :",
"options_correct": "les bonnes options ont été sélectionnées",
"out_of": "hors de",
"options_wrong": "et le nombre de mauvaises sélections était",
"questions_tried": "Attribué ce score en raison du nombre total d'essais :",
"delete_prompt": "Supprimer",
"delete_error": "Échec de la suppression de la soumission",
@@ -1581,4 +1586,4 @@
"message": "Vous avez des changements non sauvés. Êtes-vous sûr de vouloir partir?"
}
}
}
}
@@ -515,6 +515,11 @@
"accept_grade": "स्वीकार करना",
"reject_grade": "अस्वीकार करना",
"add_comment_placeholder": "एक टिप्पणी छोड़ें",
"allocated": "यह अंक इसलिए आवंटित किया गया क्योंकि",
"total_try": "कुल प्रयासों में से:",
"options_correct": "सही विकल्प का चयन किया गया",
"out_of": "से बाहर",
"options_wrong": "और गलत चयनों की संख्या थी",
"questions_tried": "कुल प्रयासों के कारण यह स्कोर आवंटित किया गया:",
"delete_prompt": "मिटाना",
"delete_error": "सबमिशन हटाने में विफल",
@@ -1581,4 +1586,4 @@
"message": "आपके पास अनसुना परिवर्तन हैं। क्या आपकी वाकई छोड़ने की इच्छा है?"
}
}
}
}
@@ -515,6 +515,11 @@
"accept_grade": "Aceitar",
"reject_grade": "Rejeitar",
"add_comment_placeholder": "Deixe um comentário",
"allocated": "Alocou esta pontuação porque",
"total_try": "do total de tentativas:",
"options_correct": "opções corretas foram selecionadas",
"out_of": "fora de",
"options_wrong": "e o número de seleções erradas foi",
"questions_tried": "Alocada esta pontuação por causa do total de tentativas:",
"delete_prompt": "Excluir",
"delete_error": "Falha ao excluir o envio",
@@ -1581,4 +1586,4 @@
"message": "Você tem mudanças não salvas. Tem certeza de que deseja sair?"
}
}
}
}
@@ -515,6 +515,11 @@
"accept_grade": "Принимать",
"reject_grade": "Отклонять",
"add_comment_placeholder": "Оставить комментарий",
"allocated": "Присвоен этот балл, потому что",
"total_try": "общего числа попыток:",
"options_correct": "выбраны правильные варианты",
"out_of": "снаружи",
"options_wrong": "и количество неправильных выборов было",
"questions_tried": "Присвоен этот балл из-за общего количества попыток:",
"delete_prompt": "Удалить",
"delete_error": "Не удалось удалить отправку",
@@ -1581,4 +1586,4 @@
"message": "У вас есть неспасенные изменения. Вы уверены, что хотите уйти?"
}
}
}
}
@@ -515,6 +515,11 @@
"accept_grade": "Chấp nhận",
"reject_grade": "Từ chối",
"add_comment_placeholder": "Để lại một bình luận",
"allocated": "Phân bổ số điểm này bởi vì",
"total_try": "trong tổng số lần thử:",
"options_correct": "các phương án đúng đã được chọn",
"out_of": "ra khỏi",
"options_wrong": "và số lựa chọn sai là",
"questions_tried": "Phân bổ số điểm này dựa trên tổng số lần thử:",
"delete_prompt": "Xóa bỏ",
"delete_error": "Không thể xóa bài nộp",
@@ -1581,4 +1586,4 @@
"message": "Bạn có những thay đổi chưa được lưu. Bạn có chắc bạn muốn rời đi?"
}
}
}
}
@@ -1,4 +1,4 @@
import { Profile } from '.';
import { Option, Profile } from '.';
export interface SubmissionItem {
id: string;
@@ -37,6 +37,7 @@ export interface SubmissionIdData {
order: number;
points: number;
question_type_id: number;
options: Option[];
}[];
questionAnswers: {
open_answer: string;