Commits
2026-07-21
chore: 🧪 migrate tests from bun:test to vitestBurak Boduroğlu · b0a9db1
chore: 🧪 migrate tests from bun:test to vitest - replace bun:test imports with vitest in all 3 test files - add vitest.config.ts with @ alias and test config - add vitest dev dependency and test/watch npm scripts - create src/api/__tests__/ directory for future API tests
2026-07-19
fix: 🐛 nginx API whitelist, answer-sheet join, prefs clear; contract tests - nginx.conf: proxy whitelist gains sessions/work/pomodoro/attendance/ settings/subjects/terms — containerized frontend served index.html for those APIs; new nginx.conf.test.ts (bun test) guards the list - teacher answer sheet: join via tested lib/answer-sheet.ts and list every question, showing unanswered ones too (answers-only merge hid them) - admin user preferences: send "" (not null) to clear theme/language — backend keeps on null; body types now forbid null - live monitor: attemptLabel moved to lib/exam-labels.ts with a real unlimited-attempts guard (max_attempts 0 no longer renders "n / 0") - PATCH body types stop offering null-clears the backend ignores (session/event/course/note/work); only true set_or_clear fields stay nullable - course edit form gains maxlength hints matching backend limits - unit tests for answer-sheet join, exam weight, attempt label; tsconfig excludes src/**/*.test.ts from app typecheckAhmet Kaan Gümüş · 8aa8ff2
fix: 🐛 nginx API whitelist, answer-sheet join, prefs clear; contract tests - nginx.conf: proxy whitelist gains sessions/work/pomodoro/attendance/ settings/subjects/terms — containerized frontend served index.html for those APIs; new nginx.conf.test.ts (bun test) guards the list - teacher answer sheet: join via tested lib/answer-sheet.ts and list every question, showing unanswered ones too (answers-only merge hid them) - admin user preferences: send "" (not null) to clear theme/language — backend keeps on null; body types now forbid null - live monitor: attemptLabel moved to lib/exam-labels.ts with a real unlimited-attempts guard (max_attempts 0 no longer renders "n / 0") - PATCH body types stop offering null-clears the backend ignores (session/event/course/note/work); only true set_or_clear fields stay nullable - course edit form gains maxlength hints matching backend limits - unit tests for answer-sheet join, exam weight, attempt label; tsconfig excludes src/**/*.test.ts from app typecheck