18 lines
1.3 KiB
JSON
18 lines
1.3 KiB
JSON
{
|
|
"feature_id": "F-066",
|
|
"agent": "reviewer",
|
|
"verdict": "APPROVED",
|
|
"summary": "Three surgical fixes. The product image container now has aspect-[5/7] inside a flex centering wrapper so it both has a real height and is centred horizontally. The PATCH 500 is gone (JSON.stringify + ::jsonb cast). serializeProduct includes channels, featured, attributes so admin edits round-trip through the API.",
|
|
"evidence": [
|
|
"git diff project/frontend/src/app/products/[slug]/page.tsx — restored aspect-[5/7] max-h-[500px] inside a flex justify-center wrapper",
|
|
"git diff project/src/modules/catalog/infrastructure/pg-product-repository.ts — JSON.stringify(patch[key]) + ::jsonb cast for attributes",
|
|
"git diff project/src/modules/catalog/api/catalog.routes.ts — channels, featured, attributes added to serializeProduct",
|
|
"curl PATCH /api/products/13a65dc0-… with attributes → 200 with attributes, featured, channels in the response body",
|
|
"curl GET /api/products/13a65dc0-… → same fields present (round-trip)",
|
|
"curl /products/proteina-guisante-ecologica → image element rendered inside aspect-[5/7] max-h-[500px] container",
|
|
"backend log no longer shows 'invalid input syntax for type json' for PATCH",
|
|
"npm test (backend) — 124 passed, 56 skipped",
|
|
"./scripts/verify.sh — exit 0"
|
|
],
|
|
"timestamp": "2026-08-19T15:25:00Z"
|
|
} |