In this PR, I added my grade history graph to the course details index page, viewable after pressing the little 'i' for more information about a course. This PR is unfortunately not from main, as it entirely relies on the previous feature of having the gradeHistoryGraph component. This component shows a graph on the course details page for every previous offering of the course, sorted by most recent first.
In order to pass the paramaters to the /api/gradehistory/search api call, I used the output from the /api/sections/sectionsearch to ensure that the correct class data is searched for. I could have also done this by adding parameters to the CounrseDetailsIndexPage call, but I chose to keep it the same as to avoid adding complexity and changing more files.
The changes that aren't in #45 include CourseDetailsIndexPage.js and CourseDetailsIndexPage.test.js
In this PR, I added my grade history graph to the course details index page, viewable after pressing the little 'i' for more information about a course. This PR is unfortunately not from main, as it entirely relies on the previous feature of having the gradeHistoryGraph component. This component shows a graph on the course details page for every previous offering of the course, sorted by most recent first.
In order to pass the paramaters to the
/api/gradehistory/search
api call, I used the output from the/api/sections/sectionsearch
to ensure that the correct class data is searched for. I could have also done this by adding parameters to the CounrseDetailsIndexPage call, but I chose to keep it the same as to avoid adding complexity and changing more files.The changes that aren't in #45 include
CourseDetailsIndexPage.js
andCourseDetailsIndexPage.test.js
Dokku Link: https://proj-courses-evanja57-dev.dokku-02.cs.ucsb.edu/
Closes #2