Commits
Commits on
dcf123a8823bd55f0a656ce94de6b865f41dc08aFiltered to src/components/classes/blueprint-panel.tsxClear filter2026-09-18
feat: 🛟 the unsaved-input guard covers every form panel - guardUnsaved on 37 create/edit side panels: users, schools, blueprints, subjects, notes, homework and grading, sessions, academic years, terms, appointments, bank questions, classes, courses, events, exam edit and grading, meals, payments, profiles, staff work, whiteboards - left off: single-person pickers (little to lose), the multi-step exam create panels past their first step, and read-only panelsBurak Boduroğlu · b507ba2
feat: 🛟 the unsaved-input guard covers every form panel - guardUnsaved on 37 create/edit side panels: users, schools, blueprints, subjects, notes, homework and grading, sessions, academic years, terms, appointments, bank questions, classes, courses, events, exam edit and grading, meals, payments, profiles, staff work, whiteboards - left off: single-person pickers (little to lose), the multi-step exam create panels past their first step, and read-only panels
fix: 🎨 colored text reaches WCAG AA contrast - measured in light mode on the #F7F7F7 page: brand as text 2.5:1, warning 2.0:1, success 3.1:1, destructive 4.2:1 (AA needs 4.5:1) - new text tokens primary/success/warning/info/destructive-text: darker in light mode, equal to the fills in dark mode; fills stay as they are - light primary text is --brand-ink, or for a custom palette color the darkest-needed step of its hue (accentTextLightness, tested across hues) - every text-{primary,success,warning,info,destructive} utility moves to its -text token (253 uses); opacity variants stay decorative - token doc records the ruleBurak Boduroğlu · 9f9eebf
fix: 🎨 colored text reaches WCAG AA contrast
- measured in light mode on the #F7F7F7 page: brand as text 2.5:1,
warning 2.0:1, success 3.1:1, destructive 4.2:1 (AA needs 4.5:1)
- new text tokens primary/success/warning/info/destructive-text: darker in
light mode, equal to the fills in dark mode; fills stay as they are
- light primary text is --brand-ink, or for a custom palette color the
darkest-needed step of its hue (accentTextLightness, tested across hues)
- every text-{primary,success,warning,info,destructive} utility moves to
its -text token (253 uses); opacity variants stay decorative
- token doc records the rule2026-09-17
refactor: 🔍 one Turkish-aware filter behind every search box - new src/lib/search-text.ts: fold case, Turkish letters, accents and punctuation for comparison, and match every typed term in any order, so "ogretmen" finds "Öğretmen", "9a" finds "9-A" and "ayse 9a" finds both - replace the per-page toLocaleLowerCase().includes() filters with it across rosters, courses, exams, events, classes, messages, payments, whiteboards, the dashboard deadlines, the user table, the blueprint picker, the command palette and Çelebi's message search - DataTableSearch: Escape empties the field (and only then stops the event, so Escape still closes the panel around it) - SearchableSelect: the same folding filter instead of Kobalte's raw substring test, plus a "no results" line where the popover used to just close and read as broken - UserSearchSelect: say it is loading while the debounce and request run, instead of showing an empty panel that reads as "nobody matches"Burak Boduroğlu · 52bbe31
refactor: 🔍 one Turkish-aware filter behind every search box - new src/lib/search-text.ts: fold case, Turkish letters, accents and punctuation for comparison, and match every typed term in any order, so "ogretmen" finds "Öğretmen", "9a" finds "9-A" and "ayse 9a" finds both - replace the per-page toLocaleLowerCase().includes() filters with it across rosters, courses, exams, events, classes, messages, payments, whiteboards, the dashboard deadlines, the user table, the blueprint picker, the command palette and Çelebi's message search - DataTableSearch: Escape empties the field (and only then stops the event, so Escape still closes the panel around it) - SearchableSelect: the same folding filter instead of Kobalte's raw substring test, plus a "no results" line where the popover used to just close and read as broken - UserSearchSelect: say it is loading while the debounce and request run, instead of showing an empty panel that reads as "nobody matches"
2026-08-04
feat: 🎓 grade blueprints, public profiles, badges, and board group invites - cover the four surfaces the backend opened in b15ef98..6ddc914, one API file per endpoint with the domain's mandatory vitest cases - grade blueprints: a manager-only tab on /management/classes plus an "apply blueprint" action on a class. The grade label is the record key and is free text, so it is percent-encoded everywhere - a blueprint's skipped[] is an outcome report, not an error: the save still toasts and the shortfall opens a separate table. Backend English reasons are normalized and localized in lib/blueprint-skip, never rendered raw, and a 409 re-reads the blueprint and reseeds the form since there is no version token to retry with - public profiles at /profile/me and /profile/$userId, with bio and display name on the existing PATCH /users/me. The parent restriction is left to the backend's 403 — a parent may read their linked students, so a client role gate would wrongly close that - avatars ride a plain <img> against the same-origin /api path rather than fetch+objectURL; a shared revision counter busts the browser's image cache after an upload or delete and refreshes the sidebar chip - badges render from the /limits catalogue: unearned tiles carry a padlock and a progress bar, and a tooltip repeats what the tile already shows, since a tooltip can never be opened by touch - boards gain POST /boards/{id}/invite behind a source picker in the settings panel, creator-only, keyed per source kind so a non-creator never fires the list requests - profile links added where people are listed: the user table and detail, class members, linked students, and a parent's own children. A router <Link> inside a modal panel never navigates, so those close the panel first and then navigateBurak Boduroğlu · faaf9bc
feat: 🎓 grade blueprints, public profiles, badges, and board group invites
- cover the four surfaces the backend opened in b15ef98..6ddc914, one API
file per endpoint with the domain's mandatory vitest cases
- grade blueprints: a manager-only tab on /management/classes plus an
"apply blueprint" action on a class. The grade label is the record key
and is free text, so it is percent-encoded everywhere
- a blueprint's skipped[] is an outcome report, not an error: the save
still toasts and the shortfall opens a separate table. Backend English
reasons are normalized and localized in lib/blueprint-skip, never
rendered raw, and a 409 re-reads the blueprint and reseeds the form
since there is no version token to retry with
- public profiles at /profile/me and /profile/$userId, with bio and
display name on the existing PATCH /users/me. The parent restriction is
left to the backend's 403 — a parent may read their linked students, so
a client role gate would wrongly close that
- avatars ride a plain <img> against the same-origin /api path rather than
fetch+objectURL; a shared revision counter busts the browser's image
cache after an upload or delete and refreshes the sidebar chip
- badges render from the /limits catalogue: unearned tiles carry a padlock
and a progress bar, and a tooltip repeats what the tile already shows,
since a tooltip can never be opened by touch
- boards gain POST /boards/{id}/invite behind a source picker in the
settings panel, creator-only, keyed per source kind so a non-creator
never fires the list requests
- profile links added where people are listed: the user table and detail,
class members, linked students, and a parent's own children. A router
<Link> inside a modal panel never navigates, so those close the panel
first and then navigate