We recently made some changes to support section-wise prerequisites and titles for special topics classes like ECON 4803. This means we have to update the frontend to display this new information. Reference the crawler-v2 repo and look at the types.ts file to look at the new output of the crawler.
Run the crawler locally and make the frontend read a local json file to test with the new data.
Your Goal
Branch off main branch.
Look at current code of prereqs in src/Components/Course/index.tsx and use the UI to see how it behaves.
We want to keep the prereq button in the course action bar when all the sections have the same prereqs and in the Instructor component when all sections have different prereqs.
Create a new function which compares all the prereqs of different sections for a given course and returns whether we need to keep the prereq button in the Instructor component or the Course component.
In case of titles, display a title under the instructor's name if the title for a section is different than the title of the course and display 'Special Topics' where the title of the course is supposed to be.
Problem Description
We recently made some changes to support section-wise prerequisites and titles for special topics classes like ECON 4803. This means we have to update the frontend to display this new information. Reference the crawler-v2 repo and look at the types.ts file to look at the new output of the crawler.
Run the crawler locally and make the frontend read a local json file to test with the new data.
Your Goal
main
branch.src/Components/Course/index.tsx
and use the UI to see how it behaves.Instructor
component when all sections have different prereqs.