feat(reviews): build artist reviews list component (#421) - #460
Open
oladev2026-tech wants to merge 1 commit into
Open
feat(reviews): build artist reviews list component (#421)#460oladev2026-tech wants to merge 1 commit into
oladev2026-tech wants to merge 1 commit into
Conversation
Adds app/components/reviews/ReviewsList.tsx exporting both the component and a Review interface. Section header shows the average rating + total review count; a 5-bar distribution grid breaks down how many reviews are 5/4/3/2/1 stars; the review cards each carry the reviewer's initials avatar, name, rating, comment, and posted date. Prev/Next pagination is rendered when there is more than one page (pageSize default = 5). All state lives in this component (no extra deps). Mock data is passed in as a prop so consumer pages can swap in real data later. Closes Dfunder#421
|
@oladev2026-tech Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
app/components/reviews/ReviewsList.tsxmatching the issue: a self-contained section that renders an artist's client reviews with a summary header (average score + total count), a 5-bar star distribution, individual review cards (avatar, name, stars, comment, timestamp), and Prev/Next pagination.Notes
Reviewinterface so consumer pages can type their props.reviewsis passed in as a prop (no mock baked in) — the artist profile page or commission detail page can drop in real data directly.pageSizedefaults to 5; the Prev/Next buttons are hidden when there is a single page.reviewsarray viauseMemoso they don't recompute on unrelated re-renders.Closes #421