simpleshop_theme/lib/simpleshop_theme_web/live
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
..
theme_live refactor: extract cart_drawer to shared ShopComponents module 2026-01-17 14:11:23 +00:00
user_live mix phx.gen.auth Accounts User users 2025-12-30 12:26:46 +00:00