Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update storybook stories and fixtures
dominik-zeglend2139f598d0b
diff --git a/saleor/static/dashboard-next/orders/fixtures.ts b/saleor/static/dashboard-next/orders/fixtures.tsindex 45b7ba2e3c..6e5da769e0 100644--- a/saleor/static/dashboard-next/orders/fixtures.ts+++ b/saleor/static/dashboard-next/orders/fixtures.ts@@ -818,41 +818,35 @@ export const order = (placeholder: string): OrderDetails_order => ({__typename: "Fulfillment",fulfillmentOrder: 2,id: "RnVsZmlsbG1lbnQ6MjQ=",- lines: {- __typename: "FulfillmentLineCountableConnection",- edges: [- {- __typename: "FulfillmentLineCountableEdge",- node: {- __typename: "FulfillmentLine",- id: "RnVsZmlsbG1lbnRMaW5lOjM5",- orderLine: {- __typename: "OrderLine",- id: "T3JkZXJMaW5lOjIz",- productName: "Williams, Garcia and Walker (XS)",- productSku: "5-1337",- quantity: 2,- quantityFulfilled: 2,- thumbnailUrl: placeholder,- unitPrice: {- __typename: "TaxedMoney",- gross: {- __typename: "Money",- amount: 79.71,- currency: "USD"- },- net: {- __typename: "Money",- amount: 79.71,- currency: "USD"- }- }+ lines: [+ {+ __typename: "FulfillmentLine",+ id: "RnVsZmlsbG1lbnRMaW5lOjM5",+ orderLine: {+ __typename: "OrderLine",+ id: "T3JkZXJMaW5lOjIz",+ productName: "Williams, Garcia and Walker (XS)",+ productSku: "5-1337",+ quantity: 2,+ quantityFulfilled: 2,+ thumbnailUrl: placeholder,+ unitPrice: {+ __typename: "TaxedMoney",+ gross: {+ __typename: "Money",+ amount: 79.71,+ currency: "USD"},- quantity: 1+ net: {+ __typename: "Money",+ amount: 79.71,+ currency: "USD"+ }}- }- ]- },+ },+ quantity: 1+ }+ ],status: FulfillmentStatus.FULFILLED,trackingNumber: ""},@@ -860,41 +854,35 @@ export const order = (placeholder: string): OrderDetails_order => ({__typename: "Fulfillment",fulfillmentOrder: 1,id: "RnVsZmlsbG1lbnQ6OQ==",- lines: {- __typename: "FulfillmentLineCountableConnection",- edges: [- {- __typename: "FulfillmentLineCountableEdge",- node: {- __typename: "FulfillmentLine",- id: "RnVsZmlsbG1lbnRMaW5lOjE1",- orderLine: {- __typename: "OrderLine",- id: "T3JkZXJMaW5lOjIz",- productName: "Williams, Garcia and Walker (XS)",- productSku: "5-1337",- quantity: 2,- quantityFulfilled: 2,- thumbnailUrl: placeholder,- unitPrice: {- __typename: "TaxedMoney",- gross: {- __typename: "Money",- amount: 79.71,- currency: "USD"- },- net: {- __typename: "Money",- amount: 79.71,- currency: "USD"- }- }+ lines: [+ {+ __typename: "FulfillmentLine",+ id: "RnVsZmlsbG1lbnRMaW5lOjE1",+ orderLine: {+ __typename: "OrderLine",+ id: "T3JkZXJMaW5lOjIz",+ productName: "Williams, Garcia and Walker (XS)",+ productSku: "5-1337",+ quantity: 2,+ quantityFulfilled: 2,+ thumbnailUrl: placeholder,+ unitPrice: {+ __typename: "TaxedMoney",+ gross: {+ __typename: "Money",+ amount: 79.71,+ currency: "USD"},- quantity: 1+ net: {+ __typename: "Money",+ amount: 79.71,+ currency: "USD"+ }}- }- ]- },+ },+ quantity: 1+ }+ ],status: FulfillmentStatus.FULFILLED,trackingNumber: ""}diff --git a/saleor/static/dashboard-next/products/components/ProductVariantNavigation/ProductVariantNavigation.tsx b/saleor/static/dashboard-next/products/components/ProductVariantNavigation/ProductVariantNavigation.tsxindex 9943091c1b..d97aa0ca45 100644--- a/saleor/static/dashboard-next/products/components/ProductVariantNavigation/ProductVariantNavigation.tsx+++ b/saleor/static/dashboard-next/products/components/ProductVariantNavigation/ProductVariantNavigation.tsx@@ -11,22 +11,12 @@ import CardTitle from "../../../components/CardTitle";import Skeleton from "../../../components/Skeleton";import TableCellAvatar from "../../../components/TableCellAvatar";import i18n from "../../../i18n";-import { renderCollection } from "../../../misc";+import { maybe, renderCollection } from "../../../misc";+import { ProductVariantDetails_productVariant } from "../../types/ProductVariantDetails";interface ProductVariantNavigationProps {current?: string;- variants?: Array<{- id: string;- name: string;- sku: string;- image?: {- edges?: Array<{- node?: {- url: string;- };- }>;- };- }>;+ variants: ProductVariantDetails_productVariant[];onRowClick: (variantId: string) => void;}@@ -70,17 +60,7 @@ const ProductVariantNavigation = decorate<ProductVariantNavigationProps>(className={classNames({[classes.tabActive]: variant && variant.id === current})}- thumbnail={- variant &&- variant.image &&- variant.image.edges !== undefined- ? variant.image.edges.length > 0- ? variant.image.edges[0] &&- variant.image.edges[0].node &&- variant.image.edges[0].node.url- : null- : undefined- }+ thumbnail={maybe(() => variant.images[0].url)}/><TableCell className={classes.textLeft}>{variant ? variant.name || variant.sku : <Skeleton />}diff --git a/saleor/static/dashboard-next/products/fixtures.ts b/saleor/static/dashboard-next/products/fixtures.tsindex 0fdfb56434..ab9ef7b75a 100644--- a/saleor/static/dashboard-next/products/fixtures.ts+++ b/saleor/static/dashboard-next/products/fixtures.ts@@ -125,77 +125,53 @@ export const product: (availableOn: "2018-08-25T18:45:54.125Z",category: { __typename: "Category", id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },chargeTaxes: true,- collections: {- __typename: "CollectionCountableConnection",- edges: [- {- __typename: "CollectionCountableEdge",- node: {- __typename: "Collection",- id: "Q29sbGVjdGlvbjoy",- name: "Winter sale"- }- }- ]- },+ collections: [+ {+ __typename: "Collection",+ id: "Q29sbGVjdGlvbjoy",+ name: "Winter sale"+ }+ ],description:"Omnis rerum ea. Fugit dignissimos modi est rerum. Qui corrupti expedita et. Dolorem dolorum illo doloremque. Officia perspiciatis facilis ab maxime voluptatem eligendi ipsam. Quisquam impedit repudiandae eos. Id sit dolores adipisci qui omnis dolores qui. Illo deleniti mollitia perspiciatis.",id: "p10171",- images: {- __typename: "ProductImageCountableConnection",- edges: [- {- __typename: "ProductImageCountableEdge",- node: {- __typename: "ProductImage",- alt: "Id sit dolores adipisci",- id: "UHJvZHVjdEltYWdlOjE=",- sortOrder: 0,- url: placeholderImage- }- },- {- __typename: "ProductImageCountableEdge",- node: {- __typename: "ProductImage",- alt: "Id sit dolores adipisci",- id: "UHJvZHVjdEltYWdlOaE=",- sortOrder: 2,- url: placeholderImage- }- },- {- __typename: "ProductImageCountableEdge",- node: {- __typename: "ProductImage",- alt: "Id sit dolores adipisci",- id: "UPJvZHVjdEltYWdlOjV=",- sortOrder: 1,- url: placeholderImage- }- },- {- __typename: "ProductImageCountableEdge",- node: {- __typename: "ProductImage",- alt: "Id sit dolores adipisci",- id: "UHJvZHVjdEltYHdlOjX=",- sortOrder: 3,- url: placeholderImage- }- },- {- __typename: "ProductImageCountableEdge",- node: {- __typename: "ProductImage",- alt: "Id sit dolores adipisci",- id: "UHJvZHVjdIlnYWdlOjX=",- sortOrder: 4,- url: placeholderImage- }- }- ]- },+ images: [+ {+ __typename: "ProductImage",+ alt: "Id sit dolores adipisci",+ id: "UHJvZHVjdEltYWdlOjE=",+ sortOrder: 0,+ url: placeholderImage+ },+ {+ __typename: "ProductImage",+ alt: "Id sit dolores adipisci",+ id: "UHJvZHVjdEltYWdlOaE=",+ sortOrder: 2,+ url: placeholderImage+ },+ {+ __typename: "ProductImage",+ alt: "Id sit dolores adipisci",+ id: "UPJvZHVjdEltYWdlOjV=",+ sortOrder: 1,+ url: placeholderImage+ },+ {+ __typename: "ProductImage",+ alt: "Id sit dolores adipisci",+ id: "UHJvZHVjdEltYHdlOjX=",+ sortOrder: 3,+ url: placeholderImage+ },+ {+ __typename: "ProductImage",+ alt: "Id sit dolores adipisci",+ id: "UHJvZHVjdIlnYWdlOjX=",+ sortOrder: 4,+ url: placeholderImage+ }+ ],isFeatured: false,isPublished: true,margin: { __typename: "Margin", start: 2, stop: 7 },@@ -259,89 +235,54 @@ export const product: (sku: "59661-34207",thumbnailUrl: placeholderImage,url: "/example-url",- variants: {- __typename: "ProductVariantCountableConnection",- edges: [- {- __typename: "ProductVariantCountableEdge",- node: {- __typename: "ProductVariant",- id: "pv75934",- image: {- __typename: "ProductImageCountableConnection",- edges: [- {- __typename: "ProductImageCountableEdge",- node: {- __typename: "ProductImage",- id: "pi92837",- url: placeholderImage- }- }- ]- },- images: {- edges: [- {- node: {- url: placeholderImage- }- },- {- node: {- url: placeholderImage- }- }- ]- },- margin: 2,- name: "Cordoba Oro",- priceOverride: {- __typename: "Money",- amount: 678.78,- currency: "USD",- localized: "678.78 USD"- },- sku: "87192-94370",- stockQuantity: 48+ variants: [+ {+ __typename: "ProductVariant",+ id: "pv75934",+ images: [+ {+ __typename: "ProductImage",+ id: "pi92837",+ url: placeholderImage+ },+ {+ __typename: "ProductImage",+ id: "pi92838",+ url: placeholderImage}+ ],+ margin: 2,+ name: "Cordoba Oro",+ priceOverride: {+ __typename: "Money",+ amount: 678.78,+ currency: "USD"},- {- __typename: "ProductVariantCountableEdge",- node: {- __typename: "ProductVariant",- id: "pv68615",- image: {- __typename: "ProductImageCountableConnection",- edges: [- {- __typename: "ProductImageCountableEdge",- node: {- __typename: "ProductImage",- id: "pi81234",- url: placeholderImage- }- }- ]- },- images: {- edges: [- {- node: {- url: placeholderImage- }- }- ]- },- margin: 7,- name: "silver",- priceOverride: null,- sku: "69055-15190",- stockQuantity: 14+ sku: "87192-94370",+ stockQuantity: 48+ },+ {+ __typename: "ProductVariant",+ id: "pv68615",+ images: [+ {+ __typename: "ProductImage",+ id: "pi81234",+ url: placeholderImage+ },+ {+ __typename: "ProductImage",+ id: "pi1236912",+ url: placeholderImage}- }- ]- }+ ],+ margin: 7,+ name: "silver",+ priceOverride: null,+ sku: "69055-15190",+ stockQuantity: 14+ }+ ]});export const products = (placeholderImage: string) => [{@@ -2308,45 +2249,30 @@ export const variant = (placeholderImage: string): ProductVariant => ({}}],- costPrice:{- __typename:"Money",+ costPrice: {+ __typename: "Money",amount: 12,- currency: "USD",+ currency: "USD"},id: "var1",- images: {- __typename: "ProductImageCountableConnection",- edges: [- {- __typename: "ProductImageCountableEdge",- node: {- __typename: "ProductImage",- id: "img1"- }- },- {- __typename: "ProductImageCountableEdge",- node: {- __typename: "ProductImage",- id: "img2"- }- },- {- __typename: "ProductImageCountableEdge",- node: {- __typename: "ProductImage",- id: "img7"- }- },- {- __typename: "ProductImageCountableEdge",- node: {- __typename: "ProductImage",- id: "img8"- }- }- ]- },+ images: [+ {+ __typename: "ProductImage",+ id: "img1"+ },+ {+ __typename: "ProductImage",+ id: "img2"+ },+ {+ __typename: "ProductImage",+ id: "img7"+ },+ {+ __typename: "ProductImage",+ id: "img8"+ }+ ],name: "Extended Hard",priceOverride: {__typename: "Money",@@ -2356,206 +2282,135 @@ export const variant = (placeholderImage: string): ProductVariant => ({product: {__typename: "Product",id: "prod1",- images: {- __typename: "ProductImageCountableConnection",- edges: [- {- __typename: "ProductImageCountableEdge",- node: {- __typename: "ProductImage",- alt: "Front",- id: "img1",- sortOrder: 1,- url: placeholderImage- }- },- {- __typename: "ProductImageCountableEdge",- node: {- __typename: "ProductImage",- alt: "Back",- id: "img2",- sortOrder: 4,- url: placeholderImage- }- },- {- __typename: "ProductImageCountableEdge",- node: {- __typename: "ProductImage",- alt: "Right side",- id: "img3",- sortOrder: 2,- url: placeholderImage- }- },- {- __typename: "ProductImageCountableEdge",- node: {- __typename: "ProductImage",- alt: "Left side",- id: "img4",- sortOrder: 3,- url: placeholderImage- }- },- {- __typename: "ProductImageCountableEdge",- node: {- __typename: "ProductImage",- alt: "Paper",- id: "img5",- sortOrder: 0,- url: placeholderImage- }- },- {- __typename: "ProductImageCountableEdge",- node: {+ images: [+ {+ __typename: "ProductImage",+ alt: "Front",+ id: "img1",+ sortOrder: 1,+ url: placeholderImage+ },+ {+ __typename: "ProductImage",+ alt: "Back",+ id: "img2",+ sortOrder: 4,+ url: placeholderImage+ },+ {+ __typename: "ProductImage",+ alt: "Right side",+ id: "img3",+ sortOrder: 2,+ url: placeholderImage+ },+ {+ __typename: "ProductImage",+ alt: "Left side",+ id: "img4",+ sortOrder: 3,+ url: placeholderImage+ },+ {+ __typename: "ProductImage",+ alt: "Paper",+ id: "img5",+ sortOrder: 0,+ url: placeholderImage+ },+ {+ __typename: "ProductImage",+ alt: "Hard cover",+ id: "img6",+ sortOrder: 1,+ url: placeholderImage+ },+ {+ __typename: "ProductImage",+ alt: "Extended version",+ id: "img7",+ sortOrder: 0,+ url: placeholderImage+ },+ {+ __typename: "ProductImage",+ alt: "Cut version",+ id: "img8",+ sortOrder: 2,+ url: placeholderImage+ },+ {+ __typename: "ProductImage",+ alt: "Soft cover",+ id: "img9",+ sortOrder: 2,+ url: placeholderImage+ }+ ],+ name: "Our Awesome Book",+ thumbnailUrl: placeholderImage,+ variants: [+ {+ __typename: "ProductVariant",+ id: "var1",+ images: [+ {__typename: "ProductImage",- alt: "Hard cover",- id: "img6",- sortOrder: 1,+ id: "23123",url: placeholderImage}- },- {- __typename: "ProductImageCountableEdge",- node: {+ ],+ name: "Extended Hard",+ sku: "13-1337"+ },+ {+ __typename: "ProductVariant",+ id: "var2",+ images: [+ {__typename: "ProductImage",- alt: "Extended version",- id: "img7",- sortOrder: 0,+ id: "23123",url: placeholderImage}- },- {- __typename: "ProductImageCountableEdge",- node: {+ ],+ name: "Extended Soft",+ sku: "13-1338"+ },+ {+ __typename: "ProductVariant",+ id: "var3",+ images: [+ {__typename: "ProductImage",- alt: "Cut version",- id: "img8",- sortOrder: 2,+ id: "23123",url: placeholderImage}- },- {- __typename: "ProductImageCountableEdge",- node: {+ ],+ name: "Normal Hard",+ sku: "13-1339"+ },+ {+ __typename: "ProductVariant",+ id: "var4",+ images: [+ {__typename: "ProductImage",- alt: "Soft cover",- id: "img9",- sortOrder: 2,+ id: "23123",url: placeholderImage}- }- ]- },- name: "Our Awesome Book",- thumbnailUrl: placeholderImage,- variants: {- __typename: "ProductVariantCountableConnection",- edges: [- {- __typename: "ProductVariantCountableEdge",- node: {- __typename: "ProductVariant",- id: "var1",- image: {- __typename: "ProductImageCountableConnection",- edges: [- {- __typename: "ProductImageCountableEdge",- node: {- __typename: "ProductImage",- id: "23123",- url: placeholderImage- }- }- ]- },- name: "Extended Hard",- sku: "13-1337"- }- },- {- __typename: "ProductVariantCountableEdge",- node: {- __typename: "ProductVariant",- id: "var2",- image: {- __typename: "ProductImageCountableConnection",- edges: [- {- __typename: "ProductImageCountableEdge",- node: {- __typename: "ProductImage",- id: "23123",- url: placeholderImage- }- }- ]- },- name: "Extended Soft",- sku: "13-1338"- }- },- {- __typename: "ProductVariantCountableEdge",- node: {- __typename: "ProductVariant",- id: "var3",- image: {- __typename: "ProductImageCountableConnection",- edges: [- {- __typename: "ProductImageCountableEdge",- node: {- __typename: "ProductImage",- id: "23123",- url: placeholderImage- }- }- ]- },- name: "Normal Hard",- sku: "13-1339"- }- },- {- __typename: "ProductVariantCountableEdge",- node: {- __typename: "ProductVariant",- id: "var4",- image: {- __typename: "ProductImageCountableConnection",- edges: [- {- __typename: "ProductImageCountableEdge",- node: {- __typename: "ProductImage",- id: "23123",- url: placeholderImage- }- }- ]- },- name: "Normal Soft",- sku: "13-1340"- }- }- ],- totalCount: 11- }+ ],+ name: "Normal Soft",+ sku: "13-1340"+ }+ ]},quantity: 19,quantityAllocated: 12,- sku: "1230959124123",-+ sku: "1230959124123"});export const variantImages = (placeholderImage: string) =>- variant(placeholderImage).images.edges.map(edge => edge.node);+ variant(placeholderImage).images;export const variantProductImages = (placeholderImage: string) =>- variant(placeholderImage).product.images.edges.map(edge => edge.node);+ variant(placeholderImage).product.images;export const variantSiblings = (placeholderImage: string) =>- variant(placeholderImage).product.variants.edges.map(edge => edge.node);+ variant(placeholderImage).product.variants;diff --git a/saleor/static/dashboard-next/products/queries.ts b/saleor/static/dashboard-next/products/queries.tsindex 2b48955e23..2ff27f7136 100644--- a/saleor/static/dashboard-next/products/queries.ts+++ b/saleor/static/dashboard-next/products/queries.ts@@ -151,6 +151,7 @@ export const fragmentVariant = gql`}images {id+ url}namepriceOverride {diff --git a/saleor/static/dashboard-next/products/types/ProductVariant.ts b/saleor/static/dashboard-next/products/types/ProductVariant.tsindex e2f61b0be7..a74b48177a 100644--- a/saleor/static/dashboard-next/products/types/ProductVariant.ts+++ b/saleor/static/dashboard-next/products/types/ProductVariant.ts@@ -42,6 +42,7 @@ export interface ProductVariant_costPrice {export interface ProductVariant_images {__typename: "ProductImage";id: string;+ url: string;}export interface ProductVariant_priceOverride {diff --git a/saleor/static/dashboard-next/products/types/ProductVariantDetails.ts b/saleor/static/dashboard-next/products/types/ProductVariantDetails.tsindex a5a73e61f2..62c8da8b25 100644--- a/saleor/static/dashboard-next/products/types/ProductVariantDetails.ts+++ b/saleor/static/dashboard-next/products/types/ProductVariantDetails.ts@@ -42,6 +42,7 @@ export interface ProductVariantDetails_productVariant_costPrice {export interface ProductVariantDetails_productVariant_images {__typename: "ProductImage";id: string;+ url: string;}export interface ProductVariantDetails_productVariant_priceOverride {diff --git a/saleor/static/dashboard-next/products/types/VariantCreate.ts b/saleor/static/dashboard-next/products/types/VariantCreate.tsindex 0f7b00a3b5..860c53737e 100644--- a/saleor/static/dashboard-next/products/types/VariantCreate.ts+++ b/saleor/static/dashboard-next/products/types/VariantCreate.ts@@ -50,6 +50,7 @@ export interface VariantCreate_productVariantCreate_productVariant_costPrice {export interface VariantCreate_productVariantCreate_productVariant_images {__typename: "ProductImage";id: string;+ url: string;}export interface VariantCreate_productVariantCreate_productVariant_priceOverride {diff --git a/saleor/static/dashboard-next/products/types/VariantImageAssign.ts b/saleor/static/dashboard-next/products/types/VariantImageAssign.tsindex c060e226a7..ca6ef8ca3f 100644--- a/saleor/static/dashboard-next/products/types/VariantImageAssign.ts+++ b/saleor/static/dashboard-next/products/types/VariantImageAssign.ts@@ -48,6 +48,7 @@ export interface VariantImageAssign_variantImageAssign_productVariant_costPriceexport interface VariantImageAssign_variantImageAssign_productVariant_images {__typename: "ProductImage";id: string;+ url: string;}export interface VariantImageAssign_variantImageAssign_productVariant_priceOverride {diff --git a/saleor/static/dashboard-next/products/types/VariantImageUnassign.ts b/saleor/static/dashboard-next/products/types/VariantImageUnassign.tsindex ad37883f21..1a8447ec2f 100644--- a/saleor/static/dashboard-next/products/types/VariantImageUnassign.ts+++ b/saleor/static/dashboard-next/products/types/VariantImageUnassign.ts@@ -48,6 +48,7 @@ export interface VariantImageUnassign_variantImageUnassign_productVariant_costPrexport interface VariantImageUnassign_variantImageUnassign_productVariant_images {__typename: "ProductImage";id: string;+ url: string;}export interface VariantImageUnassign_variantImageUnassign_productVariant_priceOverride {diff --git a/saleor/static/dashboard-next/products/types/VariantUpdate.ts b/saleor/static/dashboard-next/products/types/VariantUpdate.tsindex 52086d03a5..7da8da652d 100644--- a/saleor/static/dashboard-next/products/types/VariantUpdate.ts+++ b/saleor/static/dashboard-next/products/types/VariantUpdate.ts@@ -50,6 +50,7 @@ export interface VariantUpdate_productVariantUpdate_productVariant_costPrice {export interface VariantUpdate_productVariantUpdate_productVariant_images {__typename: "ProductImage";id: string;+ url: string;}export interface VariantUpdate_productVariantUpdate_productVariant_priceOverride {diff --git a/saleor/static/dashboard-next/storybook/stories/products/ProductCreatePage.tsx b/saleor/static/dashboard-next/storybook/stories/products/ProductCreatePage.tsxindex e74f2e0a6c..bb2c61083c 100644--- a/saleor/static/dashboard-next/storybook/stories/products/ProductCreatePage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/products/ProductCreatePage.tsx@@ -16,7 +16,7 @@ storiesOf("Views / Products / Create product", module)disabled={false}errors={[]}header="Add product"- collections={product.collections.edges.map(edge => edge.node)}+ collections={product.collections}productTypes={productTypes}categories={[product.category]}onAttributesEdit={undefined}@@ -30,7 +30,7 @@ storiesOf("Views / Products / Create product", module)disabled={true}errors={[]}header="Add product"- collections={product.collections.edges.map(edge => edge.node)}+ collections={product.collections}productTypes={productTypes}categories={[product.category]}onAttributesEdit={undefined}diff --git a/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx b/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsxindex 5559bfea30..3ff93bacc4 100644--- a/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx@@ -17,12 +17,12 @@ storiesOf("Views / Products / Product edit", module)onSubmit={() => undefined}product={product}header={product.name}- collections={product.collections.edges.map(edge => edge.node)}+ collections={product.collections}categories={[product.category]}placeholderImage={placeholderImage}- images={product.images.edges.map(edge => edge.node)}- variants={product.variants.edges.map(edge => edge.node)}- productCollections={product.collections.edges.map(edge => edge.node)}+ images={product.images}+ variants={product.variants}+ productCollections={product.collections}onAttributesEdit={undefined}onDelete={undefined}onProductShow={undefined}@@ -38,12 +38,12 @@ storiesOf("Views / Products / Product edit", module)onSubmit={() => undefined}product={product}header={product.name}- collections={product.collections.edges.map(edge => edge.node)}+ collections={product.collections}categories={[product.category]}placeholderImage={placeholderImage}images={[]}- variants={product.variants.edges.map(edge => edge.node)}- productCollections={product.collections.edges.map(edge => edge.node)}+ variants={product.variants}+ productCollections={product.collections}onAttributesEdit={undefined}onDelete={undefined}onProductShow={undefined}@@ -64,12 +64,12 @@ storiesOf("Views / Products / Product edit", module)} as any}header={product.name}- collections={product.collections.edges.map(edge => edge.node)}+ collections={product.collections}categories={[product.category]}placeholderImage={placeholderImage}- images={product.images.edges.map(edge => edge.node)}- variants={product.variants.edges.map(edge => edge.node)}- productCollections={product.collections.edges.map(edge => edge.node)}+ images={product.images}+ variants={product.variants}+ productCollections={product.collections}onAttributesEdit={undefined}onDelete={undefined}onProductShow={undefined}