Skip to content

Add email notifications for reschedule flow #337

Description

@teetangh

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

  • Consultant receives email when consultee initiates reschedule
  • Consultee receives email when consultant approves new slots
  • Emails include relevant booking details (dates, times, consultant name)
  • Emails include actionable links (Requests tab, booking confirmation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bookingBooking, scheduling, slots, reschedule, cancellationlaunch: post-mvpFirst 90 days after launch — coverage, polish, operational maturitynotificationsNotification and email system

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions