🔍 course capacity column, exam draft status label
Browse files at this commit3c90c9d8d9ee591e75c8db9676c31a908f5d8dadParent: 5b5dcc6- feat
- 🔍 course capacity column, exam draft status label
2 changed files +8 -0
src/pages/courses-page.tsxmodified+7 -0
| @@ -113,6 +113,13 @@ function CoursesContent() { | |||
| 113 | meta: { cellClass: "truncate text-muted-foreground" }, | 113 | meta: { cellClass: "truncate text-muted-foreground" }, |
| 114 | cell: (cell) => personLabel(cell.row.original.creator), | 114 | cell: (cell) => personLabel(cell.row.original.creator), |
| 115 | }, | 115 | }, |
| 116 | + { | ||
| 117 | + id: "capacity", | ||
| 118 | + accessorFn: (course) => course.capacity, | ||
| 119 | + header: t("courses.capacity"), | ||
| 120 | + meta: { headerClass: "text-right", cellClass: "text-right tabular-nums text-muted-foreground" }, | ||
| 121 | + cell: (cell) => cell.row.original.capacity ?? "—", | ||
| 122 | + }, | ||
| 116 | { | 123 | { |
| 117 | id: "actions", | 124 | id: "actions", |
| 118 | header: t("common.actions"), | 125 | header: t("common.actions"), |
src/pages/exam-detail-page.tsxmodified+1 -0
| @@ -194,6 +194,7 @@ function ExamDetailContent() { | |||
| 194 | if (status === "submitted") return t("attempt.submitted"); | 194 | if (status === "submitted") return t("attempt.submitted"); |
| 195 | if (status === "expired") return t("attempt.expired"); | 195 | if (status === "expired") return t("attempt.expired"); |
| 196 | if (status === "no_attempts_left") return t("attempt.noAttemptsLeft"); | 196 | if (status === "no_attempts_left") return t("attempt.noAttemptsLeft"); |
| 197 | + if (status === "draft") return t("exams.draft"); | ||
| 197 | if (status === "unscheduled") return t("exams.unscheduled"); | 198 | if (status === "unscheduled") return t("exams.unscheduled"); |
| 198 | if (status === "finished") return t("exams.finished"); | 199 | if (status === "finished") return t("exams.finished"); |
| 199 | if (status === "upcoming") return t("exams.upcoming"); | 200 | if (status === "upcoming") return t("exams.upcoming"); |