feat: Puente Mayúscula-Minúscula + TTS SpeechSynthesis + E2E fixes

This commit is contained in:
renato97
2026-07-21 15:31:46 -03:00
commit fa8e0c58ce
120 changed files with 16013 additions and 0 deletions
+82
View File
@@ -0,0 +1,82 @@
import type { Stage } from '../types'
const exercises: any[] = []
// Count 1-5
for (let n = 1; n <= 5; n++) {
const emojis = '⭐'.repeat(n)
exercises.push({
id: `num1-contar-${n}`,
stage: 1,
skillCode: `contar-${n}`,
type: 'sensibilizacion',
prerequisites: n === 1 ? [] : [`num1-contar-${n - 1}`],
content: {
instruction: `Contá. ¿Cuántas estrellas hay?`,
audioText: `Uno, dos, tres...`,
emoji: emojis,
options: [
...Array.from({ length: 5 }, (_, i) => i + 1)
.filter(j => j !== n)
.slice(0, 2)
.map(j => ({ label: String(j), correct: false, id: String(j) })),
{ label: String(n), correct: true, id: String(n) },
].sort(() => Math.random() - 0.5),
},
functionalContext: `Contar hasta ${n} elementos.`,
errorType: 'discriminacion-auditiva',
})
}
// Recognize written digits 1-5
for (let n = 1; n <= 5; n++) {
exercises.push({
id: `num1-digito-${n}`,
stage: 1,
skillCode: `digito-${n}`,
type: 'eleccion',
prerequisites: [`num1-contar-${n}`],
content: {
instruction: `Señalá el número ${n}`,
audioText: `Buscá el número ${n}`,
options: [
...Array.from({ length: 5 }, (_, i) => i + 1)
.filter(j => j !== n)
.slice(0, 2)
.map(j => ({ label: String(j), correct: false, id: String(j) })),
{ label: String(n), correct: true, id: String(n) },
].sort(() => Math.random() - 0.5),
emoji: String(n),
},
functionalContext: `Reconocer el dígito ${n}.`,
errorType: 'confusion-letra',
})
}
// Trace with finger
for (let n = 1; n <= 5; n++) {
exercises.push({
id: `num1-trazo-${n}`,
stage: 1,
skillCode: `digito-${n}`,
type: 'trazo',
prerequisites: [`num1-digito-${n}`],
content: {
instruction: `Trazá el número ${n} con tu dedo`,
text: String(n),
audioText: `Trazá el número ${n}`,
emoji: '✍️',
},
functionalContext: `Aprender a trazar el número ${n}.`,
errorType: 'confusion-letra',
})
}
const stage: Stage = {
id: 1,
name: 'Conteo del 1 al 5',
description: 'Contar objetos, reconocer dígitos y trazar números del 1 al 5.',
exercises,
}
export default stage