feat: implement Bedelía dashboard panels and Phase 1 Automated Security Audit

This commit is contained in:
2026-09-19 15:17:17 -03:00
parent ada39248d7
commit 71fb20a271
8 changed files with 392 additions and 11 deletions
+8 -1
View File
@@ -68,6 +68,9 @@ router.get('/', async (req, res) => {
? apiData.milestones
: null;
// Bedelía-specific data
const bedeliaData = apiData.bedelia || {};
// Consolidated and role-specific stats
const stats = {
total_classrooms,
@@ -135,7 +138,11 @@ router.get('/', async (req, res) => {
{ start_time: '08:00', end_time: '12:00', classroom: { code: 'Aula 102' }, subject_name: 'Algoritmos y Estructuras de Datos', user: { name: 'Prof. Ana Vega' } },
{ start_time: '08:30', end_time: '12:30', classroom: { code: 'Aula 204' }, subject_name: 'Matemática Discreta', user: { name: 'Prof. Carlos López' } },
{ start_time: '14:00', end_time: '18:00', classroom: { code: 'Lab Redes' }, subject_name: 'Redes y Telecomunicaciones', user: { name: 'Ing. Marcos Ruiz' } }
]
],
unassigned_commissions_week: bedeliaData.unassigned_commissions_week || [],
unassigned_commissions_month: bedeliaData.unassigned_commissions_month || [],
available_classrooms_week: bedeliaData.available_classrooms_week || [],
available_classrooms_month: bedeliaData.available_classrooms_month || []
};
} else if (role === 'docente') {
const myClasses = apiTodaySchedule ? apiTodaySchedule.slice(0, 3) : null;