complete reviews system (phases 4-6)
All checks were successful
deploy / deploy (push) Successful in 1m4s
All checks were successful
deploy / deploy (push) Successful in 1m4s
- review display: photos with lightbox, verified badge, pagination - admin moderation: pending/approved/rejected tabs, bulk actions, nav badge - SEO: JSON-LD AggregateRating and Review markup on product pages - automation: review request emails 7 days after delivery (Oban worker) - rating cache: avg/count fields on products, updated on approval - fix file size validation in media test (10MB limit) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Product reviews system
|
||||
|
||||
Status: In Progress (Phase 1-3 complete)
|
||||
Status: Complete
|
||||
|
||||
## Overview
|
||||
|
||||
@@ -447,48 +447,48 @@ Only include if product has approved reviews.
|
||||
- "Write a review" / "Edit review" buttons
|
||||
- Link to review form
|
||||
|
||||
### Phase 4: Display and components (~2.5h)
|
||||
### Phase 4: Display and components (~2.5h) ✓
|
||||
|
||||
8. **Extract image_lightbox component** (0.5h)
|
||||
8. **Extract image_lightbox component** (0.5h) ✓
|
||||
- Generic lightbox from product_lightbox
|
||||
- Same JS hook, just cleaner component interface
|
||||
|
||||
9. **Review photos component** (0.5h)
|
||||
- Inline thumbnails
|
||||
9. **Review photos component** (0.5h) ✓
|
||||
- Inline thumbnails with URL building from Image structs
|
||||
- Opens image_lightbox on click
|
||||
|
||||
10. **Product page display** (1.5h)
|
||||
- Update reviews_section to use real data
|
||||
- Verified purchase badge
|
||||
- Review photos display
|
||||
- Pagination
|
||||
10. **Product page display** (1.5h) ✓
|
||||
- Updated review_card to include photos and verified badge with icon
|
||||
- Verified purchase badge with checkmark SVG
|
||||
- Review photos display via review_photos component
|
||||
- Pagination via existing load_more_reviews event
|
||||
|
||||
### Phase 5: Admin moderation (~2h)
|
||||
### Phase 5: Admin moderation (~2h) ✓
|
||||
|
||||
11. **Admin reviews list** (1.5h)
|
||||
11. **Admin reviews list** (1.5h) ✓
|
||||
- Reviews list with tabs (pending/approved/rejected)
|
||||
- Photo thumbnails in list
|
||||
- Expand to see full review + photos
|
||||
- Approve/reject actions
|
||||
|
||||
12. **Nav and notifications** (0.5h)
|
||||
12. **Nav and notifications** (0.5h) ✓
|
||||
- Pending count badge in admin nav
|
||||
- Optional: email to admin on new review
|
||||
|
||||
### Phase 6: Automation and SEO (~2h)
|
||||
### Phase 6: Automation and SEO (~2h) ✓
|
||||
|
||||
13. **Review request emails** (1h)
|
||||
13. **Review request emails** (1h) ✓
|
||||
- Oban job for post-delivery requests
|
||||
- Email template
|
||||
- Admin setting for delay
|
||||
- Admin setting for delay (defaults to 7 days)
|
||||
|
||||
14. **Schema markup** (0.5h)
|
||||
14. **Schema markup** (0.5h) ✓
|
||||
- AggregateRating on product pages
|
||||
- Individual Review markup
|
||||
|
||||
15. **Rating cache on products** (0.5h)
|
||||
15. **Rating cache on products** (0.5h) ✓
|
||||
- Add rating_avg, rating_count to products
|
||||
- Update on review approval
|
||||
- Update on review approval/rejection/deletion
|
||||
- Display on product cards
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user