Store locator extension integration @@W-17273365@@#2225
Merged
kevinxh merged 17 commits intofeature/extensibility-v2from Jan 30, 2025
Merged
Store locator extension integration @@W-17273365@@#2225kevinxh merged 17 commits intofeature/extensibility-v2from
kevinxh merged 17 commits intofeature/extensibility-v2from
Conversation
kevinxh
commented
Jan 28, 2025
Contributor
Author
There was a problem hiding this comment.
I will remove changes in this file before merge.
alexvuong
reviewed
Jan 28, 2025
packages/extension-chakra-store-locator/src/components/with-store-locator.tsx
Outdated
Show resolved
Hide resolved
Contributor
kevinxh
commented
Jan 28, 2025
packages/extension-chakra-storefront/src/components/header/index.jsx
Outdated
Show resolved
Hide resolved
Contributor
|
I followed the steps to test the change and after disabling the store locator in package.json and running
|
Contributor
Author
We discussed it IRL and it is a bug found in the SDK, I've created a ticket to address the bug. |
alexvuong
reviewed
Jan 29, 2025
| if ( | ||
| !window.location.pathname.includes( | ||
| storeLocatorExtension.config.path | ||
| ) |
Contributor
There was a problem hiding this comment.
would it throw if storeLocatorExtension is undefined?
p/s nvm. Saw the conditional rendering above.
adamraya
approved these changes
Jan 29, 2025
alexvuong
approved these changes
Jan 29, 2025
kevinxh
commented
Jan 30, 2025
packages/extension-chakra-storefront/src/components/header/index.jsx
Outdated
Show resolved
Hide resolved
…ex.jsx Signed-off-by: Kevin He <kevin.he@salesforce.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
This PR adds the integration between
extension-chakra-storefrontandextension-chakra-store-locator.The storefront extension now detects the existence of the store locator extension, if installed and enabled, it will conditionally render the store locator button in the header, and use the store locator's store to control the modal's open/close state.
Types of Changes
Changes
How to Test-Drive This PR
Checklists
General
Accessibility Compliance
You must check off all items in one of the follow two lists:
or...
Localization