Spaces:
Runtime error
Runtime error
File size: 5,184 Bytes
6aa6081 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | {
"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"
]
}
]
} |