{ "features": [ { "id": "F000", "name": "infrastructure_automation_script", "description": "Create the core initialization and test runner script (init.sh) using the .harnesses/ configuration blueprints.", "status": "done", "acceptance": [ "Must detect environment OS (Bash/PowerShell).", "Must validate project dependencies.", "Must execute all automated test suites under /tests.", "Must return exit code 0 on green, non-zero on failure." ] }, { "id": "F001", "name": "fix_present_count_bug", "description": "Fix teacher.py:559 — present_count always equals total_records due to `or True` in the attendance history filter condition.", "status": "done", "acceptance": [ "present_count correctly counts records with action='in' or (action IS NULL AND checkout_time IS NULL)", "absent_count logic is re-enabled and correct", "Student profile modal shows accurate attendance rate" ] }, { "id": "F002", "name": "fix_jwt_secret_exposure", "description": "Rotate JWT_SECRET_KEY to a generated secure value, update .env.example with production warning.", "status": "done", "acceptance": [ "JWT_SECRET_KEY uses a generated random value", ".env.example uses placeholder only", "Production deployment instructions documented" ] }, { "id": "F003", "name": "migration_016_data_preservation", "description": "Add data-preserving logic to migration 016 — backup old teacher_sections data before dropping the table, then restore with new schema.", "status": "cancelled", "acceptance": [ "Migration 016 preserves existing teacher_sections data", "Data correctly mapped to new PK (section_id, subject_id)", "Rollback restores original data" ] }, { "id": "F004", "name": "representative_mis_hijos_page", "description": "Build 'Mis Hijos' page for representatives with per-child attendance summary, schedule view, and absence justification submission.", "status": "done", "acceptance": [ "Rep sees list of linked children on login", "Per-child attendance history with heatmap", "Absence justification submission form", "Schedule view per child" ] }, { "id": "F005", "name": "enrollment_business_rules", "description": "Fix enrollment unique constraint to (student_id, section_id), add section capacity enforcement, and implement multi-representative support.", "status": "done", "acceptance": [ "Unique constraint allows multi-section but prevents duplicates", "Section max_students enforced on enrollment create", "Multi-representative junction table created", "API supports multiple reps per student" ] }, { "id": "F006", "name": "school_calendar_and_holidays", "description": "Add holiday/non-instructional day calendar, hide Sat/Sun in schedule grid by default, add academic year separation.", "status": "done", "acceptance": [ "Holiday calendar model + CRUD created", "Attendance blocked on holidays", "Schedule grid hides Sat/Sun (configurable)", "Academic year field separates data" ] }, { "id": "F006.1", "name": "section_capacity_enforcement", "description": "Enforce Section.max_students on enrollment creation to prevent over-enrollment.", "status": "done", "acceptance": [ "Enrollment POST returns 409 if section is at capacity", "Bulk enrollment skips students over capacity with error message" ] }, { "id": "F007", "name": "audit_log_and_password_reset", "description": "Add audit log viewer for admin UI and password reset flow (email link or admin-generated token).", "status": "done", "acceptance": [ "Admin can view audit logs in Settings or dedicated page", "Password reset flow works end-to-end", "Email notification on password change" ] }, { "id": "F008", "name": "role_workflow_completion", "description": "Define and implement workflows for administrativo and obrero roles. Add late arrival/early departure analytics.", "status": "done", "acceptance": [ "Administrativo has student record and report access", "Obrero has gate-attendance or general check-in support", "Late arrival and early departure analytics report available" ] }, { "id": "F009", "name": "documentation_and_tests", "description": "Create CHECKPOINTS.md, docs/architecture.md, docs/conventions.md. Add automated tests for core business logic.", "status": "done", "acceptance": [ "CHECKPOINTS.md created with all verification criteria", "docs/architecture.md documents system layers and patterns", "docs/conventions.md documents code style guidelines", "Test coverage ≥20% for attendance, enrollment, auth logic" ] } ] }