Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/store switcher #2496

Open
wants to merge 7 commits into
base: canary
Choose a base branch
from
Open

Feature/store switcher #2496

wants to merge 7 commits into from

Conversation

paales
Copy link
Member

@paales paales commented Feb 4, 2025

No description provided.

…for Magento 2.4.6 and earlier to still use the configuration. Magento 2.4.7 doesn't need that configuration anymore.
…nested toggles to switch groups, then stores and then currencies. It automatically hides features that aren't used: If only a single group is used with multiple stores only the store selector is shown. If multiple groups are used with each a single store is used, only the group selector is shown. If only a single currency is used, there is no currency selector. If multiple currencies are used, the currency selector is shown. This makes the selector more user-friendly and less cluttered.

Added support for multiple display currencies in the frontend. Multiple currencies were already supported, but this introduces Display Currencies for viewing the cart in different currencies.
Copy link

changeset-bot bot commented Feb 4, 2025

🦋 Changeset detected

Latest commit: 8107d9b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 83 packages
Name Type
@graphcommerce/magento-store Major
@graphcommerce/googlerecaptcha Major
@graphcommerce/graphql Major
@graphcommerce/address-fields-nl Major
@graphcommerce/algolia-search Major
@graphcommerce/magento-cart-billing-address Major
@graphcommerce/magento-cart-checkout Major
@graphcommerce/magento-cart-coupon Major
@graphcommerce/magento-cart-email Major
@graphcommerce/magento-cart-items Major
@graphcommerce/magento-cart-payment-method Major
@graphcommerce/magento-cart-pickup Major
@graphcommerce/magento-cart-shipping-address Major
@graphcommerce/magento-cart-shipping-method Major
@graphcommerce/magento-cart Major
@graphcommerce/magento-category Major
@graphcommerce/magento-cms Major
@graphcommerce/magento-customer Major
@graphcommerce/magento-payment-adyen Major
@graphcommerce/magento-payment-braintree Major
@graphcommerce/magento-payment-included Major
@graphcommerce/magento-payment-klarna Major
@graphcommerce/magento-payment-multisafepay Major
@graphcommerce/magento-payment-paypal Major
@graphcommerce/magento-product-bundle Major
@graphcommerce/magento-product-configurable Major
@graphcommerce/magento-product-downloadable Major
@graphcommerce/magento-product-grouped Major
@graphcommerce/magento-product Major
@graphcommerce/magento-review Major
@graphcommerce/magento-search-overlay Major
@graphcommerce/magento-search Major
@graphcommerce/magento-wishlist Major
@graphcommerce/mollie-magento-payment Major
@graphcommerce/magento-graphcms Major
@graphcommerce/magento-open-source Major
@graphcommerce/magento-product-simple Major
@graphcommerce/magento-product-virtual Major
@graphcommerce/google-datalayer Major
@graphcommerce/magento-compare Major
@graphcommerce/magento-newsletter Major
@graphcommerce/magento-recently-viewed-products Major
@graphcommerce/algolia-categories Major
@graphcommerce/algolia-insights Major
@graphcommerce/algolia-personalization Major
@graphcommerce/algolia-products Major
@graphcommerce/demo-magento-graphcommerce Major
@graphcommerce/magento-graphql-rest Major
@graphcommerce/googleanalytics Major
@graphcommerce/googletagmanager Major
@graphcommerce/algolia-recommend Major
@graphcommerce/docs Major
@graphcommerce/browserslist-config-pwa Major
@graphcommerce/changeset-changelog Major
@graphcommerce/eslint-config-pwa Major
@graphcommerce/graphql-codegen-markdown-docs Major
@graphcommerce/graphql-codegen-near-operation-file Major
@graphcommerce/graphql-codegen-relay-optimizer-plugin Major
@graphcommerce/misc Major
@graphcommerce/next-config Major
@graphcommerce/prettier-config-pwa Major
@graphcommerce/typescript-config-pwa Major
@graphcommerce/cli Major
@graphcommerce/ecommerce-ui Major
@graphcommerce/framer-next-pages Major
@graphcommerce/framer-scroller Major
@graphcommerce/framer-utils Major
@graphcommerce/google-playstore Major
@graphcommerce/graphcms-ui Major
@graphcommerce/graphql-mesh Major
@graphcommerce/hygraph-cli Major
@graphcommerce/hygraph-dynamic-rows-ui Major
@graphcommerce/hygraph-dynamic-rows Major
@graphcommerce/hygraph-ui Major
@graphcommerce/image Major
@graphcommerce/lingui-next Major
@graphcommerce/magento-graphql Major
@graphcommerce/next-ui Major
@graphcommerce/react-hook-form Major
@graphcommerce/service-worker Major
@graphcommerce/framer-next-pages-example Major
@graphcommerce/framer-scroller-example Major
@graphcommerce/image-example Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Feb 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
graphcommerce ✅ Ready (Inspect) Visit Preview Feb 4, 2025 4:37pm
graphcommerce-hygraph-dynamic-rows-ui ✅ Ready (Inspect) Visit Preview Feb 4, 2025 4:37pm
graphcommerce-open-source ✅ Ready (Inspect) Visit Preview Feb 4, 2025 4:37pm
magento-2.4.7 ✅ Ready (Inspect) Visit Preview Feb 4, 2025 4:37pm

This comment was marked as outdated.

Copy link
Contributor

github-actions bot commented Feb 4, 2025

Page Size old Size new Size diff First load old First load new First load diff
/_app 202kB 203.0kB +1kB⚠️
ƒ /.well-known/assetlinks.json 0.3kB 0.3kB 202kB 203.0kB +1kB⚠️
/404 4.7kB 4.7kB 280kB 278.0kB -2kB
/account 6.0kB 7.2kB +1.2kB⚠️ 260kB 260.0kB
/account/addresses 6.2kB 6.5kB 0.3kB 261kB 262.0kB +1kB⚠️
/account/addresses/add 7.3kB 3.5kB -3.8kB 284kB 285.0kB +1kB⚠️
/account/addresses/edit 4.2kB 0.8kB -3.4kB 285kB 286.0kB +1kB⚠️
/account/authentication 8.1kB 4.6kB -3.5kB 278kB 279.0kB +1kB⚠️
/account/contact 8.1kB 4.6kB -3.5kB 278kB 279.0kB +1kB⚠️
/account/delete 8.1kB 6.1kB -2.0kB 280kB 281.0kB +1kB⚠️
/account/downloads 5.5kB 5.7kB 0.2kB 250kB 251.0kB +1kB⚠️
/account/forgot-password 6.9kB 6.3kB -0.6kB 273kB 274.0kB +1kB⚠️
/account/name 10.9kB 7.2kB -3.7kB 277kB 279.0kB +2kB⚠️
/account/orders 13.8kB 13.6kB -0.2kB 255kB 256.0kB +1kB⚠️
/account/orders/view 9.9kB 8.3kB -1.6kB 295kB 296.0kB +1kB⚠️
/account/reviews 8.5kB 5.9kB -2.6kB 249kB 251.0kB +2kB⚠️
/account/reviews/add 9.3kB 8.7kB -0.6kB 279kB 280.0kB +1kB⚠️
/account/signin 10.2kB 10.1kB -0.1kB 294kB 295.0kB +1kB⚠️
ƒ /api/graphql 202kB 203.0kB +1kB⚠️
ƒ /api/preview 202kB 203.0kB +1kB⚠️
/blog 1.6kB 1.6kB 311kB 310.0kB -1kB
/blog/[...url] 2.2kB 2.2kB 312kB 313.0kB +1kB⚠️
/blog/page/[page] 1.6kB 1.6kB 311kB 310.0kB -1kB
/blog/tagged/[url] 2.2kB 2.2kB 312kB 313.0kB +1kB⚠️
/cart 2.5kB 5.8kB +3.3kB⚠️ 322kB 323.0kB +1kB⚠️
/checkout 10.3kB 12.9kB +2.6kB⚠️ 299kB 299.0kB
/checkout/added 7.6kB 7.4kB -0.2kB 264kB 265.0kB +1kB⚠️
/checkout/customer/addresses/edit 4.4kB 6.0kB +1.6kB⚠️ 285kB 286.0kB +1kB⚠️
/checkout/edit/billing-address 5.7kB 10.5kB +4.8kB⚠️ 282kB 283.0kB +1kB⚠️
ƒ /checkout/item/[url] 6.8kB 9.5kB +2.7kB⚠️ 311kB 312.0kB +1kB⚠️
/checkout/payment 12.6kB 13.7kB +1.1kB⚠️ 307kB 306.0kB -1kB
/checkout/success 6.8kB 7.8kB +1.0kB⚠️ 300kB 300.0kB
/checkout/terms/[url] 3.5kB 3.5kB 228kB 229.0kB +1kB⚠️
/compare 13.6kB 10.9kB -2.7kB 298kB 300.0kB +2kB⚠️
/customer/account/confirm 6.8kB 6.2kB -0.6kB 273kB 274.0kB +1kB⚠️
/customer/account/createPassword 8.6kB 12.1kB +3.5kB⚠️ 275kB 276.0kB +1kB⚠️
ƒ /downloadable/download/link/id/[id] 0.6kB 0.5kB -0.1kB 279kB 277.0kB -2kB
ƒ /downloadable/download/linkSample/link_id/[id] 0.6kB 0.6kB 279kB 277.0kB -2kB
ƒ /downloadable/download/sample/sample_id/[id] 0.6kB 0.6kB 279kB 277.0kB -2kB
/guest/orderstatus 7.1kB 8.8kB +1.7kB⚠️ 280kB 281.0kB +1kB⚠️
/modal/[...url] 2.1kB 2.2kB 0.1kB 288kB 288.0kB
ƒ /robots.txt 0.2kB 0.2kB 202kB 203.0kB +1kB⚠️
/service/[[...url]] 2.0kB 2.2kB 0.2kB 287kB 288.0kB +1kB⚠️
/service/contact-us 4.9kB 5.0kB 0.1kB 317kB 318.0kB +1kB⚠️
/service/newsletter 3.9kB 4.0kB 0.1kB 316kB 317.0kB +1kB⚠️
ƒ /sitemap/categories.xml 0.3kB 0.3kB 202kB 203.0kB +1kB⚠️
ƒ /sitemap/content.xml 0.3kB 0.3kB 202kB 203.0kB +1kB⚠️
ƒ /sitemap/products.xml 0.3kB 0.3kB 202kB 203.0kB +1kB⚠️
/switch-stores 7.9kB 9.4kB +1.5kB⚠️ 236kB 250.0kB +14kB🚨
/test/[[...url]] 4.0kB 2.9kB -1.1kB 282kB 281.0kB -1kB
/test/buttons 4.3kB 5.1kB 0.8kB 228kB 226.0kB -2kB
/test/form-elements 10.2kB 10.6kB 0.4kB 281kB 281.0kB
/test/icons 2.9kB 4.6kB +1.7kB⚠️ 234kB 232.0kB -2kB
/test/minimal-page-shell/[[...url]] 3.2kB 4.1kB 0.9kB 229kB 227.0kB -2kB
/test/number-inputs 5.6kB 7.0kB +1.4kB⚠️ 264kB 263.0kB -1kB
/test/sheet 6.7kB 6.7kB 240kB 241.0kB +1kB⚠️
/test/slider 8.1kB 7.1kB -1.0kB 284kB 283.0kB -1kB
/test/typography 3.4kB 4.4kB +1.0kB⚠️ 227kB 225.0kB -2kB
/test/usebacklink/[[...url]] 2.6kB 3.5kB 0.9kB 219kB 217.0kB -2kB
/wishlist 10.3kB 7.6kB -2.7kB 282kB 283.0kB +1kB⚠️

Copy link
Contributor

github-actions bot commented Feb 4, 2025

Page Size old Size new Size diff First load old First load new First load diff
/_app 202kB 203.0kB +1kB⚠️
ƒ /.well-known/assetlinks.json 0.3kB 0.3kB 202kB 203.0kB +1kB⚠️
/404 4.7kB 4.7kB 280kB 278.0kB -2kB
/account 6.0kB 7.2kB +1.2kB⚠️ 260kB 260.0kB
/account/addresses 6.2kB 6.5kB 0.3kB 261kB 262.0kB +1kB⚠️
/account/addresses/add 7.3kB 3.5kB -3.8kB 284kB 285.0kB +1kB⚠️
/account/addresses/edit 4.2kB 0.8kB -3.4kB 285kB 286.0kB +1kB⚠️
/account/authentication 8.1kB 4.6kB -3.5kB 278kB 279.0kB +1kB⚠️
/account/contact 8.1kB 4.6kB -3.5kB 278kB 279.0kB +1kB⚠️
/account/delete 8.1kB 6.1kB -2.0kB 280kB 281.0kB +1kB⚠️
/account/downloads 5.5kB 5.7kB 0.2kB 250kB 251.0kB +1kB⚠️
/account/forgot-password 6.9kB 6.3kB -0.6kB 273kB 274.0kB +1kB⚠️
/account/name 10.9kB 7.2kB -3.7kB 277kB 279.0kB +2kB⚠️
/account/orders 13.8kB 13.6kB -0.2kB 255kB 256.0kB +1kB⚠️
/account/orders/view 9.9kB 8.3kB -1.6kB 295kB 296.0kB +1kB⚠️
/account/reviews 8.5kB 5.9kB -2.6kB 249kB 251.0kB +2kB⚠️
/account/reviews/add 9.3kB 8.7kB -0.6kB 279kB 280.0kB +1kB⚠️
/account/signin 10.2kB 10.1kB -0.1kB 294kB 295.0kB +1kB⚠️
ƒ /api/graphql 202kB 203.0kB +1kB⚠️
ƒ /api/preview 202kB 203.0kB +1kB⚠️
/blog 1.6kB 1.6kB 311kB 310.0kB -1kB
/blog/[...url] 2.2kB 2.2kB 312kB 313.0kB +1kB⚠️
/blog/page/[page] 1.6kB 1.6kB 311kB 310.0kB -1kB
/blog/tagged/[url] 2.2kB 2.2kB 312kB 313.0kB +1kB⚠️
/cart 2.5kB 5.8kB +3.3kB⚠️ 322kB 323.0kB +1kB⚠️
/checkout 10.3kB 12.9kB +2.6kB⚠️ 299kB 299.0kB
/checkout/added 7.6kB 7.4kB -0.2kB 264kB 265.0kB +1kB⚠️
/checkout/customer/addresses/edit 4.4kB 6.0kB +1.6kB⚠️ 285kB 286.0kB +1kB⚠️
/checkout/edit/billing-address 5.7kB 10.5kB +4.8kB⚠️ 282kB 283.0kB +1kB⚠️
ƒ /checkout/item/[url] 6.8kB 9.5kB +2.7kB⚠️ 311kB 312.0kB +1kB⚠️
/checkout/payment 12.6kB 13.7kB +1.1kB⚠️ 307kB 306.0kB -1kB
/checkout/success 6.8kB 7.8kB +1.0kB⚠️ 300kB 300.0kB
/checkout/terms/[url] 3.5kB 3.5kB 228kB 229.0kB +1kB⚠️
/compare 13.6kB 10.9kB -2.7kB 298kB 300.0kB +2kB⚠️
/customer/account/confirm 6.8kB 6.2kB -0.6kB 273kB 274.0kB +1kB⚠️
/customer/account/createPassword 8.6kB 12.1kB +3.5kB⚠️ 275kB 276.0kB +1kB⚠️
ƒ /downloadable/download/link/id/[id] 0.6kB 0.5kB -0.1kB 279kB 277.0kB -2kB
ƒ /downloadable/download/linkSample/link_id/[id] 0.6kB 0.6kB 279kB 277.0kB -2kB
ƒ /downloadable/download/sample/sample_id/[id] 0.6kB 0.6kB 279kB 277.0kB -2kB
/guest/orderstatus 7.1kB 8.8kB +1.7kB⚠️ 280kB 281.0kB +1kB⚠️
/modal/[...url] 2.1kB 2.2kB 0.1kB 288kB 288.0kB
ƒ /robots.txt 0.2kB 0.2kB 202kB 203.0kB +1kB⚠️
/service/[[...url]] 2.0kB 2.2kB 0.2kB 287kB 288.0kB +1kB⚠️
/service/contact-us 4.9kB 5.0kB 0.1kB 317kB 318.0kB +1kB⚠️
/service/newsletter 3.9kB 4.0kB 0.1kB 316kB 317.0kB +1kB⚠️
ƒ /sitemap/categories.xml 0.3kB 0.3kB 202kB 203.0kB +1kB⚠️
ƒ /sitemap/content.xml 0.3kB 0.3kB 202kB 203.0kB +1kB⚠️
ƒ /sitemap/products.xml 0.3kB 0.3kB 202kB 203.0kB +1kB⚠️
/switch-stores 7.9kB 9.4kB +1.5kB⚠️ 236kB 250.0kB +14kB🚨
/test/[[...url]] 4.0kB 2.9kB -1.1kB 282kB 281.0kB -1kB
/test/buttons 4.3kB 5.1kB 0.8kB 228kB 226.0kB -2kB
/test/form-elements 10.2kB 10.6kB 0.4kB 281kB 281.0kB
/test/icons 2.9kB 4.6kB +1.7kB⚠️ 234kB 232.0kB -2kB
/test/minimal-page-shell/[[...url]] 3.2kB 4.1kB 0.9kB 229kB 227.0kB -2kB
/test/number-inputs 5.6kB 7.0kB +1.4kB⚠️ 264kB 263.0kB -1kB
/test/sheet 6.7kB 6.7kB 240kB 241.0kB +1kB⚠️
/test/slider 8.1kB 7.1kB -1.0kB 284kB 283.0kB -1kB
/test/typography 3.4kB 4.4kB +1.0kB⚠️ 227kB 225.0kB -2kB
/test/usebacklink/[[...url]] 2.6kB 3.5kB 0.9kB 219kB 217.0kB -2kB
/wishlist 10.3kB 7.6kB -2.7kB 282kB 283.0kB +1kB⚠️

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.

1 participant