Skip to content

Fe/be improve appointments#140

Merged
dashaaaa21 merged 5 commits intodevelopfrom
FE/BE-improve-appointments
Mar 3, 2026
Merged

Fe/be improve appointments#140
dashaaaa21 merged 5 commits intodevelopfrom
FE/BE-improve-appointments

Conversation

@dashaaaa21
Copy link
Contributor

Added description in appointment
Знімок екрана 2026-03-03 о 16 26 05
Знімок екрана 2026-03-03 о 16 48 29
Знімок екрана 2026-03-03 о 16 49 03

@HackYourFutures HackYourFutures temporarily deployed to study-bridge-fe-be-impr-vtzcrh March 3, 2026 15:52 Inactive
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?: string to 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.

@dashaaaa21 dashaaaa21 merged commit 906a9eb into develop Mar 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants