berrypod/lib/simpleshop_theme_web/components/page_templates
jamey 35e0386abb add denormalized product fields and use Product structs throughout
Adds cheapest_price, compare_at_price, in_stock, on_sale columns to
products table (recomputed from variants after each sync). Shop
components now work with Product structs directly instead of plain
maps from PreviewData. Renames .name to .title, adds Product display
helpers (primary_image, hover_image, option_types) and ProductImage
helpers (display_url, direct_url, source_width). Adds Products context
query functions for storefront use (list_visible_products,
get_visible_product, list_categories with DB-level sort/filter).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 01:26:39 +00:00
..
cart.html.heex simplify footer categories: fetch directly instead of threading assigns 2026-02-11 08:20:50 +00:00
checkout_success.html.heex use LiveView navigation and add SVG fallback dimensions to fix FOUC 2026-02-11 14:46:12 +00:00
collection.html.heex simplify footer categories: fetch directly instead of threading assigns 2026-02-11 08:20:50 +00:00
contact.html.heex fix collection filters, hero spacing, sale filter, and error page CSS 2026-02-11 08:38:54 +00:00
content.html.heex simplify footer categories: fetch directly instead of threading assigns 2026-02-11 08:20:50 +00:00
error.html.heex simplify footer categories: fetch directly instead of threading assigns 2026-02-11 08:20:50 +00:00
home.html.heex simplify footer categories: fetch directly instead of threading assigns 2026-02-11 08:20:50 +00:00
pdp.html.heex add denormalized product fields and use Product structs throughout 2026-02-13 01:26:39 +00:00