feat(classes): optimize teacher dashboard ui and implement grade management

This commit is contained in:
SpecialX
2026-01-14 13:59:11 +08:00
parent ade8d4346c
commit 9bfc621d3f
104 changed files with 12793 additions and 2309 deletions

View File

@@ -21,13 +21,15 @@ async function StudentsResults({ searchParams }: { searchParams: Promise<SearchP
const q = getParam(params, "q") || undefined
const classId = getParam(params, "classId")
const status = getParam(params, "status")
const filteredStudents = await getClassStudents({
q,
classId: classId && classId !== "all" ? classId : undefined,
status: status && status !== "all" ? status : undefined,
})
const hasFilters = Boolean(q || (classId && classId !== "all"))
const hasFilters = Boolean(q || (classId && classId !== "all") || (status && status !== "all"))
if (filteredStudents.length === 0) {
return (