Commits
Commits on
dcf123a8823bd55f0a656ce94de6b865f41dc08aFiltered to src/components/layout/route-guard.tsxClear filter2026-09-18
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-12
feat: 🎨 recompose the screens onto the Figma design, and name what is missingBurak Boduroğlu · 777e8b5
feat: 🎨 recompose the screens onto the Figma design, and name what is missing - the earlier migration recolored the app but left every layout alone, so the pages still read as the old product wearing new tokens; the screens are now built to the shape their Figma frame actually shows - classes, courses and staff work move from tables and link lists to the designed card grids; exams, homework, the question bank and the user roster gain the tab rows the design puts above them, every one computed from data already fetched rather than a new round trip - the admin home becomes the designed hero: a centered heading, a live student search and quick-link columns over an Analitik section - teacher, student and parent homes gain what real data supports — a deduped student count and the pending appointment requests addressed to a teacher, a week of focus minutes for a student, and for a parent a child selector, an attendance card and a fee-plan card - the marks report splits into Genel and Derslere göre, attendance leads with the four rates the design names, and the calendar's week view is a real timetable instead of a strip of coloured dots - notification panel, a branded 404, a 403 and a 500 card, and a banner driven by the browser's own online/offline events - where no endpoint can fill a value, the element is drawn and marked "yakında" rather than dropped, so a reader can tell a missing number from an unbuilt feature; controls that would do nothing are disabled beside the badge instead of sitting there inert - a delta arrow with no baseline and a progress bar with no ratio carry no information, so they are left out rather than badged; settings keeps its three working tabs instead of growing four empty ones - two recurring bugs fixed again where the new layouts met them: name cells with no truncate overlapping the column beside them, and two raw rose badges that had escaped the token sweep Every screen was walked in a browser at 1440px and 393px against its Figma frame, as each role it belongs to. Nothing here invents a value the API cannot serve.
2026-07-23
fix: 🐛 keep the app alive when /users/me failsAhmet Kaan Gümüş · e4045cc
fix: 🐛 keep the app alive when /users/me fails A non-401 failure on the bootstrap /users/me (e.g. a 429 once the API rate limit trips) threw out of an unguarded resource and blanked the whole tab with no way back but a fresh tab. Now the resource swallows every non-401 error into an error signal and resolves immediately, so it never re-throws during render nor suspends the shell. RouteGuard shows a translated alert with a Try-again button, a root ErrorBoundary backstops anything else, and a non-blocking background timer auto-retries after the server's Retry-After so the tab self-heals once the window rolls over.
2026-07-21
refactor: 🗃️ restructure API layer into domain folders and add vitest coverage - move 110+ flat API endpoints into domain-specific subdirectories (e.g., auth, courses, exams, notes, etc.) - add index.ts exports to each domain folder for clean namespace imports - update 70+ components and pages to use the new domain-based API import paths - add comprehensive vitest unit tests (~150 tests) for all API endpoints using fetch mocking - update AGENTS.md rulebook to mandate domain-based folder structure for future API additions - migrate existing bun:test test files in src/lib/ to vitest for consistencyBurak Boduroğlu · 6452b17
refactor: 🗃️ restructure API layer into domain folders and add vitest coverage - move 110+ flat API endpoints into domain-specific subdirectories (e.g., auth, courses, exams, notes, etc.) - add index.ts exports to each domain folder for clean namespace imports - update 70+ components and pages to use the new domain-based API import paths - add comprehensive vitest unit tests (~150 tests) for all API endpoints using fetch mocking - update AGENTS.md rulebook to mandate domain-based folder structure for future API additions - migrate existing bun:test test files in src/lib/ to vitest for consistency
2026-07-15
fix: 🐛 exclude students from staff-work search, add role-band guards for work pages - getUserSearch + UserSearchSelect: accept Role[] and comma-separate in URL query - staff-work-page: filter search to teacher/manager/admin with localized labels - route-guard + side-nav: maxRole support + roleInRange helper for role bands - work-log-page: guard maxRole=manager so admin uses staff-work instead - dashboard: personal work card only for manager; admin sees staff-work - router: /work beforeLoad uses roleInRange teacher..manager - i18n: work.teacherIdentity, work.noTeachers TR/ENBurak Boduroğlu · 52be1ae
fix: 🐛 exclude students from staff-work search, add role-band guards for work pages - getUserSearch + UserSearchSelect: accept Role[] and comma-separate in URL query - staff-work-page: filter search to teacher/manager/admin with localized labels - route-guard + side-nav: maxRole support + roleInRange helper for role bands - work-log-page: guard maxRole=manager so admin uses staff-work instead - dashboard: personal work card only for manager; admin sees staff-work - router: /work beforeLoad uses roleInRange teacher..manager - i18n: work.teacherIdentity, work.noTeachers TR/EN
feat: ✨ student-only pages, session PATCH, manager staff-work log, beforeLoad guards - hasExactRole helper + RouteGuard exactRole prop for student-only gates - marks + attendance: RouteGuard exactRole=student + beforeLoad redirect - side-nav: exactRole support on nav items; marks/attendance student-only - router: beforeLoad guards on /marks (student), /attendance (student), /work (teacher+) - staff-work page: manager+ work-log lookup (GET /work/{user}, PATCH/DELETE entries) - course-sessions-panel: edit session via PATCH /sessions/{id}, inline schedule parse - i18n: staff work keys, session editBurak Boduroğlu · 340431f
feat: ✨ student-only pages, session PATCH, manager staff-work log, beforeLoad guards
- hasExactRole helper + RouteGuard exactRole prop for student-only gates
- marks + attendance: RouteGuard exactRole=student + beforeLoad redirect
- side-nav: exactRole support on nav items; marks/attendance student-only
- router: beforeLoad guards on /marks (student), /attendance (student), /work (teacher+)
- staff-work page: manager+ work-log lookup (GET /work/{user}, PATCH/DELETE entries)
- course-sessions-panel: edit session via PATCH /sessions/{id}, inline schedule parse
- i18n: staff work keys, session edit2026-07-12
fix: 🐛 redirect registration to loginBurak Boduroğlu · 6e12570
fix: 🐛 redirect registration to login - send newly registered users to the login page instead of auto-signing in - remove register-page auth state mutation after account creation - add localized access-denied copy for protected content - use access-denied copy on blocked course, exam, and exam room views - polish guide cards, actions, and tips for mobile readability
feat: ✨ rebuild Hezarfen frontend for the full campus backendBurak Boduroğlu · 4deb240
feat: ✨ rebuild Hezarfen frontend for the full campus backend - SolidJS + Vite + TanStack Router + Tailwind/shadcn-solid (Kobalte) - Session cookie auth, role guards, TR/EN i18n, light/dark theme - Notes, events + attendance status chips, admin users search/filter - Courses with roster enrollment; exams created under a course with weight - Report card (/marks) with weighted course averages and overall average - Dashboard KPIs (notes/events/exams/average), wide list panels, guide - Sidebar guide pinned above centered @Hezarfen - 2026 footer - Vite proxy for /auth /users /notes /events /exams /courses /marks