Fix login blank screen and progress persistence

- Fix authStore to persist user data, not just isAuthenticated
- Fix progressStore handling of undefined API responses
- Remove minimax.md documentation file
- All progress now properly saves to PostgreSQL
- Login flow working correctly
This commit is contained in:
Renato
2026-02-12 03:38:33 +01:00
parent d31575a143
commit a2ed69fdb8
68 changed files with 14321 additions and 397 deletions

View File

@@ -103,8 +103,7 @@ func main() {
progreso := protected.Group("/progreso")
{
progreso.GET("", progresoHandler.GetProgreso)
progreso.GET("/modulo/:numero", progresoHandler.GetProgresoModulo)
progreso.PUT("/:ejercicioId", progresoHandler.UpdateProgreso)
progreso.POST("", progresoHandler.SaveProgreso)
progreso.GET("/resumen", progresoHandler.GetResumen)
}
@@ -214,12 +213,12 @@ func runMigrations(ctx context.Context, dbPool *pgxpool.Pool) {
func seedEjercicios(ctx context.Context, pool *pgxpool.Pool) {
ejercicios := []struct {
ID string
ID string
ModuloNumero int
Titulo string
Tipo string
Contenido string
Orden int
Titulo string
Tipo string
Contenido string
Orden int
}{
// Módulo 1
{"m1e1", 1, "Simulador de Disyuntivas", "interactivo", `{"tipo":"slider","descripcion":"Elige cuanto producir de cada bien"}`, 1},