store: consume catalog v2 — price-led product cards and detail page #36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Consume catalog v2 in
apps/store, using the CSS classes the design-foundation step defined and writing no new CSS beyond token-based additions. Addlib/format.tswithformatIdrbuilt onIntl.NumberFormat("id-ID")plus a test asserting the real output (Intlemits a non-breaking space afterRp). ReorderProductCardto price-led — image, category, name, price (Hubungi kamiwhen null), stock badge — dropping the description that makes the current grid so airy. On the product detail page add price, stock badge, brand, and part number, plus aProductJSON-LD block whoseOfferis emitted only whenprice !== null, and switchrelatedfrom matchingtypeto matchingcategory. DeriveProductBrowser's filters from the distinct catalog categories instead of three hardcoded buttons, and extend its search haystack withbrandandpartNumber. ExportfindServiceand theServicetype fromlib/services.tsso an unknown slug renders nothing rather than a dead link, and give each service page a capped "Sparepart yang dipakai" list.Acceptance:
pnpm --filter garage-store testandpnpm --filter garage-store buildpass against a v2 catalog; a product page shows a formatted price and a validProductJSON-LD block.