feat: add support for 'FORM' assignment type with UI updates and connection pool monitoring in the database

This commit is contained in:
swve 2025-08-11 23:11:17 +02:00
parent 6a13703560
commit 7257222b27
8 changed files with 590 additions and 8 deletions

View file

@ -1,10 +1,10 @@
import { useAssignmentSubmission } from '@components/Contexts/Assignments/AssignmentSubmissionContext'
import { BookPlus, BookUser, EllipsisVertical, FileUp, Forward, InfoIcon, ListTodo, Save } from 'lucide-react'
import { BookPlus, BookUser, EllipsisVertical, FileUp, Forward, InfoIcon, ListTodo, Save, Type } from 'lucide-react'
import React, { useEffect } from 'react'
import { useLHSession } from '@components/Contexts/LHSessionContext'
type AssignmentBoxProps = {
type: 'quiz' | 'file'
type: 'quiz' | 'file' | 'form'
view?: 'teacher' | 'student' | 'grading' | 'custom-grading'
maxPoints?: number
currentPoints?: number
@ -44,6 +44,11 @@ function AssignmentBoxUI({ type, view, currentPoints, maxPoints, saveFC, submitF
<FileUp size={17} />
<p>File Submission</p>
</div>}
{type === 'form' &&
<div className='flex space-x-1.5 items-center'>
<Type size={17} />
<p>Form</p>
</div>}
</div>
<div className='flex items-center space-x-1'>