Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BoG S24] Special Topics Prerequisites and Titles (Frontend) #299

Open
yatharth-b opened this issue Mar 4, 2024 · 0 comments
Open

[BoG S24] Special Topics Prerequisites and Titles (Frontend) #299

yatharth-b opened this issue Mar 4, 2024 · 0 comments
Assignees
Labels
task Task issue for a current or past sprint

Comments

@yatharth-b
Copy link
Contributor

yatharth-b commented Mar 4, 2024

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.

image

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.
  • Similar to the behavior of the Course dropdowns, the Instructor component should only be expanded if the prereqs aren't expanded. (Behavior of course -
    {expanded && prereqOpen && prereqs !== null && (
    )
@yatharth-b yatharth-b added the task Task issue for a current or past sprint label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Task issue for a current or past sprint
Projects
None yet
Development

No branches or pull requests

2 participants