2026-02-18 21:23:15 +00:00
|
|
|
defmodule BerrypodWeb.ShopComponents do
|
2026-01-17 13:11:39 +00:00
|
|
|
@moduledoc """
|
refactor: split shop_components.ex into 5 focused sub-modules
4,487-line monolith → 23-line facade + 5 modules:
- Base (inputs, buttons, cards)
- Layout (header, footer, mobile nav, shop_layout)
- Cart (drawer, items, order summary)
- Product (cards, gallery, variant selector, hero)
- Content (rich text, images, contact, reviews)
`use SimpleshopThemeWeb.ShopComponents` imports all sub-modules.
No single file over ~1,600 lines now.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 14:30:25 +00:00
|
|
|
Facade module for shop/storefront UI components.
|
2026-01-17 13:11:39 +00:00
|
|
|
|
2026-02-18 21:23:15 +00:00
|
|
|
`use BerrypodWeb.ShopComponents` imports all sub-modules:
|
2026-01-17 15:37:58 +00:00
|
|
|
|
refactor: split shop_components.ex into 5 focused sub-modules
4,487-line monolith → 23-line facade + 5 modules:
- Base (inputs, buttons, cards)
- Layout (header, footer, mobile nav, shop_layout)
- Cart (drawer, items, order summary)
- Product (cards, gallery, variant selector, hero)
- Content (rich text, images, contact, reviews)
`use SimpleshopThemeWeb.ShopComponents` imports all sub-modules.
No single file over ~1,600 lines now.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 14:30:25 +00:00
|
|
|
- `Base` — themed inputs, buttons, cards
|
|
|
|
|
- `Layout` — header, footer, mobile nav, shop_layout wrapper
|
|
|
|
|
- `Cart` — cart drawer, cart items, order summary
|
|
|
|
|
- `Product` — product cards, gallery, variant selector, hero sections
|
|
|
|
|
- `Content` — rich text, responsive images, contact form, reviews
|
2026-01-17 15:37:58 +00:00
|
|
|
"""
|
2026-02-01 00:26:19 +00:00
|
|
|
|
refactor: split shop_components.ex into 5 focused sub-modules
4,487-line monolith → 23-line facade + 5 modules:
- Base (inputs, buttons, cards)
- Layout (header, footer, mobile nav, shop_layout)
- Cart (drawer, items, order summary)
- Product (cards, gallery, variant selector, hero)
- Content (rich text, images, contact, reviews)
`use SimpleshopThemeWeb.ShopComponents` imports all sub-modules.
No single file over ~1,600 lines now.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 14:30:25 +00:00
|
|
|
defmacro __using__(_opts \\ []) do
|
|
|
|
|
quote do
|
2026-02-18 21:23:15 +00:00
|
|
|
import BerrypodWeb.ShopComponents.Base
|
|
|
|
|
import BerrypodWeb.ShopComponents.Cart
|
|
|
|
|
import BerrypodWeb.ShopComponents.Content
|
|
|
|
|
import BerrypodWeb.ShopComponents.Layout
|
|
|
|
|
import BerrypodWeb.ShopComponents.Product
|
refactor: split shop_components.ex into 5 focused sub-modules
4,487-line monolith → 23-line facade + 5 modules:
- Base (inputs, buttons, cards)
- Layout (header, footer, mobile nav, shop_layout)
- Cart (drawer, items, order summary)
- Product (cards, gallery, variant selector, hero)
- Content (rich text, images, contact, reviews)
`use SimpleshopThemeWeb.ShopComponents` imports all sub-modules.
No single file over ~1,600 lines now.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 14:30:25 +00:00
|
|
|
end
|
2026-01-25 00:33:38 +00:00
|
|
|
end
|
2026-01-17 13:11:39 +00:00
|
|
|
end
|