feat(frontend): página /challenges jugable (structured-answer) + fix tipado 404 #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/challenge-frontend"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR-2: el slice de Challenge ahora se VE y se JUEGA en la UI.
muestra el verdict (score %, passed) y, por pregunta, ✓/✗ + el PORQUÉ (rationale).
Reintentar / Volver. Requiere sesión (userId). Progreso se invalida al enviar.
status(404,...)en vez de devolver{error} inline → Eden infiere
datalimpio (sin esto el front no tipa). Comportamientoidéntico (404 con mensaje).
Verificado: build de ambas imágenes, tsc frontend y backend EXIT=0, biome limpio,
SSR 200 sin crash en /, /challenges, /feed, /knowledge, /login.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
PR-2: el slice de Challenge ahora se VE y se JUEGA en la UI. - /challenges: lista los challenges, abre uno, deja seleccionar opciones y enviar; muestra el verdict (score %, passed) y, por pregunta, ✓/✗ + el PORQUÉ (rationale). Reintentar / Volver. Requiere sesión (userId). Progreso se invalida al enviar. - lib/assessment: server-fns Eden listChallenges / getChallenge / submitChallenge. - backend: GET /:id y POST /:id/attempt usan `status(404,...)` en vez de devolver {error} inline → Eden infiere `data` limpio (sin esto el front no tipa). Comportamiento idéntico (404 con mensaje). Verificado: build de ambas imágenes, tsc frontend y backend EXIT=0, biome limpio, SSR 200 sin crash en /, /challenges, /feed, /knowledge, /login. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>