Commits
Commits on
dcf123a8823bd55f0a656ce94de6b865f41dc08aFiltered to src/lib/attendance-status.tsClear 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-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
style: 🎨 enforce design tokens, remove display serif, and refactor semantic status colorsBurak Boduroğlu · 5b5dcc6
style: 🎨 enforce design tokens, remove display serif, and refactor semantic status colors - remove Fraunces font from tailwind config and index.css to enforce DM Sans across data and admin pages - refactor Ask Celebi button in app-shell to use primary semantic token instead of hardcoded sky blue - update attendance and schedule status mappers to use theme semantic variables (success, destructive, warning, info) - replace hardcoded green/red/sky/rose/emerald classes in answer sheet, exam room WS, live monitor, and messages with semantic CSS tokens
2026-07-15
refactor: ♻️ centralize attendance status definitions with i18n detail keys - add src/lib/attendance-status.ts with shared status metadata (keys, color classes) - add i18n detail keys for each status (presentDetail, absentDetail, etc.) - replace inline status arrays in picker/table/report with shared ATTENDANCE_STATUSES - color-code attendance badges by status (emerald/rose/amber/sky) - show detail description in status-picker and table badges - convert report stat grid to status-driven layout with colored StatusStat cards - add rounded-full to attendance badges, rounded-xl to stat cards - add rounded-lg bg-background/80 to status-picker selectBurak Boduroğlu · 828b795
refactor: ♻️ centralize attendance status definitions with i18n detail keys - add src/lib/attendance-status.ts with shared status metadata (keys, color classes) - add i18n detail keys for each status (presentDetail, absentDetail, etc.) - replace inline status arrays in picker/table/report with shared ATTENDANCE_STATUSES - color-code attendance badges by status (emerald/rose/amber/sky) - show detail description in status-picker and table badges - convert report stat grid to status-driven layout with colored StatusStat cards - add rounded-full to attendance badges, rounded-xl to stat cards - add rounded-lg bg-background/80 to status-picker select