From 37148ac2533c545e62fa5bb35bbcf8a9578061f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Boduro=C4=9Flu?= <80620802+burakboduroglu@users.noreply.github.com> Date: Tue, 22 Sep 2026 13:51:41 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20UX=20pass=20from=20deskto?= =?UTF-8?q?p=20and=20phone=20QA=20-=20lists:=20the=20/exams=20pager=20no?= =?UTF-8?q?=20longer=20snaps=20back=20to=20page=201=20(a=20fresh=20rows=20?= =?UTF-8?q?=20=20array=20reset=20TanStack's=20page=20index);=20DataTable?= =?UTF-8?q?=20owns=20paging=20and=20resets=20=20=20only=20on=20sort,=20sea?= =?UTF-8?q?rch=20or=20pageResetKey=20-=20list=20search,=20page,=20sort,=20?= =?UTF-8?q?filters,=20detail=20tabs=20and=20calendar=20view/date=20=20=20l?= =?UTF-8?q?ive=20in=20the=20URL=20(lib/url-state.ts),=20so=20Back=20and=20?= =?UTF-8?q?refresh=20keep=20them=20-=20DataTable:=20aria-sort,=20"no=20res?= =?UTF-8?q?ults=20for=20X"=20empty=20state=20with=20a=20clear=20=20=20acti?= =?UTF-8?q?on,=20no=20nested=20scroller,=20unboxed=20column-menu-only=20to?= =?UTF-8?q?olbar,=20inline=20=20=20status=20pills=20on=20phone=20cards,=20?= =?UTF-8?q?column=20min=20widths=20on=20tablets=20-=20courses=20filter=20r?= =?UTF-8?q?eads=20"=C5=9Eube:=20T=C3=BCm=C3=BC=20/=20=C5=9Eubesi=20olan=20?= =?UTF-8?q?/=20=C5=9Eubesi=20olmayan";=20=20=20per-tab=20exam=20empty=20st?= =?UTF-8?q?ates;=20upcoming=20events=20soonest=20first=20-=20phone=20shell?= =?UTF-8?q?:=20content=20clears=20the=20quick-action=20button,=20which=20a?= =?UTF-8?q?lso=20hides=20=20=20for=20the=20/ai/study=20and=20message=20com?= =?UTF-8?q?posers;=20opaque=20search=20dialog;=20the=20=20=20shell=20title?= =?UTF-8?q?=20is=20the=20page=20h1=20when=20a=20page=20has=20none;=20skip?= =?UTF-8?q?=20link=20lands=20past=20=20=20the=20header;=20menu=20sheet=20m?= =?UTF-8?q?akes=20the=20page=20behind=20it=20inert=20-=20touch:=20variant?= =?UTF-8?q?=20(coarse=20pointer=20or=20narrow=20screen)=20keeps=2016px=20i?= =?UTF-8?q?nputs=20=20=20and=2044px=20targets=20on=20landscape=20phones=20?= =?UTF-8?q?and=20tablets;=20combobox=20list=20and=20=20=20/ai/studio=20pro?= =?UTF-8?q?ducer=20no=20longer=20widen=20the=20page;=20heatmap=20labels=20?= =?UTF-8?q?don't=20=20=20collide=20-=20notifications:=20popover=20focuses?= =?UTF-8?q?=20itself,=20not=20"T=C3=BCm=C3=BCn=C3=BC=20sil",=20which=20now?= =?UTF-8?q?=20=20=20asks=20first;=20labelled=20theme=20buttons=20and=20dis?= =?UTF-8?q?miss=20targets=20-=20settings=20no=20longer=20look=20dirty=20on?= =?UTF-8?q?=20load=20and=20warn=20before=20leaving=20with=20=20=20real=20c?= =?UTF-8?q?hanges;=20exam=20create=20preselects=20the=20current=20term;=20?= =?UTF-8?q?exam=20kinds=20and=20=20=20meal=20keys=20show=20Turkish=20label?= =?UTF-8?q?s=20-=20homework=20grading=20has=20no=20"Tamamland=C4=B1"=20def?= =?UTF-8?q?ault=20for=20non-submitters;=20class=20=20=20edit=20shows=20the?= =?UTF-8?q?=20assigned=20homeroom=20teacher;=20admin=20demotion=20warns=20?= =?UTF-8?q?-=20instance=20"Ders=20saati"=20saves=20on=20Enter/Kaydet=20ins?= =?UTF-8?q?tead=20of=20blur=20and=20the=20=20=20karne=20switch=20confirms?= =?UTF-8?q?=20first=20-=20API=20404s=20show=20"Kay=C4=B1t=20bulunamad?= =?UTF-8?q?=C4=B1"=20with=20a=20link=20back=20to=20the=20list=20instead=20?= =?UTF-8?q?=20=20of=20a=20retry;=20neutral=20confirm/discard=20copy;=20com?= =?UTF-8?q?pose=20asks=20before=20=20=20discarding=20a=20draft;=20staff=20?= =?UTF-8?q?on=20student-only=20pages=20get=20an=20explanation=20-=20homewo?= =?UTF-8?q?rk,=20calendar,=20dashboard=20deadlines=20and=20notifications?= =?UTF-8?q?=20name=20the=20=20=20class=20("Matematik=20=E2=80=94=2010-B")?= =?UTF-8?q?=20-=20dashboard=20charts=20include=20graded=20exams=20without?= =?UTF-8?q?=20a=20start=20time,=20ordered=20=20=20by=20id=20creation=20tim?= =?UTF-8?q?e;=20class=20card=20shows=20student=20counts=20-=20"Yak=C4=B1nd?= =?UTF-8?q?a"=20filler=20columns=20and=20KPI=20cards=20removed=20from=20ma?= =?UTF-8?q?nagement=20lists;=20=20=20marks=20split=20into=20average,=20ban?= =?UTF-8?q?d=20and=20exam=20count;=20teachers=20list=20the=20=20=20courses?= =?UTF-8?q?=20they=20teach;=20class=20filter=20on=20attendance=20and=20pom?= =?UTF-8?q?odoro=20lists?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ai/note-studio-panel.tsx | 2 +- src/components/exams/exam-form.tsx | 7 +- .../homework/homework-submissions-panel.tsx | 8 +- .../insights/insight-students-table.tsx | 11 +- src/components/layout/app-shell.tsx | 66 ++++++- src/components/layout/celebi-composer.tsx | 3 +- src/components/layout/command-palette.tsx | 4 +- .../layout/floating-action-button.tsx | 2 +- src/components/layout/notification-center.tsx | 16 +- src/components/layout/notification-feed.ts | 47 +++-- src/components/layout/notification-list.tsx | 23 ++- src/components/layout/record-not-found.tsx | 37 ++++ src/components/layout/route-error.test.tsx | 24 +++ src/components/layout/route-error.tsx | 4 + src/components/layout/route-guard.tsx | 84 +++++++-- .../layout/shell-unread-badge.test.tsx | 12 +- src/components/layout/theme-mode-control.tsx | 6 +- src/components/marks/marks-report-view.tsx | 18 +- src/components/meals/meal-menu-card.tsx | 8 +- src/components/messages/gmail-compose-box.tsx | 44 ++++- src/components/notes/rag-outputs-panel.tsx | 2 +- src/components/rag/rag-study-panel.tsx | 4 + src/components/system/not-found-page.tsx | 2 +- src/components/ui/badge.tsx | 2 +- src/components/ui/chart-heatmap.tsx | 46 ++++- src/components/ui/combobox.tsx | 11 +- src/components/ui/data-table-search.tsx | 6 +- src/components/ui/data-table-view-menu.tsx | 2 +- src/components/ui/data-table.test.tsx | 60 +++++- src/components/ui/data-table.tsx | 159 +++++++++++++--- src/components/ui/data-toolbar.tsx | 2 +- src/components/ui/empty-state.tsx | 4 + src/components/ui/rich-text-editor.tsx | 7 + src/components/ui/side-panel.test.tsx | 2 +- src/components/ui/side-panel.tsx | 4 +- src/components/ui/table-pagination.tsx | 6 +- src/components/users/user-search-select.tsx | 53 +++++- src/components/users/user-table.tsx | 7 +- src/i18n/locales/en.ts | 67 ++++++- src/i18n/locales/tr.ts | 69 ++++++- src/i18n/messages.ts | 55 +++++- src/index.css | 28 ++- src/lib/exam-labels.test.ts | 13 ++ src/lib/exam-labels.ts | 18 +- src/lib/format.ts | 12 ++ src/lib/homework-grade.test.ts | 22 +++ src/lib/homework-grade.ts | 13 ++ src/lib/instance-labels.test.ts | 62 ++++++ src/lib/instance-labels.ts | 153 +++++++++++++++ src/lib/meals.test.ts | 11 +- src/lib/meals.ts | 32 ++++ src/lib/record-list-path.test.ts | 24 +++ src/lib/record-list-path.ts | 24 +++ src/lib/terms.test.ts | 38 ++++ src/lib/terms.ts | 17 ++ src/lib/url-state.test.tsx | 108 +++++++++++ src/lib/url-state.ts | 157 ++++++++++++++++ src/lib/uuid-time.test.ts | 16 ++ src/lib/uuid-time.ts | 13 ++ src/pages/academic-years-page.tsx | 7 +- src/pages/admin-user-detail-page.tsx | 3 + src/pages/ai-insight-student-page.tsx | 11 +- src/pages/builder-schools-page.tsx | 1 + src/pages/calendar-page.test.tsx | 1 + src/pages/calendar-page.tsx | 93 ++++++--- src/pages/class-detail-page.tsx | 11 +- src/pages/course-detail-page.tsx | 16 +- src/pages/courses-page.test.tsx | 17 +- src/pages/courses-page.tsx | 61 ++++-- src/pages/dashboard-page.test.tsx | 17 +- src/pages/dashboard-page.tsx | 177 ++++++++++++------ src/pages/event-detail-page.tsx | 3 +- src/pages/events-page.tsx | 37 +++- src/pages/exam-detail-page.tsx | 19 +- src/pages/exams-page.tsx | 51 +++-- src/pages/homework-detail-page.tsx | 27 ++- src/pages/homework-page.tsx | 27 +-- src/pages/instance-detail-page.tsx | 124 +++++++++--- src/pages/license-modules-page.tsx | 20 +- src/pages/meal-detail-page.tsx | 18 +- src/pages/meals-page.tsx | 5 +- src/pages/note-editor-page.tsx | 14 +- src/pages/payment-statement-page.tsx | 1 + src/pages/payments-page.tsx | 25 ++- src/pages/pomodoro-page.tsx | 2 +- src/pages/profile-page.tsx | 8 +- src/pages/question-bank-page.tsx | 4 +- src/pages/settings-page.tsx | 150 ++++++++++----- src/pages/student-attendance-page.tsx | 27 ++- src/pages/student-marks-page.tsx | 42 +++-- src/pages/student-pomodoro-page.tsx | 27 ++- src/pages/students-roster-page.tsx | 29 +-- src/pages/teachers-roster-page.tsx | 86 ++++++--- src/pages/terms-page.tsx | 7 +- src/pages/work-log-page.tsx | 1 + src/routes/router.tsx | 4 + src/stores/quick-actions.ts | 20 ++ 97 files changed, 2457 insertions(+), 493 deletions(-) create mode 100644 src/components/layout/record-not-found.tsx create mode 100644 src/lib/homework-grade.test.ts create mode 100644 src/lib/homework-grade.ts create mode 100644 src/lib/instance-labels.test.ts create mode 100644 src/lib/instance-labels.ts create mode 100644 src/lib/record-list-path.test.ts create mode 100644 src/lib/record-list-path.ts create mode 100644 src/lib/terms.test.ts create mode 100644 src/lib/terms.ts create mode 100644 src/lib/url-state.test.tsx create mode 100644 src/lib/url-state.ts create mode 100644 src/lib/uuid-time.test.ts create mode 100644 src/lib/uuid-time.ts create mode 100644 src/stores/quick-actions.ts diff --git a/src/components/ai/note-studio-panel.tsx b/src/components/ai/note-studio-panel.tsx index 4d8ee37..2cfb26c 100644 --- a/src/components/ai/note-studio-panel.tsx +++ b/src/components/ai/note-studio-panel.tsx @@ -126,7 +126,7 @@ export function NoteStudioPanel() {
{note().courseTitle}
-LIST
}); + const detail = createRoute({ + getParentRoute: () => root, + path: "/courses/$id", + component: () => { + throw new ApiError(404, "not found"); + }, + }); + const router = createRouter({ + routeTree: root.addChildren([list, detail]), + history: createMemoryHistory({ initialEntries: ["/courses/bad"] }), + defaultErrorComponent: RouteErrorFallback, + }); + + render(() =>403
-{t("common.accessDenied")}
-{t("errors.accessDeniedDescription")}
-403
+{t("common.accessDenied")}
+{t("errors.accessDeniedDescription")}
++ {t(role() === "parent" ? "errors.parentOnlyTitle" : "errors.studentOnlyTitle")} +
++ {t(alternative() ? "errors.audienceOnlyWithAlternative" : "errors.audienceOnlyDescription")} +
+404
-{t("common.notFound")}
+{t("errors.notFoundDescription")}