Note: Please read through all the instructions on this epic - we do not expect you to complete all of it at once, and you should ABSOLUTELY split it into separate issues and PRs. Feel free to tackle as much as you can, in order as specified below. Both epics in proj-rec are important to set the stage for the rest of the features.
Have you updated the title?
[x] I have updated the issue's title.
As a...
professor
I can...
approve or deny a student's request
So that...
I can give students an update on their request
Discussion
When a student submits a recommendation request, it is not considered approved until the professor approves it. Professors should be able to change the status of an individual request.
A professor should also be able to see three pages (Pending, Completed, and Statistics). When they mark a request as completed, it will save the date associated to this request.
Acceptance Criteria
[ ] Professors can approve or deny a student's request from the Pending Requests Page.
[ ] Professors can view the status of their requests on the Completed Requests Page.
[ ] Professors can see insights and statistics about their recommendations.
Implementation Todos
F1: Pages for Professor are Implemented
[ ] Create pages for each of the professor actions (view pending requests, see completed requests, and see statistics)
F1.1: Pending Requests Page
[ ] Professor can see list of requests and details of the request specifically for them
[ ] Professor can approve or deny requests from this page (modifying the column for status). Status should be pending and only the pending requests show up on this page. Once the professor modifies the status, it moves to the completed requests page.
F1.2: Completed Requests Page
[ ] Should see a list of the requests that the professor has marked as completed
[ ] Completed requests page only shows the requests which have an approved or denied status
F1.3: Statistics Requests Page
[ ] Version 1: display number of outstanding requests, number of completed requests;
[ ] Version 2: display min, max, and average response time, i.e. time from request made until the request was completed.)
B1: Professor Role can edit the status field of a request
[ ] Ensure that the professor role has the permissions necessary to make post edits to the backend of a request
[ ] When a pending request is marked as approved or denied, the date completed is also saved to the backend
Make sure to query the backend correctly to ensure only requests for the current user professor are shown and on the proper pages. Let the staff know if you need help with this.
Note: Please read through all the instructions on this epic - we do not expect you to complete all of it at once, and you should ABSOLUTELY split it into separate issues and PRs. Feel free to tackle as much as you can, in order as specified below. Both epics in proj-rec are important to set the stage for the rest of the features.
Have you updated the title?
As a...
professor
I can...
approve or deny a student's request
So that...
I can give students an update on their request
Discussion
When a student submits a recommendation request, it is not considered approved until the professor approves it. Professors should be able to change the status of an individual request.
A professor should also be able to see three pages (Pending, Completed, and Statistics). When they mark a request as completed, it will save the date associated to this request.
Acceptance Criteria
Implementation Todos
F1: Pages for Professor are Implemented
F1.1: Pending Requests Page
F1.2: Completed Requests Page
F1.3: Statistics Requests Page
B1: Professor Role can edit the status field of a request
Make sure to query the backend correctly to ensure only requests for the current user professor are shown and on the proper pages. Let the staff know if you need help with this.