forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 4e0a32974a9a41dbdd67b88dda46c1f7ac3e22ffFiltered to src/lib/answer-sheet.tsClear filter

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-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