simpleshop_theme/lib/simpleshop_theme_web
Jamey Greenwood 5f3efebdfc refactor: extract announcement_bar to shared ShopComponents module
Move announcement_bar from ThemeLive.PreviewPages to a new shared
SimpleshopThemeWeb.ShopComponents module. This establishes the pattern
for Phase 9 storefront integration where components need to work in
both the admin theme preview and public storefront pages.

Changes:
- Create lib/simpleshop_theme_web/components/shop_components.ex
- Add optional message attribute (defaults to "Free delivery over £40")
- Import ShopComponents in html_helpers for global availability
- Import ShopComponents in PreviewPages for embedded template access
- Update all 7 preview templates to use short-form <.announcement_bar>
- Remove original announcement_bar/1 from PreviewPages (now unused)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 13:15:46 +00:00
..
components refactor: extract announcement_bar to shared ShopComponents module 2026-01-17 13:15:46 +00:00
controllers feat: add dark mode support, accordion UI, and current combination display 2025-12-31 18:55:44 +00:00
live refactor: extract announcement_bar to shared ShopComponents module 2026-01-17 13:15:46 +00:00
endpoint.ex add Tidewave 2025-12-30 12:27:41 +00:00
gettext.ex mix phx.new simpleshop_theme --database sqlite3 --adapter bandit --binary-id 2025-12-30 12:26:26 +00:00
router.ex feat: add dark mode support, accordion UI, and current combination display 2025-12-31 18:55:44 +00:00
telemetry.ex mix phx.new simpleshop_theme --database sqlite3 --adapter bandit --binary-id 2025-12-30 12:26:26 +00:00
user_auth.ex mix phx.gen.auth Accounts User users 2025-12-30 12:26:46 +00:00