Description
Students currently cannot share feedback about courses they have enrolled in. Add a course review system that allows enrolled students to submit one rating and review per course.
The feature should display an average rating and review count on course cards and course-detail pages.
Proposed Features
-
Allow only enrolled students to submit reviews.
-
Support ratings from 1 to 5 stars.
-
Allow an optional written review.
-
Permit one review per student per course.
-
Allow students to edit or delete their own review.
-
Display:
- Average course rating
- Total review count
- Rating distribution
- Recent reviews
-
Add sorting by:
- Newest
- Oldest
- Highest rated
- Lowest rated
-
Add pagination or Load More for reviews.
-
Show a verified-enrollment badge.
-
Add empty, loading, and error states.
-
Update rating summaries immediately after review changes.
Backend Requirements
Create a review model containing:
- User ID
- Course ID
- Rating
- Review text
- Created timestamp
- Updated timestamp
Add protected endpoints to:
- Create a review
- Retrieve course reviews
- Update the current user’s review
- Delete the current user’s review
- Retrieve rating summary
Add a compound unique index on user ID and course ID.
Validate:
- Rating range
- Review length
- Enrollment ownership
- Course existence
Frontend Requirements
- Add a rating summary to course cards and detail pages.
- Add a review form for eligible students.
- Add review cards with timestamps.
- Add edit and delete controls for the review owner.
- Add accessible star-rating controls.
- Add responsive review layouts.
Acceptance Criteria
@udaycodespace Kindly assign me this issue under ECSOC26
Description
Students currently cannot share feedback about courses they have enrolled in. Add a course review system that allows enrolled students to submit one rating and review per course.
The feature should display an average rating and review count on course cards and course-detail pages.
Proposed Features
Allow only enrolled students to submit reviews.
Support ratings from 1 to 5 stars.
Allow an optional written review.
Permit one review per student per course.
Allow students to edit or delete their own review.
Display:
Add sorting by:
Add pagination or Load More for reviews.
Show a verified-enrollment badge.
Add empty, loading, and error states.
Update rating summaries immediately after review changes.
Backend Requirements
Create a review model containing:
Add protected endpoints to:
Add a compound unique index on user ID and course ID.
Validate:
Frontend Requirements
Acceptance Criteria
@udaycodespace Kindly assign me this issue under ECSOC26