Skip to content
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

[App Extensibility ⚙️] Remove Name Spacing from Store Locator Extension #2152

Merged

Conversation

bendvc
Copy link
Collaborator

@bendvc bendvc commented Nov 28, 2024

Description

This PR removes the opinionated name spacing in the store-locator extension project. This name spacing was used to prevent possible unexpected override collisions. But this wasn't a good solution because it relies on the extension developer to name their files and folders in a certain way. We are instead going to change how the buildCandidatePaths resolver util works so that the name spacing occurs there, this means the extension developer won't have any need to name their folders with prefixes to prevent collisions, it will be resolved internally.

Related PR #2154

@bendvc bendvc requested a review from a team as a code owner November 28, 2024 18:18
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'[extension-store-locator] Missing supportedCountries, this extension will not work.'

Nit update the console.log message to extension-chakra-store-locator

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, in this file, there are imports that need to be fixed. That's why if typescript-minimal uses the store-locator extension, the project will not load and it returns a ModuleNotFound error.

@@ -43,7 +43,7 @@ The Store Locator extension is configured via the `mobify.app.extensions` proper
"app": {
"extensions": [
[
"@salesforce/extension-store-locator",
"@salesforce/extension-chakra-store-locator",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Near the bottom of this readme, there are file paths that need to be updated too.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, in this file, there are imports that need to be fixed. That's why if typescript-minimal uses the store-locator extension, the project will not load and it returns a ModuleNotFound error.

@bendvc bendvc changed the title [App Extensibility ⚙️] Remove Name Spacing from Store Locator Extension WIP [App Extensibility ⚙️] Remove Name Spacing from Store Locator Extension Dec 5, 2024
Copy link
Contributor

@vmarta vmarta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Store locator extension is now loading as expected.

@bendvc bendvc merged commit 673a837 into feature/extensibility-v2 Dec 5, 2024
17 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants