feat: integrate Radix UI Accordion component and enhance subject wizard

- Added Radix UI Accordion component for better UI organization in PasoDetallesPanel.
- Implemented structure selection and subject suggestions management in the wizard.
- Updated subject API to initialize new subjects with null values for structure and cycle.
- Modified state management in useNuevaAsignaturaWizard to include estructuraId.
- Adjusted types for suggested subjects to include line and cycle information.
This commit is contained in:
2026-02-11 16:56:16 -06:00
parent 07d08e1b57
commit 46d8d6142e
7 changed files with 301 additions and 9 deletions

View File

@@ -159,7 +159,6 @@ export async function generate_subject_suggestions(
id: crypto.randomUUID(),
selected: false,
source: 'IA',
estructuraId: null,
nombre: s.nombre,
codigo: s.codigo,
tipo: s.tipo ?? null,
@@ -167,6 +166,8 @@ export async function generate_subject_suggestions(
horasAcademicas: s.horasAcademicas ?? null,
horasIndependientes: s.horasIndependientes ?? null,
descripcion: s.descripcion,
linea_plan_id: null,
numero_ciclo: null,
}),
)
}