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

Implement the attributeForm query #2499

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

Conversation

paales
Copy link
Member

@paales paales commented Feb 12, 2025

No description provided.

…render forms with useAttributesForm/preloadAttributesForm and AttributesFormAutoLayout, and additional utilities to handle form submissions.
…r_account_edit` forms using the `attributeForm` query for the registration page and customer information form. The forms respect the settings configured in the 'Customer Configuration section'. It allows configuration for `prefix`, `middlename`, `suffix`,`dob`, `gender` and other fields. This also makes the frontend compatible with Adobe Commerce's Customer Attributes module.
…ity layer would define fields to be always return a value while they would never causing runtime errors which are hard to catch.
Copy link

changeset-bot bot commented Feb 12, 2025

🦋 Changeset detected

Latest commit: 4ceaad2

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-product-bundle Major
@graphcommerce/magento-store Major
@graphcommerce/magento-payment-included Major
@graphcommerce/magento-cart-items Major
@graphcommerce/magento-product Major
@graphcommerce/magento-graphcms Major
@graphcommerce/magento-category Major
@graphcommerce/next-ui Major
@graphcommerce/algolia-recommend Major
@graphcommerce/algolia-categories Major
@graphcommerce/magento-customer Major
@graphcommerce/magento-payment-tokens Major
@graphcommerce/magento-newsletter Major
@graphcommerce/next-config Major
@graphcommerce/magento-graphql Major
@graphcommerce/magento-product-configurable Major
@graphcommerce/magento-cart Major
@graphcommerce/magento-cart-coupon Major
@graphcommerce/magento-open-source Major
@graphcommerce/address-fields-nl Major
@graphcommerce/algolia-search Major
@graphcommerce/magento-cart-checkout Major
@graphcommerce/magento-cart-email 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-cms Major
@graphcommerce/magento-payment-adyen Major
@graphcommerce/magento-payment-braintree Major
@graphcommerce/magento-payment-klarna Major
@graphcommerce/magento-payment-multisafepay Major
@graphcommerce/magento-payment-paypal Major
@graphcommerce/magento-product-downloadable Major
@graphcommerce/magento-product-grouped 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-product-simple Major
@graphcommerce/magento-product-virtual Major
@graphcommerce/algolia-insights Major
@graphcommerce/algolia-personalization Major
@graphcommerce/algolia-products Major
@graphcommerce/demo-magento-graphcommerce Major
@graphcommerce/google-datalayer Major
@graphcommerce/magento-compare Major
@graphcommerce/magento-graphql-rest Major
@graphcommerce/magento-recently-viewed-products Major
@graphcommerce/framer-next-pages-example Major
@graphcommerce/framer-scroller-example Major
@graphcommerce/hygraph-dynamic-rows-ui Major
@graphcommerce/googleanalytics Major
@graphcommerce/googletagmanager 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/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/googlerecaptcha Major
@graphcommerce/graphcms-ui Major
@graphcommerce/graphql-mesh Major
@graphcommerce/graphql Major
@graphcommerce/hygraph-cli Major
@graphcommerce/hygraph-dynamic-rows Major
@graphcommerce/hygraph-ui Major
@graphcommerce/image Major
@graphcommerce/lingui-next Major
@graphcommerce/react-hook-form Major
@graphcommerce/service-worker 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 12, 2025

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

Name Status Preview Updated (UTC)
graphcommerce ❌ Failed (Inspect) Feb 21, 2025 2:40pm
graphcommerce-hygraph-dynamic-rows-ui ✅ Ready (Inspect) Visit Preview Feb 21, 2025 2:40pm
graphcommerce-open-source ❌ Failed (Inspect) Feb 21, 2025 2:40pm
magento-2.4.7 ❌ Failed (Inspect) Feb 21, 2025 2:40pm

Copy link
Contributor

Page Size old Size new Size diff First load old First load new First load diff
/404 4.7kB 4.7kB 278kB 279.0kB +1kB⚠️
/account 7.2kB 7.3kB 0.1kB 260kB 260.0kB
/account/addresses 6.5kB 7.8kB +1.3kB⚠️ 262kB 262.0kB
/account/addresses/add 3.5kB 3.3kB -0.2kB 285kB 286.0kB +1kB⚠️
/account/authentication 4.6kB 4.7kB 0.1kB 279kB 280.0kB +1kB⚠️
/account/contact 4.6kB 3.6kB -1.0kB 279kB 280.0kB +1kB⚠️
/account/delete 6.1kB 5.2kB -0.9kB 281kB 282.0kB +1kB⚠️
/account/name 7.2kB 3.5kB -3.7kB 279kB 290.0kB +11kB🚨
/account/reviews/add 8.7kB 7.7kB -1.0kB 280kB 280.0kB
/account/signin 10.1kB 10.0kB -0.1kB 295kB 299.0kB +4kB⚠️
/blog/page/[page] 1.6kB 1.6kB 310kB 311.0kB +1kB⚠️
/checkout 12.9kB 12.8kB -0.1kB 299kB 299.0kB
/checkout/edit/billing-address 10.5kB 11.3kB 0.8kB 283kB 283.0kB
/checkout/payment 13.7kB 10.5kB -3.2kB 306kB 307.0kB +1kB⚠️
/checkout/success 7.8kB 7.3kB -0.5kB 300kB 301.0kB +1kB⚠️
/p/[url] 13.0kB 12.2kB -0.8kB 364kB 364.0kB
/service/contact-us 5.0kB 4.0kB -1.0kB 318kB 318.0kB
/test/form-elements 10.6kB 9.5kB -1.1kB 281kB 281.0kB

Copy link
Contributor

Page Size old Size new Size diff First load old First load new First load diff
/404 4.7kB 4.7kB 278kB 279.0kB +1kB⚠️
/account 7.2kB 7.4kB 0.2kB 260kB 260.0kB
/account/addresses 6.5kB 7.8kB +1.3kB⚠️ 262kB 262.0kB
/account/addresses/add 3.5kB 3.3kB -0.2kB 285kB 286.0kB +1kB⚠️
/account/authentication 4.6kB 4.7kB 0.1kB 279kB 280.0kB +1kB⚠️
/account/contact 4.6kB 3.6kB -1.0kB 279kB 280.0kB +1kB⚠️
/account/delete 6.1kB 5.2kB -0.9kB 281kB 282.0kB +1kB⚠️
/account/name 7.2kB 3.5kB -3.7kB 279kB 290.0kB +11kB🚨
/account/reviews/add 8.7kB 7.7kB -1.0kB 280kB 280.0kB
/account/signin 10.1kB 10.0kB -0.1kB 295kB 299.0kB +4kB⚠️
/blog/page/[page] 1.6kB 1.6kB 310kB 311.0kB +1kB⚠️
/checkout 12.9kB 12.8kB -0.1kB 299kB 299.0kB
/checkout/edit/billing-address 10.5kB 11.3kB 0.8kB 283kB 283.0kB
/checkout/payment 13.7kB 10.5kB -3.2kB 306kB 307.0kB +1kB⚠️
/checkout/success 7.8kB 7.3kB -0.5kB 300kB 301.0kB +1kB⚠️
/p/[url] 13.0kB 12.2kB -0.8kB 364kB 364.0kB
/service/contact-us 5.0kB 4.0kB -1.0kB 318kB 318.0kB
/test/form-elements 10.6kB 9.5kB -1.1kB 281kB 281.0kB
/account/payment-tokens 2.6kB 🆕 251.0kB 🆕

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