sfccdevops / sfcc-devtools

Support Browser Interaction with VS Code, Eclipse, and SFCC Business Manager via DevTools Web Inspector.
MIT License
5 stars 0 forks source link

Automated Business Manager Links #8

Closed manifestinteractive closed 2 years ago

manifestinteractive commented 4 years ago

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)

sample

What gif best describes this PR or how it makes you feel?

computer_kid_thumbs_up

Definition of Done: