Skip to content

feat: to show on schedule who diid appointment - #129

Merged
dashaaaa21 merged 2 commits into
developfrom
FE/BE/update-appointments
Feb 28, 2026
Merged

dashaaaa21 merged 2 commits into
developfrom
FE/BE/update-appointments

Conversation

@dashaaaa21

Copy link
Copy Markdown
Contributor

On profile teacher, my profile, schedule
Will be visible who did appointment and which language

Знімок екрана 2026-02-28 о 14 53 22

Copilot AI review requested due to automatic review settings February 28, 2026 13:59
@HackYourFutures
HackYourFutures temporarily deployed to study-bridge-fe-be-upda-c29jih February 28, 2026 13:59 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

Adds visibility into who booked upcoming lessons (and which lesson/language) directly inside the teacher’s weekly schedule modal, and prevents editing time slots that are already booked.

Changes:

  • Fetch teacher appointments on the profile page and derive “booked slots” to pass into the schedule modal.
  • Derive “booked slots” on the Teacher Appointments page and pass them into the schedule modal.
  • Extend LessonSchedule to render booked slot details and disable toggling booked cells.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
client/src/pages/privetTeachersPages/teacherProfile/TeacherProfile.tsx Fetches teacher appointments and maps upcoming approved appointments into bookedSlots for the schedule modal.
client/src/pages/privetTeachersPages/teacherAppointments/TeacherAppointments.tsx Maps fetched appointments into bookedSlots and passes them to the schedule modal.
client/src/components/teacherProfileSection/LessonSchedule.tsx Adds bookedSlots prop, blocks interaction on booked cells, and displays student/lesson info in the grid.
client/src/components/teacherAppointmentCard/TeacherAppointmentCard.tsx Updates relative imports to include .tsx extensions.
client/src/components/teacherAppointmentCard/TeacherAppointmentActions.tsx Changes link color styling.

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

Comment thread client/src/pages/privetTeachersPages/teacherProfile/TeacherProfile.tsx Outdated
Comment thread client/src/components/teacherProfileSection/LessonSchedule.tsx
Comment thread client/src/components/teacherProfileSection/LessonSchedule.tsx
Comment thread client/src/pages/privetTeachersPages/teacherProfile/TeacherProfile.tsx Outdated
Comment thread client/src/pages/privetTeachersPages/teacherAppointments/TeacherAppointments.tsx Outdated
Comment thread client/src/pages/privetTeachersPages/teacherAppointments/TeacherAppointments.tsx Outdated
@HackYourFutures
HackYourFutures temporarily deployed to study-bridge-fe-be-upda-c29jih February 28, 2026 14:32 Inactive
@dashaaaa21
dashaaaa21 merged commit aecae36 into develop Feb 28, 2026
2 checks passed

This branch was previously deployed

1 inactive deployment
study-bridge-fe-be-upda-c29jih — e8840c03 Deployed Feb 28, 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