From f04b93a726bf4f5ed7f3c521905ef45b853b559c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Boduro=C4=9Flu?= <80620802+burakboduroglu@users.noreply.github.com> Date: Sun, 27 Sep 2026 07:59:51 +0300 Subject: [PATCH] =?UTF-8?q?perf:=20=E2=9A=A1=20cut=20page-load=20requests?= =?UTF-8?q?=20and=20sweep=20UI=20defects=20across=20the=20app=20-=20the=20?= =?UTF-8?q?shell's=20notification=20feed=20resolves=20section=20labels=20o?= =?UTF-8?q?nly=20once=20the=20=20=20list=20opens,=20instead=20of=20~50=20r?= =?UTF-8?q?eads=20on=20every=20page=20load=20-=20section=20labels=20use=20?= =?UTF-8?q?the=20instance's=20resolved=20`title`=20(no=20per-course=20=20?= =?UTF-8?q?=20read),=20one=20class=20list=20for=20class=20names,=20and=20w?= =?UTF-8?q?alk=20the=20school=20class=20by=20=20=20class=20when=20a=20page?= =?UTF-8?q?=20needs=20more=20labels=20than=20there=20are=20classes;=20pick?= =?UTF-8?q?ers=20=20=20share=20that=20walk.=20Courses=20page=2061=E2=86=92?= =?UTF-8?q?12=20requests,=20calendar=2025s=E2=86=922s,=20=20=20dashboard?= =?UTF-8?q?=20137=E2=86=9273,=20exams/homework=2077=E2=86=9224=20-=20exam?= =?UTF-8?q?=20results=20load=20in=20full=20so=20the=20table=20search=20cov?= =?UTF-8?q?ers=20every=20row=20-=20ten-area=20UI=20sweep:=20pill=20standar?= =?UTF-8?q?d=20on=20detail=20headers,=20row=20actions=20and=20=20=20lone?= =?UTF-8?q?=20buttons;=2040px=20touch=20targets=20on=20phones;=20error=20a?= =?UTF-8?q?nd=20empty=20states=20=20=20where=20a=20failed=20read=20used=20?= =?UTF-8?q?to=20crash=20the=20page;=20raw=20ids,=20mixed-language=20=20=20?= =?UTF-8?q?and=20uppercase=20labels=20fixed;=20messages,=20notes,=20pomodo?= =?UTF-8?q?ro,=20work=20log=20and=20=20=20studio=20library=20load=20as=20y?= =?UTF-8?q?ou=20scroll;=20calendar=20links=20stop=20reloading=20the=20=20?= =?UTF-8?q?=20app=20and=20the=20week=20view=20fetches=20its=20whole=20rang?= =?UTF-8?q?e;=20settings=20dialog,=20=20=20meals,=20appointments,=20events?= =?UTF-8?q?,=20insights=20and=20=C3=87elebi=20layout=20fixes=20-=20shared?= =?UTF-8?q?=20scroll=20restore=20on=20Back=20(createScrollRestore)=20for?= =?UTF-8?q?=20card=20lists=20-=20ui-conventions=20skill=20and=20ui-redesig?= =?UTF-8?q?n-tokens=20doc=20describe=20the=20pill,=20=20=20border=20and=20?= =?UTF-8?q?scroll-loading=20standards?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/skills/ui-conventions/SKILL.md | 9 +- docs/ui/ui-redesign-tokens.md | 13 +- src/components/ai/insights-board.tsx | 4 +- src/components/ai/note-studio-panel.tsx | 2 +- .../ai/studio-output-library.test.tsx | 14 +- src/components/ai/studio-output-library.tsx | 43 +++--- .../appointments/publish-slots-form.tsx | 4 +- .../attendance/attendance-report-view.tsx | 30 ++-- src/components/classes/blueprint-panel.tsx | 15 +- src/components/classes/blueprints-tab.tsx | 42 ++++-- src/components/classes/class-edit-panel.tsx | 15 +- src/components/courses/course-edit-panel.tsx | 5 +- .../courses/course-offerings-panel.tsx | 18 ++- .../courses/course-subjects-panel.tsx | 27 ++-- src/components/courses/offering-panel.tsx | 23 ++- .../dashboard/quick-link-column.tsx | 2 +- src/components/events/attendance-table.tsx | 25 ++-- src/components/events/event-roll-call.tsx | 35 +++-- src/components/exams/bank-question-picker.tsx | 2 +- src/components/exams/exam-audience-panel.tsx | 3 + src/components/exams/exam-questions-panel.tsx | 60 ++++---- src/components/exams/exam-room-ws.tsx | 22 +-- src/components/exams/grade-form.tsx | 2 +- src/components/exams/question-form.tsx | 18 +-- .../homework/course-homework-panel.tsx | 19 ++- .../homework/homework-report-view.tsx | 18 ++- .../homework/homework-submission-panel.tsx | 66 ++++++--- .../homework/homework-submissions-panel.tsx | 20 ++- .../insights/insight-run-report.tsx | 34 ++--- .../insights/insight-runs-table.tsx | 50 ++++++- .../insights/insight-students-table.tsx | 33 +++-- .../instances/exam-weights-editor.tsx | 2 +- .../instances/subject-set-editor.tsx | 8 +- .../instances/weekly-plan-table.tsx | 2 +- src/components/layout/app-shell.tsx | 10 +- src/components/layout/celebi-composer.tsx | 4 +- src/components/layout/celebi-panel.tsx | 14 +- src/components/layout/command-palette.tsx | 11 +- .../layout/mobile-quick-actions.tsx | 5 +- src/components/layout/nav-items.ts | 27 +++- src/components/layout/notification-center.tsx | 5 +- src/components/layout/notification-feed.ts | 7 +- src/components/layout/notification-list.tsx | 6 +- src/components/layout/page-center.tsx | 21 ++- src/components/layout/page-header.tsx | 5 +- src/components/layout/page-load-error.tsx | 2 +- src/components/layout/record-not-found.tsx | 2 +- src/components/layout/theme-mode-control.tsx | 10 +- src/components/marks/karne-view.tsx | 4 +- src/components/marks/marks-report-view.tsx | 27 ++-- src/components/meals/meal-menu-row.tsx | 2 +- src/components/meals/meal-service-table.tsx | 10 +- .../meals/meal-student-record-panel.tsx | 5 +- src/components/meals/meal-tag-checkboxes.tsx | 2 +- src/components/meals/meal-walk-in-panel.tsx | 2 +- src/components/messages/gmail-compose-box.tsx | 12 +- src/components/messages/gmail-mail-detail.tsx | 52 ++++--- src/components/messages/gmail-mail-row.tsx | 39 ++++-- src/components/notes/note-card.tsx | 33 ++--- src/components/notes/note-document.tsx | 28 ++-- src/components/notes/note-files-panel.tsx | 10 +- src/components/notes/note-import-panel.tsx | 32 +++-- src/components/notes/podcast-panel.tsx | 12 +- src/components/notes/rag-outputs-panel.tsx | 2 +- src/components/pomodoro/pomodoro-log-view.tsx | 12 +- .../generated-question-card.tsx | 6 +- src/components/rag/rag-composer.tsx | 2 +- src/components/rag/rag-copy.ts | 4 + src/components/rag/rag-message-row.tsx | 9 +- src/components/rag/rag-study-actions.tsx | 7 +- src/components/rag/rag-study-panel.tsx | 25 +++- src/components/rag/rag-thread-list.tsx | 25 +++- .../sessions/course-sessions-panel.tsx | 35 +++-- src/components/sessions/session-roll-call.tsx | 26 ++-- src/components/system/not-found-page.tsx | 7 +- src/components/ui/chart-line.tsx | 48 +++++-- src/components/ui/combobox.tsx | 1 + src/components/ui/data-section.tsx | 13 +- src/components/ui/data-table-search.tsx | 4 +- src/components/ui/data-table.tsx | 65 ++------- src/components/ui/dialog.tsx | 39 +++++- src/components/ui/dropdown-menu.tsx | 8 +- src/components/ui/searchable-select.tsx | 9 ++ src/components/ui/side-panel.tsx | 2 +- src/components/ui/table-row-actions.tsx | 4 +- .../users/account-profile-dialog.tsx | 20 +-- src/components/users/roster-person-cell.tsx | 5 +- src/components/users/user-avatar.tsx | 5 +- src/components/users/user-table.tsx | 5 +- .../whiteboard/board-bulk-invite.tsx | 9 +- .../whiteboard/board-settings-panel.tsx | 21 +-- .../whiteboard/whiteboard-canvas.tsx | 17 ++- src/i18n/locales/en.ts | 40 ++++-- src/i18n/locales/tr.ts | 46 ++++-- src/i18n/messages.ts | 24 ++++ src/index.css | 10 +- src/lib/instance-labels.test.ts | 34 +++-- src/lib/instance-labels.ts | 131 ++++++++++++++---- src/lib/instance-options.ts | 46 +++--- src/lib/scroll-restore.ts | 59 ++++++++ src/pages/admin-user-detail-page.tsx | 16 ++- src/pages/appointments-page.tsx | 32 +++-- src/pages/bank-question-detail-page.tsx | 39 +++--- src/pages/builder-login-page.tsx | 12 +- src/pages/builder-school-detail-page.tsx | 8 +- src/pages/builder-schools-page.tsx | 9 +- src/pages/calendar-page.tsx | 114 ++++++++++----- src/pages/class-detail-page.tsx | 14 +- src/pages/classes-page.tsx | 34 +++-- src/pages/courses-page.test.tsx | 4 +- src/pages/dashboard-page.test.tsx | 2 + src/pages/dashboard-page.tsx | 21 ++- src/pages/event-detail-page.tsx | 6 +- src/pages/events-page.tsx | 7 +- src/pages/exam-detail-page.tsx | 30 ++-- src/pages/exam-room-page.tsx | 10 +- src/pages/exams-page.tsx | 16 ++- src/pages/guide-page.tsx | 33 ++--- src/pages/homework-detail-page.tsx | 18 ++- src/pages/homework-page.tsx | 21 ++- src/pages/license-modules-page.tsx | 10 +- src/pages/live-monitor-page.tsx | 60 ++++---- src/pages/login-page.tsx | 14 +- src/pages/marks-page.tsx | 6 +- src/pages/messages-page.tsx | 64 +++++++-- src/pages/my-students-page.tsx | 39 ++++-- src/pages/notes-page.tsx | 62 ++++----- src/pages/payment-statement-page.tsx | 6 +- src/pages/payments-page.tsx | 8 +- src/pages/pomodoro-page.tsx | 32 ++++- src/pages/profile-page.tsx | 4 +- src/pages/question-bank-page.tsx | 2 + src/pages/question-detail-page.tsx | 14 +- src/pages/question-generation-page.tsx | 32 +++-- src/pages/questions-page.tsx | 43 ++++-- src/pages/register-page.tsx | 16 +-- src/pages/settings-page.tsx | 5 +- src/pages/staff-work-page.tsx | 20 +-- src/pages/student-attendance-page.tsx | 20 +-- src/pages/student-marks-page.tsx | 84 ++++++++--- src/pages/student-pomodoro-page.tsx | 20 +-- src/pages/students-roster-page.tsx | 8 +- src/pages/teachers-roster-page.tsx | 8 +- src/pages/terms-page.tsx | 2 +- src/pages/whiteboards-page.tsx | 18 ++- src/pages/work-log-page.tsx | 31 ++--- 146 files changed, 1911 insertions(+), 1072 deletions(-) create mode 100644 src/lib/scroll-restore.ts diff --git a/.claude/skills/ui-conventions/SKILL.md b/.claude/skills/ui-conventions/SKILL.md index 16ad056..bde595b 100644 --- a/.claude/skills/ui-conventions/SKILL.md +++ b/.claude/skills/ui-conventions/SKILL.md @@ -38,9 +38,9 @@ Active project reference docs (read the relevant one before changing that area): ## Buttons -- Header create actions: compact icon+label, consistent size and current radius. -- Page header primary create/add: `size="sm" class="min-w-[7.5rem] rounded-lg"`. Secondary/import: `variant="outline"` with the same size/class. -- Section/sub-panel header actions: `variant="outline" size="sm" class="rounded-lg"` unless matching a page header button. +- **Pill standard (2026-09-26):** every toolbar / header control — search, filter chips, action buttons, "Sütunlar", the "İşlem" row-action trigger — is a pill: `rounded-full`, `text-[13px]`, `h-8` from `sm`, `h-10` below `sm` and on touch. Use `TOOLBAR_CONTROL` (one control) / `TOOLBAR_SLOT` (wrapper sizing nested buttons+links) / `TOOLBAR_CARD` from `src/components/ui/data-toolbar.tsx`. DataTable `actions`/`filters`, DataSection/DataToolbar slots and PageHeader `actions` already apply it — pass plain ` @@ -215,15 +215,14 @@ export function StudioOutputLibrary(props: { )} - 1}> -
- LIBRARY_REVEAL}> +
+ setShown((count) => count + LIBRARY_REVEAL)} />
diff --git a/src/components/appointments/publish-slots-form.tsx b/src/components/appointments/publish-slots-form.tsx index b427ece..024c3fe 100644 --- a/src/components/appointments/publish-slots-form.tsx +++ b/src/components/appointments/publish-slots-form.tsx @@ -130,7 +130,7 @@ export function PublishSlotsForm(props: {
-