-
Notifications
You must be signed in to change notification settings - Fork 289
feat: Add support for Buyer Portal in Catalyst #2404
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
base: canary
Are you sure you want to change the base?
Conversation
Use an onSubmit listener and move most of the logic outside the product-details-form component. The ideal solution here is to patch the form action at the root of the component tree, but that's proven complicated at this point. Will try to amend it in the future.
* feat: Add support for Buyer Portal in Catalyst * refactor: remove unnecessary useState/useEffects + simplify useB2B* logic * refactor: simplify use of env. variables * refactor: Simplify integration points with product-details-form Use an onSubmit listener and move most of the logic outside the product-details-form component. The ideal solution here is to patch the form action at the root of the component tree, but that's proven complicated at this point. Will try to amend it in the future. * fix: cart sync * fix: deprecating sync-cart * feat: Add support for Buyer Portal in Catalyst * refactor: remove unnecessary useState/useEffects + simplify useB2B* logic * refactor: simplify use of env. variables * refactor: Simplify integration points with product-details-form Use an onSubmit listener and move most of the logic outside the product-details-form component. The ideal solution here is to patch the form action at the root of the component tree, but that's proven complicated at this point. Will try to amend it in the future. * fix: changes according to review * fix: changes according to review * fix: improving cartId prop type --------- Co-authored-by: Ignacio Catalina <ignacio.catalina@bigcommerce.com>
🦋 Changeset detectedLatest commit: 0d11b87 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Skipped Deployments
|
CredentialsProvider({ | ||
id: 'anonymous', | ||
credentials: { | ||
cartId: { type: 'text' }, | ||
}, | ||
authorize: loginWithAnonymous, | ||
}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably want to give this another rebase as we moved the anonymous session into its own cookie instead of reusing the next-auth one. This is to account for persistent cart to work correctly. See these PRs:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another rebase given, can you have a look 🙇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You shouldn't need this CredentialsProvider
if you've pull in the code from those 3 PRs.
integration/b2b-buyer-portal
What/Why?
Testing
Migration