forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on dcf123a8823bd55f0a656ce94de6b865f41dc08aFiltered to src/lib/create-now.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

refactor: 🔧 type hardening, date-picker locale, answer sheet merge, cleanupBurak Boduroğlu · e00544e
refactor: 🔧 type hardening, date-picker locale, answer sheet merge, cleanup

- types: Exam/ExamAttempt/LiveMonitor fields required instead of optional,
  remove legacy weight variants (kind_weight, type_weight, exam_type_weight)
- AttemptQuestion: split into AttemptQuestionResponse + mapped AttemptQuestion
- StudentAnswer replaces GradedAnswer, matches backend shape exactly
- getExamAttemptQuestions: adds exam field via map (backend omits it)
- answer-sheet-view: fetch questions + answers, merge client-side for display
- date-picker: locale-aware day headers via Intl, Portal for overlay,
  selected-day label, improved outside-click detection
- createNow interval: 1000ms -> 30000ms (reduce polling)
- exam-weight: remove legacy field fallbacks
- live-monitor: pass maxAttempts from exam to attemptLabel
- cleanup: delete getSessionById, getSubjectById, getTermById (unused)

2026-07-13

fix: 🐛 sync frontend with person-based API responsesBurak Boduroğlu · 64327d6
fix: 🐛 sync frontend with person-based API responses

- update API types for PersonRef attendance, results, attempts, live monitor, and answer sheets

- add person helpers for stable labels and ids across nested user responses

- render attendance and exam result people from PersonRef instead of raw objects

- use server time offset from /time for shared now calculations

- filter dashboard exam counts and previews to enrolled courses for students

2026-07-12

fix: 🐛 harden exam state transitionsBurak Boduroğlu · 8117750
fix: 🐛 harden exam state transitions

- make exam status badges and detail restrictions update as time passes

- keep live monitor polling stable while switching finished exams to final state

- keep exams visible when their course data is unavailable

- close and block question editing when an exam becomes read-only

- move the exam question form into its own component file