Teachers — referred to as docentes throughout the platform — are the primary content creators in NuestraVoz. They own the in-classroom experience for their assigned subjects: posting announcements, uploading resources, building activities (simple file submissions or auto-graded online forms), and entering the final grade record for each enrolled student. Because the platform is used by a licensed institution, teacher accounts are not immediately active — every self-registration enters a pending state and requires explicit approval by an admin before the teacher can log in.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Renzo717/Aula-Virtual-Universidad-Radiolocucion/llms.txt
Use this file to discover all available pages before exploring further.
Registration and Approval Flow
Self-registration
Teachers register using the same/api/auth/register endpoint as students, but with rol: 'docente'. The server detects the role and sets status: 'pendiente' instead of 'activo':
201 with a confirmation message. No session cookie is issued — the teacher cannot log in yet.
Pending state behaviour
Attempting to log in whilestatus === 'pendiente' returns:
403. This check occurs in /api/auth/login after credential validation and before the session cookie is set.
Admin approval
An admin approves the account by patching the status:If a teacher registers with the wrong email or information, the admin can update any profile field — including
email and password — via the same PATCH /api/users/:id endpoint before or after approval.Subject Access Model
A docente sees only subjects where their user ID matches thedocente_id column of the materias table. This filter is applied in every subject-scoped query. The assertDocenteMateria helper in apps/api/src/lib/finales.ts enforces this for the finals endpoints:
403 Sin permisos sobre esta materia.
Dashboard
The teacher dashboard is served byDocenteDashboardPage.tsx, which calls two endpoints in parallel:
Overview statistics
DocenteDashboard object:
entregasPorCalificar counter is highlighted in red when non-zero, giving the teacher an immediate visual cue of outstanding grading work.
Pending grading queue
ActividadPendienteCalificar:
/aula/:materia_id?tab=actividades&ver=:actividad_id).
Classroom Features
Within each assigned subject’s virtual classroom, docentes can perform the following operations:Announcements
Post
info or warning announcements visible to all enrolled students. Validated by createAnuncioSchema (titulo ≥ 2 chars, contenido ≥ 2 chars).Resources
Upload files as classroom resources. Each resource has a
nombre (max 150 chars), an optional descripcion (max 2,000 chars), a storage_path, and a tipo tag.Activities
Create
entregable_simple (file upload) or formulario (auto-graded online form) activities with an optional fecha_entrega deadline and a permite_entrega_tardia flag.Forum
Create threads in the subject forum with a title, body, and optional
tags array. Reply to existing threads or nested posts.Creating an activity
tipo: 'formulario', the body must include a preguntas array where each question has an enunciado, a puntos value, and at least two opciones. The total points across all questions must sum to exactly 10:
Grading a file submission
nota must be between 1 and 10 (inclusive). Once graded, the submission estado changes to 'calificada' and the student can see their mark in their activity list.
Managing activity state
'activa', 'cerrada', and 'terminada'. Students cannot submit to a closed or finished activity even when permite_entrega_tardia is true.
Final Grade Entry
At the end of the academic term, docentes enter official final marks via:FinalesMateriaResponse with the academic year and the full enrolment list:
(estudiante_id, materia_id, anio_academico) so repeated saves are idempotent — submitting the same data twice does not create duplicate rows.
What Docentes Cannot Do
- Create, edit, or delete user accounts
- Create or delete careers or subjects
- Access another teacher’s virtual classroom
- Manage student enrolments (inscripciones)
- View platform-wide dashboard statistics or the audit log
- Download other students’ bulletins (only accessible to admin and preceptor)