autoApprove. Customers can submit photo reviews, vote on helpfulness, and report abuse. You can respond to any review from Store Admin.
Source: modules/reviews · npm: @86d-store/reviews
Installation
Configuration
string
default:"\"false\""
When set to
"true", new reviews are immediately published without going through the moderation queue. When "false" (default), reviews start in pending status and require admin approval.Review lifecycle
autoApprove: "true", new reviews skip pending and go directly to approved.
Store endpoints
Submit a review (POST /reviews)
409 if the authenticated Customer has already reviewed the product. Each review accepts up to 5 images.
List product reviews (GET /reviews/products/:productId)
Report a review (POST /reviews/:id/report)
reason must be one of: spam, offensive, fake, irrelevant, harassment, other.
Admin endpoints
Store components
Use these components in your MDX Template files.ReviewsSummary
Compact star rating and review count for use on product cards.
string
required
Product ID to fetch the rating summary for.
ProductReviews
Full reviews section with rating summary, distribution bars, review list, and a submit form. Drop this on your product detail page.
string
required
Product ID to display reviews for.
string
default:"\"Customer Reviews\""
Section heading.