feat: to show on schedule who diid appointment - #129
Merged
Merged
Conversation
HackYourFutures
temporarily deployed
to
study-bridge-fe-be-upda-c29jih
February 28, 2026 13:59
Inactive
Contributor
There was a problem hiding this comment.
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
LessonScheduleto 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.
Majoodeh
approved these changes
Feb 28, 2026
HackYourFutures
temporarily deployed
to
study-bridge-fe-be-upda-c29jih
February 28, 2026 14:32
Inactive
This branch was previously deployed
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.
On profile teacher, my profile, schedule
Will be visible who did appointment and which language