-
Notifications
You must be signed in to change notification settings - Fork 685
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PWA-1101] Add support for Configurable Product Image Setting (#2958)
* PWA-1101: Add support for Configurable Product Image Setting * PWA-1101: Add support for Configurable Product Image Setting * PWA-1101: Add support for Configurable Product Image Setting * PWA-1101: Add support for Configurable Product Image Setting * PWA-1101: Add support for Configurable Product Image Setting * PWA-1101: Add support for Configurable Product Image Setting * PWA-1101: Add support for Configurable Product Image Setting * PWA-1101: Add support for Configurable Product Image Setting * PWA-1101: Add support for Configurable Product Image Setting * PWA-1101: Add support for Configurable Product Image Setting * PWA-1101: Add support for Configurable Product Image Setting * PWA-1101: Add support for Configurable Product Image Setting Co-authored-by: Devagouda <40405790+dpatil-magento@users.noreply.github.com>
- Loading branch information
1 parent
006c26b
commit 9e54fc7
Showing
34 changed files
with
907 additions
and
140 deletions.
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
...egrine/lib/talons/CartPage/ProductListing/__tests__/__snapshots__/useProduct.spec.js.snap
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`it returns the proper shape 1`] = ` | ||
<i | ||
talonProps={ | ||
Object { | ||
"errorMessage": "", | ||
"handleEditItem": [Function], | ||
"handleRemoveFromCart": [Function], | ||
"handleToggleFavorites": [Function], | ||
"handleUpdateItemQuantity": [Function], | ||
"isEditable": false, | ||
"isFavorite": false, | ||
"product": Object { | ||
"currency": "USD", | ||
"image": "test.webp", | ||
"name": "unit test", | ||
"options": Array [], | ||
"quantity": 7, | ||
"stockStatus": undefined, | ||
"unitPrice": 99, | ||
"urlKey": undefined, | ||
"urlSuffix": undefined, | ||
}, | ||
} | ||
} | ||
/> | ||
`; | ||
|
||
exports[`it returns the proper shape when use variant image is configured 1`] = ` | ||
<i | ||
talonProps={ | ||
Object { | ||
"errorMessage": "", | ||
"handleEditItem": [Function], | ||
"handleRemoveFromCart": [Function], | ||
"handleToggleFavorites": [Function], | ||
"handleUpdateItemQuantity": [Function], | ||
"isEditable": true, | ||
"isFavorite": false, | ||
"product": Object { | ||
"currency": "USD", | ||
"image": "variant1.webp", | ||
"name": "unit test", | ||
"options": Array [ | ||
Object { | ||
"id": 22, | ||
"option_label": "Color", | ||
"value_id": 2, | ||
"value_label": "red", | ||
}, | ||
], | ||
"quantity": 7, | ||
"stockStatus": undefined, | ||
"unitPrice": 99, | ||
"urlKey": undefined, | ||
"urlSuffix": undefined, | ||
}, | ||
} | ||
} | ||
/> | ||
`; |
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
14 changes: 14 additions & 0 deletions
14
packages/peregrine/lib/talons/CartPage/ProductListing/product.gql.js
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { gql } from '@apollo/client'; | ||
|
||
export const GET_CONFIGURABLE_THUMBNAIL_SOURCE = gql` | ||
query getConfigurableThumbnailSource { | ||
storeConfig { | ||
id | ||
configurable_thumbnail_source | ||
} | ||
} | ||
`; | ||
|
||
export default { | ||
getConfigurableThumbnailSource: GET_CONFIGURABLE_THUMBNAIL_SOURCE | ||
}; |
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
14 changes: 14 additions & 0 deletions
14
packages/peregrine/lib/talons/CheckoutPage/ItemsReview/itemsReview.gql.js
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { gql } from '@apollo/client'; | ||
|
||
export const GET_CONFIGURABLE_THUMBNAIL_SOURCE = gql` | ||
query getConfigurableThumbnailSource { | ||
storeConfig { | ||
id | ||
configurable_thumbnail_source | ||
} | ||
} | ||
`; | ||
|
||
export default { | ||
getConfigurableThumbnailSource: GET_CONFIGURABLE_THUMBNAIL_SOURCE | ||
}; |
Oops, something went wrong.