diff --git a/frontend/src/dialogues/socialnetwork/VocabPracticeDialog.vue b/frontend/src/dialogues/socialnetwork/VocabPracticeDialog.vue index 694b777..0ff426c 100644 --- a/frontend/src/dialogues/socialnetwork/VocabPracticeDialog.vue +++ b/frontend/src/dialogues/socialnetwork/VocabPracticeDialog.vue @@ -45,17 +45,6 @@ -
-
- {{ $t('socialnetwork.vocab.practice.yourAnswer') }} - {{ submittedAnswer }} -
-
{{ $t('socialnetwork.vocab.practice.correctSolutions') }}
- -
-
{{ $t('socialnetwork.vocab.practice.srsRateTitle') }}
+ +
+
{{ $t('socialnetwork.vocab.practice.wrongReviewTitle') }}
+
+ {{ $t('socialnetwork.vocab.practice.askedVocab') }} + {{ lastWrongReview.prompt }} +
+
+ {{ $t('socialnetwork.vocab.practice.yourAnswer') }} + {{ lastWrongReview.submittedAnswer }} +
+
{{ $t('socialnetwork.vocab.practice.correctSolutions') }}
+ +
@@ -175,6 +180,7 @@ export default { direction: 'L2R', // L2R: learning->reference, R2L: reference->learning acceptableAnswers: [], submittedAnswer: '', + lastWrongReview: null, choiceOptions: [], typedAnswer: '', answered: false, @@ -371,6 +377,7 @@ export default { this.wrongCount = 0; this.perId = {}; this.lastIds = []; + this.lastWrongReview = null; this.pool = []; this.locked = false; this.resetQuestion(); @@ -739,8 +746,20 @@ export default { markResult(isCorrect) { this.answered = true; this.lastCorrect = isCorrect; - if (isCorrect) this.correctCount += 1; - else this.wrongCount += 1; + if (isCorrect) { + this.correctCount += 1; + this.lastWrongReview = null; + } else { + this.wrongCount += 1; + const answers = this.visibleCorrectAnswers.length > 0 + ? [...this.visibleCorrectAnswers] + : (this.acceptableAnswers || []).filter(Boolean); + this.lastWrongReview = { + prompt: this.currentPrompt, + submittedAnswer: this.submittedAnswer, + answers + }; + } if (!this.srsMode) { this.reportSrsReview(isCorrect); } @@ -977,10 +996,22 @@ export default { border: 1px solid #d33; background: #fff8f8; } +.solution-card--persistent { + margin-top: 12px; +} .solution-card ul { margin: 6px 0 0; padding-left: 20px; } +.solution-row { + display: grid; + gap: 3px; + margin: 8px 0; + color: #5f554e; +} +.solution-row strong { + color: #2b2520; +} .submitted-answer { display: grid; gap: 3px; diff --git a/frontend/src/i18n/locales/ceb/socialnetwork.json b/frontend/src/i18n/locales/ceb/socialnetwork.json index c086571..42ea763 100644 --- a/frontend/src/i18n/locales/ceb/socialnetwork.json +++ b/frontend/src/i18n/locales/ceb/socialnetwork.json @@ -796,6 +796,10 @@ "correct": "Tama!", "wrong": "Sayop.", "acceptable": "Acceptable answers:", + "correctSolutions": "Tama answer:", + "yourAnswer": "Imong answer:", + "wrongReviewTitle": "Previous wrong answer", + "askedVocab": "Gipangutana:", "stats": "Stats", "dueToday": "Due karon", "done": "Nahuman", diff --git a/frontend/src/i18n/locales/de/socialnetwork.json b/frontend/src/i18n/locales/de/socialnetwork.json index 814df01..b8b5ff1 100644 --- a/frontend/src/i18n/locales/de/socialnetwork.json +++ b/frontend/src/i18n/locales/de/socialnetwork.json @@ -453,6 +453,8 @@ "acceptable": "Mögliche richtige Übersetzungen:", "correctSolutions": "Richtige Antwort:", "yourAnswer": "Deine Antwort:", + "wrongReviewTitle": "Vorherige falsche Antwort", + "askedVocab": "Abgefragt:", "stats": "Statistik", "dueToday": "Heute fällig", "done": "Erledigt", diff --git a/frontend/src/i18n/locales/en/socialnetwork.json b/frontend/src/i18n/locales/en/socialnetwork.json index 25a9262..d52268e 100644 --- a/frontend/src/i18n/locales/en/socialnetwork.json +++ b/frontend/src/i18n/locales/en/socialnetwork.json @@ -453,6 +453,8 @@ "acceptable": "Acceptable answers:", "correctSolutions": "Correct answer:", "yourAnswer": "Your answer:", + "wrongReviewTitle": "Previous wrong answer", + "askedVocab": "Asked:", "stats": "Stats", "dueToday": "Due today", "done": "Done", diff --git a/frontend/src/i18n/locales/es/socialnetwork.json b/frontend/src/i18n/locales/es/socialnetwork.json index e1e04b1..64eea41 100644 --- a/frontend/src/i18n/locales/es/socialnetwork.json +++ b/frontend/src/i18n/locales/es/socialnetwork.json @@ -451,6 +451,10 @@ "correct": "¡Correcto!", "wrong": "Incorrecto.", "acceptable": "Traducciones correctas posibles:", + "correctSolutions": "Respuesta correcta:", + "yourAnswer": "Tu respuesta:", + "wrongReviewTitle": "Respuesta incorrecta anterior", + "askedVocab": "Preguntado:", "stats": "Estadísticas", "success": "Éxito", "fail": "Fallo" diff --git a/frontend/src/i18n/locales/fr/socialnetwork.json b/frontend/src/i18n/locales/fr/socialnetwork.json index 1b65976..1893377 100644 --- a/frontend/src/i18n/locales/fr/socialnetwork.json +++ b/frontend/src/i18n/locales/fr/socialnetwork.json @@ -451,6 +451,10 @@ "correct": "Correct!", "wrong": "Incorrect.", "acceptable": "Traductions correctes possibles :", + "correctSolutions": "Bonne réponse :", + "yourAnswer": "Votre réponse :", + "wrongReviewTitle": "Réponse incorrecte précédente", + "askedVocab": "Demandé :", "stats": "statistiques", "success": "Succès", "fail": "échec"