complete reviews system (phases 4-6)
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:
jamey
2026-04-01 22:41:27 +01:00
parent 32eb0c6758
commit 6d2d0c9941
26 changed files with 2155 additions and 157 deletions

View File

@@ -53,9 +53,9 @@ defmodule Berrypod.MediaTest do
end
test "validates file size" do
attrs = Map.put(@valid_attrs, :file_size, 10_000_000)
attrs = Map.put(@valid_attrs, :file_size, 15_000_000)
assert {:error, changeset} = Media.upload_image(attrs)
assert "must be less than 5000000" in errors_on(changeset).file_size
assert "must be less than 10000000" in errors_on(changeset).file_size
end
end