Skip to content

Course details components (professors)#390

Open
lyangji1011 wants to merge 15 commits intobog-f25-sprint4from
lauren/course-details-profs
Open

Course details components (professors)#390
lyangji1011 wants to merge 15 commits intobog-f25-sprint4from
lauren/course-details-profs

Conversation

@lyangji1011
Copy link
Contributor

@lyangji1011 lyangji1011 commented Nov 4, 2025

Summary

Resolves #379

  • Creates a Breadcrumb component with labels and links
  • Creates a MetricsCard component that takes in a list of metrics and returns a card of them in a row
  • Creates a ProfessorInfoCard component that displays prof name and information about sections they teach. Did not include MetricsCard inside this card, since ticket said to ignore fetching data for metrics
  • Creates sandbox page at /sandbox/ProfessorInfo that displays each component

Checklist

  • Breadcrumb
  • MetricsCard
  • ProfessorInfoCard

How to Test

Testing sandbox page at /sandbox/ProfessorInfo

  • Displays Breadcrumb and MetricsCard using hardcoded dummy data
  • Uses ScheduleContext to get Course Object, currently is hardcoded to Frederic Faulkner courses.
    • This also involved changing the App component, since we want to use the same context as App for AppDataLoader (to load information about section seats)
Screenshot 2025-11-04 at 1 44 31 AM image

DanielChee and others added 7 commits September 26, 2025 20:51
### Summary

Resolves #353 

<!-- What does this PR change and why? Discuss any breaking changes. -->

caches seating info and removes tooltip from existing design.
conditionally renders seat and waitlist info based on color of
background.

### How to Test

flame my code
but my functionality is flawless
bog

---------

Co-authored-by: Uma Anand <63426041+uma-anand@users.noreply.github.com>
Co-authored-by: Uma Anand <uma2005anand@gmail.com>
### Summary

- wrong font color
- incorrect padding




### How to Test
Deploy preview

---------

Co-authored-by: Uma Anand <uma2005anand@gmail.com>
@github-actions
Copy link

github-actions bot commented Nov 4, 2025

PR Preview Action v1.6.2

🚀 View preview at
https://gt-scheduler.github.io/website/pr-preview/pr-390/

Built to branch gh-pages at 2025-11-10 20:01 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@lyangji1011 lyangji1011 requested a review from uma-anand November 4, 2025 17:08
Copy link
Member

@uma-anand uma-anand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code is clean! Thanks for implementing the components in the specified way. I've requested a couple changes.

Also, curious about the light mode design, did you talk to Cynthia about it? Otherwise, you may want to check with her.

display: flex;
align-items: center;

&:nth-child(1) { width: 60px; margin-right: 20px; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

confused about why we are using hardcoded width and margins. The widths are fine except for the last column. Also try to replace them with percentages. I notice paddings in the Figma- is there a reason you used margins?

justify-content: center;
}

&:nth-child(1) { width: 60px; margin-right: 20px; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same note as before. Also if this is repeating, try to combine with above.

@uma-anand
Copy link
Member

Also, one thing @afazio1 pointed out is while we don't have mobile designs just yet, we still want to make this adaptive to other screen sizes. Right now, it doesn't resize even for smaller desktops. See if you can make it a little more responsive.

@lyangji1011 lyangji1011 requested a review from uma-anand November 6, 2025 05:51
@lyangji1011
Copy link
Contributor Author

I pretty much addressed everything:

  • Cynthia approved of the light mode design
  • I used hardcoded widths because they need to be aligned between all the rows, including the header. Not sure if there's a way to do it without hardcoding? I did make it more responsive though, and switched to percentages
  • Also switched to using padding between the row cells. Sorry, did not notice it was padding in Figma
  • Combined styling for header row and section rows, so the styling is not redundant anymore

Copy link
Member

@uma-anand uma-anand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! You can

  1. Go ahead and remove the sandbox now
  2. Just make the metric card float to next line instead of cropping out for smaller screen sizes

And then you should be good to go!!

@uma-anand
Copy link
Member

Mobile designs are now on the Figma for you to take a look at. Let me know if you have time to implement, otherwise I can take a look.

Copy link
Member

@uma-anand uma-anand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for working through all the changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants