Implement leave request#115
Open
maurya-doshi wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement leave request
Summary
Adds a complete leave request workflow for peer evaluations, allowing students to request leave from exams and teachers to approve/reject those requests. Also includes an incentivization system where students can volunteer to grade extra papers from a pool.
Features
Student Side
Teacher Side
Peer Evaluation Integration
initiatePeerEvaluationnow excludes students on approved leave from the active evaluator pool.isExtra: true) are created for students on leave so their papers still get graded.getPendingEvaluationsfilters out evaluations for exams where the student has approved leave.New Files
backend/src/models/LeaveRequest.ts— Mongoose model for leave requests.backend/src/controllers/student/leave.controller.ts— Student leave endpoints.backend/src/controllers/teacher/leave.controller.ts— Teacher leave review endpoint.frontend/src/components/student/StudentLeaves.tsx— Student leave UI.frontend/src/components/teacher/TeacherLeavesRequests.tsx— Teacher leave management UI.Bug Fixes
exam.titleinstead ofexam.nameacross frontend components.Login.tsx.console.logstatements inOtpScreen.tsx.Cleanup
server.ts..gitignore— removed overly broad**/*.jsonrule that was suppressingpackage.json/tsconfig.json, added proper ignores for.env,.zip, temp files, and log files.