shadcn.io is not affiliated with official shadcn/ui
Merchant Dashboard Reviews Block for React
What is waiting for a reply at a ceramics studio: three worked-out cells (awaiting, replied this month, average rating) beside the queue of reviews that need an answer, each with an inline reply field and Send.
Installation
Overview
A reply queue for React with Base UI, for Cloisterwell, a fictional ceramics studio. A compact header says replies are public, so they should be polite and specific, and that a one-star review deserves an answer as much as a five-star one. Behind a divider, three cells share hairlines at the start: reviews awaiting a reply, replies this month and the average rating of all twelve reviews, with the counts rolling in SlidingNumber. At the end is the queue of the four reviews still waiting, oldest first, each with the reviewer, the stars, the text and an inline reply field with a Send button. Sending takes the review out of the queue, lowers "awaiting", raises "replied" and moves focus to the next reply field, with a polite line saying so. Every figure is worked out from the typed reviews. It's built from Input, Button, Avatar, Rating and Sliding Number. On a phone the three cells sit in a row above the queue.
FAQ
Where do the three numbers come from?
From AWAITING (the reviews still to answer) and ANSWERED (the star ratings of the eight already answered this month). "Awaiting" is the queue's length now; "Replied this month" is eight plus the replies you send; the average is every rating of all twelve reviews, to one decimal by whole-number maths, and doesn't change when you reply. Change the arrays and every figure follows.
Does Send send anything?
No. It removes the review from the queue on this page and the line says "Nothing is published in this demo"; a reload starts afresh. Send stays off until the field has text, and pressing Enter in the field sends too. To make it real, post the review's id and the text from the send handler.
Where does focus go after a reply?
To the next review's reply field, or, when the queue is empty, to the polite status line. The row you replied to is gone, so focus would otherwise fall back to the page. The empty state reads "Every review has a reply".
Why the reminder that replies are public?
A reply sits under the review for everyone to read, so the header asks for polite and specific ones and says low ratings deserve the same answer as high ones. The queue is oldest first, not worst first, so a critical review is not left to the bottom.
Related
- Pro
Response Rate Panel Reviews
Merchant toolsAn SLA slider for review replies: set a reply-within target from 4 to 48 hours and see which of six team members meet it, with the team rate worked out from their reply times.
- Pro
Notification Feed Reviews
ModerationA merchant review inbox for a greenhouse-kit maker: Tabs for All, Needs action and Replies with counts, a Mark all as read button and full-width ruled rows under day dividers with inline Approve, Reply and Mark read.
- Pro
Response Templates Reviews
Merchant toolsReply templates for a bike-repair shop: vertical Tabs for four categories with counts, the templates in each, a Select for the review being answered, an editable Textarea, a preview with marked variables and a Copy button.
- Pro
Reply Thread Reviews
Votes and repliesOne three-star dishwasher review with its conversation in a single framed window: the seller's reply, the buyer's follow-up and the seller again under depth rails, and a real reply form with a live character count that appends your reply to the end.
- Pro
Moderation Queue Reviews
ModerationA keyboard triage queue for a marketplace: eight held reviews with a progress line, and the review in focus with Approve, Reject and Escalate, each on a key, a polite status line and Undo.
- Pro
Kanban Board Reviews
ModerationTwelve reviews of an appliance-repair firm in four state lanes (New, In review, Replied, Resolved), each card with a Move to menu instead of dragging, counts worked out from where the cards sit.