As a user,
I want to rate activities with a star rating and see the number of reviews,
In order to quickly assess the popularity and quality of activities based on user feedback.
Description
Acceptance criteria
[x] If a user is not logged in, they should be redirected to the login page when attempting to submit a rating
[x] Users should be able to hover over and select between 1 to 5 stars, with visual feedback provided upon hover
[x] Upon clicking a star, the rating should be automatically submitted without needing additional input from the user
[x] The total number of ratings should update dynamically as new ratings are submitted
[x] When an activity has no ratings yet, empty stars and (0) ratings should be shown
Tasks
[x] Create a branch: feature/starRating
[x] Implement the star rating component with hover functionality
[x] Set up automatic submission when a star is clicked
[x] Connect the star rating component to the backend API for submitting and retrieving ratings
[x] Display the total number of ratings dynamically next to the star rating
Rating of activities
As a user, I want to rate activities with a star rating and see the number of reviews, In order to quickly assess the popularity and quality of activities based on user feedback.
Description
Acceptance criteria
Tasks