Commits
Commits on
c35a83aa3f65a20c8a2fdfd2dfdb3e35878741b5Filtered to src/api/__tests__/courses/courses.test.tsClear filter2026-07-28
feat(api): 🔌 align backend contractsBurak Boduroğlu · 4e531e5
feat(api): 🔌 align backend contracts - add runtime limits and complete meal endpoint clients - align course, homework, report, and settings payloads - drive auth validation from server limits
2026-07-22
feat: ✨ add homework API coverageBurak Boduroğlu · 6d0e29c
feat: ✨ add homework API coverage - add frontend homework endpoint wrappers and shared response types - expose course homework creation and listing helpers - add missing small parity wrappers for note, session, subject, term, and user endpoints - cover new and updated API helpers with targeted vitest tests - update build rule to skip repeat builds after a passing build or explicit user waiver
2026-07-21
feat: ✨ manager-assigned course teachers and role-aware empty search messagesBurak Boduroğlu · ca3a4d4
feat: ✨ manager-assigned course teachers and role-aware empty search messages
- mirror backend course teacher contract: teachers array on Course, POST/DELETE /courses/{id}/teachers
- allow manager+ users to select an initial teacher when creating a course in courses-page
- extend course-management rights to assigned teachers while restricting course deletion to creator or manager+
- add CourseTeachersPanel component with teacher search select and confirmation dialogs
- make UserSearchSelect empty messages role-aware (display 'Uygun öğretmen yok' or 'Uygun öğrenci yok')
- style empty search results with destructive red and medium font weight
- add Turkish and English translations for course teacher staffing workflow
- add Vitest API unit tests for postCourseTeacher and deleteCourseTeacherByUserIdrefactor: 🗃️ 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
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