diff --git a/src/components/Filter/reducer.test.ts b/src/components/Filter/reducer.test.ts deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/orders/views/OrderList/__snapshots__/filters.test.ts.snap b/src/orders/views/OrderList/__snapshots__/filters.test.ts.snap index 77dd07779..732d10dce 100644 --- a/src/orders/views/OrderList/__snapshots__/filters.test.ts.snap +++ b/src/orders/views/OrderList/__snapshots__/filters.test.ts.snap @@ -1,91 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Crate filter chips 1`] = ` -Array [ - Object { - "label": "Date from 2019-09-01", - "onClick": [Function], - }, - Object { - "label": "Date to 2019-09-10", - "onClick": [Function], - }, - Object { - "label": "email@example.com", - "onClick": [Function], - }, - Object { - "label": "Fulfilled", - "onClick": [Function], - }, - Object { - "label": "Partially Fulfilled", - "onClick": [Function], - }, -] -`; - -exports[`Create filter object with date 1`] = ` -Object { - "dateFrom": "2019-09-01", - "dateTo": "2019-09-01", -} -`; - -exports[`Create filter object with date last month 1`] = ` -Object { - "dateFrom": "2019-09-01", - "dateTo": undefined, -} -`; - -exports[`Create filter object with date last week 1`] = ` -Object { - "dateFrom": "2019-09-01", - "dateTo": undefined, -} -`; - -exports[`Create filter object with date last year 1`] = ` -Object { - "dateFrom": "2019-09-01", - "dateTo": undefined, -} -`; - -exports[`Create filter object with date range 1`] = ` -Object { - "dateFrom": "2019-09-01", - "dateTo": "2019-09-10", -} -`; - -exports[`Create filter object with fulfillment status 1`] = ` -Object { - "status": Array [ - "PARTIALLY_FULFILLED", - ], -} -`; - -exports[`Create filter object with multiple deduped values 1`] = ` -Object { - "status": Array [ - "FULFILLED", - ], -} -`; - -exports[`Create filter object with multiple values 1`] = ` -Object { - "status": Array [ - "FULFILLED", - "PARTIALLY_FULFILLED", - ], -} -`; - -exports[`Get filter variables from multiple status value 1`] = ` +exports[`Get filter variables 1`] = ` Object { "created": Object { "gte": "2019-09-01", @@ -99,17 +14,3 @@ Object { ], } `; - -exports[`Get filter variables from single status value 1`] = ` -Object { - "created": Object { - "gte": "2019-09-01", - "lte": "2019-09-10", - }, - "customer": "email@example.com", - "search": "24", - "status": Array [ - "FULFILLED", - ], -} -`; diff --git a/src/products/views/ProductList/__snapshots__/filters.test.ts.snap b/src/products/views/ProductList/__snapshots__/filters.test.ts.snap index 20fe2f275..5f3c7e2c2 100644 --- a/src/products/views/ProductList/__snapshots__/filters.test.ts.snap +++ b/src/products/views/ProductList/__snapshots__/filters.test.ts.snap @@ -1,61 +1,8 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Crate filter chips 1`] = ` -Array [ - Object { - "label": "Price from $10.00", - "onClick": [Function], - }, - Object { - "label": "Price to $20.00", - "onClick": [Function], - }, - Object { - "label": "Available", - "onClick": [Function], - }, - Object { - "label": "Published", - "onClick": [Function], - }, -] -`; - -exports[`Create filter object with price 1`] = ` -Object { - "priceFrom": "10", - "priceTo": "10", -} -`; - -exports[`Create filter object with price range 1`] = ` -Object { - "priceFrom": Array [ - "10", - "20", - ], - "priceTo": Array [ - "10", - "20", - ], -} -`; - -exports[`Create filter object with publication status 1`] = ` -Object { - "isPublished": "false", -} -`; - -exports[`Create filter object with stock status 1`] = ` -Object { - "status": "OUT_OF_STOCK", -} -`; - exports[`Get filter variables 1`] = ` Object { - "isPublished": true, + "isPublished": false, "price": Object { "gte": 10, "lte": 20, diff --git a/src/storybook/__snapshots__/Stories.test.ts.snap b/src/storybook/__snapshots__/Stories.test.ts.snap index e977ef717..b5a8203f5 100644 --- a/src/storybook/__snapshots__/Stories.test.ts.snap +++ b/src/storybook/__snapshots__/Stories.test.ts.snap @@ -1388,64 +1388,688 @@ exports[`Storyshots Generics / Filter default 1`] = ` style="padding:24px" >
-
-
-
+
+
+ +
+
+
+
+
+
+
+ + + +
+
+
+ + +
+
+ + and + +
+
+ + +
+
+
+
+
+ +
+
+ +
+
+ +
+
+
+
+
+ +
+
+ +`; + +exports[`Storyshots Generics / Filter interactive 1`] = ` +
+
+
+
+
+
+ Filters +
+
+ + +
+
+
+
+ +
+
+
+
+
+
+
+ + + +
+
+
+ + +
+
+ + and + +
+
+ + +
+
+
+
+
+ +
+
+ +
+
+ +
+
+
+
+
+
@@ -11587,17 +12211,17 @@ exports[`Storyshots Views / Attributes / Attribute list default 1`] = `
-
@@ -12566,17 +13187,17 @@ exports[`Storyshots Views / Attributes / Attribute list loading 1`] = `
-
@@ -12961,17 +13579,17 @@ exports[`Storyshots Views / Attributes / Attribute list no data 1`] = `
-
@@ -14204,17 +14819,17 @@ exports[`Storyshots Views / Categories / Category list default 1`] = `
-
@@ -14753,17 +15365,17 @@ exports[`Storyshots Views / Categories / Category list empty 1`] = `
-
@@ -15074,17 +15683,17 @@ exports[`Storyshots Views / Categories / Category list loading 1`] = `
-
@@ -26351,17 +26957,17 @@ exports[`Storyshots Views / Collections / Collection list default 1`] = `
-
@@ -26937,17 +27540,17 @@ exports[`Storyshots Views / Collections / Collection list loading 1`] = `
-
@@ -27318,17 +27918,17 @@ exports[`Storyshots Views / Collections / Collection list no data 1`] = `
-
@@ -37327,17 +37924,17 @@ exports[`Storyshots Views / Customers / Customer list default 1`] = `
-
@@ -38470,17 +39064,17 @@ exports[`Storyshots Views / Customers / Customer list loading 1`] = `
-
@@ -38842,17 +39433,17 @@ exports[`Storyshots Views / Customers / Customer list no data 1`] = `
-
@@ -44350,17 +44938,17 @@ exports[`Storyshots Views / Discounts / Sale list default 1`] = `
-
@@ -44916,17 +45501,17 @@ exports[`Storyshots Views / Discounts / Sale list loading 1`] = `
-
@@ -45312,17 +45894,17 @@ exports[`Storyshots Views / Discounts / Sale list no data 1`] = `
-
@@ -50532,17 +51111,17 @@ exports[`Storyshots Views / Discounts / Voucher list default 1`] = `
-
@@ -51011,17 +51587,17 @@ exports[`Storyshots Views / Discounts / Voucher list loading 1`] = `
-
@@ -51453,17 +52026,17 @@ exports[`Storyshots Views / Discounts / Voucher list no data 1`] = `
-
@@ -55949,17 +56519,17 @@ exports[`Storyshots Views / Orders / Draft order list default 1`] = `
-
@@ -57191,17 +57758,17 @@ exports[`Storyshots Views / Orders / Draft order list loading 1`] = `
-
@@ -57592,17 +58156,17 @@ exports[`Storyshots Views / Orders / Draft order list when no data 1`] = `
-
@@ -73101,7 +73662,7 @@ exports[`Storyshots Views / Orders / Order list default 1`] = `
-
-
@@ -74754,7 +75301,7 @@ exports[`Storyshots Views / Orders / Order list loading 1`] = `
-
+ -
@@ -75225,7 +75769,7 @@ exports[`Storyshots Views / Orders / Order list when no data 1`] = `
-
-
@@ -75535,2054 +76065,6 @@ exports[`Storyshots Views / Orders / Order list when no data 1`] = `
`; -exports[`Storyshots Views / Orders / Order list with custom filters 1`] = ` -
-
-
-
- Orders -
-
-
- -
-
-
-
-
-
-
- - -
-
-
-
-
- -
-
-
- - -
-
-
-
-
-
-
- Property X is 0 -
- -
-
-
- Property Y is 1 -
- -
-
-
- Property Z is 2 -
- -
-
-
- Property X is 3 -
- -
-
-
- Property Y is 4 -
- -
-
-
- Property Z is 5 -
- -
-
-
- Property X is 6 -
- -
-
-
- Property Y is 7 -
- -
-
-
- Property Z is 8 -
- -
-
-
- Property X is 9 -
- -
-
-
- Property Y is 10 -
- -
-
-
- Property Z is 11 -
- -
-
-
- Property X is 12 -
- -
-
-
- Property Y is 13 -
- -
-
-
- Property Z is 14 -
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
- No. of Order -
- -
-
-
-
- Date -
-
-
-
-
- Customer -
-
-
-
-
- Payment -
-
-
-
-
- Fulfillment status -
-
-
-
-
- Total -
-
-
-
-
-
-
-`; - exports[`Storyshots Views / Pages / Page details default 1`] = `
-
@@ -86450,17 +84929,17 @@ exports[`Storyshots Views / Product types / Product types list loading 1`] = `
-
@@ -86785,17 +85261,17 @@ exports[`Storyshots Views / Product types / Product types list no data 1`] = `
-
@@ -87340,7 +85813,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary defaul > ​ @@ -87458,7 +85931,7 @@ exports[`Storyshots Views / Products / Create multiple variants / summary defaul > ​ @@ -98330,6 +96803,99 @@ Ctrl + K"
+
+
+
+
+
+
+ Id sit dolores adipisci +
+
+
+
+
+ Id sit dolores adipisci +
+
+
+
+
+ Id sit dolores adipisci +
+
+
+
+
+ Id sit dolores adipisci +
+
+
+
+
+ Id sit dolores adipisci +
+
+
-
-
-
-
-
-
- Id sit dolores adipisci -
-
-
-
-
- Id sit dolores adipisci -
-
-
-
-
- Id sit dolores adipisci -
-
-
-
-
- Id sit dolores adipisci -
-
-
-
-
- Id sit dolores adipisci -
-
-
​ @@ -100137,7 +98610,7 @@ Ctrl + K" > ​ @@ -104524,7 +102997,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
-
-
@@ -105522,7 +103981,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = ` class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colType-id" data-tc="product-type" > - Juice + Top (clothing) - Top (clothing) + Juice - Polo Shirt + Black Hoodie
@@ -105904,7 +104363,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
- Black Hoodie + Blue Hoodie
@@ -105969,7 +104428,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
- Blue Hoodie + Mustard Hoodie
@@ -106034,7 +104493,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
- Mustard Hoodie + Polo Shirt
@@ -106042,7 +104501,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = ` class="MuiTableCell-root-id MuiTableCell-body-id ProductList-colType-id" data-tc="product-type" > - Top (clothing) + Cushion - Cushion + Top (clothing)
-
+ -
@@ -106741,7 +105197,7 @@ exports[`Storyshots Views / Products / Product list no data 1`] = `
-
-
@@ -107046,2116 +105488,6 @@ exports[`Storyshots Views / Products / Product list no data 1`] = `
`; -exports[`Storyshots Views / Products / Product list with custom filters 1`] = ` -
-
-
-
- Products -
-
-
-
- -
- -
-
-
-
-
-
-
- - -
-
-
-
-
- -
-
-
- - -
-
-
-
-
-
-
- Property X is 0 -
- -
-
-
- Property Y is 1 -
- -
-
-
- Property Z is 2 -
- -
-
-
- Property X is 3 -
- -
-
-
- Property Y is 4 -
- -
-
-
- Property Z is 5 -
- -
-
-
- Property X is 6 -
- -
-
-
- Property Y is 7 -
- -
-
-
- Property Z is 8 -
- -
-
-
- Property X is 9 -
- -
-
-
- Property Y is 10 -
- -
-
-
- Property Z is 11 -
- -
-
-
- Property X is 12 -
- -
-
-
- Property Y is 13 -
- -
-
-
- Property Z is 14 -
- -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
-
- - Name - -
- -
-
-
-
- Type -
-
-
-
-
- Published -
-
-
-
-
- Price -
-
-
-
-
-
-
-
-`; - exports[`Storyshots Views / Products / Product variant details attribute errors 1`] = `
-
@@ -115596,17 +111925,17 @@ exports[`Storyshots Views / Services / Service list loading 1`] = `
-
@@ -115951,17 +112277,17 @@ exports[`Storyshots Views / Services / Service list no data 1`] = `
-
@@ -124770,17 +121093,17 @@ exports[`Storyshots Views / Staff / Staff members default 1`] = `
-
@@ -125439,17 +121759,17 @@ exports[`Storyshots Views / Staff / Staff members when loading 1`] = `
-
@@ -127068,17 +123385,17 @@ exports[`Storyshots Views / Translations / Entity list default 1`] = `
-
@@ -130952,17 +127266,17 @@ exports[`Storyshots Views / Webhooks / Webhook list default 1`] = `
-
@@ -131375,17 +127686,17 @@ exports[`Storyshots Views / Webhooks / Webhook list loading 1`] = `
-
@@ -131747,17 +128055,17 @@ exports[`Storyshots Views / Webhooks / Webhook list no data 1`] = `
-