Compare commits

..

4 Commits

Author SHA1 Message Date
Diego Perez
4d9592413a Merge branch 'main' into feat/uniqueID-calendar 2026-02-11 00:51:42 -06:00
4c6223b37d Merge branch 'main' into feat/uniqueID-calendar 2025-11-05 16:39:26 -06:00
ngupta
b1d88af8aa feat(calendar): add courseID 2025-10-26 11:37:53 -05:00
ngupta
517fd4cc78 test commit 2025-10-21 09:19:07 -05:00
5 changed files with 342 additions and 370 deletions

View File

@@ -216,3 +216,5 @@ Special thanks to the developers and contributors behind these amazing tools and
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=Longhorn-Developers/UT-Registration-Plus&type=Date" />
</picture>
</a>

View File

@@ -142,7 +142,7 @@
"prettier": "3.6.2",
"react-dev-utils": "^12.0.1",
"semantic-release": "^24.2.3",
"storybook": "^8.6.15",
"storybook": "^8.6.0",
"typescript": "^5.7.3",
"unocss": "^0.63.6",
"unocss-preset-primitives": "0.0.2-beta.1",

697
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -77,7 +77,7 @@ type CourseWithId = { course: Course } & BaseItem;
const meta = {
title: 'Components/Common/SortableList',
component: SortableList<CourseWithId>,
component: SortableList,
parameters: {
layout: 'centered',
},
@@ -85,7 +85,7 @@ const meta = {
} satisfies Meta<typeof SortableList<CourseWithId>>;
export default meta;
type Story = StoryObj<typeof meta>;
type Story = StoryObj<Meta<typeof SortableList<CourseWithId>>>;
export const Default: Story = {
args: {
@@ -94,9 +94,7 @@ export const Default: Story = {
course,
})),
onChange: () => {},
renderItem: (item: CourseWithId) => (
<PopupCourseBlock key={item.id} course={item.course} colors={item.course.colors} />
),
renderItem: ({ id, course }) => <PopupCourseBlock key={id} course={course} colors={course.colors} />,
},
render: args => (
<div className='h-3xl w-3xl transform-none'>

View File

@@ -49,6 +49,7 @@ export default function CalendarCourseCell({
const { colors, uniqueId: courseID } = blockData.course;
const { dayIndex, startIndex } = blockData.calendarGridPoint;
const [courseDepartment, courseInstructor] = courseDeptAndInstr.split('').map(part => part.trim());
let selectedCourse = false;
let selectedBlock = false;
@@ -131,7 +132,7 @@ export default function CalendarCourseCell({
'text-wrap': !timeAndLocation,
})}
>
{courseDeptAndInstr}
{courseDepartment}, {courseID} {courseInstructor}
</Text>
{timeAndLocation && (
<Text variant='h3-course' as='p' className='whitespace-pre-line'>