simpleshop_theme/lib/simpleshop_theme_web/components
jamey f244a42546 feat: add cart page, cart drawer, and shared cart infrastructure
- Cart context with pure functions for add/remove/update/hydrate
- Price formatting via ex_money (replaces all float division)
- CartHook on_mount with attach_hook for shared event handlers
  (open/close drawer, remove item, PubSub sync)
- Accessible cart drawer with focus trap, scroll lock, aria-live
- Cart page with increment/decrement quantity controls
- Preview mode cart drawer support in theme editor
- Cart persistence to session via JS hook + API endpoint
- 19 tests covering all Cart pure functions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 00:51:16 +00:00
..
layouts chore: apply mix format to codebase 2026-01-31 14:24:58 +00:00
page_templates feat: add cart page, cart drawer, and shared cart infrastructure 2026-02-06 00:51:16 +00:00
core_components.ex feat: add admin provider setup UI with improved product sync 2026-01-31 22:08:34 +00:00
layouts.ex refactor: add themed form components for consistent shop styling 2026-01-25 19:09:49 +00:00
page_templates.ex refactor: consolidate shop and preview page templates 2026-01-17 22:17:59 +00:00
shop_components.ex feat: add cart page, cart drawer, and shared cart infrastructure 2026-02-06 00:51:16 +00:00