-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(commerce): mark v2 listings as non-v2 and non-v2 listings as old (…
…#4087) This is somewhat of an overdue rename. Generally, I've renamed "ProductListingV2" to "ProductListing", and the v1 listings from "ProductListing" to "OldProductListing". The renamed classes or file names do not affect the API surface of neither the product-listing sub-package, or the commerce sub-package. I've however deleted the v2 facet analytics actions, and removed them from the `product-listing-actions-loader.ts` action loader, which is a breaking change. I don't expect anyone to have been using these though. [CAPI-763] [CAPI-763]: https://coveord.atlassian.net/browse/CAPI-763?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
- Loading branch information
1 parent
fe412e0
commit 19c6363
Showing
42 changed files
with
154 additions
and
615 deletions.
There are no files selected for viewing
32 changes: 0 additions & 32 deletions
32
packages/headless/src/api/analytics/commerce-analytics.test.ts
This file was deleted.
Oops, something went wrong.
116 changes: 0 additions & 116 deletions
116
packages/headless/src/api/analytics/commerce-analytics.ts
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
6 changes: 3 additions & 3 deletions
6
.../headless/src/controllers/commerce/product-listing/utils/load-product-listing-reducers.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import {CommerceEngine} from '../../../../app/commerce-engine/commerce-engine'; | ||
import {productListingV2Reducer as productListing} from '../../../../features/commerce/product-listing/product-listing-slice'; | ||
import {ProductListingV2Section} from '../../../../state/state-sections'; | ||
import {productListingReducer as productListing} from '../../../../features/commerce/product-listing/product-listing-slice'; | ||
import {ProductListingSection} from '../../../../state/state-sections'; | ||
|
||
export function loadProductListingReducer( | ||
engine: CommerceEngine | ||
): engine is CommerceEngine<ProductListingV2Section> { | ||
): engine is CommerceEngine<ProductListingSection> { | ||
engine.addReducers({productListing}); | ||
return true; | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.