906 B
906 B
F-090 — Implementer evidence
Changes
project/src/modules/catalog/api/catalog.routes.tsserializeProductnow includesbrandandexpirationDate, which are already present on the domain/repository product.- This fixes
/catalog/productsresponses consumed by the admin listing.
project/apps/admin/src/features/products/components/sections/InventorySection.tsx- SKU and EAN display/edit controls now use
rows[variant.id].variant, the state updated after a successful PATCH, instead of the immutable initialvariantsarray. - This keeps the newly saved value visible after leaving edit mode and when opening the editor again.
- SKU and EAN display/edit controls now use
Validation
- Root
npm run typecheck→ exit 0 - Admin
npx tsc --noEmit→ exit 0 - Admin ESLint on
InventorySection.tsx→ exit 0 - Backend PATCH route remains
/products/:id/variants/:variantId; no API contract or schema change.