forge
Explore
Log in

Don't you dare go Hollow

πŸ“š update AGENTS.md, README.md, and design documentation files

Browse files at this commit

02f8667567ae1bb55ffc370ff740a58c147d36eaBurak BoduroğluParent: d99bbb5
  • docs
    • πŸ“š update AGENTS.md, README.md, and design documentation files
Show full message
docs: πŸ“š update AGENTS.md, README.md, and design documentation files
- record Note Import Assistant rules, noise removal, and side panel navigation standards in AGENTS.md
- add Note Import Assistant, DrawCanvas freehand drawing, and dashboard card reordering to README.md
- update docs/frontend-next-steps.md with recent completion state for Note Import Assistant, HIG dropdown elevation, and table actions header width
- add HIG dropdown squircle tokens and table actions column width standards to docs/ui-redesign-tokens.md
- record header import button positioning and side panel rules in docs/navigation-patterns.md
AGENTS.mdmodified+4 -3
@@ -91,9 +91,10 @@ Solid components run **once**, there is no re-render:
91 - `docs/backend-ui-alignment-plan.md` β€” completed backend-alignment archive; do not treat it as active work unless backend scope changes.91 - `docs/backend-ui-alignment-plan.md` β€” completed backend-alignment archive; do not treat it as active work unless backend scope changes.
92 - Durable resources use full detail pages. Short create/edit/filter work uses `SidePanel`. Destructive actions use confirm dialogs.92 - Durable resources use full detail pages. Short create/edit/filter work uses `SidePanel`. Destructive actions use confirm dialogs.
93 - 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.93 - 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.
94-- Application tables must use `src/components/ui/data-table.tsx` `DataTable`.94+- 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"`.
95- Pages/domain components must not import or render `Table` primitives directly;95+- Pages/domain components must not import or render `Table` primitives directly; only the `DataTable` wrapper and table primitive files may do that.
96- only the `DataTable` wrapper and table primitive files may do that.96+- **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.
97+- **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.
97 - 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.98 - 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.
98 - 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.99 - 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.
99 - 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.100 - 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.
README.mdmodified+3 -1
@@ -83,10 +83,12 @@ Dashboard and table summaries must use the same role scope as the related page.
83 - **Pomodoro**: student-only server-stamped focus sessions with total focus history83 - **Pomodoro**: student-only server-stamped focus sessions with total focus history
84 - **Schedule validation**: event, exam, and lesson-session forms use `GET /time` for server-clock-aware past-date warnings before submit84 - **Schedule validation**: event, exam, and lesson-session forms use `GET /time` for server-clock-aware past-date warnings before submit
85 - **Notebook**: paper-style note cards; create in `SidePanel`; read in reader panel with attachments; three-dot card actions for edit/delete85 - **Notebook**: paper-style note cards; create in `SidePanel`; read in reader panel with attachments; three-dot card actions for edit/delete
86+- **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
87+- **Freehand Drawing Canvas (`DrawCanvas`)**: unbounded pannable/zoomable drawing canvas with pen, eraser, grid paper ruling, and PNG metadata JSON embedding (`.hzdraw.png`)
86 - **Note files**: per-note upload/list/download/delete via native `FormData`; school `max_file_bytes` from settings88 - **Note files**: per-note upload/list/download/delete via native `FormData`; school `max_file_bytes` from settings
87 - **Events and courses**: event cards with schedule status chips + toolbar search/time filters; courses table with search and term filters89 - **Events and courses**: event cards with schedule status chips + toolbar search/time filters; courses table with search and term filters
88 - **Attendance UI**: localized status labels with explanatory detail text and semantic colors90 - **Attendance UI**: localized status labels with explanatory detail text and semantic colors
89-- **Role-scoped dashboard**: monochrome observation board β€” portal cards (`Title | count`), needs-attention and upcoming lists only91+- **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
90 - **Empty states**: shared `EmptyState` with optional create CTA where the role can mutate92 - **Empty states**: shared `EmptyState` with optional create CTA where the role can mutate
91 - **Mutation feedback**: short auto-clear success flash (`createFlash` + success `Alert`) after create/save/delete; not used for exam-room autosave93 - **Mutation feedback**: short auto-clear success flash (`createFlash` + success `Alert`) after create/save/delete; not used for exam-room autosave
92 - **i18n**: full Turkish / English interface94 - **i18n**: full Turkish / English interface
docs/frontend-next-steps.mdmodified+5 -0
@@ -29,6 +29,11 @@ Active backend-refresh work is tracked in
29 - Async exam duration is derived from start/end time instead of a separate duration input.29 - Async exam duration is derived from start/end time instead of a separate duration input.
30 - Exam room locally closes in-progress attempts when the countdown reaches zero, while the backend remains authoritative for final status.30 - Exam room locally closes in-progress attempts when the countdown reaches zero, while the backend remains authoritative for final status.
31 - 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.31 - 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.
32+- 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.
33+- 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.
34+- Dashboard portal cards support drag-and-drop and 1-click `← / β†’` delta move reordering in edit mode with jiggle animations and role defaults.
35+- 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.
36+- 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.
32 37
33 ## Role Audit Result38 ## Role Audit Result
34 39
docs/navigation-patterns.mdmodified+3 -2
@@ -53,14 +53,15 @@ Pagination and request rules:
53 Table action rules:53 Table action rules:
54 54
55 - Row actions use `TableRowActions` with a centered three-dot trigger.55 - Row actions use `TableRowActions` with a centered three-dot trigger.
56-- Action columns stay narrow and fixed (`3.5rem` on main tables, about `w-14` on compact detail tables).56+- Action columns use fixed widths (`w-28 min-w-[7rem] text-center whitespace-nowrap`) to ensure localized headers like `İŞLEMLER` do not cut off.
57 - Destructive row actions stay in the menu but still open a confirm dialog before mutation.57 - Destructive row actions stay in the menu but still open a confirm dialog before mutation.
58 - Date and numeric columns use stable alignment and tabular/mono text where useful.58 - Date and numeric columns use stable alignment and tabular/mono text where useful.
59 - Dense tables use subtle column separators so column boundaries stay visible.59 - Dense tables use subtle column separators so column boundaries stay visible.
60 60
61 Delete or destructive confirmation stays in a confirm dialog, not a side panel.61 Delete or destructive confirmation stays in a confirm dialog, not a side panel.
62 62
63-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).63+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).
64+- 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.
64 65
65 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.66 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.
66 67
docs/ui-redesign-tokens.mdmodified+6 -1
@@ -148,10 +148,15 @@ People & roles
148 148
149 Directory [ Search... ]149 Directory [ Search... ]
150 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”150 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”
151-β”‚ Username β”‚ Name β”‚ Email β”‚ Role β”‚ ID β”‚ Update β”‚151+β”‚ Username β”‚ Name β”‚ Email β”‚ Role β”‚ ID β”‚Update β”‚
152 β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€152 β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€
153 β”‚ ali β”‚ Ali Demir β”‚ ali@... β”‚ Student β”‚ 01J... β”‚ select β”‚153 β”‚ ali β”‚ Ali Demir β”‚ ali@... β”‚ Student β”‚ 01J... β”‚ select β”‚
154 β”‚ ayse β”‚ Ayse Kaya β”‚ β€” β”‚ Student β”‚ 01J... β”‚ select β”‚154 β”‚ ayse β”‚ Ayse Kaya β”‚ β€” β”‚ Student β”‚ 01J... β”‚ select β”‚
155 β”‚ mehmet β”‚ Mehmet Ar β”‚ mehmet@... β”‚ Teacher β”‚ 01J... β”‚ select β”‚155 β”‚ mehmet β”‚ Mehmet Ar β”‚ mehmet@... β”‚ Teacher β”‚ 01J... β”‚ select β”‚
156 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”˜156 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”˜
157 ```157 ```
158+
159+## Dropdowns & Select Elevation
160+
161+- 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]`).
162+- 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.