Skip to content

feat: improve aviability teacher#143

Merged
dashaaaa21 merged 2 commits intodevelopfrom
FE/BE-aviability-teacher
Mar 5, 2026
Merged

feat: improve aviability teacher#143
dashaaaa21 merged 2 commits intodevelopfrom
FE/BE-aviability-teacher

Conversation

@dashaaaa21
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
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 updates the teacher weekly availability flow by restricting selectable/serialized schedule hours to a narrower daily window and aligning the schedule save UX and cache invalidation with existing notification/query-key patterns.

Changes:

  • Restrict availability mapping to hours 7–22 and simplify slot generation logic.
  • Update schedule save flow to use notification toasts and invalidate teacherPublic query cache.
  • Adjust the schedule UI grid to render fewer hour columns (7–22).

Reviewed changes

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

File Description
client/src/pages/privetTeachersPages/teacherProfile/scheduleMappers.ts Enforces the allowed hour window in API↔UI schedule mapping and slot merging.
client/src/pages/privetTeachersPages/teacherProfile/TeacherProfile.tsx Uses toast notifications on schedule save, updates query invalidation key, and logs save errors.
client/src/components/teacherProfileSection/LessonSchedule.tsx Updates displayed hour range to match the new availability constraints.

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

You can also share your feedback on Copilot code review. Take the survey.

@HackYourFutures HackYourFutures temporarily deployed to study-bridge-fe-be-avia-zzolbv March 5, 2026 10:00 Inactive
@dashaaaa21 dashaaaa21 merged commit 81b24e0 into develop Mar 5, 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