Activities (actividades) are the primary assessment tool inside each virtual classroom. NuestraVoz offers two currently-enabled activity types — a straightforward file upload and a fully auto-graded online form — both managed through the same lifecycle of states and the same deadline and late-submission controls.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.
Activity Types
entregable_simple
Students upload one or more files (up to 10 per submission, 20 MB each). The teacher manually reviews the files and assigns a grade.
formulario
The teacher builds a multiple-choice questionnaire. When a student submits their answers the system calculates the score automatically — no manual grading needed.
Two additional types —
trabajo_practico and examen — appear in the ACTIVIDAD_TIPOS constant but are not yet enabled in the interface (marked enabled: false).Activity Lifecycle
Every activity moves through three states:activa
The activity is open. Students who are enrolled can submit (subject to deadline rules). This is the initial state when an activity is created.
cerrada
The teacher has manually closed submissions. Students cannot submit new responses; existing submissions remain visible. The teacher can reopen the activity at any time.
Creating an Activity
Onlyadmin and docente users may create activities.
Name of the activity shown to students. Minimum 2 characters.
Activity type. One of
entregable_simple, formulario, trabajo_practico, or examen. Only entregable_simple and formulario are currently enabled in the UI.ISO 8601 deadline. If omitted the activity has no deadline.
When
false the submission endpoint rejects any attempt after fecha_entrega if the student has not already started their submission.Required only when
tipo is formulario. An array of question objects — see the Formulario Schema section below.File Submissions (entregable_simple)
Students submit work viaPOST /api/aula/:materiaId/actividades/:actividadId/entrega using multipart/form-data.
File limits
Up to 10 files per submission, 20 MB each. Files are stored in Supabase Storage (bucket
recursos) at entregas/:actividadId/:userId/:timestamp_filename.Re-submission
If a submission already exists the endpoint updates it (HTTP 200) rather than creating a duplicate. Students can add more files or update their comment until the activity is graded or closed.
Late Submissions
When a student submits afterfecha_entrega:
- If
permite_entrega_tardiaistruethe submission is accepted and stored withtardia: true. - If
permite_entrega_tardiaisfalseand no prior submission exists, the endpoint returns403 La entrega está cerrada.
Submission States
estado | Meaning |
|---|---|
entregada | Student has uploaded files; awaiting teacher review. |
calificada | Teacher has assigned a grade (or the form was auto-graded). |
Formularios: Auto-Graded Online Forms
Whentipo is formulario the teacher builds the questionnaire in the same POST /api/aula/:materiaId/actividades request, passing a preguntas array.
Formulario Schema
multiple: false) must have exactly 1 correct option.
Example: Two-question form totalling 10 points
Auto-Grading Logic
When a student submits their answers viaPOST /api/aula/:materiaId/actividades/:actividadId/formulario-entrega, the calcularNotaFormulario function runs immediately:
Per-question scoring
For each question, the score ratio is computed as
(correctasMarcadas − incorrectasMarcadas) / totalCorrectas, clamped to [0, 1]. That ratio is multiplied by the question’s puntos and rounded to two decimal places. Selecting incorrect options therefore reduces the score proportionally, and selecting zero correct options yields 0 points for that question.Total score
All per-question scores are summed and rounded to two decimal places. The final
nota is clamped to [0, 10].Submitting a Formulario
400 Debés responder todas las preguntas if any are omitted. Each formulario can only be submitted once per student.
Grading (entregable_simple)
For file submissions, the teacher assigns a grade manually via:Numeric grade. Must be between 1 and 10 inclusive. Decimal values are accepted (e.g.
7.5).estado transitions to calificada.
Teacher View: Submission List
Teachers (and admins) retrieve all submissions for an activity:estudiante profile object, the list of archivos, the current estado, the nota (if graded), and a tardia boolean flag.
For formulario activities, the equivalent endpoint is:
null if they have not yet responded), making it easy to see who still needs to complete the quiz.
Student View
On the Actividades tab, students see each activity with ami_entrega field attached:
null value means the student has not yet submitted. The tardia flag is displayed as a visible badge in the UI so students know their submission was recorded as late.
Activity Materials (Teacher Attachments)
Teachers can attach reference materials to anyentregable_simple activity: