-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
- Add transfer bank to all degree plans
- Make each transfer bank modifiable and a droppable region
b) Make the region droppable (see link below on how we make droppable components)
c) Add handlers to SemesterContext to handle updates to the transfer bank
d) Create a new endpoint that allows the transfer bank to be modified. See plan.ts
- Dnd-kit documentation on droppable regions
- How we made each semester a droppable region:
planner/src/components/planner/Tiles/SemesterTile.tsx
Lines 202 to 221 in 496ae51
const DroppableSemesterTile: FC<DroppableSemesterTileProps> = ({ dropId, semester, getSemesterCourseDragId, ...props }) => { const { setNodeRef } = useDroppable({ id: dropId, data: { to: 'semester-tile', semester } as DragDataToSemesterTile, }); return ( <SemesterTile ref={setNodeRef} semester={semester} getDragId={getSemesterCourseDragId} {...props} /> ); }; - Transfer bank component: https://github.com/UTDNebula/planner/blob/develop/src/components/planner/TransferBank.tsx#L1-L42
- Component that wraps entire tool: https://github.com/UTDNebula/planner/blob/develop/src/components/planner/Planner.tsx
Metadata
Metadata
Assignees
Labels
No labels