feat: fase 2+3 — expansion masiva multi-perfil + bug fixes + hardening

Fase 2 (expansion):
- Francesca: +6 etapas matematicas (5-10), +7 etapas lectura (3-9), +2 ortografia
- Sebastian: +8 etapas matematicas (4-11), +6 lectura, +3 historia, +3 geografia, +1 banderas
- Nuevas paginas: ortografia, lectura, geografia, matematicas
- ~900 ejercicios nuevos, paridad ~500 por perfil

Fase 3 (bug fixes + hardening):
- Fix: SessionLog auto-create en grade route
- Fix: engine cache (no borrar antes de revisar)
- Fix: FSRS cards actualizadas en flujo curriculum
- Fix: responseMs real (no hardcodeado 3000)
- Fix: options dentro de content en sebastian etapa-1
- Fix: trazo-letra consonantes crash
- Security: execFileSync anti-command-injection en TTS
- DB: 18 cascade deletes + indices + unique constraints
- APIs debug: reset, state, seed
- Docker: espeak-ng + prisma + user/group
- E2E: 23 tests nuevos (curriculum-flow.spec.ts)
- Code review: tailwind colors, middleware dev mode, eslint config

Verificado: tsc exit 0, build exit 0, 61 E2E tests pass
This commit is contained in:
renato97
2026-07-25 22:07:28 -03:00
parent 25614704dc
commit a3360ec6e4
67 changed files with 5294 additions and 213 deletions
+14 -3
View File
@@ -8,8 +8,9 @@ import AudioUnlock from "@/components/child/audio-unlock"
const FRANCESCA_KEY = "edueasy_child_francesca"
const activities = [
{ id: "matematicas", label: "Matemáticas", icon: "🔢", description: "Sumas, restas y multiplicaciones" },
{ id: "lecturas", label: "Lecturas cortas", icon: "📖", description: "Leé textos chiquitos" },
{ id: "matematicas", label: "Matemáticas", icon: "🔢", description: "Sumas, restas, tablas y divisiones" },
{ id: "lecturas", label: "Lecturas cortas", icon: "📖", description: "Leé textos sobre distintos temas" },
{ id: "ortografia", label: "Ortografía", icon: "✏️", description: "Mayúsculas y reglas" },
{ id: "logros", label: "Mis logros", icon: "⭐", color: "bg-warning" },
{ id: "pairing", label: "iPad nuevo", icon: "🔗", color: "bg-secondary" },
]
@@ -23,6 +24,16 @@ export default function FrancescaHome() {
setPaired(!!localStorage.getItem(FRANCESCA_KEY))
}, [])
const handleActivity = (id: string) => {
if (id === "logros") {
router.push("/child/logros?profile=francesca")
} else if (id === "pairing") {
router.push("/child/pairing?profile=francesca")
} else {
router.push(`/francesca/${id}`)
}
}
if (!audioReady) {
return <AudioUnlock onUnlock={() => setAudioReady(true)} />
}
@@ -46,7 +57,7 @@ export default function FrancescaHome() {
{activities.map((a) => (
<button
key={a.id}
onClick={() => router.push(`/francesca/${a.id}`)}
onClick={() => handleActivity(a.id)}
className={`${a.color || "bg-accent"} text-primary-foreground touch-target-lg rounded-2xl flex items-center gap-4 px-6 py-5 text-xl font-display font-semibold shadow-md active:scale-95 transition-transform`}
>
<span className="text-2xl">{a.icon}</span>