forge
Explore
Log in

Don't you dare go Hollow

🎨 clean up education list header

Browse files at this commit

d962efed4b92192039ffdcd6b45cd16a8e2bc3f8Burak BoduroğluParent: 6b7c2a9
  • style
    • 🎨 clean up education list header
Show full message
style: 🎨 clean up education list header

- remove the static all badge from the education toolbar

- keep the term filter dropdown as the only all control

- rename the table heading to courses and study sessions
src/i18n/messages.tsmodified+3 -0
@@ -386,6 +386,7 @@ export type MessageKey =
386386 | "role.manager"
387387 | "role.admin"
388388 | "courses.title"
389+ | "courses.listTitle"
389390 | "courses.subtitle"
390391 | "courses.create"
391392 | "courses.empty"
@@ -939,6 +940,7 @@ const en: Dict = {
939940 "role.manager": "Manager",
940941 "role.admin": "ADMIN",
941942 "courses.title": "Education",
943+ "courses.listTitle": "Courses and study sessions",
942944 "courses.subtitle": "Courses, study sessions, enrollment, and exams live here.",
943945 "courses.create": "New education item",
944946 "courses.empty": "No courses yet.",
@@ -1491,6 +1493,7 @@ const tr: Dict = {
14911493 "role.manager": "Yönetici",
14921494 "role.admin": "ADMIN",
14931495 "courses.title": "Eğitim",
1496+ "courses.listTitle": "Dersler ve etütler",
14941497 "courses.subtitle": "Dersler, etütler, kayıtlar ve sınavlar burada.",
14951498 "courses.create": "Yeni eğitim kaydı",
14961499 "courses.empty": "Henüz ders yok.",
src/pages/courses-page.tsxmodified+1 -4
@@ -204,9 +204,6 @@ function CoursesContent() {
204204 }}
205205 filters={
206206 <div class="flex flex-wrap items-center gap-2">
207- <Badge variant="outline" class="mono h-9 rounded-sm px-3 uppercase tracking-[0.08em]">
208- {isStudent() ? t("courses.enrolled") : t("common.all")}
209- </Badge>
210207 <Select
211208 class="h-9 w-full rounded-sm sm:w-44"
212209 value={termFilter()}
@@ -232,7 +229,7 @@ function CoursesContent() {
232229 <div class="space-y-4">
233230 <div class="flex flex-wrap items-center justify-between gap-3">
234231 <div>
235- <h2 class="font-display text-lg font-semibold">{t("courses.title")}</h2>
232+ <h2 class="font-display text-lg font-semibold">{t("courses.listTitle")}</h2>
236233 <p class="mt-1 text-sm text-muted-foreground">
237234 {pageItems().length} / {total()} {t("nav.courses")}
238235 </p>