Open SylvieDoumet opened 1 week ago
Hey there!
As discussed in today’s Backlog Grooming, the rating feature will be developed after the backend and login implementation. Please review your wireframes and acceptance criteria again. If the ratings won’t be anonymous, you need to indicate that. I suggest displaying the username and possibly the date of the review as well.
Additionally, it would be helpful to specify in the acceptance criteria whether including a text review is mandatory or if just submitting the star rating is enough.
I'll rework that
Hey Sylvie, looks awesome! Its a pretty big user story, so be aware that this might be a big PR which will take a long time to be reviewed as well. There is one thing missing in the AC and Tasks: In the description is an average Rating component visible, but its not described anywhere else. Please fix that and specify, if the average rating is also only visible if a user is logged in or not. And don't forget to add a task description on how to calculate the average.
Thank you We updated your recommendations !
This looks good, even added the solution for the average to the tasklist. next time it is enough to just add "calculate the rating average", but now you already have the solution noted down, which is nice.
Value Proposition
As a user of the Homemade Remedies App, I want to rate and review the effectiveness of remedies I have tried, so that I can share my experiences with others and help improve the app’s remedy recommendations.
Description
Acceptance Criteria
Tasks
feature/rating
remedy/[id]/index.js
to check using useEffect if the user is logged in.StarRating.js
within the components folder. Create a UI component that allows users to rate remedies on a scale of 1 to 5 stars by selection. Create a form for users to submit detailed reviews. Pass the logged-in username to the StarRating component and manage rating submissions with a handler function. Provide confirmation messages for successful submissions and handle errors accordingly. Ensure the review and rating fields are validated before submission.remedy/[id]/index.js
)models/Review.js
: Create a MongoDB schema to store ratings and reviews linked to user accountspages/api/reviews,js
. Create API routes to handle the submission and retrieval of ratings and reviews. In the API endpoint for retrieving ratings, calculate the average rating from the ratings array. Use :remedy/[id]/index.js
.StarRating.js
to display the username and user icon as part of the review display.