Adds automatic linking for Instances that have the same Client ID and Site ID, allowing you to open Content Slots in Business Manager's on different sites.
Any background context you want to provide?
So, the way this new feature works, is that as you use the extension across different sites, if you open the SFCC DevTools panel, like at all, it will add the current instance to local storage. This gives us the Client ID and Site ID, as well as other misc things about the sandbox. From this, we just also pick out the domain, and the instance type, and save that super minor amount of data to local storage.
This solution means you don't have to manually add anything, or manage a bunch of sites. Just go about your business as usual and the extension will make the connections for you.
Curious how this works? The extension just checks the value of the window.CQuotient javascript variable that exists on all SFCC sites, and pulls the necessary info for the extension. Any time you open DevTools, then enable the SFCC side panel, you are essentially telling this extension to pay attention to this site. All other normal web dev stuff will not trigger this storage, just happens if you switched to SFCC Side Panel ( we don't need to know what else you are up to, ha ha )
What are the relevant github issue?
Fixes Feature Request in Issue #4
Screenshots (if appropriate)
What gif best describes this PR or how it makes you feel?
Definition of Done:
[X] You have actually run this locally and can verify it works
[X] You have verified that npm test passes without issue
[X] You have updated the README file (if appropriate)
What's this PR do?
Adds automatic linking for Instances that have the same Client ID and Site ID, allowing you to open Content Slots in Business Manager's on different sites.
Any background context you want to provide?
So, the way this new feature works, is that as you use the extension across different sites, if you open the SFCC DevTools panel, like at all, it will add the current instance to local storage. This gives us the Client ID and Site ID, as well as other misc things about the sandbox. From this, we just also pick out the domain, and the instance type, and save that super minor amount of data to local storage.
This solution means you don't have to manually add anything, or manage a bunch of sites. Just go about your business as usual and the extension will make the connections for you.
Curious how this works? The extension just checks the value of the
window.CQuotient
javascript variable that exists on all SFCC sites, and pulls the necessary info for the extension. Any time you open DevTools, then enable the SFCC side panel, you are essentially telling this extension to pay attention to this site. All other normal web dev stuff will not trigger this storage, just happens if you switched to SFCC Side Panel ( we don't need to know what else you are up to, ha ha )What are the relevant github issue?
Fixes Feature Request in Issue #4
Screenshots (if appropriate)
What gif best describes this PR or how it makes you feel?
Definition of Done:
npm test
passes without issue