Parent
#14
What to build
Remove orphaned server actions and API routes after feature removal. Clean up data-actions.ts and admin-actions.ts.
Remove from data-actions.ts
- Session-related: getTeacherDashboard (simplify), getTeacherSessions, createSession, completeSession, updateSessionDetails, deleteSession, getTeacherWeeklySessionCounts, checkSessionOverlap
- Session notes: createSessionNote, updateSessionNotes, getStudentLastSessionNotes
- Student progress: updateStudentProgress
- Admin: getAdminDashboard, getAllTeachers (admin variant), getAllStudents (admin variant), transferStudent, removeStudent, getAllOrganizations, createOrganization
- Unused payment analytics: getRevenueTrend, getPaymentHistory
Remove API routes
- /api/teachers/[id]/display if no longer needed
Remove
- admin-actions.ts entirely
- lib/invitation-actions.ts (if not already removed by student CRUD slice)
Keep
- Payment actions: getTeacherPayments, toggleStudentPayment, updateStudentMonthlyPrice, updateStudentPaymentDay
- Student actions: getTeacherStudents (simplified for new schema)
- Settings actions: updateTeacherSettings (simplified)
- Auth actions unchanged
End-to-end behavior: app compiles without errors, payment flow works, student management works, no references to removed server actions.
Acceptance criteria
Blocked by
Parent
#14
What to build
Remove orphaned server actions and API routes after feature removal. Clean up data-actions.ts and admin-actions.ts.
Remove from data-actions.ts
Remove API routes
Remove
Keep
End-to-end behavior: app compiles without errors, payment flow works, student management works, no references to removed server actions.
Acceptance criteria
Blocked by