simpleshop_theme/lib
Jamey Greenwood 50941d278f refactor: extract cart_drawer to shared ShopComponents module
Move the cart drawer component from ThemeLive.PreviewPages to the
shared ShopComponents module. The component now supports:
- mode attribute (:live for real stores, :preview for theme editor)
- subtotal attribute (default nil shows "£0.00")
- cart_items attribute (default empty list)

In preview mode, "View basket" navigates via LiveView JS commands.
In live mode, it links directly to /cart.

Preview pages now explicitly pass demo values:
  <.cart_drawer cart_items={...} subtotal="£72.00" mode={:preview} />

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 14:11:23 +00:00
..
mix/tasks feat: add automated Printify mockup generation & POD sample content 2026-01-14 23:35:18 +00:00
simpleshop_theme fix: resolve compilation warnings and update tests to match implementation 2026-01-15 22:36:15 +00:00
simpleshop_theme_web refactor: extract cart_drawer to shared ShopComponents module 2026-01-17 14:11:23 +00:00
simpleshop_theme_web.ex refactor: extract announcement_bar to shared ShopComponents module 2026-01-17 13:15:46 +00:00
simpleshop_theme.ex mix phx.new simpleshop_theme --database sqlite3 --adapter bandit --binary-id 2025-12-30 12:26:26 +00:00