Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds an optional free-text “description” to appointments and surfaces it through the booking flow and appointment cards, with a small UX tweak in the regular schedule modal and some comment translation.
Changes:
- Add
description?: stringto appointment types and persist it in MongoDB with a default value. - Send/display the appointment description in the client booking flow and appointment cards, with a word-count validation helper.
- Show an alert when saving a regular schedule without changes.
Reviewed changes
Copilot reviewed 16 out of 18 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| server/src/types/appointment/appointment.types.ts | Adds optional description to create-appointment payload type. |
| server/src/services/appointment/appointment.service.ts | Persists description on creation and includes it in formatted responses. |
| server/src/db/schemes/types/appointment.types.ts | Adds description field to DB appointment type. |
| server/src/db/schemes/appointmentSchema.ts | Adds description schema field with default "". |
| server/src/routes/uploadRoute.ts | Translates route comments to English. |
| server/package-lock.json | Lockfile metadata changes. |
| client/src/utils/appointmentDescription.validation.ts | Adds word-count validation helpers for description. |
| client/src/types/appointments.types.ts | Adds optional description to client appointment type. |
| client/src/store/modals.store.ts | Extends bookingConfirm modal payload with description. |
| client/src/features/appointments/mutations/useCreateAppointmentMutation.ts | Extends create appointment request type to include description. |
| client/src/components/teacherSection/teacherSchedule/TeacherSchedule.tsx | Adds description textarea + validation gating before booking. |
| client/src/components/bookingConfirmation/BookingConfirmation.tsx | Sends and displays description in booking confirmation. |
| client/src/components/appointmentCard/AppointmentInfo.tsx | Displays description on student appointment card. |
| client/src/components/appointmentCard/AppointmentCard.tsx | Passes description down to AppointmentInfo. |
| client/src/components/teacherAppointmentCard/TeacherAppointmentInfo.tsx | Displays description on teacher appointment card. |
| client/src/components/teacherAppointmentCard/TeacherAppointmentCard.tsx | Passes description down to TeacherAppointmentInfo. |
| client/src/components/regularStudentScheduleModal/RegularStudentScheduleModal.tsx | Adds “no changes” alert behavior. |
| client/package-lock.json | Lockfile metadata changes. |
Files not reviewed (2)
- client/package-lock.json: Language not supported
- server/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
client/src/components/teacherSection/teacherSchedule/TeacherSchedule.tsx
Show resolved
Hide resolved
client/src/components/regularStudentScheduleModal/RegularStudentScheduleModal.tsx
Show resolved
Hide resolved
Majoodeh
approved these changes
Mar 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added description in appointment


