Skip to content

Conversation

@sanjana-singhania
Copy link
Member

@sanjana-singhania sanjana-singhania commented Dec 6, 2025

Closes #206

Displays a popover for the section on click.

Added building and room number to meeting time.

Removes the duplicate classes in filter bar (oops) and also removes "clear filtering" to stay up to date with figma designs.

@vercel
Copy link

vercel bot commented Dec 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
searchneu Ready Ready Preview Comment Dec 7, 2025 2:21am

@sanjana-singhania
Copy link
Member Author

image

Copy link
Collaborator

@mehallhm mehallhm left a comment

Choose a reason for hiding this comment

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

a couple of other remarks:

  • I think I am going to go through and remove all the default tailwindcss colors. that would strong arm people to use our design system since there is still stuff coming through the cracks (I SEE YOU AI USAGE... I ALWAYS KNOW [not targeted at you just the teams in general])
  • I think I need to do an audit / PR with some refactoring changes... I have been more generous in these PRs since there has not been clear code style guidelines yet. Next sem I already have some docs being drafted, but I think I am going to walk the codebase and find things that can just be improved. you guys are going hard on the features, but there is some little stuff that I would like to fix

neither of those are immediate concerns, but will be implemented slowly throughout break


{/* Content */}
<div className="pt-2 pb-4 px-6">
<table className="w-full">
Copy link
Collaborator

Choose a reason for hiding this comment

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

you should not be using table here. Table is for tabular content... and should not be used for layout. There is a long list of reasons why which W3 officially suggests, but this should just be divs / spans frankly. No need to complicate it! table should frankly be one the last things to ever reach for, its usage is highly specific

Copy link
Collaborator

Choose a reason for hiding this comment

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

going back and being unbrutal (didn't mean to come across as aggressive, just being very straightforward). I see why you did it! I think we can optimize this... and also prob pull it out of the scheduler here soon since I think I would like to use this pattern elsewhere too

)
}

const formatMeetingDays = (meetingDays: number[]): React.ReactNode => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

we really gotta abstract this

Copy link
Member Author

Choose a reason for hiding this comment

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

this and also formatTime... is there anywhere specific you want utils like that to be? i was thinking to abstract it but didn't know where to keep it

Copy link
Collaborator

Choose a reason for hiding this comment

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

let me think about that. leave it for now and we can circle back once we find a better home. i am resituating some things now with the monorepo so ill have a better idea then

@@ -0,0 +1,142 @@
"use client"

import React from "react"
Copy link
Collaborator

Choose a reason for hiding this comment

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

do not import all of react, just the parts you need

return (
<Popover>
<PopoverTrigger asChild>{children}</PopoverTrigger>
<PopoverContent className="w-[360px] p-0 border-gray-200 shadow-lg" align="start" side="right" sideOffset={8}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

a lot of these colors have to be fixed... see main comment too

return (
<div className="grid w-full grid-cols-6">
<div className="col-span-1 w-full">
<FilterPanel
Copy link
Collaborator

Choose a reason for hiding this comment

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

if there was whitespace here a linter did not run...

className={`
px-3 py-2 rounded-lg border whitespace-nowrap font-bold flex items-center gap-2 text-neu8
${currentCourseGroupIndex === index
? "border-neu3 bg-white"
Copy link
Collaborator

Choose a reason for hiding this comment

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

more default colors that need to be fixed

px-3 py-2 rounded-lg border whitespace-nowrap font-bold flex items-center gap-2 text-neu8
${currentCourseGroupIndex === index
? "border-neu3 bg-white"
${currentCourseGroupIndex === index
Copy link
Collaborator

Choose a reason for hiding this comment

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

you really would have a better time using the cn util... it is made of merging classnames together...

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.

course card popup MVP

5 participants