diff --git a/src/components/classes/blueprints-tab.tsx b/src/components/classes/blueprints-tab.tsx index 10f3c15..b88325a 100644 --- a/src/components/classes/blueprints-tab.tsx +++ b/src/components/classes/blueprints-tab.tsx @@ -184,7 +184,7 @@ export function BlueprintsTab(props: { actions={ diff --git a/src/components/homework/homework-submissions-panel.tsx b/src/components/homework/homework-submissions-panel.tsx index b48f90b..ade621b 100644 --- a/src/components/homework/homework-submissions-panel.tsx +++ b/src/components/homework/homework-submissions-panel.tsx @@ -160,7 +160,7 @@ export function HomeworkSubmissionsPanel(props: { homeworkId: string; instanceId !open && closeGrade()} title={t("homework.grade")} description={gradeTarget() ? studentLabel(gradeTarget()!.user) : ""}> - void saveGrade(event)}> + void saveGrade(event)}> {error()}
@@ -174,7 +174,7 @@ export function HomeworkSubmissionsPanel(props: { homeworkId: string; instanceId setMark(event.currentTarget.value)} />
-
+
diff --git a/src/components/ui/data-table.tsx b/src/components/ui/data-table.tsx index 236b065..1f82f94 100644 --- a/src/components/ui/data-table.tsx +++ b/src/components/ui/data-table.tsx @@ -306,7 +306,7 @@ export function DataTable(props: DataTableProps
-
{props.actions}
+
{props.actions}
@@ -327,7 +327,7 @@ export function DataTable(props: DataTableProps
-
{props.actions}
+
{props.actions}
diff --git a/src/components/ui/side-panel.tsx b/src/components/ui/side-panel.tsx index bdb3514..df00c82 100644 --- a/src/components/ui/side-panel.tsx +++ b/src/components/ui/side-panel.tsx @@ -112,7 +112,13 @@ export function SidePanel(
form]:flex [&>form]:min-h-full [&>form]:flex-col [&>form>div:last-child]:mt-auto", + props.bodyClass, + )} onInput={markTouched} onChange={markTouched} > diff --git a/src/components/users/profile-form.tsx b/src/components/users/profile-form.tsx index ae24608..3e4902f 100644 --- a/src/components/users/profile-form.tsx +++ b/src/components/users/profile-form.tsx @@ -131,7 +131,7 @@ export function ProfileForm(props: { }; return ( - + {flash()} @@ -196,7 +196,7 @@ export function ProfileForm(props: {
{error() &&

{error()}

} -
+
diff --git a/src/i18n/messages.ts b/src/i18n/messages.ts index 898db2a..567eb91 100644 --- a/src/i18n/messages.ts +++ b/src/i18n/messages.ts @@ -570,6 +570,7 @@ export type MessageKey = | "common.reject" | "common.action" | "common.actions" + | "common.filter" | "common.export" | "common.columns" | "common.visibleColumns" @@ -2814,6 +2815,7 @@ const en: Dict = { "common.reject": "Reject", "common.action": "Action", "common.actions": "Actions", + "common.filter": "Filter", "common.export": "Export", "common.columns": "Columns", "common.visibleColumns": "Visible columns", @@ -5060,6 +5062,7 @@ const tr: Dict = { "common.reject": "Reddet", "common.action": "İşlem", "common.actions": "İşlemler", + "common.filter": "Filtre", "common.export": "Dışa aktar", "common.columns": "Sütunlar", "common.visibleColumns": "Görünür sütunlar", diff --git a/src/pages/admin-user-detail-page.tsx b/src/pages/admin-user-detail-page.tsx index 772bb44..5720c7e 100644 --- a/src/pages/admin-user-detail-page.tsx +++ b/src/pages/admin-user-detail-page.tsx @@ -65,44 +65,44 @@ function AdminUserDetailContent() { } > {(current) => ( -
+
{error()} -
- - - - - - - - + + - - - } - /> + + + + + } + />
-
+
diff --git a/src/pages/exam-detail-page.tsx b/src/pages/exam-detail-page.tsx index 8aef13e..2ab65ba 100644 --- a/src/pages/exam-detail-page.tsx +++ b/src/pages/exam-detail-page.tsx @@ -391,8 +391,8 @@ function ExamDetailContent() { {(ex) => ( }> {t("common.accessDenied")}}> -
-
+
+
-
-
-
+
+
+
@@ -471,7 +471,7 @@ function ExamDetailContent() {

{examModeLabel(ex().mode)}

-
+
@@ -487,7 +487,7 @@ function ExamDetailContent() {
-
+
@@ -501,7 +501,7 @@ function ExamDetailContent() {
-
+
@@ -512,7 +512,7 @@ function ExamDetailContent() {

-
+ }>{formatApiError(homework.error, locale())}} > {(item) => ( -
-
+
+
-
-
-
+ +
+

{t("nav.courses")}

{course()?.title ?? item().class_course}

-
+

{t("subjects.subject")}

{subject()?.name ?? item().subject}

-
+

{t("homework.dueAt")}

{formatDateTime(item().due_at, locale())}

-
+

{t("homework.assigned")}

{item().assigned?.length ? t("common.countItem", { count: item().assigned!.length, item: t("courses.rosterItem") }) : t("homework.wholeCourse")}
-
+
diff --git a/src/pages/question-bank-page.tsx b/src/pages/question-bank-page.tsx index e1de8db..a50ec7e 100644 --- a/src/pages/question-bank-page.tsx +++ b/src/pages/question-bank-page.tsx @@ -15,6 +15,7 @@ import { ComingSoonBadge } from "@/components/ui/coming-soon"; import { ConfirmDialog } from "@/components/ui/confirm-dialog"; import { DataTable, DataTableSkeleton } from "@/components/ui/data-table"; import { IconEdit, IconEye, IconEyeOff, IconPlus, IconTrash, IconUsers } from "@/components/ui/icons"; +import { PixelIcon } from "@/components/ui/pixel-icon"; import { DropdownSelect } from "@/components/ui/select"; import { SidePanel } from "@/components/ui/side-panel"; import { TableRowActions } from "@/components/ui/table-row-actions"; @@ -206,6 +207,25 @@ function QuestionBankContent() { {error()} +
+ +
+ + + +
+
+

{t("bank.title")}

+ +
+

{t("bank.subtitle")}

+
+
+
+ { @@ -230,7 +250,7 @@ function QuestionBankContent() { description={`${t("bank.subtitle")} ${t("bank.countTotal", { total: total() })}`} actions={ 0}> -