Summary
The reschedule feature is functionally complete but lacks email notifications to keep both parties informed.
Current State
- ✅ Reschedule UI works (granular options: individual/multiple/entire sessions)
- ✅ Reschedule API works (marks slots as tentative, sets status to PENDING)
- ✅ Consultant can see reschedule requests in Requests tab
- ❌ No email notification when consultee requests reschedule
- ❌ No email notification when consultant approves new slots
Expected Behavior
When Consultee Initiates Reschedule
- Email to consultant: "[Consultee Name] has requested to reschedule their consultation on [date]. Please review and allocate new time slots."
- Include link to Requests tab
When Consultant Approves New Slots
- Email to consultee: "Your reschedule request has been approved. Your new consultation is scheduled for [date/time]."
- Include calendar invite or booking details
Files to Reference
- Reschedule API:
/app/api/appointments/[appointmentId]/reschedule/route.ts
- Slot Allocation:
/utils/slotAllocation/SlotAllocationService.ts
- Email templates:
/lib/emails/
Acceptance Criteria
Summary
The reschedule feature is functionally complete but lacks email notifications to keep both parties informed.
Current State
Expected Behavior
When Consultee Initiates Reschedule
When Consultant Approves New Slots
Files to Reference
/app/api/appointments/[appointmentId]/reschedule/route.ts/utils/slotAllocation/SlotAllocationService.ts/lib/emails/Acceptance Criteria