Skip to content

fix: add Select comopnent - #128

Merged
dashaaaa21 merged 1 commit into
developfrom
feat/teacher-reviews
Mar 1, 2026
Merged

dashaaaa21 merged 1 commit into
developfrom
feat/teacher-reviews

Conversation

@Majoodeh

Copy link
Copy Markdown
Contributor

In thsi PR I did what you mentioned to improve.

  1. Moved (add revidw box to below "what Our clietn...."
  2. Hidden when there is no approved appointments
  3. Used the SelectComonent
  4. Make 1 review per row

Copilot AI review requested due to automatic review settings February 28, 2026 13:07
@HackYourFutures
HackYourFutures temporarily deployed to study-bridge-feat-teach-tmcvxz February 28, 2026 13:07 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 refactors the teacher reviews section UI by moving the “What our clients say” header content out of the reviews list component, switching the lesson picker in the review form to the shared SelectComponent, hiding the review form when no eligible lessons exist, and rendering reviews one-per-row.

Changes:

  • Moved the “What our clients say” header/intro text from ReviewsTeacher to ReviewsManager.
  • Updated AddReview to hide when there are no eligible approved lessons and replaced the native <select> with SelectComponent.
  • Adjusted the reviews grid to a single-column layout and justified review text.

Reviewed changes

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

File Description
client/src/components/teacherSection/Reviews/ReviewsTeacher.tsx Removes the header/intro block and changes the grid to single-column (1 review per row).
client/src/components/teacherSection/Reviews/ReviewsManager.tsx Adds the header/intro block above the review form and reviews list.
client/src/components/teacherSection/Reviews/ReviewCardTeacher.tsx Adds text-justify styling to review text.
client/src/components/teacherSection/Reviews/AddReview.tsx Adds early returns (login/loading/no eligible lessons) and replaces native select with SelectComponent.

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

Comment thread client/src/components/teacherSection/Reviews/AddReview.tsx
Comment thread client/src/components/teacherSection/Reviews/AddReview.tsx
Comment thread client/src/components/teacherSection/Reviews/AddReview.tsx
@Dmytro-Doronin
Dmytro-Doronin self-requested a review February 28, 2026 19:09
@dashaaaa21
dashaaaa21 merged commit 15007c9 into develop Mar 1, 2026
6 checks passed

This branch was previously deployed

1 inactive deployment
study-bridge-feat-teach-tmcvxz — 55c6851c 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.

5 participants