Skip to content

Backend for regular students - #135

Merged
dashaaaa21 merged 10 commits into
developfrom
FE/BE/regular-students
Mar 1, 2026
Merged

dashaaaa21 merged 10 commits into
developfrom
FE/BE/regular-students

Conversation

@dashaaaa21

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings March 1, 2026 11:21
@HackYourFutures
HackYourFutures temporarily deployed to study-bridge-fe-be-regu-dc0sdt March 1, 2026 11:21 Inactive

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 a "regular students" feature to the backend, allowing teachers to mark appointment participants as regular (recurring) students, update their weekly schedules, and query the list of regular students/teachers. It also improves the calendar UI on the client side with month-navigation controls and fixes a date-selection highlight bug.

Changes:

  • New backend endpoints and data model fields (isRegularStudent, weeklySchedule, addedToRegularAt) for managing regular student relationships on appointments
  • Calendar component refactored to support month navigation (previous/next) and corrected selected-date highlighting across months
  • Removed booked-slot overlay from the teacher's lesson-schedule editor

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
server/src/types/appointment/appointment.types.ts Adds WeeklyScheduleSlot and UpdateWeeklyScheduleType interfaces
server/src/db/schemes/types/appointment.types.ts Extends AppointmentTypeDB with new regular-student fields
server/src/db/schemes/appointmentSchema.ts Adds Mongoose schema fields for isRegularStudent, weeklySchedule, addedToRegularAt
server/src/repositories/commandRepositories/appointment.command.ts Adds setRegularStudent, removeRegularStudent, updateWeeklySchedule DB operations
server/src/repositories/queryRepositories/appointment.query.ts Adds getRegularStudentsByTeacher and getRegularTeachersByStudent queries with pagination
server/src/services/appointment/appointment.service.ts Adds service methods for all new regular-student operations and extends formatAppointmentResponse
server/src/controllers/appointment.controller.ts Adds five new controller methods for the new endpoints
server/src/routes/appointmentRoute.ts Registers the five new routes
client/src/pages/privetTeachersPages/teacherProfile/TeacherProfile.tsx Removes unused booked-slots query and helper
client/src/components/teacherProfileSection/LessonSchedule.tsx Removes booked-slot UI and related logic
client/src/components/teacherSection/teacherSchedule/Calendar/Calendar.tsx Adds month navigation and fixes selected-date highlight for non-current months
client/src/components/icons/ChevronLeft.tsx New chevron-left SVG icon component
client/src/components/icons/ChevronRight.tsx New chevron-right SVG icon component

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread server/src/services/appointment/appointment.service.ts
Comment thread server/src/types/appointment/appointment.types.ts Outdated
Comment thread server/src/types/appointment/appointment.types.ts
Comment thread server/src/controllers/appointment.controller.ts Outdated
Comment thread server/src/controllers/appointment.controller.ts Outdated
Comment thread server/src/controllers/appointment.controller.ts
@HackYourFutures
HackYourFutures temporarily deployed to study-bridge-fe-be-regu-dc0sdt March 1, 2026 11:39 Inactive
@HackYourFutures
HackYourFutures temporarily deployed to study-bridge-fe-be-regu-dc0sdt March 1, 2026 11:52 Inactive
@dashaaaa21
dashaaaa21 merged commit 99d08af into develop Mar 1, 2026
2 checks passed

This branch was previously deployed

1 inactive deployment
study-bridge-fe-be-regu-dc0sdt — 09dc4436 Deployed Mar 1, 2026 by HackYourFutures
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