bigcommerce / catalyst

Catalyst - for Composable Commerce
https://catalyst-demo.site
MIT License
91 stars 64 forks source link

feat(core): add custom form fields for Account related forms #1257

Closed bc-alexsaiannyi closed 2 weeks ago

bc-alexsaiannyi commented 1 month ago

What/Why?

This PR combines and brings support for custom FormFields that can be used in registration, addresses or checkout forms and currently covered next forms:

Previously we've added only built-in fields and now extend support for all customizable fields that Merchant can add via Control Panel:

For these fields we support basic validation like number or date range, default value etc. Just for illustration purpose:

image

image

Testing

locally

Proof

register-customer form is attached as an example of all custom formFields. It contains both account fields and address fields.

https://github.com/user-attachments/assets/699bb39f-d6d5-4069-af05-0ecc7ce041f6

vercel[bot] commented 1 month ago

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

Name Status Preview Comments Updated (UTC)
catalyst-latest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 30, 2024 7:51am
8 Skipped Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **catalyst** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst/D1XoDVVBQs9jxHEVo8ueJJgZW5tQ)) | | | Aug 30, 2024 7:51am | | **catalyst-1millionproducts-store** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-1millionproducts-store/5hwzno3CVWzhJJ14uap6yZWsgLmZ)) | [Visit Preview](https://catalyst-1millionproducts-store-git-b7e799-bigcommerce-platform.vercel.app) | | Aug 30, 2024 7:51am | | **catalyst-au** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-au/EVhCE4g7uaKfhmRK4uE4jFR68u9n)) | [Visit Preview](https://catalyst-au-git-account-custom-fields-bigcommerce-platform.vercel.app) | | Aug 30, 2024 7:51am | | **catalyst-integration-customer-access-token** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-integration-customer-access-token/FudHHrTdXoY4maVZwsrKTjz7KQDJ)) | [Visit Preview](https://catalyst-integration-customer-a-git-2ae256-bigcommerce-platform.vercel.app) | | Aug 30, 2024 7:51am | | **catalyst-staging** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-staging/BhvU8tBNdo9BLLEWm7XuPfQRSM4U)) | [Visit Preview](https://catalyst-staging-git-account-custom-fields-bigcommerce-platform.vercel.app) | | Aug 30, 2024 7:51am | | **catalyst-test-store** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-test-store/Fmd2gna9qZvtTXxwTSfTn5juJqJC)) | [Visit Preview](https://catalyst-test-store-git-account-cus-2ce9fa-bigcommerce-platform.vercel.app) | | Aug 30, 2024 7:51am | | **catalyst-uk** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-uk/5dCqCQEJ7Uoct23rWY3ViSsn2P9U)) | [Visit Preview](https://catalyst-uk-git-account-custom-fields-bigcommerce-platform.vercel.app) | | Aug 30, 2024 7:51am | | **catalyst-unstable** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-unstable/GNvqGgsPb6R5iBxK6kEFUv311MoS)) | [Visit Preview](https://catalyst-unstable-git-account-custo-e90574-bigcommerce-platform.vercel.app) | | Aug 30, 2024 7:51am |
changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: 07141ff07e782bacbd395404f48a2d2b3a39ec01

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

This PR includes changesets to release 1 package | Name | Type | | -------------------------- | ----- | | @bigcommerce/catalyst-core | Patch |

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

github-actions[bot] commented 2 weeks ago

⚡️🏠 Lighthouse report

Lighthouse ran against https://catalyst-latest-fectqs5cw-bigcommerce-platform.vercel.app

🖥️ Desktop

We ran Lighthouse against the changes on a desktop and produced this report. Here's the summary:

Category Score
🟢 Performance 99
🟢 Accessibility 100
🟢 Best practices 96
🟠 SEO 82

📱 Mobile

We ran Lighthouse against the changes on a mobile and produced this report. Here's the summary:

Category Score
🟢 Performance 95
🟢 Accessibility 100
🟢 Best practices 96
🟠 SEO 85