Commits
2026-07-23
fix: 🐛 keep active students in_progress on the live monitorAhmet Kaan Gümüş · bc3b5ce
fix: 🐛 keep active students in_progress on the live monitor The teacher live monitor mislabeled a student actively sitting the exam as `no_attempts_left` whenever `attempts_used >= max_attempts`. Because `attempts_used` counts the running sitting, every in-progress student on a single-attempt exam (the common case) rendered as `no_attempts_left` instead of `in_progress` — the roster looked empty of live activity. Only `in_progress` entries ever reached that branch (absent/not_started return earlier, submitted/expired are guarded), so it was always wrong. The student's own view already guarded `status !== "in_progress"`; the monitor helper did not. Extract `liveDisplayStatus` into lib/exam-status.ts (testable, matches examDisplayStatus), drop the bad branch, and cover it with regression tests: active-final-attempt stays in_progress, walkout still resolves to left / no_attempts_left, terminal statuses pass through.
2026-07-22
refactor: ♻️ unify exam status label mapping into examStatusMessageKey - extract repeated status→i18n key switch into shared function - fix no_attempts_left logic: submitted/expired must short-circuit before attempt-count check - replace inline if/else chains in exam-card, exam-detail, and exams-page - add unit tests for examDisplayStatus and examStatusMessageKeyBurak Boduroğlu · 57b96ff
refactor: ♻️ unify exam status label mapping into examStatusMessageKey - extract repeated status→i18n key switch into shared function - fix no_attempts_left logic: submitted/expired must short-circuit before attempt-count check - replace inline if/else chains in exam-card, exam-detail, and exams-page - add unit tests for examDisplayStatus and examStatusMessageKey
2026-07-21
feat: ✨ exam room full screen, attempts display, and fresh data - update AppShell to hide sidebars and top header for /exam-room - keep max-width reset so questions take up more screen space - display used and remaining attempt counts on the exam detail page - add `cache` option to API client `RequestOptions` - bypass browser cache (`no-store`) for exam, attempt, and time endpoints to ensure fresh status and precise clock sync without stale data - add exam start date, end date, and duration to the detail metric cards grid - show contextual alert for submitted exams (prompt to retake using remaining attempts) - display attempt submission timestamp in the alert boxBurak Boduroğlu · bcc0f69
feat: ✨ exam room full screen, attempts display, and fresh data - update AppShell to hide sidebars and top header for /exam-room - keep max-width reset so questions take up more screen space - display used and remaining attempt counts on the exam detail page - add `cache` option to API client `RequestOptions` - bypass browser cache (`no-store`) for exam, attempt, and time endpoints to ensure fresh status and precise clock sync without stale data - add exam start date, end date, and duration to the detail metric cards grid - show contextual alert for submitted exams (prompt to retake using remaining attempts) - display attempt submission timestamp in the alert box
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-20
feat: ✨ live monitor overhaul, choice letters, image sizing fix - answer-sheet: choice letter (A/B/C) labels, ✗ badge for wrong answers - exam room: radio → letter-labeled choice buttons (A/B/C...) - question form / panel: fixed image height + full width + bg fallback - live monitor: displayStatus (no_attempts_left, exam-aware), finished_at - live monitor count cards: icons with semantic colors, 6-col grid - badge: min-w-28 whitespace-nowrap - i18n: shorter "no rights left" / "hak bitti" - exam-status: skip no_attempts_left when in_progressBurak Boduroğlu · f123ed2
feat: ✨ live monitor overhaul, choice letters, image sizing fix - answer-sheet: choice letter (A/B/C) labels, ✗ badge for wrong answers - exam room: radio → letter-labeled choice buttons (A/B/C...) - question form / panel: fixed image height + full width + bg fallback - live monitor: displayStatus (no_attempts_left, exam-aware), finished_at - live monitor count cards: icons with semantic colors, 6-col grid - badge: min-w-28 whitespace-nowrap - i18n: shorter "no rights left" / "hak bitti" - exam-status: skip no_attempts_left when in_progress
refactor: 🔄 extract shared exam status logic, add max_attempts, unify colors - new src/lib/exam-status.ts: examDisplayStatus, examStatusTone, isSittableExam, ExamAttemptSummary, ExamDisplayStatus (adds no_attempts_left) - exams-page / exam-card / exam-detail-page / dashboard: use shared helpers - dashboard + exams-page: poll attempt statuses with max_attempts tracking - detail page: replace draft metric card with max_attempts - live-monitor: badge uses schedule-status colors (dot + semantic border) - i18n: attempt.noAttemptsLeft (EN/TR)Burak Boduroğlu · bae9525
refactor: 🔄 extract shared exam status logic, add max_attempts, unify colors - new src/lib/exam-status.ts: examDisplayStatus, examStatusTone, isSittableExam, ExamAttemptSummary, ExamDisplayStatus (adds no_attempts_left) - exams-page / exam-card / exam-detail-page / dashboard: use shared helpers - dashboard + exams-page: poll attempt statuses with max_attempts tracking - detail page: replace draft metric card with max_attempts - live-monitor: badge uses schedule-status colors (dot + semantic border) - i18n: attempt.noAttemptsLeft (EN/TR)