Skip to content

Update module refs to extracted package namespaces#462

Merged
ddon merged 5 commits into
BeamLabEU:devfrom
timujinne:legal-cookie-consent-fix
Mar 30, 2026
Merged

Update module refs to extracted package namespaces#462
ddon merged 5 commits into
BeamLabEU:devfrom
timujinne:legal-cookie-consent-fix

Conversation

@timujinne
Copy link
Copy Markdown
Contributor

Summary

  • Update all PhoenixKit.Modules.Shop.* references to PhoenixKitEcommerce.* in integration.ex, auth files, and sitemap modules
  • Update all PhoenixKit.Modules.Billing.* references to PhoenixKitBilling.* namespace
  • Restore LayoutWrapper in core module templates (external modules handle their own removal)
  • Add missing cookie consent widget to dashboard layout

Changes

Module namespace migration

  • lib/phoenix_kit_web/integration.ex — Shop refs → PhoenixKitEcommerce
  • lib/phoenix_kit/users/auth.ex — Shop.Cart → PhoenixKitEcommerce.Cart
  • lib/phoenix_kit_web/users/auth.ex — Shop → PhoenixKitEcommerce
  • lib/modules/sitemap/sources/shop.ex — alias PhoenixKitEcommerce, as: Shop
  • lib/modules/sitemap/sources/router_discovery.ex — PhoenixKitEcommerce
  • lib/modules/sitemap/web/settings.ex — PhoenixKitEcommerce
  • Billing refs updated to PhoenixKitBilling namespace

Other

  • Cookie consent widget added to dashboard layout
  • Synced with upstream/dev (Pages removal, auto-recompile, deps upgrade)

Test plan

  • mix compile passes with 0 errors
  • mix credo --strict passes
  • mix dialyzer passes
  • Shop module loads correctly in admin (routes, plug, LiveViews)
  • Billing module loads correctly
  • Sitemap generation includes shop URLs

🤖 Generated with Claude Code

timujinne and others added 5 commits March 28, 2026 19:59
Core modules (db, customer_service, maintenance, referrals, sitemap,
storage) need LayoutWrapper.app_layout in their templates because
auto-layout only applies to extracted external packages, not core
modules bundled in :phoenix_kit.
- Replace PhoenixKit.Modules.Billing.* with PhoenixKitBilling.* in:
  - integration.ex (user billing profile routes)
  - auth.ex (billing profile schema reference)
  - country_data.ex (IbanData alias)
- Billing package provides compat aliases for backward compatibility
Replace old namespace references in integration.ex, auth files, and
sitemap modules to use the new PhoenixKitEcommerce namespace from the
extracted ecommerce package.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ddon ddon merged commit 62d316e into BeamLabEU:dev Mar 30, 2026
6 checks passed
ddon added a commit that referenced this pull request Mar 30, 2026
Fix missing url_path assign in referrals LiveViews (runtime crash from
PR #462 LayoutWrapper restoration), add PR review docs for #462 and
#463, update changelog.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants