refactor: rename Materia to Asignatura across the codebase
- Updated type definitions and interfaces to replace 'Materia' with 'Asignatura'. - Refactored components and routes to reflect the new naming convention. - Adjusted related types and constants for consistency. - Removed the old Materia type definition and added Asignatura type definition. - Ensured all references in UI components and logic are updated accordingly. fix #50
This commit is contained in:
@@ -12,9 +12,9 @@ export type TipoPlan =
|
||||
| 'Doctorado'
|
||||
| 'Especialidad'
|
||||
|
||||
export type TipoMateria = 'obligatoria' | 'optativa' | 'troncal'
|
||||
export type TipoAsignatura = 'obligatoria' | 'optativa' | 'troncal'
|
||||
|
||||
export type MateriaStatus = 'borrador' | 'revisada' | 'aprobada'
|
||||
export type AsignaturaStatus = 'borrador' | 'revisada' | 'aprobada'
|
||||
|
||||
export interface Facultad {
|
||||
id: string
|
||||
@@ -36,15 +36,15 @@ export interface LineaCurricular {
|
||||
color?: string
|
||||
}
|
||||
|
||||
export interface Materia {
|
||||
export interface Asignatura {
|
||||
id: string
|
||||
clave: string
|
||||
nombre: string
|
||||
creditos: number
|
||||
ciclo: number | null
|
||||
lineaCurricularId: string | null
|
||||
tipo: TipoMateria
|
||||
estado: MateriaStatus
|
||||
tipo: TipoAsignatura
|
||||
estado: AsignaturaStatus
|
||||
orden?: number
|
||||
hd: number // <--- Añadir
|
||||
hi: number // <--- Añadir
|
||||
@@ -103,7 +103,7 @@ export interface DocumentoPlan {
|
||||
export type PlanTab =
|
||||
| 'datos-generales'
|
||||
| 'mapa-curricular'
|
||||
| 'materias'
|
||||
| 'asignaturas'
|
||||
| 'flujo'
|
||||
| 'ia'
|
||||
| 'documento'
|
||||
|
||||
Reference in New Issue
Block a user