ucsb-cs156-s24 / proj-courses-s24-4pm-2

https://ucsb-cs156-s24.github.io/proj-courses-s24-4pm-2/
0 stars 0 forks source link

Evan grade history page #47

Closed evanja57 closed 1 month ago

evanja57 commented 1 month ago

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. image 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

Dokku Link: https://proj-courses-evanja57-dev.dokku-02.cs.ucsb.edu/

Closes #2