Compare commits
4 Commits
copilot/su
...
feat/uniqu
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4d9592413a | ||
| 4c6223b37d | |||
|
|
b1d88af8aa | ||
|
|
517fd4cc78 |
@@ -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>
|
||||
|
||||
|
||||
|
||||
@@ -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
697
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -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'>
|
||||
|
||||
@@ -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'>
|
||||
|
||||
Reference in New Issue
Block a user