-
Notifications
You must be signed in to change notification settings - Fork 12
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
280 feature request indicate most recent semester taught #340
base: develop
Are you sure you want to change the base?
280 feature request indicate most recent semester taught #340
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Should I make the chip light gray? |
How should it behave when the window width shrinks? Should it wrap alongside the name or always stay to the right of the name? |
An issue is if there is no grade data for the current semester, but it is being taught (like F24 as of 1-13-2025), it shows S24 only as the last semester taught. If I use section data from coursebook, I can do this properly I think. |
#287 @GovindRangappa I'm going to let you finish this, but I think I've done most of the logic for it. You can use the same chip/badge that I'm using here but instead of "F24" keep something like "New professor" or just "new"? |
What should the text be: |
… filter can display "2024 Fall" by passing in a boolean
This is how we get the current semester:
Coursebook releases professors for the upcoming semester a month or 2 before |
Related to the above comment. Just voicing some unstructured thoughts: I call the course API, which returns an array of course objects with section IDs. Each element in the array is an iteration of the same course, for each academic year. I sort the courses and pick the newest one. Until March 31st, 2025, this will be the 2024-2025 academic-year course object. In this object, the section IDs consist of all the sections taught in Summer 2024, Fall 2024, and Spring 2025. Before October 21st, 2024, only 2024 Summer and Fall sections are returned. After, Summer (2024), Fall (2024), and Spring (2025) courses are returned. Now what I do is take ALL these section IDs and fetch the section API with them. I now have an array of section objects. Since grade data lags behind the current session by at least a semester, using grade data to indicate when Scott Dollinger last taught CS 3377 would show S24, when he actually taught in F24 AND we know will be teaching in S25. My idea is to use the sections we got from the course api (coursebook) and see if it is needed to update it to something more recent than what the grades show. Ig I'll map the array of sections to an array of CasesOn, Oct 25th, 2024, I see that Scott Dollinger will teach in S25 from the sections. I see that Scott Dollnger is teaching in F24 from the sections. I see that his most recent grades are from S24. Logically, I want the On January 25th, 2025, I see that Scott Dollinger taught in F24 & S25. Since the current-semester-function returns S25 now, I find the match and update On January 25th, 2025, I see that John Cole taught in F24. Grade data shows F23. Current Sem is S25: no match in the array. John Cole's profId matches for F24, and since F24 > F23, I update By like Feb or March, I'd hope that grade data catches up to F24... On March 31st, 2025, the next academic year's courses come out. Also U25 and F25 sections release. When I call the course API, I get the course for the 2025-2026 academic year. The sections for U25 and F25 are returned. Grade data is only until F24, so |
So we need to get the sections from 2 academic sections in the spring, and just the 1 academic session otherwise, but I'll just get both cuz im lazy |
in
|
…book (more recent than the grade distribution data)
For Professor X, who we have data from 22S for but most_recent_semester is 25S, should we include them in the RECENT filter? |
Should we have a chip for the Overall result? If we do, it would indicate the most recent semester the course it was offered or the professor taught. Could be confusing? |
There's a MUI chip component if you're not already using it.
Maybe we can get a design opinion on this to make this less intrusive. Like just a little warning icon in the corner of a result that hasn't been taught in a semester or 2. The current design is just real hard to scan.
Sounds good.
Yeah, if it's not too difficult.
I think this makes sense logically. |
Overview
When scanning search results, some professors may have not taught in a while (making them less viable options)
Implements #280
What Changed
Added a
most_recent_semester
prop to theGradesType
type, which is filled incalculateGrades
(dashboard/index.tsx)Then, call that prop to fill the badge in searchResultsTable.tsx's row
Other Notes