From 02f8667567ae1bb55ffc370ff740a58c147d36ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Boduro=C4=9Flu?= <80620802+burakboduroglu@users.noreply.github.com> Date: Wed, 22 Jul 2026 13:00:59 +0300 Subject: [PATCH] =?UTF-8?q?docs:=20=F0=9F=93=9A=20update=20AGENTS.md,=20RE?= =?UTF-8?q?ADME.md,=20and=20design=20documentation=20files=20-=20record=20?= =?UTF-8?q?Note=20Import=20Assistant=20rules,=20noise=20removal,=20and=20s?= =?UTF-8?q?ide=20panel=20navigation=20standards=20in=20AGENTS.md=20-=20add?= =?UTF-8?q?=20Note=20Import=20Assistant,=20DrawCanvas=20freehand=20drawing?= =?UTF-8?q?,=20and=20dashboard=20card=20reordering=20to=20README.md=20-=20?= =?UTF-8?q?update=20docs/frontend-next-steps.md=20with=20recent=20completi?= =?UTF-8?q?on=20state=20for=20Note=20Import=20Assistant,=20HIG=20dropdown?= =?UTF-8?q?=20elevation,=20and=20table=20actions=20header=20width=20-=20ad?= =?UTF-8?q?d=20HIG=20dropdown=20squircle=20tokens=20and=20table=20actions?= =?UTF-8?q?=20column=20width=20standards=20to=20docs/ui-redesign-tokens.md?= =?UTF-8?q?=20-=20record=20header=20import=20button=20positioning=20and=20?= =?UTF-8?q?side=20panel=20rules=20in=20docs/navigation-patterns.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENTS.md | 7 ++++--- README.md | 4 +++- docs/frontend-next-steps.md | 5 +++++ docs/navigation-patterns.md | 5 +++-- docs/ui-redesign-tokens.md | 7 ++++++- 5 files changed, 21 insertions(+), 7 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 2987952..fd8684d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -91,9 +91,10 @@ Solid components run **once**, there is no re-render: - `docs/backend-ui-alignment-plan.md` — completed backend-alignment archive; do not treat it as active work unless backend scope changes. - Durable resources use full detail pages. Short create/edit/filter work uses `SidePanel`. Destructive actions use confirm dialogs. - Header create actions use compact icon+label buttons with consistent size and current radius (e.g. `variant="outline" size="sm" class="rounded-lg"` in `SectionDisclosure` header `actions`). Action buttons inside sub-panels must not duplicate section headers — primary create/add/assign actions must be placed in the header `actions` prop of the parent disclosure or page header. -- Application tables must use `src/components/ui/data-table.tsx` `DataTable`. - Pages/domain components must not import or render `Table` primitives directly; - only the `DataTable` wrapper and table primitive files may do that. +- Application tables must use `src/components/ui/data-table.tsx` `DataTable`. Actions columns must use `w-28 min-w-[7rem] text-center whitespace-nowrap` to prevent truncation of localized headers like `"İŞLEMLER"`. +- Pages/domain components must not import or render `Table` primitives directly; only the `DataTable` wrapper and table primitive files may do that. +- **Note Import Assistant**: Raw PDF/TXT/MD files are converted to structured Markdown notes using `src/lib/note-importer.ts`. Noise (page numbers, headers/footers, watermarks) is removed, PDF mid-sentence line wraps are re-joined, headings (`##`) and bullet lists are formatted, and OCR unreadable artifacts are flagged with `⚠️ Some content may be unreadable due to OCR/extraction issues`. Never invent content or fluff preamble. Note Import Assistant lives in a dedicated `SidePanel` triggered from the Notes page header to the right of the "Yeni Not" button. +- **Drawing Canvas (`DrawCanvas`)**: Freehand drawings are saved as `.hzdraw.png` files with embedded scene JSON metadata. Live drawing effects must guard `initialScene` against re-initializing during active strokes. - Disclosure sections may either defer mounting for request savings or keep content mounted for state preservation; choose deliberately and avoid hidden heavy requests unless needed. - Date/time product forms use shared `DatePicker` plus a separate `HH:mm` input. Backend schedule fields are UTC unix-millisecond values and the backend rejects newly set past event/exam/session schedules with `400`; use `GET /time` for server-clock-aware checks when accuracy matters. - Lesson session roll call is teacher/manager workflow only. Students never self-mark lesson sessions; the session teacher or course manager marks enrolled students, and the session teacher's own presence row is manager-only per backend rules. diff --git a/README.md b/README.md index 177bc8b..200c5ac 100644 --- a/README.md +++ b/README.md @@ -83,10 +83,12 @@ Dashboard and table summaries must use the same role scope as the related page. - **Pomodoro**: student-only server-stamped focus sessions with total focus history - **Schedule validation**: event, exam, and lesson-session forms use `GET /time` for server-clock-aware past-date warnings before submit - **Notebook**: paper-style note cards; create in `SidePanel`; read in reader panel with attachments; three-dot card actions for edit/delete +- **Note Import Assistant**: convert uploaded PDF, TXT, or Markdown files into clean, structured notes ready for the notebook. Automatically strips page numbers and header noise, joins split PDF sentences, formats Markdown headings and bullet points, and flags OCR extraction issues +- **Freehand Drawing Canvas (`DrawCanvas`)**: unbounded pannable/zoomable drawing canvas with pen, eraser, grid paper ruling, and PNG metadata JSON embedding (`.hzdraw.png`) - **Note files**: per-note upload/list/download/delete via native `FormData`; school `max_file_bytes` from settings - **Events and courses**: event cards with schedule status chips + toolbar search/time filters; courses table with search and term filters - **Attendance UI**: localized status labels with explanatory detail text and semantic colors -- **Role-scoped dashboard**: monochrome observation board — portal cards (`Title | count`), needs-attention and upcoming lists only +- **Role-scoped dashboard**: monochrome observation board — portal cards (`Title | count`), drag-and-drop & delta move reordering in edit mode, needs-attention and upcoming lists only - **Empty states**: shared `EmptyState` with optional create CTA where the role can mutate - **Mutation feedback**: short auto-clear success flash (`createFlash` + success `Alert`) after create/save/delete; not used for exam-room autosave - **i18n**: full Turkish / English interface diff --git a/docs/frontend-next-steps.md b/docs/frontend-next-steps.md index d57c93a..4225c17 100644 --- a/docs/frontend-next-steps.md +++ b/docs/frontend-next-steps.md @@ -29,6 +29,11 @@ Active backend-refresh work is tracked in - Async exam duration is derived from start/end time instead of a separate duration input. - Exam room locally closes in-progress attempts when the countdown reaches zero, while the backend remains authoritative for final status. - Current design refresh is complete: icon system, shell/nav, dashboard, lists, detail pages, and forms/feedback all use shared primitives and token-derived radius/border/focus patterns. +- Note Import Assistant (`src/lib/note-importer.ts`): PDF/TXT/MD file conversion with noise stripping (page numbers, watermarks, footers), PDF line-wrap joining, Markdown section formatting (`##`), bullet points, garbled OCR detection warning banners, and dedicated `SidePanel` triggered from the Notes page header. +- Drawing Canvas (`DrawCanvas`): freehand drawing with pan/zoom, eraser, quadratic smoothing, grid ruling default, PNG scene embedding (`.hzdraw.png`), and stroke state preservation during active drawing. +- Dashboard portal cards support drag-and-drop and 1-click `← / →` delta move reordering in edit mode with jiggle animations and role defaults. +- Dropdown primitives (`DropdownMenu`, `Combobox`, `Popover`, `Select`) elevated with Apple HIG squircle containers (`rounded-2xl`), backdrop blur (`backdrop-blur-xl`), 44pt touch targets, and subtle tactile press feedback. +- Application table action headers standardized to `w-28 min-w-[7rem] text-center whitespace-nowrap` across all report and management tables to ensure localized headers like `"İŞLEMLER"` fit without truncation. ## Role Audit Result diff --git a/docs/navigation-patterns.md b/docs/navigation-patterns.md index f8e677f..932a180 100644 --- a/docs/navigation-patterns.md +++ b/docs/navigation-patterns.md @@ -53,14 +53,15 @@ Pagination and request rules: Table action rules: - Row actions use `TableRowActions` with a centered three-dot trigger. -- Action columns stay narrow and fixed (`3.5rem` on main tables, about `w-14` on compact detail tables). +- Action columns use fixed widths (`w-28 min-w-[7rem] text-center whitespace-nowrap`) to ensure localized headers like `İŞLEMLER` do not cut off. - Destructive row actions stay in the menu but still open a confirm dialog before mutation. - Date and numeric columns use stable alignment and tabular/mono text where useful. - Dense tables use subtle column separators so column boundaries stay visible. Delete or destructive confirmation stays in a confirm dialog, not a side panel. -Header create actions should use a consistent compact button shape: icon plus label, `size="sm"`, equal min-width, and the current app radius (`rounded-lg` in course detail headers). +Header create actions should use a consistent compact button shape: icon plus label, `size="sm"`, equal min-width, and the current app radius (`rounded-lg` in page headers). +- On the Notes page header, the **"İçe Aktar"** button sits directly to the right of **"Yeni Not"** and opens a dedicated `SidePanel` for Note Import Assistant file conversion. Date picking should use the shared `DatePicker` plus a separate `HH:mm` input when time is needed. Avoid native `date` and `datetime-local` controls in product forms. diff --git a/docs/ui-redesign-tokens.md b/docs/ui-redesign-tokens.md index b5909de..52958e6 100644 --- a/docs/ui-redesign-tokens.md +++ b/docs/ui-redesign-tokens.md @@ -148,10 +148,15 @@ People & roles Directory [ Search... ] ┌──────────┬────────────┬──────────────┬─────────┬──────────────┬────────┐ -│ Username │ Name │ Email │ Role │ ID │ Update │ +│ Username │ Name │ Email │ Role │ ID │Update │ ├──────────┼────────────┼──────────────┼─────────┼──────────────┼────────┤ │ ali │ Ali Demir │ ali@... │ Student │ 01J... │ select │ │ ayse │ Ayse Kaya │ — │ Student │ 01J... │ select │ │ mehmet │ Mehmet Ar │ mehmet@... │ Teacher │ 01J... │ select │ └──────────┴────────────┴──────────────┴─────────┴──────────────┴────────┘ ``` + +## Dropdowns & Select Elevation + +- All dropdown menus (`DropdownMenu`), comboboxes (`Combobox`), popovers (`Popover`), and native selects (`Select`) use Apple HIG squircle containers (`rounded-2xl`), frosted glass backdrop blur (`backdrop-blur-xl`), tactile press feedback, and 44pt touch targets (`min-h-[2.5rem]`). +- Table actions headers use `w-28 min-w-[7rem] text-center whitespace-nowrap` to ensure localized labels (`İŞLEMLER`, `Actions`) render without text truncation or overflow.