Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Restyle product section

dominik-zeglena9e92bbd0b52
diff --git a/saleor/static/dashboard-next/components/ProductList/ProductList.tsx b/saleor/static/dashboard-next/components/ProductList/ProductList.tsx
index a4fff5a154..23d4dfd3c8 100644
--- a/saleor/static/dashboard-next/components/ProductList/ProductList.tsx
+++ b/saleor/static/dashboard-next/components/ProductList/ProductList.tsx
@@ -1,5 +1,3 @@
-import Avatar from "@material-ui/core/Avatar";
-import blue from "@material-ui/core/colors/blue";
import { withStyles } from "@material-ui/core/styles";
import Table from "@material-ui/core/Table";
import TableBody from "@material-ui/core/TableBody";
@@ -7,12 +5,15 @@ import TableCell from "@material-ui/core/TableCell";
import TableFooter from "@material-ui/core/TableFooter";
import TableHead from "@material-ui/core/TableHead";
import TableRow from "@material-ui/core/TableRow";
-import Cached from "@material-ui/icons/Cached";
import * as React from "react";
import { ListProps } from "../..";
+import TableCellAvatar from "../../components/TableCellAvatar";
import i18n from "../../i18n";
+import { MoneyType } from "../../products";
+import Money from "../Money";
import Skeleton from "../Skeleton";
+import StatusLabel from "../StatusLabel";
import TablePagination from "../TablePagination";
const decorate = withStyles(theme => ({
@@ -22,8 +23,10 @@ const decorate = withStyles(theme => ({
width: theme.spacing.unit * 5
},
link: {
- color: blue[500],
- cursor: "pointer"
+ cursor: "pointer" as "pointer"
+ },
+ textLeft: {
+ textAlign: "left" as "left"
}
}));
@@ -35,6 +38,10 @@ interface ProductListProps extends ListProps {
name: string;
};
thumbnailUrl: string;
+ availability: {
+ available: boolean;
+ };
+ price: MoneyType;
}>;
}
@@ -51,15 +58,19 @@ export const ProductList = decorate<ProductListProps>(
<Table>
<TableHead>
<TableRow>
- <TableCell className={classes.avatarCell} />
- <TableCell>{i18n.t("Name", { context: "object" })}</TableCell>
+ <TableCell />
+ <TableCell className={classes.textLeft}>
+ {i18n.t("Name", { context: "object" })}
+ </TableCell>
<TableCell>{i18n.t("Type", { context: "object" })}</TableCell>
+ <TableCell>{i18n.t("Published", { context: "object" })}</TableCell>
+ <TableCell>{i18n.t("Price", { context: "object" })}</TableCell>
</TableRow>
</TableHead>
<TableFooter>
<TableRow>
<TablePagination
- colSpan={3}
+ colSpan={5}
hasNextPage={pageInfo && !disabled ? pageInfo.hasNextPage : false}
onNextPage={onNextPage}
hasPreviousPage={
@@ -70,12 +81,14 @@ export const ProductList = decorate<ProductListProps>(
</TableRow>
</TableFooter>
<TableBody>
- {products === undefined || products === null ? (
+ {products === undefined ? (
<TableRow>
- <TableCell className={classes.avatarCell}>
- <Avatar>
- <Cached />
- </Avatar>
+ <TableCellAvatar />
+ <TableCell>
+ <Skeleton />
+ </TableCell>
+ <TableCell>
+ <Skeleton />
</TableCell>
<TableCell>
<Skeleton />
@@ -84,13 +97,11 @@ export const ProductList = decorate<ProductListProps>(
<Skeleton />
</TableCell>
</TableRow>
- ) : products.length > 0 ? (
+ ) : products !== null && products.length > 0 ? (
products.map(product => (
<TableRow key={product.id}>
- <TableCell className={classes.avatarCell}>
- <Avatar src={product.thumbnailUrl} />
- </TableCell>
- <TableCell>
+ <TableCellAvatar thumbnail={product.thumbnailUrl} />
+ <TableCell className={classes.textLeft}>
<span
onClick={onRowClick ? onRowClick(product.id) : undefined}
className={onRowClick ? classes.link : ""}
@@ -99,12 +110,40 @@ export const ProductList = decorate<ProductListProps>(
</span>
</TableCell>
<TableCell>{product.productType.name}</TableCell>
+ <TableCell>
+ {product.availability &&
+ product.availability.available !== undefined ? (
+ <StatusLabel
+ label={
+ product.availability.available
+ ? i18n.t("Published")
+ : i18n.t("Not published")
+ }
+ status={
+ product.availability.available ? "success" : "error"
+ }
+ />
+ ) : (
+ <Skeleton />
+ )}
+ </TableCell>
+ <TableCell>
+ {product.price &&
+ product.price.amount !== undefined &&
+ product.price.currency ? (
+ <Money
+ amount={product.price.amount}
+ currency={product.price.currency}
+ />
+ ) : (
+ <Skeleton />
+ )}
+ </TableCell>
</TableRow>
))
) : (
<TableRow>
- <TableCell className={classes.avatarCell} />
- <TableCell colSpan={2}>{i18n.t("No products found")}</TableCell>
+ <TableCell colSpan={5}>{i18n.t("No products found")}</TableCell>
</TableRow>
)}
</TableBody>
diff --git a/saleor/static/dashboard-next/gql-types.ts b/saleor/static/dashboard-next/gql-types.ts
index b626451373..d8ee4969e9 100644
--- a/saleor/static/dashboard-next/gql-types.ts
+++ b/saleor/static/dashboard-next/gql-types.ts
@@ -506,8 +506,6 @@ export interface ProductUpdateMutation {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
} | null,
margin: {
start: number | null,
@@ -520,8 +518,6 @@ export interface ProductUpdateMutation {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
} | null,
// Upper bound of a price range.
stop: {
@@ -529,8 +525,6 @@ export interface ProductUpdateMutation {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
} | null,
} | null,
isPublished: boolean,
@@ -578,8 +572,6 @@ export interface ProductUpdateMutation {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
},
} | null,
// Upper bound of a price range.
@@ -590,8 +582,6 @@ export interface ProductUpdateMutation {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
},
} | null,
} | null,
@@ -623,8 +613,6 @@ export interface ProductUpdateMutation {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
} | null,
// Quantity of a product available for sale.
stockQuantity: number,
@@ -637,6 +625,7 @@ export interface ProductUpdateMutation {
// The ID of the object.
id: string,
name: string,
+ hasVariants: boolean,
},
// The storefront URL for the product.
url: string,
@@ -727,8 +716,6 @@ export interface VariantUpdateMutation {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
} | null,
images: {
edges: Array< {
@@ -747,8 +734,6 @@ export interface VariantUpdateMutation {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
} | null,
product: {
// The ID of the object.
@@ -806,6 +791,19 @@ export interface ProductListQuery {
name: string,
// The URL of a main thumbnail for a product.
thumbnailUrl: string | null,
+ // Informs about product's availability in the storefront,
+ // current price and discounts.
+ availability: {
+ available: boolean | null,
+ } | null,
+ // The product's base price (without any discounts
+ // applied).
+ price: {
+ // Amount of money.
+ amount: number,
+ // Currency code.
+ currency: string,
+ } | null,
productType: {
// The ID of the object.
id: string,
@@ -861,8 +859,6 @@ export interface ProductDetailsQuery {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
} | null,
margin: {
start: number | null,
@@ -875,8 +871,6 @@ export interface ProductDetailsQuery {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
} | null,
// Upper bound of a price range.
stop: {
@@ -884,8 +878,6 @@ export interface ProductDetailsQuery {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
} | null,
} | null,
isPublished: boolean,
@@ -933,8 +925,6 @@ export interface ProductDetailsQuery {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
},
} | null,
// Upper bound of a price range.
@@ -945,8 +935,6 @@ export interface ProductDetailsQuery {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
},
} | null,
} | null,
@@ -978,8 +966,6 @@ export interface ProductDetailsQuery {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
} | null,
// Quantity of a product available for sale.
stockQuantity: number,
@@ -992,6 +978,7 @@ export interface ProductDetailsQuery {
// The ID of the object.
id: string,
name: string,
+ hasVariants: boolean,
},
// The storefront URL for the product.
url: string,
@@ -1065,8 +1052,6 @@ export interface ProductVariantDetailsQuery {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
} | null,
images: {
edges: Array< {
@@ -1085,8 +1070,6 @@ export interface ProductVariantDetailsQuery {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
} | null,
product: {
// The ID of the object.
@@ -1144,8 +1127,6 @@ export interface MoneyFragment {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
};
export interface ProductImageFragment {
@@ -1185,8 +1166,6 @@ export interface ProductFragment {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
} | null,
margin: {
start: number | null,
@@ -1199,8 +1178,6 @@ export interface ProductFragment {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
} | null,
// Upper bound of a price range.
stop: {
@@ -1208,8 +1185,6 @@ export interface ProductFragment {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
} | null,
} | null,
isPublished: boolean,
@@ -1257,8 +1232,6 @@ export interface ProductFragment {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
},
} | null,
// Upper bound of a price range.
@@ -1269,8 +1242,6 @@ export interface ProductFragment {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
},
} | null,
} | null,
@@ -1302,8 +1273,6 @@ export interface ProductFragment {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
} | null,
// Quantity of a product available for sale.
stockQuantity: number,
@@ -1316,6 +1285,7 @@ export interface ProductFragment {
// The ID of the object.
id: string,
name: string,
+ hasVariants: boolean,
},
// The storefront URL for the product.
url: string,
@@ -1360,8 +1330,6 @@ export interface ProductVariantFragment {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
} | null,
images: {
edges: Array< {
@@ -1380,8 +1348,6 @@ export interface ProductVariantFragment {
amount: number,
// Currency code.
currency: string,
- // Money formatted according to the current locale.
- localized: string,
} | null,
product: {
// The ID of the object.
diff --git a/saleor/static/dashboard-next/products/components/ProductAvailabilityForm/ProductAvailabilityForm.tsx b/saleor/static/dashboard-next/products/components/ProductAvailabilityForm/ProductAvailabilityForm.tsx
index c4215e42c9..fbb36e8bc7 100644
--- a/saleor/static/dashboard-next/products/components/ProductAvailabilityForm/ProductAvailabilityForm.tsx
+++ b/saleor/static/dashboard-next/products/components/ProductAvailabilityForm/ProductAvailabilityForm.tsx
@@ -4,15 +4,14 @@ import { withStyles } from "@material-ui/core/styles";
import TextField from "@material-ui/core/TextField";
import * as React from "react";
-import ControlledCheckbox from "../../../components//ControlledCheckbox";
-import PageHeader from "../../../components/PageHeader";
+import CardTitle from "../../../components/CardTitle";
+import ControlledSwitch from "../../../components/ControlledSwitch";
import i18n from "../../../i18n";
interface ProductAvailabilityFormProps {
data: {
available: boolean;
availableOn: string;
- chargeTaxes: boolean;
featured: boolean;
};
errors: { [key: string]: string };
@@ -23,21 +22,28 @@ interface ProductAvailabilityFormProps {
const decorate = withStyles(theme => ({
date: {
marginTop: theme.spacing.unit
+ },
+ pullDown: {
+ position: "relative" as "relative",
+ top: theme.spacing.unit * 1.5
+ },
+ pullUp: {
+ marginTop: -theme.spacing.unit * 2
}
}));
export const ProductAvailabilityForm = decorate<ProductAvailabilityFormProps>(
({
classes,
- data: { available, availableOn, chargeTaxes, featured },
+ data: { available, availableOn, featured },
errors,
loading,
onChange
}) => (
<Card>
- <PageHeader title={i18n.t("Status")} />
+ <CardTitle title={i18n.t("Availability")} />
<CardContent>
- <div>
- <ControlledCheckbox
+ <div className={classes.pullUp}>
+ <ControlledSwitch
name="available"
label={i18n.t("Published in storefront")}
checked={available}
@@ -46,39 +52,33 @@ export const ProductAvailabilityForm = decorate<ProductAvailabilityFormProps>(
/>
</div>
{available && (
- <TextField
- error={!!errors.availableOn}
- disabled={loading}
- label={i18n.t("Publish product on")}
- name="availableOn"
- type="date"
- helperText={errors.availableOn}
- value={availableOn ? availableOn : ""}
- onChange={onChange}
- className={classes.date}
- InputLabelProps={{
- shrink: true
- }}
- />
+ <>
+ <TextField
+ error={!!errors.availableOn}
+ disabled={loading}
+ label={i18n.t("Publish product on")}
+ name="availableOn"
+ type="date"
+ fullWidth={true}
+ helperText={errors.availableOn}
+ value={availableOn ? availableOn : ""}
+ onChange={onChange}
+ className={classes.date}
+ InputLabelProps={{
+ shrink: true
+ }}
+ />
+ <div className={classes.pullDown}>
+ <ControlledSwitch
+ name="featured"
+ label={i18n.t("Feature on Homepage")}
+ checked={featured}
+ onChange={onChange}
+ disabled={loading}
+ />
+ </div>
+ </>
)}
- <div>
- <ControlledCheckbox
- name="featured"
- label={i18n.t("Feature this product on homepage")}
- checked={featured}
- onChange={onChange}
- disabled={loading}
- />
- </div>
- <div>
- <ControlledCheckbox
- name="chargeTaxes"
- label={i18n.t("Charge taxes")}
- checked={chargeTaxes}
- onChange={onChange}
- disabled={loading}
- />
- </div>
</CardContent>
</Card>
)
diff --git a/saleor/static/dashboard-next/products/components/ProductDetailsForm/ProductDetailsForm.tsx b/saleor/static/dashboard-next/products/components/ProductDetailsForm/ProductDetailsForm.tsx
index e84879dec4..c63d33a5ff 100644
--- a/saleor/static/dashboard-next/products/components/ProductDetailsForm/ProductDetailsForm.tsx
+++ b/saleor/static/dashboard-next/products/components/ProductDetailsForm/ProductDetailsForm.tsx
@@ -4,40 +4,33 @@ import { withStyles } from "@material-ui/core/styles";
import TextField from "@material-ui/core/TextField";
import * as React from "react";
-import { FormSpacer } from "../../../components/FormSpacer";
-import PriceField from "../../../components/PriceField";
+import CardTitle from "../../../components/CardTitle";
+import FormSpacer from "../../../components/FormSpacer";
import { RichTextEditor } from "../../../components/RichTextEditor";
import i18n from "../../../i18n";
interface ProductDetailsFormProps {
- currencySymbol?: string;
- description?: string;
+ data: {
+ description: string;
+ name: string;
+ };
disabled?: boolean;
errors: { [key: string]: string };
- name?: string;
- price?: number;
onChange(event: any);
}
const decorate = withStyles(theme => ({
root: {
display: "grid",
- gridTemplateColumns: `1fr ${theme.spacing.unit}px 8rem`
+ gridColumnGap: theme.spacing.unit * 2 + "px",
+ gridTemplateColumns: `3fr 1fr`
}
}));
export const ProductDetailsForm = decorate<ProductDetailsFormProps>(
- ({
- classes,
- currencySymbol,
- description,
- disabled,
- errors,
- name,
- onChange,
- price
- }) => (
+ ({ classes, data, disabled, errors, onChange }) => (
<Card>
+ <CardTitle title={i18n.t("General information")} />
<CardContent>
<div className={classes.root}>
<TextField
@@ -49,21 +42,9 @@ export const ProductDetailsForm = decorate<ProductDetailsFormProps>(
label={i18n.t("Name")}
name="name"
rows={5}
- value={name}
+ value={data.name}
onChange={onChange}
/>
- <span />
- <PriceField
- error={!!errors.price}
- name="price"
- hint={errors.price}
- currencySymbol={currencySymbol}
- disabled={disabled}
- key="priceInput"
- label={i18n.t("Price")}
- onChange={onChange}
- value={price}
- />
</div>
<FormSpacer />
<RichTextEditor
@@ -78,7 +59,7 @@ export const ProductDetailsForm = decorate<ProductDetailsFormProps>(
key="descriptionInput"
label={i18n.t("Description")}
name="description"
- value={description}
+ value={data.description}
onChange={onChange}
/>
</CardContent>
diff --git a/saleor/static/dashboard-next/products/components/ProductImages/ProductImages.tsx b/saleor/static/dashboard-next/products/components/ProductImages/ProductImages.tsx
index c1e3b427c8..a1cc811171 100644
--- a/saleor/static/dashboard-next/products/components/ProductImages/ProductImages.tsx
+++ b/saleor/static/dashboard-next/products/components/ProductImages/ProductImages.tsx
@@ -1,16 +1,13 @@
+import Button from "@material-ui/core/Button";
import Card from "@material-ui/core/Card";
import CardContent from "@material-ui/core/CardContent";
-import GridListTile from "@material-ui/core/GridListTile";
-import GridListTileBar from "@material-ui/core/GridListTileBar";
-import IconButton from "@material-ui/core/IconButton";
import { withStyles } from "@material-ui/core/styles";
import Typography from "@material-ui/core/Typography";
-import AddIcon from "@material-ui/icons/Add";
-import ModeEditIcon from "@material-ui/icons/ModeEdit";
+import AddPhotoIcon from "@material-ui/icons/AddAPhoto";
import * as React from "react";
import { SortableContainer, SortableElement } from "react-sortable-hoc";
-import PageHeader from "../../../components/PageHeader";
+import CardTitle from "../../../components/CardTitle";
import i18n from "../../../i18n";
interface ProductImagesProps {
@@ -43,55 +40,76 @@ interface ImageListContainerProps {
}
const decorate = withStyles(theme => ({
- root: {
- display: "grid",
- gridTemplateColumns: "repeat(3, 1fr)",
- gridColumnGap: `${theme.spacing.unit * 2}px`,
- gridRowGap: `${theme.spacing.unit * 2}px`,
- [theme.breakpoints.down("sm")]: {
- gridTemplateColumns: "repeat(2, 1fr)"
- }
- },
card: {
marginTop: theme.spacing.unit * 2,
[theme.breakpoints.down("sm")]: {
marginTop: 0
}
},
- gridElement: {
- cursor: "move",
- userSelect: "none" as "none",
- "& img": {
- height: 20 * theme.spacing.unit,
- pointerEvents: "none" as "none",
- width: 20 * theme.spacing.unit
- }
+ fileField: {
+ display: "none"
},
icon: {
color: "rgba(255, 255, 255, 0.54)"
},
- fileField: {
- display: "none"
+ image: {
+ cursor: "move",
+ height: "100%",
+ maxHeight: theme.spacing.unit * 15,
+ maxWidth: theme.spacing.unit * 15,
+ userSelect: "none" as "none",
+ width: "100%"
+ },
+ imageContainer: {
+ border: "1px solid #eaeaea",
+ borderRadius: theme.spacing.unit,
+ padding: theme.spacing.unit * 2
+ },
+ noPhotosIcon: {
+ height: theme.spacing.unit * 8,
+ margin: "0 auto",
+ width: theme.spacing.unit * 8
+ },
+ noPhotosIconContainer: {
+ margin: `${theme.spacing.unit * 5}px 0`,
+ textAlign: "center" as "center"
+ },
+ noPhotosIconText: {
+ fontSize: "1rem",
+ fontWeight: 600 as 600,
+ marginTop: theme.spacing.unit
+ },
+ root: {
+ display: "grid",
+ gridColumnGap: `${theme.spacing.unit * 2}px`,
+ gridRowGap: `${theme.spacing.unit * 2}px`,
+ gridTemplateColumns: "repeat(4, 1fr)",
+ [theme.breakpoints.down("sm")]: {
+ gridTemplateColumns: "repeat(2, 1fr)"
+ }
}
}));
const ImageListElement = SortableElement(
decorate<ImageListElementProps>(({ classes, onImageEdit, tile }) => (
- <GridListTile key={tile.id} component="div" className={classes.gridElement}>
- <img src={tile.url} alt={tile.alt} />
- <GridListTileBar
- title={tile.alt || i18n.t("No description")}
- actionIcon={
- onImageEdit ? (
- <IconButton className={classes.icon} onClick={onImageEdit}>
- <ModeEditIcon />
- </IconButton>
- ) : (
- ""
- )
- }
- />
- </GridListTile>
+ <div className={classes.imageContainer}>
+ <img className={classes.image} src={tile.url} alt={tile.alt} />
+ </div>
+ // <GridListTile key={tile.id} component="div" className={classes.gridElement}>
+ // <img src={tile.url} alt={tile.alt} />
+ // <GridListTileBar
+ // title={tile.alt || i18n.t("No description")}
+ // actionIcon={
+ // onImageEdit ? (
+ // <IconButton className={classes.icon} onClick={onImageEdit}>
+ // <ModeEditIcon />
+ // </IconButton>
+ // ) : (
+ // ""
+ // )
+ // }
+ // />
+ // </GridListTile>
))
);
@@ -125,25 +143,34 @@ const ProductImages = decorate<ProductImagesProps>(
onImageUpload
}) => (
<Card className={classes.card}>
- <PageHeader title={i18n.t("Images")}>
- <IconButton onClick={e => this.upload.click()} disabled={loading}>
- <AddIcon />
- </IconButton>
- <input
- className={classes.fileField}
- id="fileUpload"
- onChange={onImageUpload}
- type="file"
- ref={ref => (this.upload = ref)}
- />
- </PageHeader>
+ <CardTitle
+ title={i18n.t("Images")}
+ toolbar={
+ <>
+ <Button
+ onClick={e => this.upload.click()}
+ disabled={loading}
+ variant="flat"
+ color="secondary"
+ >
+ {i18n.t("Upload image")}
+ </Button>
+ <input
+ className={classes.fileField}
+ id="fileUpload"
+ onChange={onImageUpload}
+ type="file"
+ ref={ref => (this.upload = ref)}
+ />
+ </>
+ }
+ />
<CardContent>
- {images === undefined || images === null ? (
+ {images === undefined ? (
<div className={classes.root}>
- <GridListTile className={classes.gridElement} component="div">
+ <div className={classes.imageContainer}>
<img src={placeholderImage} />
- <GridListTileBar title={i18n.t("Loading...")} />
- </GridListTile>
+ </div>
</div>
) : images.length > 0 ? (
<ImageListContainer
@@ -154,7 +181,12 @@ const ProductImages = decorate<ProductImagesProps>(
onImageEdit={onImageEdit}
/>
) : (
- <Typography>{i18n.t("No images available")}</Typography>
+ <div className={classes.noPhotosIconContainer}>
+ <AddPhotoIcon className={classes.noPhotosIcon} />
+ <Typography className={classes.noPhotosIconText}>
+ {i18n.t("Drop images to upload")}
+ </Typography>
+ </div>
)}
</CardContent>
</Card>
diff --git a/saleor/static/dashboard-next/products/components/ProductListCard/ProductListCard.tsx b/saleor/static/dashboard-next/products/components/ProductListCard/ProductListCard.tsx
index d28ce427c7..6251bead93 100644
--- a/saleor/static/dashboard-next/products/components/ProductListCard/ProductListCard.tsx
+++ b/saleor/static/dashboard-next/products/components/ProductListCard/ProductListCard.tsx
@@ -1,8 +1,9 @@
+import Button from "@material-ui/core/Button";
import Card from "@material-ui/core/Card";
-import IconButton from "@material-ui/core/IconButton";
import AddIcon from "@material-ui/icons/Add";
import * as React from "react";
+import { MoneyType } from "../..";
import { PageListProps } from "../../..";
import Container from "../../../components/Container";
import PageHeader from "../../../components/PageHeader";
@@ -17,6 +18,10 @@ interface ProductListCardProps extends PageListProps {
name: string;
};
thumbnailUrl: string;
+ availability: {
+ available: boolean;
+ };
+ price: MoneyType;
}>;
}
@@ -32,10 +37,10 @@ export const ProductListCard: React.StatelessComponent<
onRowClick
}) => (
<Container width="md">
- <PageHeader title={i18n.t("Product list")}>
- <IconButton onClick={onAdd}>
- <AddIcon />
- </IconButton>
+ <PageHeader title={i18n.t("Products")}>
+ <Button onClick={onAdd} color="secondary" variant="contained">
+ {i18n.t("Add product")} <AddIcon />
+ </Button>
</PageHeader>
<Card>
<ProductList
diff --git a/saleor/static/dashboard-next/products/components/ProductOrganization/ProductOrganization.tsx b/saleor/static/dashboard-next/products/components/ProductOrganization/ProductOrganization.tsx
new file mode 100644
index 0000000000..02ed2eaac1
--- /dev/null
+++ b/saleor/static/dashboard-next/products/components/ProductOrganization/ProductOrganization.tsx
@@ -0,0 +1,151 @@
+import Card from "@material-ui/core/Card";
+import CardContent from "@material-ui/core/CardContent";
+import { withStyles } from "@material-ui/core/styles";
+import Typography from "@material-ui/core/Typography";
+import * as React from "react";
+
+import { AttributeType, AttributeValueType } from "../..";
+import CardTitle from "../../../components/CardTitle";
+import { FormSpacer } from "../../../components/FormSpacer";
+import MultiSelectField from "../../../components/MultiSelectField";
+import SingleSelectField from "../../../components/SingleSelectField";
+import Skeleton from "../../../components/Skeleton";
+import i18n from "../../../i18n";
+
+interface ProductOrganizationProps {
+ categories?: Array<{ value: string; label: string }>;
+ collections?: Array<{ value: string; label: string }>;
+ attributes?: Array<{
+ attribute: AttributeType;
+ value: AttributeValueType;
+ }>;
+ category: string;
+ productCollections: string[];
+ data: {
+ [key: string]: string;
+ };
+ disabled: boolean;
+ errors: { [key: string]: string };
+ product?: {
+ productType?: {
+ hasVariants?: boolean;
+ name?: string;
+ };
+ };
+ onChange: (event: React.ChangeEvent<any>) => void;
+}
+
+const decorate = withStyles(theme => ({
+ cardSubtitle: {
+ fontSize: "1rem",
+ margin: `${theme.spacing.unit * 3}px 0`
+ },
+ hr: {
+ backgroundColor: "#eaeaea",
+ border: "none",
+ height: 1,
+ margin: `0 -${theme.spacing.unit * 3}px ${theme.spacing.unit * 3}px`
+ }
+}));
+const ProductOrganization = decorate<ProductOrganizationProps>(
+ ({
+ attributes,
+ category,
+ categories,
+ classes,
+ collections,
+ data,
+ disabled,
+ errors,
+ product,
+ productCollections,
+ onChange
+ }) => (
+ <Card>
+ <CardTitle title={i18n.t("Organize Product")} />
+ <CardContent>
+ {product &&
+ product.productType &&
+ product.productType.name !== undefined ? (
+ <SingleSelectField
+ disabled={true}
+ label={i18n.t("Product Type")}
+ choices={[{ label: product.productType.name, value: "1" }]}
+ value={"1"}
+ onChange={() => {}}
+ />
+ ) : (
+ <Skeleton />
+ )}
+ <FormSpacer />
+ {product &&
+ product.productType &&
+ product.productType.hasVariants !== undefined ? (
+ <SingleSelectField
+ disabled={true}
+ label={i18n.t("Is it configurable?")}
+ choices={[
+ { label: i18n.t("Yes"), value: "true" },
+ { label: i18n.t("No"), value: "false" }
+ ]}
+ value={product.productType.hasVariants + ""}
+ onChange={() => {}}
+ />
+ ) : (
+ <Skeleton />
+ )}
+ <Typography className={classes.cardSubtitle}>
+ {i18n.t("Attributes")}
+ </Typography>
+ {attributes ? (
+ attributes.map((item, index) => {
+ return (
+ <React.Fragment key={index}>
+ <SingleSelectField
+ disabled={disabled}
+ name={item.attribute.slug}
+ label={item.attribute.name}
+ onChange={onChange}
+ value={data[item.attribute.slug]}
+ choices={item.attribute.values.map(choice => ({
+ label: choice.name,
+ value: choice.slug
+ }))}
+ key={index}
+ />
+ <FormSpacer />
+ </React.Fragment>
+ );
+ })
+ ) : (
+ <Skeleton />
+ )}
+ <hr className={classes.hr} />
+ <SingleSelectField
+ disabled={disabled}
+ error={!!errors.category}
+ hint={errors.category}
+ label={i18n.t("Category")}
+ choices={disabled ? [] : categories}
+ name="category"
+ value={category}
+ onChange={onChange}
+ />
+ <FormSpacer />
+ <hr className={classes.hr} />
+ <MultiSelectField
+ disabled={disabled}
+ error={!!errors.collections}
+ hint={errors.collections}
+ label={i18n.t("Collections")}
+ choices={disabled ? [] : collections}
+ name="collections"
+ value={productCollections}
+ onChange={onChange}
+ />
+ </CardContent>
+ </Card>
+ )
+);
+ProductOrganization.displayName = "ProductOrganization";
+export default ProductOrganization;
diff --git a/saleor/static/dashboard-next/products/components/ProductOrganization/index.ts b/saleor/static/dashboard-next/products/components/ProductOrganization/index.ts
new file mode 100644
index 0000000000..5ef78dde85
--- /dev/null
+++ b/saleor/static/dashboard-next/products/components/ProductOrganization/index.ts
@@ -0,0 +1,2 @@
+export { default } from "./ProductOrganization";
+export * from "./ProductOrganization";
diff --git a/saleor/static/dashboard-next/products/components/ProductPricing/ProductPricing.tsx b/saleor/static/dashboard-next/products/components/ProductPricing/ProductPricing.tsx
new file mode 100644
index 0000000000..3656fb2878
--- /dev/null
+++ b/saleor/static/dashboard-next/products/components/ProductPricing/ProductPricing.tsx
@@ -0,0 +1,55 @@
+import Card from "@material-ui/core/Card";
+import CardContent from "@material-ui/core/CardContent";
+import { withStyles } from "@material-ui/core/styles";
+import * as React from "react";
+
+import CardTitle from "../../../components/CardTitle";
+import ControlledCheckbox from "../../../components/ControlledCheckbox";
+import PriceField from "../../../components/PriceField";
+import i18n from "../../../i18n";
+
+interface ProductPricingProps {
+ currency?: string;
+ data: {
+ chargeTaxes: boolean;
+ price: number;
+ };
+ disabled: boolean;
+ onChange: (event: React.ChangeEvent<any>) => void;
+}
+
+const decorate = withStyles(theme => ({
+ root: {
+ display: "grid" as "grid",
+ gridColumnGap: theme.spacing.unit * 2 + "px",
+ gridTemplateColumns: "1fr 1fr"
+ }
+}));
+const ProductPricing = decorate<ProductPricingProps>(
+ ({ classes, currency, data, disabled, onChange }) => (
+ <Card>
+ <CardTitle title={i18n.t("Pricing")}>
+ <ControlledCheckbox
+ name="chargeTaxes"
+ label={i18n.t("Charge taxes for this item")}
+ checked={data.chargeTaxes}
+ onChange={onChange}
+ disabled={disabled}
+ />
+ </CardTitle>
+ <CardContent>
+ <div className={classes.root}>
+ <PriceField
+ label={i18n.t("Price")}
+ name="price"
+ value={data.price}
+ currencySymbol={currency}
+ onChange={onChange}
+ />
+ </div>
+ </CardContent>
+ </Card>
+ )
+);
+ProductPricing.displayName = "ProductPricing";
+export default ProductPricing;
diff --git a/saleor/static/dashboard-next/products/components/ProductPricing/index.ts b/saleor/static/dashboard-next/products/components/ProductPricing/index.ts
new file mode 100644
index 0000000000..4a41ac8e59
--- /dev/null
+++ b/saleor/static/dashboard-next/products/components/ProductPricing/index.ts
@@ -0,0 +1,2 @@
+export { default } from "./ProductPricing";
+export * from "./ProductPricing";
diff --git a/saleor/static/dashboard-next/products/components/ProductUpdatePage/ProductUpdatePage.tsx b/saleor/static/dashboard-next/products/components/ProductUpdatePage/ProductUpdatePage.tsx
index ac13659e61..055ff8f219 100644
--- a/saleor/static/dashboard-next/products/components/ProductUpdatePage/ProductUpdatePage.tsx
+++ b/saleor/static/dashboard-next/products/components/ProductUpdatePage/ProductUpdatePage.tsx
@@ -22,7 +22,9 @@ import ProductAvailabilityForm from "../ProductAvailabilityForm";
import ProductCategoryAndCollectionsForm from "../ProductCategoryAndCollectionsForm";
import ProductDetailsForm from "../ProductDetailsForm";
import ProductImages from "../ProductImages";
+import ProductOrganization from "../ProductOrganization";
import ProductPrice from "../ProductPrice/ProductPrice";
+import ProductPricing from "../ProductPricing";
import ProductVariants from "../ProductVariants";
interface ProductUpdateProps {
@@ -66,6 +68,7 @@ interface ProductUpdateProps {
productType: {
id: string;
name: string;
+ hasVariants: boolean;
};
category: {
id: string;
@@ -92,6 +95,7 @@ interface ProductUpdateProps {
url: string;
};
saveButtonBarState?: SaveButtonBarState;
+ onAttributesEdit: () => void;
onBack?();
onDelete?(id: string);
onImageEdit?(id: string);
@@ -114,7 +118,7 @@ const decorate = withStyles(theme => ({
root: {
display: "grid",
gridGap: theme.spacing.unit * 2 + "px",
- gridTemplateColumns: "3fr 2fr",
+ gridTemplateColumns: "2.25fr 1fr",
marginTop: theme.spacing.unit * 2,
[theme.breakpoints.down("sm")]: {
gridGap: theme.spacing.unit + "px",
@@ -137,6 +141,7 @@ export const ProductUpdate = decorate<ProductUpdateProps>(
productCollections,
saveButtonBarState,
variants,
+ onAttributesEdit,
onBack,
onDelete,
onImageEdit,
@@ -171,160 +176,164 @@ export const ProductUpdate = decorate<ProductUpdateProps>(
});
}
return (
- <Form
- onSubmit={onSubmit}
- errors={userErrors}
- initial={initialData}
- key={product ? JSON.stringify(product) : "loading"}
- >
- {({ change, data, errors, hasChanged, submit }) => (
- <Container width="md">
- <Toggle>
- {(openedDeleteDialog, { toggle: toggleDeleteDialog }) => (
- <>
- <PageHeader
- title={product ? product.name : undefined}
- onBack={onBack}
- >
- {!!onProductShow && (
- <IconButton onClick={onProductShow} disabled={disabled}>
- <VisibilityIcon />
- </IconButton>
- )}
- {!!onDelete && (
- <IconButton
- onClick={toggleDeleteDialog}
- disabled={disabled}
- >
- <DeleteIcon />
- </IconButton>
- )}
- </PageHeader>
- {product &&
- onDelete &&
- product.name && (
- <ActionDialog
- open={openedDeleteDialog}
- onClose={toggleDeleteDialog}
- onConfirm={() => {
- onDelete(product.id);
- toggleDeleteDialog();
+ <Toggle>
+ {(openedDeleteDialog, { toggle: toggleDeleteDialog }) => (
+ <Form
+ onSubmit={onSubmit}
+ errors={userErrors}
+ initial={initialData}
+ key={product ? JSON.stringify(product) : "loading"}
+ >
+ {({ change, data, errors, hasChanged, submit }) => (
+ <Container width="md">
+ <PageHeader
+ title={product ? product.name : undefined}
+ onBack={onBack}
+ >
+ {!!onProductShow && (
+ <IconButton onClick={onProductShow} disabled={disabled}>
+ <VisibilityIcon />
+ </IconButton>
+ )}
+ {!!onDelete && (
+ <IconButton
+ onClick={toggleDeleteDialog}
+ disabled={disabled}
+ >
+ <DeleteIcon />
+ </IconButton>
+ )}
+ </PageHeader>
+ {product &&
+ onDelete &&
+ product.name && (
+ <ActionDialog
+ open={openedDeleteDialog}
+ onClose={toggleDeleteDialog}
+ onConfirm={() => {
+ onDelete(product.id);
+ toggleDeleteDialog();
+ }}
+ variant="delete"
+ title={i18n.t("Remove product")}
+ >
+ <DialogContentText
+ dangerouslySetInnerHTML={{
+ __html: i18n.t(
+ "Are you sure you want to remove <strong>{{ name }}</strong>?",
+ { name: product.name }
+ )
}}
- variant="delete"
- title={i18n.t("Remove product")}
- >
- <DialogContentText
- dangerouslySetInnerHTML={{
- __html: i18n.t(
- "Are you sure you want to remove <strong>{{ name }}</strong>?",
- { name: product.name }
- )
- }}
- />
- </ActionDialog>
- )}
- </>
- )}
- </Toggle>
- <div className={classes.root}>
- <div>
- <ProductDetailsForm
- onChange={change}
- errors={errors}
- name={data.name}
- description={data.description}
- currencySymbol={
- product && product.price ? product.price.currency : ""
- }
- price={data.price}
- disabled={disabled}
- />
- <div className={classes.cardContainer}>
- <ProductImages
- images={images}
- placeholderImage={placeholderImage}
- onImageReorder={onImageReorder}
- onImageEdit={onImageEdit}
- onImageUpload={onImageUpload}
- />
- </div>
- <div className={classes.cardContainer}>
- <ProductVariants
- variants={variants}
- fallbackPrice={product ? product.price : undefined}
- onRowClick={onVariantShow}
- onVariantAdd={onVariantAdd}
- />
- </div>
- <div className={classes.cardContainer}>
- <SeoForm
- title={data.seoTitle}
- titlePlaceholder={data.name}
- description={data.seoDescription}
- descriptionPlaceholder={data.description}
- storefrontUrl={product ? product.url : undefined}
- loading={disabled}
- onClick={onSeoClick}
- onChange={change}
- />
+ />
+ </ActionDialog>
+ )}
+
+ <div className={classes.root}>
+ <div>
+ <ProductDetailsForm
+ data={data}
+ disabled={disabled}
+ errors={errors}
+ onChange={change}
+ />
+ <div className={classes.cardContainer}>
+ <ProductImages
+ images={images}
+ placeholderImage={placeholderImage}
+ onImageReorder={onImageReorder}
+ onImageEdit={onImageEdit}
+ onImageUpload={onImageUpload}
+ />
+ </div>
+ <div className={classes.cardContainer}>
+ <ProductPricing
+ currency={
+ product && product.price
+ ? product.price.currency
+ : undefined
+ }
+ data={data}
+ disabled={disabled}
+ onChange={change}
+ />
+ </div>
+ <div className={classes.cardContainer}>
+ <ProductVariants
+ variants={variants}
+ fallbackPrice={product ? product.price : undefined}
+ onAttributesEdit={onAttributesEdit}
+ onRowClick={onVariantShow}
+ onVariantAdd={onVariantAdd}
+ />
+ </div>
+ <div className={classes.cardContainer}>
+ <SeoForm
+ helperText={i18n.t(
+ "Add search engine title and description to make this product easier to find"
+ )}
+ title={data.seoTitle}
+ titlePlaceholder={data.name}
+ description={data.seoDescription}
+ descriptionPlaceholder={data.description}
+ storefrontUrl={product ? product.url : undefined}
+ loading={disabled}
+ onClick={onSeoClick}
+ onChange={change}
+ />
+ </div>
+ </div>
+ <div>
+ <ProductOrganization
+ attributes={product ? product.attributes : undefined}
+ category={data.category}
+ categories={
+ categories !== undefined && categories !== null
+ ? categories.map(category => ({
+ label: category.name,
+ value: category.id
+ }))
+ : []
+ }
+ errors={errors}
+ productCollections={data.collections}
+ collections={
+ collections !== undefined && collections !== null
+ ? collections.map(collection => ({
+ label: collection.name,
+ value: collection.id
+ }))
+ : []
+ }
+ product={product}
+ data={data}
+ disabled={disabled}
+ onChange={change}
+ />
+ <div className={classes.cardContainer}>
+ <ProductAvailabilityForm
+ data={data}
+ errors={errors}
+ loading={disabled}
+ onChange={change}
+ />
+ </div>
+ </div>
</div>
- </div>
- <div>
- <ProductAvailabilityForm
- data={data}
- errors={errors}
- loading={disabled}
- onChange={change}
+ <SaveButtonBar
+ labels={{
+ delete: i18n.t("Remove product"),
+ save: i18n.t("Save product")
+ }}
+ onDelete={toggleDeleteDialog}
+ onSave={submit}
+ state={saveButtonBarState}
+ disabled={disabled || !onSubmit || !hasChanged}
/>
- <div className={classes.cardContainer}>
- <ProductPrice
- margin={product ? product.margin : undefined}
- purchaseCost={product ? product.purchaseCost : undefined}
- />
- </div>
- <div className={classes.cardContainer}>
- <ProductCategoryAndCollectionsForm
- category={data.category}
- categories={
- categories !== undefined && categories !== null
- ? categories.map(category => ({
- label: category.name,
- value: category.id
- }))
- : []
- }
- errors={errors}
- productCollections={data.collections}
- collections={
- collections !== undefined && collections !== null
- ? collections.map(collection => ({
- label: collection.name,
- value: collection.id
- }))
- : []
- }
- loading={disabled}
- onChange={change}
- />
- </div>
- <div className={classes.cardContainer}>
- <ProductAttributesForm
- attributes={product ? product.attributes : undefined}
- data={data}
- disabled={disabled}
- onChange={change}
- />
- </div>
- </div>
- </div>
- <SaveButtonBar
- onSave={submit}
- state={saveButtonBarState}
- disabled={disabled || !onSubmit || !hasChanged}
- />
- </Container>
+ </Container>
+ )}
+ </Form>
)}
- </Form>
+ </Toggle>
);
}
);
diff --git a/saleor/static/dashboard-next/products/components/ProductVariants/ProductVariants.tsx b/saleor/static/dashboard-next/products/components/ProductVariants/ProductVariants.tsx
index 36bb44fe2b..7560ece025 100644
--- a/saleor/static/dashboard-next/products/components/ProductVariants/ProductVariants.tsx
+++ b/saleor/static/dashboard-next/products/components/ProductVariants/ProductVariants.tsx
@@ -1,28 +1,25 @@
+import Button from "@material-ui/core/Button";
import Card from "@material-ui/core/Card";
+import CardContent from "@material-ui/core/CardContent";
import blue from "@material-ui/core/colors/blue";
import green from "@material-ui/core/colors/green";
import red from "@material-ui/core/colors/red";
import Hidden from "@material-ui/core/Hidden";
-import IconButton from "@material-ui/core/IconButton";
import { withStyles } from "@material-ui/core/styles";
import Table from "@material-ui/core/Table";
import TableBody from "@material-ui/core/TableBody";
import TableCell from "@material-ui/core/TableCell";
import TableHead from "@material-ui/core/TableHead";
import TableRow from "@material-ui/core/TableRow";
-import AddIcon from "@material-ui/icons/Add";
+import Typography from "@material-ui/core/Typography";
import * as React from "react";
+import { MoneyType } from "../..";
+import CardTitle from "../../../components/CardTitle";
import Money from "../../../components/Money";
-import PageHeader from "../../../components/PageHeader";
import Skeleton from "../../../components/Skeleton";
import i18n from "../../../i18n";
-
-interface MoneyType {
- amount: number;
- currency: string;
- localized: string;
-}
+import StatusLabel from "../../../components/StatusLabel";
interface ProductVariantsProps {
disabled?: boolean;
@@ -35,6 +32,7 @@ interface ProductVariantsProps {
margin: number;
}>;
fallbackPrice?: MoneyType;
+ onAttributesEdit: () => void;
onRowClick?(id: string);
onVariantAdd?();
}
@@ -48,25 +46,19 @@ const decorate = withStyles(theme => {
width: theme.spacing.unit
};
return {
- alignRightText: {
- textAlign: "right" as "right"
- },
denseTable: {
"& td, & th": {
paddingRight: theme.spacing.unit * 3
}
},
- greenDot: {
- ...dot,
- backgroundColor: green[500]
- },
link: {
- color: blue[500],
cursor: "pointer"
},
- redDot: {
- ...dot,
- backgroundColor: red[500]
+ textLeft: {
+ textAlign: "left" as "left"
+ },
+ textRight: {
+ textAlign: "right" as "right"
}
};
});
@@ -74,101 +66,111 @@ const decorate = withStyles(theme => {
export const ProductVariants = decorate<ProductVariantsProps>(
({
classes,
- disabled,
variants,
fallbackPrice,
+ onAttributesEdit,
onRowClick,
onVariantAdd
}) => (
- <Card>
- <PageHeader title={i18n.t("Variants")}>
- {!!onVariantAdd && (
- <IconButton disabled={disabled} onClick={onVariantAdd}>
- <AddIcon />
- </IconButton>
+ <Card>
+ <CardTitle
+ title={i18n.t("Variants")}
+ toolbar={
+ <>
+ <Button onClick={onAttributesEdit} variant="flat" color="secondary">
+ {i18n.t("Edit attributes")}
+ </Button>
+ <Button onClick={onVariantAdd} variant="flat" color="secondary">
+ {i18n.t("Add variant")}
+ </Button>
+ </>
+ }
+ />
+ <CardContent>
+ <Typography>
+ {i18n.t(
+ "Use variants for products that come in a variety of version for example different sizes or colors"
)}
- </PageHeader>
- <Table className={classes.denseTable}>
- <TableHead>
+ </Typography>
+ </CardContent>
+ <Table className={classes.denseTable}>
+ <TableHead>
+ <TableRow>
+ <TableCell className={classes.textLeft}>{i18n.t("Name")}</TableCell>
+ <TableCell>{i18n.t("Status")}</TableCell>
+ <TableCell>{i18n.t("SKU")}</TableCell>
+ <Hidden smDown>
+ <TableCell className={classes.textRight}>
+ {i18n.t("Price")}
+ </TableCell>
+ </Hidden>
+ </TableRow>
+ </TableHead>
+ <TableBody>
+ {variants === undefined ||
+ variants === null ||
+ fallbackPrice === undefined ? (
<TableRow>
+ <TableCell>
+ <Skeleton />
+ </TableCell>
+ <TableCell>
+ <Skeleton />
+ </TableCell>
+ <TableCell>
+ <Skeleton />
+ </TableCell>
<Hidden smDown>
- <TableCell>{i18n.t("SKU")}</TableCell>
- </Hidden>
- <TableCell>{i18n.t("Name")}</TableCell>
- <TableCell>{i18n.t("Status")}</TableCell>
- <Hidden smDown>
- <TableCell className={classes.alignRightText}>
- {i18n.t("Price")}
+ <TableCell className={classes.textRight}>
+ <Skeleton />
</TableCell>
</Hidden>
</TableRow>
- </TableHead>
- <TableBody>
- {variants === undefined || variants === null || fallbackPrice === undefined ? (
- <TableRow>
- <Hidden smDown>
- <TableCell>
- <Skeleton />
+ ) : variants.length > 0 ? (
+ variants.map(variant => {
+ const price = variant.priceOverride || fallbackPrice;
+ return (
+ <TableRow key={variant.id}>
+ <TableCell
+ className={[classes.textLeft, classes.link].join(" ")}
+ onClick={() => {
+ if (onRowClick) {
+ onRowClick(variant.id);
+ }
+ }}
+ >
+ {variant.name}
</TableCell>
- </Hidden>
- <TableCell>
- <Skeleton />
- </TableCell>
- <TableCell>
- <Skeleton />
- </TableCell>
- <Hidden smDown>
- <TableCell className={classes.alignRightText}>
- <Skeleton />
+ <TableCell>
+ <StatusLabel
+ status={variant.stockQuantity > 0 ? "success" : "error"}
+ label={
+ variant.stockQuantity > 0
+ ? i18n.t("Available")
+ : i18n.t("Unavailable")
+ }
+ />
</TableCell>
- </Hidden>
- </TableRow>
- ) : variants.length > 0 ? (
- variants.map(variant => {
- const price = variant.priceOverride || fallbackPrice;
- return (
- <TableRow key={variant.id}>
- <Hidden smDown>
- <TableCell>{variant.sku}</TableCell>
- </Hidden>
- <TableCell className={
- onRowClick ? classes.link : ""}
- onClick={() => {
- if (onRowClick) {
- onRowClick(variant.id);
- }
- }}>
- {variant.name}
+ <TableCell>{variant.sku}</TableCell>
+ <Hidden smDown>
+ <TableCell className={classes.textRight}>
+ <Money amount={price.amount} currency={price.currency} />
</TableCell>
- <TableCell>
- <span
- className={
- variant.stockQuantity > 0 ? classes.greenDot : classes.redDot
- }
- />
- {variant.stockQuantity > 0
- ? i18n.t("Available")
- : i18n.t("Unavailable")}
- </TableCell>
- <Hidden smDown>
- <TableCell className={classes.alignRightText}>
- <Money amount={price.amount} currency={price.currency} />
- </TableCell>
- </Hidden>
- </TableRow>
- )
- })
- ) : (
- <TableRow>
- <TableCell colSpan={2}>
- {i18n.t("This product has no variants")}
- </TableCell>
- </TableRow>
- )}
- </TableBody>
- </Table>
- </Card>
- )
+ </Hidden>
+ </TableRow>
+ );
+ })
+ ) : (
+ <TableRow>
+ <TableCell colSpan={2}>
+ {i18n.t("This product has no variants")}
+ </TableCell>
+ </TableRow>
+ )}
+ </TableBody>
+ </Table>
+ </Card>
+ )
);
ProductVariants.displayName = "ProductVariants";
export default ProductVariants;
diff --git a/saleor/static/dashboard-next/products/fixtures.ts b/saleor/static/dashboard-next/products/fixtures.ts
index 700f586147..9a9ca4a466 100644
--- a/saleor/static/dashboard-next/products/fixtures.ts
+++ b/saleor/static/dashboard-next/products/fixtures.ts
@@ -2,7 +2,7 @@ export const product = (placeholderImage: string) => ({
id: "p10171",
seoTitle: "Ergonomic Plastic Bacon",
seoDescription: "Omnis rerum ea. Fugit dignissimos modi est rerum",
- productType: { id: "pt76406", name: "Versatile" },
+ productType: { id: "pt76406", name: "Versatile", hasVariants: true },
name: "Ergonomic Plastic Bacon",
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.",
@@ -96,6 +96,7 @@ export const product = (placeholderImage: string) => ({
id: "UHJvZHVjdEltYWdlOjE=",
sortOrder: 0,
image: placeholderImage,
+ alt: "Id sit dolores adipisci",
url: placeholderImage
}
},
@@ -107,6 +108,33 @@ export const product = (placeholderImage: string) => ({
alt: "Id sit dolores adipisci",
url: placeholderImage
}
+ },
+ {
+ node: {
+ id: "UHJvZHVjdEltYWdlOjV=",
+ sortOrder: 1,
+ image: placeholderImage,
+ alt: "Id sit dolores adipisci",
+ url: placeholderImage
+ }
+ },
+ {
+ node: {
+ id: "UHJvZHVjdEltYWdlOjX=",
+ sortOrder: 3,
+ image: placeholderImage,
+ alt: "Id sit dolores adipisci",
+ url: placeholderImage
+ }
+ },
+ {
+ node: {
+ id: "UHJvZHVjdElnYWdlOjX=",
+ sortOrder: 4,
+ image: placeholderImage,
+ alt: "Id sit dolores adipisci",
+ url: placeholderImage
+ }
}
]
},
@@ -120,43 +148,264 @@ export const product = (placeholderImage: string) => ({
});
export const products = (placeholderImage: string) => [
{
- id: "UHJvZHVjdDox",
- name: "Gardner, Graham and King",
+ id: "p8962",
+ seoTitle: "Tasty Frozen Tuna",
+ seoDescription:
+ "Laudantium neque fugit soluta id necessitatibus. Quisquam ab eligendi est natus ad ut aut aut ut",
+ productType: { id: "pt14814", name: "systemic" },
+ name: "Tasty Frozen Tuna",
+ description:
+ "Laudantium neque fugit soluta id necessitatibus. Quisquam ab eligendi est natus ad ut aut aut ut. Eum autem ad sit. Et quam ex eveniet laudantium cumque. Non molestiae aliquam. Nihil veritatis vel est harum similique nulla. Sit architecto eum nulla distinctio qui laborum ratione beatae eveniet. Ut cumque veniam voluptatem.",
+ sku: "14452-74418",
+ category: { id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },
+ collections: {
+ edges: [{ node: { id: "Q29sbGVjdGlvbjoy", name: "Winter sale" } }]
+ },
+ price: { currency: "PYG", amount: 594.8386292058427 },
+ availableOn: "2019-06-02T20:11:01.736Z",
+ isPublished: true,
+ isFeatured: false,
thumbnailUrl: placeholderImage,
- productType: {
- id: "1",
- name: "T-Shirt"
- }
+ availability: { available: true },
+ purchaseCost: {
+ start: { currency: "PYG", amount: 594.8386292058427 },
+ stop: { currency: "PYG", amount: 4758.709033646742 }
+ },
+ margin: { start: 0, stop: 18 }
},
{
- id: "UHJvZHVjdDoy",
- name: "Gardner, Graham and King",
+ id: "p45538",
+ seoTitle: "Incredible Rubber Computer",
+ seoDescription:
+ "Eius in aut non nemo occaecati quidem itaque ut. Unde rem at assumenda vitae",
+ productType: { id: "pt61700", name: "Villages" },
+ name: "Incredible Rubber Computer",
+ description:
+ "Eius in aut non nemo occaecati quidem itaque ut. Unde rem at assumenda vitae. Totam molestiae accusantium reiciendis quis. Pariatur nulla consectetur enim perferendis doloribus dolor sit. Laboriosam sequi architecto ut magni dicta beatae expedita est aspernatur. Optio cupiditate qui natus sapiente. Labore qui quia amet. Esse sit cumque vitae deserunt maxime ut dolores expedita at.",
+ sku: "164-29450",
+ category: { id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },
+ collections: {
+ edges: [{ node: { id: "Q29sbGVjdGlvbjoy", name: "Winter sale" } }]
+ },
+ price: { currency: "GMD", amount: 432.0762639076603 },
+ availableOn: "2018-07-15T17:06:09.078Z",
+ isPublished: true,
+ isFeatured: true,
thumbnailUrl: placeholderImage,
- productType: {
- id: "1",
- name: "T-Shirt"
- }
+ availability: { available: true },
+ purchaseCost: {
+ start: { currency: "GMD", amount: 432.0762639076603 },
+ stop: { currency: "GMD", amount: 5184.915166891924 }
+ },
+ margin: { start: 0, stop: 12 }
},
{
- id: "UHJvZHVjdDoz",
- name: "Gardner, Graham and King",
+ id: "p88323",
+ seoTitle: "Incredible Granite Cheese",
+ seoDescription:
+ "Commodi ut quasi sit eos totam. Accusamus officia dicta libero exercitationem veritatis suscipit laborum exercitationem",
+ productType: { id: "pt6621", name: "efficient" },
+ name: "Intelligent Frozen Soap",
+ description:
+ "Commodi ut quasi sit eos totam. Accusamus officia dicta libero exercitationem veritatis suscipit laborum exercitationem. Fuga temporibus ut ex. Qui sapiente dicta dignissimos sed esse officiis. Atque corporis ut consequatur tempora debitis in quisquam. Eaque ea non saepe ex sunt voluptas. Nobis sunt quibusdam amet ab adipisci aliquam ut. Et et ullam maiores dolorem quod.",
+ sku: "13271-89128",
+ category: { id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },
+ collections: {
+ edges: [{ node: { id: "Q29sbGVjdGlvbjoy", name: "Winter sale" } }]
+ },
+ price: { currency: "WST", amount: 73.74387485211398 },
+ availableOn: null,
+ isPublished: true,
+ isFeatured: false,
thumbnailUrl: placeholderImage,
- productType: {
- id: "1",
- name: "T-Shirt"
- }
+ availability: { available: false },
+ purchaseCost: {
+ start: { currency: "WST", amount: 73.74387485211398 },
+ stop: { currency: "WST", amount: 1106.1581227817096 }
+ },
+ margin: { start: 4, stop: 15 }
+ },
+ {
+ id: "p16920",
+ seoTitle: "Awesome Steel Bike",
+ seoDescription:
+ "Reprehenderit voluptas voluptas similique corporis consequatur sit aliquid. Tempora dolore incidunt",
+ productType: { id: "pt67428", name: "Buckinghamshire" },
+ name: "Rustic Plastic Chips",
+ description:
+ "Reprehenderit voluptas voluptas similique corporis consequatur sit aliquid. Tempora dolore incidunt. Dolores dolorem eligendi eaque architecto nihil eum ipsum dignissimos. Et debitis illum voluptates suscipit. Cumque ea provident reiciendis laborum ex. Tempore et aperiam similique aut libero minus. Sapiente vel ab saepe. Atque autem qui quia.",
+ sku: "79869-73192",
+ category: { id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },
+ collections: {
+ edges: [{ node: { id: "Q29sbGVjdGlvbjoy", name: "Winter sale" } }]
+ },
+ price: { currency: "MWK", amount: 27.680515246832684 },
+ availableOn: "2019-03-18T23:15:37.743Z",
+ isPublished: false,
+ isFeatured: true,
+ thumbnailUrl: placeholderImage,
+ availability: { available: true },
+ purchaseCost: {
+ start: { currency: "MWK", amount: 27.680515246832684 },
+ stop: { currency: "MWK", amount: 27.680515246832684 }
+ },
+ margin: { start: 11, stop: 11 }
},
{
- id: "UHJvZHVjdDoa",
- name: "Gardner, Graham and King",
+ id: "p3504",
+ seoTitle: "Awesome Fresh Chicken",
+ seoDescription:
+ "Officia quo at dolore. Eum explicabo provident vitae veniam provident in et ullam",
+ productType: { id: "pt58167", name: "Future" },
+ name: "Awesome Fresh Chicken",
+ description:
+ "Officia quo at dolore. Eum explicabo provident vitae veniam provident in et ullam. Maiores ea qui dolorem consequatur. Dolorum dolores cupiditate voluptatem ullam provident natus. At unde laboriosam sit est voluptatem deserunt. Quis id non. Eos ratione autem magnam et aspernatur mollitia. Laboriosam nemo nisi neque rerum dolores repellendus est facere sed.",
+ sku: "27988-70258",
+ category: { id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },
+ collections: {
+ edges: [{ node: { id: "Q29sbGVjdGlvbjoy", name: "Winter sale" } }]
+ },
+ price: { currency: "WST", amount: 440.78617956961864 },
+ availableOn: "2019-01-13T04:51:05.544Z",
+ isPublished: true,
+ isFeatured: false,
thumbnailUrl: placeholderImage,
- productType: {
- id: "1",
- name: "T-Shirt"
- }
+ availability: { available: false },
+ purchaseCost: {
+ start: { currency: "WST", amount: 440.78617956961864 },
+ stop: { currency: "WST", amount: 440.78617956961864 }
+ },
+ margin: { start: 1, stop: 2 }
+ },
+ {
+ id: "p78785",
+ seoTitle: "Refined Frozen Chicken",
+ seoDescription:
+ "Eligendi eos est suscipit sit et est maxime reprehenderit. Sunt mollitia nam",
+ productType: { id: "pt63903", name: "dot-com" },
+ name: "Refined Frozen Chicken",
+ description:
+ "Eligendi eos est suscipit sit et est maxime reprehenderit. Sunt mollitia nam. Est aut sint explicabo expedita veritatis tenetur necessitatibus repellendus ullam. Quibusdam facilis aut velit. Quasi sit repellendus molestiae id ea. Tempora officiis iusto eius. Quo non deserunt. Officiis est rem qui quidem.",
+ sku: "29525-85853",
+ category: { id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },
+ collections: {
+ edges: [{ node: { id: "Q29sbGVjdGlvbjoy", name: "Winter sale" } }]
+ },
+ price: { currency: "HRK", amount: 398.95608634234446 },
+ availableOn: null,
+ isPublished: false,
+ isFeatured: false,
+ thumbnailUrl: placeholderImage,
+ availability: { available: false },
+ purchaseCost: {
+ start: { currency: "HRK", amount: 398.95608634234446 },
+ stop: { currency: "HRK", amount: 7580.165640504545 }
+ },
+ margin: { start: 6, stop: 19 }
+ },
+ {
+ id: "p97599",
+ seoTitle: "Practical Concrete Fish",
+ seoDescription: "repellat atque vel est laborum",
+ productType: { id: "pt71534", name: "Public-key" },
+ name: "Practical Concrete Fish",
+ description:
+ "Rerum sint illum nostrum. Nihil quo doloremque. Dignissimos eaque quis consequatur at non ut quisquam occaecati. Aliquam vitae non. Minus dolor necessitatibus dolor voluptatem minus sed. Delectus est dolorem aut non. Deserunt ut aut officia vero earum. Ut atque aut sed ex est rem earum dolorum nisi.",
+ sku: "51953-6352",
+ category: { id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },
+ collections: {
+ edges: [{ node: { id: "Q29sbGVjdGlvbjoy", name: "Winter sale" } }]
+ },
+ price: { currency: "HUF", amount: 959.3147046235539 },
+ availableOn: "2018-08-30T19:50:01.717Z",
+ isPublished: false,
+ isFeatured: true,
+ thumbnailUrl: placeholderImage,
+ availability: { available: false },
+ purchaseCost: {
+ start: { currency: "HUF", amount: 959.3147046235539 },
+ stop: { currency: "HUF", amount: 8633.832341611986 }
+ },
+ margin: { start: 4, stop: 10 }
+ },
+ {
+ id: "p53373",
+ seoTitle: "Licensed Steel Ball",
+ seoDescription: "qui voluptas totam voluptates occaecati",
+ productType: { id: "pt45711", name: "payment" },
+ name: "Licensed Steel Ball",
+ description:
+ "In harum illo quis cum vitae. Doloribus a eos consequatur blanditiis dolorem. Distinctio tempore velit perferendis itaque totam voluptatem asperiores nulla. Quia explicabo temporibus dolor aut. Facere tempora dolorem natus quia id odit earum. Itaque quas quaerat voluptatibus rem temporibus laboriosam est quaerat quam. Ut sunt voluptatem necessitatibus doloribus laborum qui consectetur qui. Soluta neque neque illum dolores.",
+ sku: "50314-99649",
+ category: { id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },
+ collections: {
+ edges: [{ node: { id: "Q29sbGVjdGlvbjoy", name: "Winter sale" } }]
+ },
+ price: { currency: "PKR", amount: 592.705652301113 },
+ availableOn: "2019-04-30T21:18:11.283Z",
+ isPublished: true,
+ isFeatured: false,
+ thumbnailUrl: placeholderImage,
+ availability: { available: false },
+ purchaseCost: {
+ start: { currency: "PKR", amount: 592.705652301113 },
+ stop: { currency: "PKR", amount: 6519.762175312243 }
+ },
+ margin: { start: 0, stop: 18 }
+ },
+ {
+ id: "p91227",
+ seoTitle: "Sleek Wooden Pants",
+ seoDescription:
+ "Aut nesciunt et eligendi velit explicabo. Minima culpa ut itaque et dolorem ipsam",
+ productType: { id: "pt33345", name: "Music" },
+ name: "Sleek Wooden Pants",
+ description:
+ "Aut nesciunt et eligendi velit explicabo. Minima culpa ut itaque et dolorem ipsam. Dignissimos eius nesciunt. Consequuntur ut repellendus sit eum sed error. Dolores quisquam veniam sed fuga sit. Voluptatibus consequuntur perspiciatis sit magni. In quis consequatur dolores. Cupiditate ut molestiae perferendis odio voluptas soluta voluptate totam iure.",
+ sku: "61364-62701",
+ category: { id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },
+ collections: {
+ edges: [{ node: { id: "Q29sbGVjdGlvbjoy", name: "Winter sale" } }]
+ },
+ price: { currency: "SHP", amount: 62.009036363396945 },
+ availableOn: null,
+ isPublished: false,
+ isFeatured: false,
+ thumbnailUrl: placeholderImage,
+ availability: { available: false },
+ purchaseCost: {
+ start: { currency: "SHP", amount: 62.009036363396945 },
+ stop: { currency: "SHP", amount: 1178.171690904542 }
+ },
+ margin: { start: 8, stop: 19 }
+ },
+ {
+ id: "p91840",
+ seoTitle: "Practical Steel Shirt",
+ seoDescription:
+ "Sed dignissimos cupiditate omnis qui et incidunt sit animi. Temporibus corrupti dolores ut optio",
+ productType: { id: "pt28869", name: "International" },
+ name: "Practical Steel Shirt",
+ description:
+ "Sed dignissimos cupiditate omnis qui et incidunt sit animi. Temporibus corrupti dolores ut optio. Qui ipsam excepturi. Cumque optio vel quis. Quod ullam excepturi corporis rerum facilis. Fugit fugit cupiditate in ut ut optio quam voluptatum. Ut at impedit molestiae. Optio qui sint sit a possimus nesciunt.",
+ sku: "90190-34416",
+ category: { id: "Q2F0ZWdvcnk6MQ==", name: "Apparel" },
+ collections: {
+ edges: [{ node: { id: "Q29sbGVjdGlvbjoy", name: "Winter sale" } }]
+ },
+ price: { currency: "UZS", amount: 196.94669248277873 },
+ availableOn: null,
+ isPublished: false,
+ isFeatured: false,
+ thumbnailUrl: placeholderImage,
+ availability: { available: false },
+ purchaseCost: {
+ start: { currency: "UZS", amount: 196.94669248277873 },
+ stop: { currency: "UZS", amount: 2363.3603097933446 }
+ },
+ margin: { start: 4, stop: 12 }
}
];
-
export const variant = (placeholderImage: string) => ({
attributes: [
{
diff --git a/saleor/static/dashboard-next/products/index.tsx b/saleor/static/dashboard-next/products/index.tsx
index 0236cca7a6..8970f95b4b 100644
--- a/saleor/static/dashboard-next/products/index.tsx
+++ b/saleor/static/dashboard-next/products/index.tsx
@@ -80,7 +80,6 @@ export interface AttributeValueType {
export interface MoneyType {
amount: number;
currency: string;
- localized: string;
}
export interface ProductImageType {
diff --git a/saleor/static/dashboard-next/products/queries.ts b/saleor/static/dashboard-next/products/queries.ts
index fc70fd4dfd..06bec024e7 100644
--- a/saleor/static/dashboard-next/products/queries.ts
+++ b/saleor/static/dashboard-next/products/queries.ts
@@ -12,7 +12,6 @@ export const fragmentMoney = gql`
fragment Money on Money {
amount
currency
- localized
}
`;
@@ -120,6 +119,7 @@ export const fragmentProduct = gql`
productType {
id
name
+ hasVariants
}
url
}
@@ -193,6 +193,7 @@ export const TypedProductListQuery = Query as React.ComponentType<
>;
export const productListQuery = gql`
+ ${fragmentMoney}
query ProductList($first: Int, $after: String, $last: Int, $before: String) {
products(before: $before, after: $after, first: $first, last: $last) {
edges {
@@ -200,6 +201,12 @@ export const productListQuery = gql`
id
name
thumbnailUrl
+ availability {
+ available
+ }
+ price {
+ ...Money
+ }
productType {
id
name
diff --git a/saleor/static/dashboard-next/products/views/ProductList.tsx b/saleor/static/dashboard-next/products/views/ProductList.tsx
index 5b0be8731a..0e2ca39174 100644
--- a/saleor/static/dashboard-next/products/views/ProductList.tsx
+++ b/saleor/static/dashboard-next/products/views/ProductList.tsx
@@ -1,6 +1,6 @@
-import { withStyles } from "@material-ui/core/styles";
import * as React from "react";
+import { withStyles } from "@material-ui/core/styles";
import { productAddUrl, productListUrl, productUrl } from "..";
import ErrorMessageCard from "../../components/ErrorMessageCard";
import Navigator from "../../components/Navigator";
diff --git a/saleor/static/dashboard-next/products/views/ProductUpdate.tsx b/saleor/static/dashboard-next/products/views/ProductUpdate.tsx
index ce7c65fc92..270f501f54 100644
--- a/saleor/static/dashboard-next/products/views/ProductUpdate.tsx
+++ b/saleor/static/dashboard-next/products/views/ProductUpdate.tsx
@@ -3,6 +3,7 @@ import { arrayMove } from "react-sortable-hoc";
import { ApolloError } from "apollo-client";
import * as placeholderImg from "../../../images/placeholder255x255.png";
+import { attributesListUrl } from "../../attributes";
import { categoryShowUrl } from "../../categories";
import ErrorMessageCard from "../../components/ErrorMessageCard";
import Messages from "../../components/messages";
@@ -108,6 +109,7 @@ export const ProductUpdate: React.StatelessComponent<ProductUpdateProps> = ({
? product.variants.edges.map(edge => edge.node)
: undefined
}
+ onAttributesEdit={() => navigate(attributesListUrl)}
onBack={() => {
navigate(productListUrl);
}}
diff --git a/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap b/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap
index 9b3c73a2eb..2488dc83a9 100644
--- a/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap
+++ b/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap
@@ -13157,13 +13157,13 @@ Tell lose part purpose do when. Whatever drug contain particularly defense.
<span
class="Component-link-id"
>
- Gardner, Graham and King
+ Tasty Frozen Tuna
</span>
</td>
<td
class="MuiTableCell-root-id MuiTableCell-body-id"
>
- T-Shirt
+ systemic
</td>
</tr>
<tr
@@ -13187,13 +13187,13 @@ Tell lose part purpose do when. Whatever drug contain particularly defense.
<span
class="Component-link-id"
>
- Gardner, Graham and King
+ Incredible Rubber Computer
</span>
</td>
<td
class="MuiTableCell-root-id MuiTableCell-body-id"
>
- T-Shirt
+ Villages
</td>
</tr>
<tr
@@ -13217,13 +13217,13 @@ Tell lose part purpose do when. Whatever drug contain particularly defense.
<span
class="Component-link-id"
>
- Gardner, Graham and King
+ Intelligent Frozen Soap
</span>
</td>
<td
class="MuiTableCell-root-id MuiTableCell-body-id"
>
- T-Shirt
+ efficient
</td>
</tr>
<tr
@@ -13247,13 +13247,193 @@ Tell lose part purpose do when. Whatever drug contain particularly defense.
<span
class="Component-link-id"
>
- Gardner, Graham and King
+ Rustic Plastic Chips
</span>
</td>
<td
class="MuiTableCell-root-id MuiTableCell-body-id"
>
- T-Shirt
+ Buckinghamshire
+ </td>
+ </tr>
+ <tr
+ class="MuiTableRow-root-id"
+ >
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-root-id"
+ >
+ <div
+ class="MuiAvatar-root-id Component-avatar-id"
+ >
+ <img
+ class="MuiAvatar-img-id"
+ src="placeholder60x60.png"
+ />
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-textLeft-id"
+ >
+ <span
+ class="Component-link-id"
+ >
+ Awesome Fresh Chicken
+ </span>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ Future
+ </td>
+ </tr>
+ <tr
+ class="MuiTableRow-root-id"
+ >
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-root-id"
+ >
+ <div
+ class="MuiAvatar-root-id Component-avatar-id"
+ >
+ <img
+ class="MuiAvatar-img-id"
+ src="placeholder60x60.png"
+ />
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-textLeft-id"
+ >
+ <span
+ class="Component-link-id"
+ >
+ Refined Frozen Chicken
+ </span>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ dot-com
+ </td>
+ </tr>
+ <tr
+ class="MuiTableRow-root-id"
+ >
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-root-id"
+ >
+ <div
+ class="MuiAvatar-root-id Component-avatar-id"
+ >
+ <img
+ class="MuiAvatar-img-id"
+ src="placeholder60x60.png"
+ />
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-textLeft-id"
+ >
+ <span
+ class="Component-link-id"
+ >
+ Practical Concrete Fish
+ </span>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ Public-key
+ </td>
+ </tr>
+ <tr
+ class="MuiTableRow-root-id"
+ >
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-root-id"
+ >
+ <div
+ class="MuiAvatar-root-id Component-avatar-id"
+ >
+ <img
+ class="MuiAvatar-img-id"
+ src="placeholder60x60.png"
+ />
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-textLeft-id"
+ >
+ <span
+ class="Component-link-id"
+ >
+ Licensed Steel Ball
+ </span>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ payment
+ </td>
+ </tr>
+ <tr
+ class="MuiTableRow-root-id"
+ >
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-root-id"
+ >
+ <div
+ class="MuiAvatar-root-id Component-avatar-id"
+ >
+ <img
+ class="MuiAvatar-img-id"
+ src="placeholder60x60.png"
+ />
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-textLeft-id"
+ >
+ <span
+ class="Component-link-id"
+ >
+ Sleek Wooden Pants
+ </span>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ Music
+ </td>
+ </tr>
+ <tr
+ class="MuiTableRow-root-id"
+ >
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-root-id"
+ >
+ <div
+ class="MuiAvatar-root-id Component-avatar-id"
+ >
+ <img
+ class="MuiAvatar-img-id"
+ src="placeholder60x60.png"
+ />
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-textLeft-id"
+ >
+ <span
+ class="Component-link-id"
+ >
+ Practical Steel Shirt
+ </span>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ International
</td>
</tr>
</tbody>
@@ -25732,6 +25912,24 @@ exports[`Storyshots Views / Products / Product edit when data is fully loaded 1`
<div
class="MuiPaper-root-id MuiPaper-elevation2-id MuiPaper-rounded-id MuiCard-root-id"
>
+ <div
+ class="Component-root-id"
+ >
+ <aside
+ class="MuiTypography-root-id MuiTypography-body2-id Component-title-id"
+ >
+ General information
+ </aside>
+ <div
+ class="Component-toolbar-id"
+ />
+ </div>
+ <div
+ class="Component-children-id"
+ />
+ <hr
+ class="Component-hr-id"
+ />
<div
class="MuiCardContent-root-id"
>
@@ -25761,39 +25959,6 @@ exports[`Storyshots Views / Products / Product edit when data is fully loaded 1`
/>
</div>
</div>
- <span />
- <div
- class="MuiFormControl-root-id MuiFormControl-fullWidth-id"
- >
- <label
- class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
- data-shrink="true"
- for="price"
- >
- Price
- </label>
- <div
- class="MuiInput-root-id MuiInput-formControl-id MuiInput-underline-id"
- >
- <input
- aria-invalid="false"
- aria-required="false"
- class="MuiInput-input-id MuiInput-inputType-id"
- name="price"
- type="number"
- value="339.39"
- />
- <div
- class="MuiInputAdornment-root-id MuiInputAdornment-positionEnd-id Component-currencySymbol-id"
- >
- <p
- class="MuiTypography-root-id MuiTypography-body1-id MuiTypography-colorTextSecondary-id"
- >
- NZD
- </p>
- </div>
- </div>
- </div>
</div>
<div
class="Component-spacer-id"
@@ -25860,34 +26025,23 @@ exports[`Storyshots Views / Products / Product edit when data is fully loaded 1`
<div
class="Component-root-id"
>
- <h2
- class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"
+ <aside
+ class="MuiTypography-root-id MuiTypography-body2-id Component-title-id"
>
Images
- </h2>
+ </aside>
<div
- class="Component-action-id"
+ class="Component-toolbar-id"
>
<button
- class="MuiButtonBase-root-id MuiIconButton-root-id"
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
tabindex="0"
type="button"
>
<span
- class="MuiIconButton-label-id"
+ class="MuiButton-label-id"
>
- <svg
- aria-hidden="true"
- class="MuiSvgIcon-root-id"
- focusable="false"
- viewBox="0 0 24 24"
- >
- <g>
- <path
- d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"
- />
- </g>
- </svg>
+ Upload image
</span>
<span
class="MuiTouchRipple-root-id"
@@ -25900,6 +26054,12 @@ exports[`Storyshots Views / Products / Product edit when data is fully loaded 1`
/>
</div>
</div>
+ <div
+ class="Component-children-id"
+ />
+ <hr
+ class="Component-hr-id"
+ />
<div
class="MuiCardContent-root-id"
>
@@ -25907,53 +26067,49 @@ exports[`Storyshots Views / Products / Product edit when data is fully loaded 1`
class="Component-root-id"
>
<div
- class="MuiGridListTile-root-id Component-gridElement-id"
+ class="Component-imageContainer-id"
>
- <div
- class="MuiGridListTile-tile-id"
- >
- <img
- src="placeholder255x255.png"
- />
- <div
- class="MuiGridListTileBar-root-id MuiGridListTileBar-titlePositionBottom-id"
- >
- <div
- class="MuiGridListTileBar-titleWrap-id"
- >
- <div
- class="MuiGridListTileBar-title-id"
- >
- No description
- </div>
- </div>
- </div>
- </div>
+ <img
+ alt="Id sit dolores adipisci"
+ class="Component-image-id"
+ src="placeholder255x255.png"
+ />
</div>
<div
- class="MuiGridListTile-root-id Component-gridElement-id"
+ class="Component-imageContainer-id"
>
- <div
- class="MuiGridListTile-tile-id"
- >
- <img
- alt="Id sit dolores adipisci"
- src="placeholder255x255.png"
- />
- <div
- class="MuiGridListTileBar-root-id MuiGridListTileBar-titlePositionBottom-id"
- >
- <div
- class="MuiGridListTileBar-titleWrap-id"
- >
- <div
- class="MuiGridListTileBar-title-id"
- >
- Id sit dolores adipisci
- </div>
- </div>
- </div>
- </div>
+ <img
+ alt="Id sit dolores adipisci"
+ class="Component-image-id"
+ src="placeholder255x255.png"
+ />
+ </div>
+ <div
+ class="Component-imageContainer-id"
+ >
+ <img
+ alt="Id sit dolores adipisci"
+ class="Component-image-id"
+ src="placeholder255x255.png"
+ />
+ </div>
+ <div
+ class="Component-imageContainer-id"
+ >
+ <img
+ alt="Id sit dolores adipisci"
+ class="Component-image-id"
+ src="placeholder255x255.png"
+ />
+ </div>
+ <div
+ class="Component-imageContainer-id"
+ >
+ <img
+ alt="Id sit dolores adipisci"
+ class="Component-image-id"
+ src="placeholder255x255.png"
+ />
</div>
</div>
</div>
@@ -25968,18 +26124,23 @@ exports[`Storyshots Views / Products / Product edit when data is fully loaded 1`
<div
class="Component-root-id"
>
- <h2
- class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"
+ <aside
+ class="MuiTypography-root-id MuiTypography-body2-id Component-title-id"
>
- Variants
- </h2>
+ Pricing
+ </aside>
<div
- class="Component-action-id"
+ class="Component-toolbar-id"
+ />
+ </div>
+ <div
+ class="Component-children-id"
+ >
+ <label
+ class="MuiFormControlLabel-root-id"
>
- <button
- class="MuiButtonBase-root-id MuiIconButton-root-id"
- tabindex="0"
- type="button"
+ <span
+ class="MuiButtonBase-root-id MuiIconButton-root-id MuiSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id"
>
<span
class="MuiIconButton-label-id"
@@ -25990,12 +26151,112 @@ exports[`Storyshots Views / Products / Product edit when data is fully loaded 1`
focusable="false"
viewBox="0 0 24 24"
>
- <g>
- <path
- d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"
- />
- </g>
+ <path
+ d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
+ />
</svg>
+ <input
+ class="MuiSwitchBase-input-id"
+ name="chargeTaxes"
+ type="checkbox"
+ />
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </span>
+ <span
+ class="MuiTypography-root-id MuiTypography-body1-id MuiFormControlLabel-label-id"
+ >
+ Charge taxes for this item
+ </span>
+ </label>
+ </div>
+ <hr
+ class="Component-hr-id"
+ />
+ <div
+ class="MuiCardContent-root-id"
+ >
+ <div
+ class="Component-root-id"
+ >
+ <div
+ class="MuiFormControl-root-id MuiFormControl-fullWidth-id"
+ >
+ <label
+ class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
+ data-shrink="true"
+ for="price"
+ >
+ Price
+ </label>
+ <div
+ class="MuiInput-root-id MuiInput-formControl-id MuiInput-underline-id"
+ >
+ <input
+ aria-invalid="false"
+ aria-required="false"
+ class="MuiInput-input-id MuiInput-inputType-id"
+ name="price"
+ type="number"
+ value="339.39"
+ />
+ <div
+ class="MuiInputAdornment-root-id MuiInputAdornment-positionEnd-id Component-currencySymbol-id"
+ >
+ <p
+ class="MuiTypography-root-id MuiTypography-body1-id MuiTypography-colorTextSecondary-id"
+ >
+ NZD
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div
+ class="Component-cardContainer-id"
+ >
+ <div
+ class="MuiPaper-root-id MuiPaper-elevation2-id MuiPaper-rounded-id MuiCard-root-id"
+ >
+ <div
+ class="Component-root-id"
+ >
+ <aside
+ class="MuiTypography-root-id MuiTypography-body2-id Component-title-id"
+ >
+ Variants
+ </aside>
+ <div
+ class="Component-toolbar-id"
+ >
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Edit attributes
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Add variant
</span>
<span
class="MuiTouchRipple-root-id"
@@ -26003,6 +26264,21 @@ exports[`Storyshots Views / Products / Product edit when data is fully loaded 1`
</button>
</div>
</div>
+ <div
+ class="Component-children-id"
+ />
+ <hr
+ class="Component-hr-id"
+ />
+ <div
+ class="MuiCardContent-root-id"
+ >
+ <p
+ class="MuiTypography-root-id MuiTypography-body1-id"
+ >
+ Use variants for products that come in a variety of version for example different sizes or colors
+ </p>
+ </div>
<table
class="MuiTable-root-id Component-denseTable-id"
>
@@ -26013,7 +26289,7 @@ exports[`Storyshots Views / Products / Product edit when data is fully loaded 1`
class="MuiTableRow-root-id MuiTableRow-head-id"
>
<th
- class="MuiTableCell-root-id MuiTableCell-head-id"
+ class="MuiTableCell-root-id MuiTableCell-head-id Component-textLeft-id"
scope="col"
>
Name
@@ -26024,6 +26300,12 @@ exports[`Storyshots Views / Products / Product edit when data is fully loaded 1`
>
Status
</th>
+ <th
+ class="MuiTableCell-root-id MuiTableCell-head-id"
+ scope="col"
+ >
+ SKU
+ </th>
</tr>
</thead>
<tbody
@@ -26033,34 +26315,52 @@ exports[`Storyshots Views / Products / Product edit when data is fully loaded 1`
class="MuiTableRow-root-id"
>
<td
- class="MuiTableCell-root-id MuiTableCell-body-id Component-link-id"
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-textLeft-id Component-link-id"
>
Cordoba Oro
</td>
<td
class="MuiTableCell-root-id MuiTableCell-body-id"
>
- <span
- class="Component-greenDot-id"
- />
- Available
+ <div
+ class="Component-root-id "
+ >
+ <span
+ class="Component-successDot-id"
+ />
+ Available
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ 87192-94370
</td>
</tr>
<tr
class="MuiTableRow-root-id"
>
<td
- class="MuiTableCell-root-id MuiTableCell-body-id Component-link-id"
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-textLeft-id Component-link-id"
>
silver
</td>
<td
class="MuiTableCell-root-id MuiTableCell-body-id"
>
- <span
- class="Component-greenDot-id"
- />
- Available
+ <div
+ class="Component-root-id "
+ >
+ <span
+ class="Component-successDot-id"
+ />
+ Available
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ 69055-15190
</td>
</tr>
</tbody>
@@ -26108,7 +26408,13 @@ exports[`Storyshots Views / Products / Product edit when data is fully loaded 1`
/>
<div
class="MuiCardContent-root-id"
- />
+ >
+ <p
+ class="MuiTypography-root-id MuiTypography-body1-id"
+ >
+ Add search engine title and description to make this product easier to find
+ </p>
+ </div>
</div>
</div>
</div>
@@ -26119,339 +26425,318 @@ exports[`Storyshots Views / Products / Product edit when data is fully loaded 1`
<div
class="Component-root-id"
>
- <h2
- class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"
+ <aside
+ class="MuiTypography-root-id MuiTypography-body2-id Component-title-id"
>
- Status
- </h2>
+ Organize Product
+ </aside>
<div
- class="Component-action-id"
+ class="Component-toolbar-id"
/>
</div>
+ <div
+ class="Component-children-id"
+ />
+ <hr
+ class="Component-hr-id"
+ />
<div
class="MuiCardContent-root-id"
>
- <div>
- <label
- class="MuiFormControlLabel-root-id"
- >
- <span
- class="MuiButtonBase-root-id MuiIconButton-root-id MuiSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id MuiSwitchBase-checked-id MuiCheckbox-checked-id"
- >
- <span
- class="MuiIconButton-label-id"
- >
- <svg
- aria-hidden="true"
- class="MuiSvgIcon-root-id"
- focusable="false"
- viewBox="0 0 24 24"
- >
- <path
- d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
- />
- </svg>
- <input
- checked=""
- class="MuiSwitchBase-input-id"
- name="available"
- type="checkbox"
- />
- </span>
- <span
- class="MuiTouchRipple-root-id"
- />
- </span>
- <span
- class="MuiTypography-root-id MuiTypography-body1-id MuiFormControlLabel-label-id"
- >
- Published in storefront
- </span>
- </label>
- </div>
<div
- class="MuiFormControl-root-id Component-date-id"
+ class="MuiFormControl-root-id Component-formControl-id"
>
<label
- class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
+ class="MuiFormLabel-root-id MuiFormLabel-disabled-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
data-shrink="true"
>
- Publish product on
+ Product Type
</label>
<div
- class="MuiInput-root-id MuiInput-formControl-id MuiInput-underline-id"
- >
- <input
- aria-invalid="false"
- aria-required="false"
- class="MuiInput-input-id MuiInput-inputType-id"
- name="availableOn"
- type="date"
- value="2018-08-25T18:45:54.125Z"
- />
- </div>
- </div>
- <div>
- <label
- class="MuiFormControlLabel-root-id"
+ class="MuiInput-root-id MuiInput-disabled-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
>
- <span
- class="MuiButtonBase-root-id MuiIconButton-root-id MuiSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id"
+ <div
+ class="MuiSelect-root-id"
>
- <span
- class="MuiIconButton-label-id"
+ <div
+ aria-haspopup="true"
+ aria-pressed="false"
+ class="MuiSelect-select-id MuiSelect-selectMenu-id MuiSelect-disabled-id MuiInput-input-id MuiInput-disabled-id"
+ role="button"
>
- <svg
- aria-hidden="true"
- class="MuiSvgIcon-root-id"
- focusable="false"
- viewBox="0 0 24 24"
- >
- <path
- d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
- />
- </svg>
- <input
- class="MuiSwitchBase-input-id"
- name="featured"
- type="checkbox"
- />
- </span>
- <span
- class="MuiTouchRipple-root-id"
+ Versatile
+ </div>
+ <input
+ aria-invalid="false"
+ aria-required="false"
+ type="hidden"
+ value="1"
/>
- </span>
- <span
- class="MuiTypography-root-id MuiTypography-body1-id MuiFormControlLabel-label-id"
- >
- Feature this product on homepage
- </span>
- </label>
- </div>
- <div>
- <label
- class="MuiFormControlLabel-root-id"
- >
- <span
- class="MuiButtonBase-root-id MuiIconButton-root-id MuiSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id"
- >
- <span
- class="MuiIconButton-label-id"
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id MuiSelect-icon-id"
+ focusable="false"
+ viewBox="0 0 24 24"
>
- <svg
- aria-hidden="true"
- class="MuiSvgIcon-root-id"
- focusable="false"
- viewBox="0 0 24 24"
- >
- <path
- d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
- />
- </svg>
- <input
- class="MuiSwitchBase-input-id"
- name="chargeTaxes"
- type="checkbox"
+ <path
+ d="M7 10l5 5 5-5z"
/>
- </span>
- <span
- class="MuiTouchRipple-root-id"
- />
- </span>
- <span
- class="MuiTypography-root-id MuiTypography-body1-id MuiFormControlLabel-label-id"
- >
- Charge taxes
- </span>
- </label>
+ </svg>
+ </div>
+ </div>
</div>
- </div>
- </div>
- <div
- class="Component-cardContainer-id"
- >
- <div
- class="MuiPaper-root-id MuiPaper-elevation2-id MuiPaper-rounded-id MuiCard-root-id"
- >
<div
- class="Component-root-id"
+ class="Component-spacer-id"
+ />
+ <div
+ class="MuiFormControl-root-id Component-formControl-id"
>
- <h2
- class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"
+ <label
+ class="MuiFormLabel-root-id MuiFormLabel-disabled-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
+ data-shrink="true"
>
- Pricing
- </h2>
+ Is it configurable?
+ </label>
<div
- class="Component-action-id"
- />
- </div>
- <table
- class="MuiTable-root-id Component-root-id"
- >
- <tbody
- class="MuiTableBody-root-id"
+ class="MuiInput-root-id MuiInput-disabled-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
>
- <tr
- class="MuiTableRow-root-id"
- >
- <td
- class="MuiTableCell-root-id MuiTableCell-body-id"
- >
- Purchase cost
- </td>
- <td
- class="MuiTableCell-root-id MuiTableCell-body-id Component-textRight-id"
- >
- <span
- class="MuiTypography-root-id MuiTypography-body1-id"
- style="display:inline"
- >
- NZ$339.39
- </span>
- </td>
- </tr>
- <tr
- class="MuiTableRow-root-id"
+ <div
+ class="MuiSelect-root-id"
>
- <td
- class="MuiTableCell-root-id MuiTableCell-body-id"
+ <div
+ aria-haspopup="true"
+ aria-pressed="false"
+ class="MuiSelect-select-id MuiSelect-selectMenu-id MuiSelect-disabled-id MuiInput-input-id MuiInput-disabled-id"
+ role="button"
>
- Margin
- </td>
- <td
- class="MuiTableCell-root-id MuiTableCell-body-id Component-textRight-id"
+ Yes
+ </div>
+ <input
+ aria-invalid="false"
+ aria-required="false"
+ type="hidden"
+ value="true"
+ />
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id MuiSelect-icon-id"
+ focusable="false"
+ viewBox="0 0 24 24"
>
- 2 % - 7%
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div
- class="Component-cardContainer-id"
- >
- <div
- class="MuiPaper-root-id MuiPaper-elevation2-id MuiPaper-rounded-id MuiCard-root-id"
- >
- <div
- class="Component-root-id"
- >
- <h2
- class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"
- >
- Organisation
- </h2>
- <div
- class="Component-action-id"
- />
+ <path
+ d="M7 10l5 5 5-5z"
+ />
+ </svg>
+ </div>
+ </div>
</div>
+ <p
+ class="MuiTypography-root-id MuiTypography-body1-id Component-cardSubtitle-id"
+ >
+ Attributes
+ </p>
<div
- class="MuiCardContent-root-id"
+ class="MuiFormControl-root-id Component-formControl-id"
>
+ <label
+ class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
+ data-shrink="true"
+ >
+ Borders
+ </label>
<div
- class="MuiFormControl-root-id Component-formControl-id"
+ class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
>
- <label
- class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
- data-shrink="true"
- >
- Category
- </label>
<div
- class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
+ class="MuiSelect-root-id"
>
<div
- class="MuiSelect-root-id"
+ aria-haspopup="true"
+ aria-pressed="false"
+ class="MuiSelect-select-id MuiSelect-selectMenu-id MuiInput-input-id"
+ role="button"
+ tabindex="0"
>
- <div
- aria-haspopup="true"
- aria-pressed="false"
- class="MuiSelect-select-id MuiSelect-selectMenu-id MuiInput-input-id"
- role="button"
- tabindex="0"
- >
- Apparel
- </div>
- <input
- aria-invalid="false"
- aria-required="false"
- name="category"
- type="hidden"
- value="Q2F0ZWdvcnk6MQ=="
- />
- <svg
- aria-hidden="true"
- class="MuiSvgIcon-root-id MuiSelect-icon-id"
- focusable="false"
- viewBox="0 0 24 24"
- >
- <path
- d="M7 10l5 5 5-5z"
- />
- </svg>
+ portals
</div>
+ <input
+ aria-invalid="false"
+ aria-required="false"
+ name="Borders"
+ type="hidden"
+ value="portals"
+ />
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id MuiSelect-icon-id"
+ focusable="false"
+ viewBox="0 0 24 24"
+ >
+ <path
+ d="M7 10l5 5 5-5z"
+ />
+ </svg>
</div>
</div>
+ </div>
+ <div
+ class="Component-spacer-id"
+ />
+ <div
+ class="MuiFormControl-root-id Component-formControl-id"
+ >
+ <label
+ class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
+ data-shrink="true"
+ >
+ Legacy
+ </label>
<div
- class="Component-spacer-id"
- />
- <div
- class="MuiFormControl-root-id Component-formControl-id"
+ class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
>
- <label
- class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
- data-shrink="true"
- >
- Collections
- </label>
<div
- class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
+ class="MuiSelect-root-id"
>
<div
- class="MuiSelect-root-id"
+ aria-haspopup="true"
+ aria-pressed="false"
+ class="MuiSelect-select-id MuiSelect-selectMenu-id MuiInput-input-id"
+ role="button"
+ tabindex="0"
>
- <div
- aria-haspopup="true"
- aria-pressed="false"
- class="MuiSelect-select-id MuiSelect-selectMenu-id MuiInput-input-id"
- role="button"
- tabindex="0"
- >
- <div
- class="Component-chipContainer-id"
- >
- <div
- class="MuiChip-root-id Component-chip-id"
- role="button"
- tabindex="-1"
- >
- <span
- class="MuiChip-label-id"
- >
- Winter sale
- </span>
- </div>
- </div>
- </div>
- <input
- aria-invalid="false"
- aria-required="false"
- name="collections"
- type="hidden"
- value="Q29sbGVjdGlvbjoy"
+ Auto Loan Account
+ </div>
+ <input
+ aria-invalid="false"
+ aria-required="false"
+ name="Legacy"
+ type="hidden"
+ value="Auto-Loan-Account"
+ />
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id MuiSelect-icon-id"
+ focusable="false"
+ viewBox="0 0 24 24"
+ >
+ <path
+ d="M7 10l5 5 5-5z"
/>
- <svg
- aria-hidden="true"
- class="MuiSvgIcon-root-id MuiSelect-icon-id"
- focusable="false"
- viewBox="0 0 24 24"
+ </svg>
+ </div>
+ </div>
+ </div>
+ <div
+ class="Component-spacer-id"
+ />
+ <hr
+ class="Component-hr-id"
+ />
+ <div
+ class="MuiFormControl-root-id Component-formControl-id"
+ >
+ <label
+ class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
+ data-shrink="true"
+ >
+ Category
+ </label>
+ <div
+ class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
+ >
+ <div
+ class="MuiSelect-root-id"
+ >
+ <div
+ aria-haspopup="true"
+ aria-pressed="false"
+ class="MuiSelect-select-id MuiSelect-selectMenu-id MuiInput-input-id"
+ role="button"
+ tabindex="0"
+ >
+ Apparel
+ </div>
+ <input
+ aria-invalid="false"
+ aria-required="false"
+ name="category"
+ type="hidden"
+ value="Q2F0ZWdvcnk6MQ=="
+ />
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id MuiSelect-icon-id"
+ focusable="false"
+ viewBox="0 0 24 24"
+ >
+ <path
+ d="M7 10l5 5 5-5z"
+ />
+ </svg>
+ </div>
+ </div>
+ </div>
+ <div
+ class="Component-spacer-id"
+ />
+ <hr
+ class="Component-hr-id"
+ />
+ <div
+ class="MuiFormControl-root-id Component-formControl-id"
+ >
+ <label
+ class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
+ data-shrink="true"
+ >
+ Collections
+ </label>
+ <div
+ class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
+ >
+ <div
+ class="MuiSelect-root-id"
+ >
+ <div
+ aria-haspopup="true"
+ aria-pressed="false"
+ class="MuiSelect-select-id MuiSelect-selectMenu-id MuiInput-input-id"
+ role="button"
+ tabindex="0"
+ >
+ <div
+ class="Component-chipContainer-id"
>
- <path
- d="M7 10l5 5 5-5z"
- />
- </svg>
+ <div
+ class="MuiChip-root-id Component-chip-id"
+ role="button"
+ tabindex="-1"
+ >
+ <span
+ class="MuiChip-label-id"
+ >
+ Winter sale
+ </span>
+ </div>
+ </div>
</div>
+ <input
+ aria-invalid="false"
+ aria-required="false"
+ name="collections"
+ type="hidden"
+ value="Q29sbGVjdGlvbjoy"
+ />
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id MuiSelect-icon-id"
+ focusable="false"
+ viewBox="0 0 24 24"
+ >
+ <path
+ d="M7 10l5 5 5-5z"
+ />
+ </svg>
</div>
</div>
</div>
@@ -26466,112 +26751,133 @@ exports[`Storyshots Views / Products / Product edit when data is fully loaded 1`
<div
class="Component-root-id"
>
- <h2
- class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"
+ <aside
+ class="MuiTypography-root-id MuiTypography-body2-id Component-title-id"
>
- Attributes
- </h2>
+ Availability
+ </aside>
<div
- class="Component-action-id"
+ class="Component-toolbar-id"
/>
</div>
+ <div
+ class="Component-children-id"
+ />
+ <hr
+ class="Component-hr-id"
+ />
<div
class="MuiCardContent-root-id"
>
<div
- class="MuiFormControl-root-id Component-formControl-id"
+ class="Component-pullUp-id"
>
<label
- class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
- data-shrink="true"
- >
- Borders
- </label>
- <div
- class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
+ class="MuiFormControlLabel-root-id"
>
- <div
- class="MuiSelect-root-id"
+ <span
+ class="MuiSwitch-root-id"
>
- <div
- aria-haspopup="true"
- aria-pressed="false"
- class="MuiSelect-select-id MuiSelect-selectMenu-id MuiInput-input-id"
- role="button"
- tabindex="0"
+ <span
+ class="MuiButtonBase-root-id MuiIconButton-root-id MuiSwitchBase-root-id MuiSwitch-switchBase-id MuiSwitch-colorPrimary-id MuiSwitchBase-checked-id MuiSwitch-checked-id"
>
- portals
- </div>
- <input
- aria-invalid="false"
- aria-required="false"
- name="Borders"
- type="hidden"
- value="portals"
+ <span
+ class="MuiIconButton-label-id"
+ >
+ <span
+ class="MuiSwitch-icon-id MuiSwitch-iconChecked-id"
+ />
+ <input
+ checked=""
+ class="MuiSwitchBase-input-id"
+ name="available"
+ type="checkbox"
+ />
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </span>
+ <span
+ class="MuiSwitch-bar-id"
/>
- <svg
- aria-hidden="true"
- class="MuiSvgIcon-root-id MuiSelect-icon-id"
- focusable="false"
- viewBox="0 0 24 24"
+ </span>
+ <span
+ class="MuiTypography-root-id MuiTypography-body1-id MuiFormControlLabel-label-id"
+ >
+ <div
+ class="Component-label-id"
>
- <path
- d="M7 10l5 5 5-5z"
- />
- </svg>
- </div>
- </div>
+ Published in storefront
+ </div>
+ </span>
+ </label>
</div>
<div
- class="Component-spacer-id"
- />
- <div
- class="MuiFormControl-root-id Component-formControl-id"
+ class="MuiFormControl-root-id MuiFormControl-fullWidth-id Component-date-id"
>
<label
class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
data-shrink="true"
>
- Legacy
+ Publish product on
</label>
<div
class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
>
- <div
- class="MuiSelect-root-id"
+ <input
+ aria-invalid="false"
+ aria-required="false"
+ class="MuiInput-input-id MuiInput-inputType-id"
+ name="availableOn"
+ type="date"
+ value="2018-08-25T18:45:54.125Z"
+ />
+ </div>
+ </div>
+ <div
+ class="Component-pullDown-id"
+ >
+ <label
+ class="MuiFormControlLabel-root-id"
+ >
+ <span
+ class="MuiSwitch-root-id"
>
- <div
- aria-haspopup="true"
- aria-pressed="false"
- class="MuiSelect-select-id MuiSelect-selectMenu-id MuiInput-input-id"
- role="button"
- tabindex="0"
+ <span
+ class="MuiButtonBase-root-id MuiIconButton-root-id MuiSwitchBase-root-id MuiSwitch-switchBase-id MuiSwitch-colorPrimary-id"
>
- Auto Loan Account
- </div>
- <input
- aria-invalid="false"
- aria-required="false"
- name="Legacy"
- type="hidden"
- value="Auto-Loan-Account"
+ <span
+ class="MuiIconButton-label-id"
+ >
+ <span
+ class="MuiSwitch-icon-id"
+ />
+ <input
+ class="MuiSwitchBase-input-id"
+ name="featured"
+ type="checkbox"
+ />
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </span>
+ <span
+ class="MuiSwitch-bar-id"
/>
- <svg
- aria-hidden="true"
- class="MuiSvgIcon-root-id MuiSelect-icon-id"
- focusable="false"
- viewBox="0 0 24 24"
+ </span>
+ <span
+ class="MuiTypography-root-id MuiTypography-body1-id MuiFormControlLabel-label-id"
+ >
+ <div
+ class="Component-label-id"
>
- <path
- d="M7 10l5 5 5-5z"
- />
- </svg>
- </div>
- </div>
+ Feature on Homepage
+ </div>
+ </span>
+ </label>
</div>
- <div
- class="Component-spacer-id"
- />
</div>
</div>
</div>
@@ -26580,6 +26886,20 @@ exports[`Storyshots Views / Products / Product edit when data is fully loaded 1`
<div
class="Component-root-id"
>
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-contained-id MuiButton-raised-id Component-deleteButton-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Remove product
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
<div
class="Component-spacer-id"
/>
@@ -26592,7 +26912,7 @@ exports[`Storyshots Views / Products / Product edit when data is fully loaded 1`
<span
class="MuiButton-label-id"
>
- Save
+ Save product
</span>
</button>
</div>
@@ -26655,10 +26975,28 @@ exports[`Storyshots Views / Products / Product edit when loading data 1`] = `
class="MuiPaper-root-id MuiPaper-elevation2-id MuiPaper-rounded-id MuiCard-root-id"
>
<div
- class="MuiCardContent-root-id"
+ class="Component-root-id"
>
- <div
- class="Component-root-id"
+ <aside
+ class="MuiTypography-root-id MuiTypography-body2-id Component-title-id"
+ >
+ General information
+ </aside>
+ <div
+ class="Component-toolbar-id"
+ />
+ </div>
+ <div
+ class="Component-children-id"
+ />
+ <hr
+ class="Component-hr-id"
+ />
+ <div
+ class="MuiCardContent-root-id"
+ >
+ <div
+ class="Component-root-id"
>
<div
class="MuiFormControl-root-id MuiFormControl-fullWidth-id"
@@ -26667,47 +27005,21 @@ exports[`Storyshots Views / Products / Product edit when loading data 1`] = `
class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id"
data-shrink="false"
>
- Name
- </label>
- <div
- class="MuiInput-root-id MuiInput-disabled-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
- >
- <input
- aria-invalid="false"
- aria-required="false"
- class="MuiInput-input-id MuiInput-disabled-id"
- disabled=""
- name="name"
- rows="5"
- type="text"
- value=""
- />
- </div>
- </div>
- <span />
- <div
- class="MuiFormControl-root-id MuiFormControl-fullWidth-id"
- >
- <label
- class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id"
- data-shrink="false"
- for="price"
- >
- Price
+ Name
</label>
<div
- class="MuiInput-root-id MuiInput-disabled-id MuiInput-formControl-id MuiInput-underline-id"
+ class="MuiInput-root-id MuiInput-disabled-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
>
<input
aria-invalid="false"
aria-required="false"
- class="MuiInput-input-id MuiInput-disabled-id MuiInput-inputType-id"
+ class="MuiInput-input-id MuiInput-disabled-id"
disabled=""
- name="price"
- type="number"
+ name="name"
+ rows="5"
+ type="text"
value=""
/>
- <span />
</div>
</div>
</div>
@@ -26773,34 +27085,23 @@ exports[`Storyshots Views / Products / Product edit when loading data 1`] = `
<div
class="Component-root-id"
>
- <h2
- class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"
+ <aside
+ class="MuiTypography-root-id MuiTypography-body2-id Component-title-id"
>
Images
- </h2>
+ </aside>
<div
- class="Component-action-id"
+ class="Component-toolbar-id"
>
<button
- class="MuiButtonBase-root-id MuiIconButton-root-id"
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
tabindex="0"
type="button"
>
<span
- class="MuiIconButton-label-id"
+ class="MuiButton-label-id"
>
- <svg
- aria-hidden="true"
- class="MuiSvgIcon-root-id"
- focusable="false"
- viewBox="0 0 24 24"
- >
- <g>
- <path
- d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"
- />
- </g>
- </svg>
+ Upload image
</span>
<span
class="MuiTouchRipple-root-id"
@@ -26813,6 +27114,88 @@ exports[`Storyshots Views / Products / Product edit when loading data 1`] = `
/>
</div>
</div>
+ <div
+ class="Component-children-id"
+ />
+ <hr
+ class="Component-hr-id"
+ />
+ <div
+ class="MuiCardContent-root-id"
+ >
+ <div
+ class="Component-root-id"
+ >
+ <div
+ class="Component-imageContainer-id"
+ >
+ <img
+ src="placeholder255x255.png"
+ />
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div
+ class="Component-cardContainer-id"
+ >
+ <div
+ class="MuiPaper-root-id MuiPaper-elevation2-id MuiPaper-rounded-id MuiCard-root-id"
+ >
+ <div
+ class="Component-root-id"
+ >
+ <aside
+ class="MuiTypography-root-id MuiTypography-body2-id Component-title-id"
+ >
+ Pricing
+ </aside>
+ <div
+ class="Component-toolbar-id"
+ />
+ </div>
+ <div
+ class="Component-children-id"
+ >
+ <label
+ class="MuiFormControlLabel-root-id MuiFormControlLabel-disabled-id"
+ >
+ <span
+ class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiIconButton-root-id MuiIconButton-disabled-id MuiSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id MuiSwitchBase-disabled-id MuiCheckbox-disabled-id"
+ tabindex="-1"
+ >
+ <span
+ class="MuiIconButton-label-id"
+ >
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id"
+ focusable="false"
+ viewBox="0 0 24 24"
+ >
+ <path
+ d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
+ />
+ </svg>
+ <input
+ class="MuiSwitchBase-input-id"
+ disabled=""
+ name="chargeTaxes"
+ type="checkbox"
+ />
+ </span>
+ </span>
+ <span
+ class="MuiTypography-root-id MuiTypography-body1-id MuiFormControlLabel-label-id MuiFormControlLabel-disabled-id"
+ >
+ Charge taxes for this item
+ </span>
+ </label>
+ </div>
+ <hr
+ class="Component-hr-id"
+ />
<div
class="MuiCardContent-root-id"
>
@@ -26820,27 +27203,27 @@ exports[`Storyshots Views / Products / Product edit when loading data 1`] = `
class="Component-root-id"
>
<div
- class="MuiGridListTile-root-id Component-gridElement-id"
+ class="MuiFormControl-root-id MuiFormControl-fullWidth-id"
>
+ <label
+ class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id"
+ data-shrink="false"
+ for="price"
+ >
+ Price
+ </label>
<div
- class="MuiGridListTile-tile-id"
+ class="MuiInput-root-id MuiInput-formControl-id MuiInput-underline-id"
>
- <img
- src="placeholder255x255.png"
+ <input
+ aria-invalid="false"
+ aria-required="false"
+ class="MuiInput-input-id MuiInput-inputType-id"
+ name="price"
+ type="number"
+ value=""
/>
- <div
- class="MuiGridListTileBar-root-id MuiGridListTileBar-titlePositionBottom-id"
- >
- <div
- class="MuiGridListTileBar-titleWrap-id"
- >
- <div
- class="MuiGridListTileBar-title-id"
- >
- Loading...
- </div>
- </div>
- </div>
+ <span />
</div>
</div>
</div>
@@ -26856,14 +27239,58 @@ exports[`Storyshots Views / Products / Product edit when loading data 1`] = `
<div
class="Component-root-id"
>
- <h2
- class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"
+ <aside
+ class="MuiTypography-root-id MuiTypography-body2-id Component-title-id"
>
Variants
- </h2>
+ </aside>
<div
- class="Component-action-id"
- />
+ class="Component-toolbar-id"
+ >
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Edit attributes
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Add variant
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ </div>
+ </div>
+ <div
+ class="Component-children-id"
+ />
+ <hr
+ class="Component-hr-id"
+ />
+ <div
+ class="MuiCardContent-root-id"
+ >
+ <p
+ class="MuiTypography-root-id MuiTypography-body1-id"
+ >
+ Use variants for products that come in a variety of version for example different sizes or colors
+ </p>
</div>
<table
class="MuiTable-root-id Component-denseTable-id"
@@ -26875,7 +27302,7 @@ exports[`Storyshots Views / Products / Product edit when loading data 1`] = `
class="MuiTableRow-root-id MuiTableRow-head-id"
>
<th
- class="MuiTableCell-root-id MuiTableCell-head-id"
+ class="MuiTableCell-root-id MuiTableCell-head-id Component-textLeft-id"
scope="col"
>
Name
@@ -26886,6 +27313,12 @@ exports[`Storyshots Views / Products / Product edit when loading data 1`] = `
>
Status
</th>
+ <th
+ class="MuiTableCell-root-id MuiTableCell-head-id"
+ scope="col"
+ >
+ SKU
+ </th>
</tr>
</thead>
<tbody
@@ -26912,6 +27345,15 @@ exports[`Storyshots Views / Products / Product edit when loading data 1`] = `
‌
</span>
</td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ <span
+ class="Skeleton-skeleton-id"
+ >
+ ‌
+ </span>
+ </td>
</tr>
</tbody>
</table>
@@ -26958,7 +27400,13 @@ exports[`Storyshots Views / Products / Product edit when loading data 1`] = `
/>
<div
class="MuiCardContent-root-id"
- />
+ >
+ <p
+ class="MuiTypography-root-id MuiTypography-body1-id"
+ >
+ Add search engine title and description to make this product easier to find
+ </p>
+ </div>
</div>
</div>
</div>
@@ -26969,190 +27417,146 @@ exports[`Storyshots Views / Products / Product edit when loading data 1`] = `
<div
class="Component-root-id"
>
- <h2
- class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"
+ <aside
+ class="MuiTypography-root-id MuiTypography-body2-id Component-title-id"
>
- Status
- </h2>
+ Organize Product
+ </aside>
<div
- class="Component-action-id"
+ class="Component-toolbar-id"
/>
</div>
+ <div
+ class="Component-children-id"
+ />
+ <hr
+ class="Component-hr-id"
+ />
<div
class="MuiCardContent-root-id"
>
- <div>
- <label
- class="MuiFormControlLabel-root-id MuiFormControlLabel-disabled-id"
- >
- <span
- class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiIconButton-root-id MuiIconButton-disabled-id MuiSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id MuiSwitchBase-disabled-id MuiCheckbox-disabled-id"
- tabindex="-1"
- >
- <span
- class="MuiIconButton-label-id"
- >
- <svg
- aria-hidden="true"
- class="MuiSvgIcon-root-id"
- focusable="false"
- viewBox="0 0 24 24"
- >
- <path
- d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
- />
- </svg>
- <input
- class="MuiSwitchBase-input-id"
- disabled=""
- name="available"
- type="checkbox"
- />
- </span>
- </span>
- <span
- class="MuiTypography-root-id MuiTypography-body1-id MuiFormControlLabel-label-id MuiFormControlLabel-disabled-id"
- >
- Published in storefront
- </span>
- </label>
- </div>
- <div>
+ <span
+ class="Skeleton-skeleton-id"
+ >
+ ‌
+ </span>
+ <div
+ class="Component-spacer-id"
+ />
+ <span
+ class="Skeleton-skeleton-id"
+ >
+ ‌
+ </span>
+ <p
+ class="MuiTypography-root-id MuiTypography-body1-id Component-cardSubtitle-id"
+ >
+ Attributes
+ </p>
+ <span
+ class="Skeleton-skeleton-id"
+ >
+ ‌
+ </span>
+ <hr
+ class="Component-hr-id"
+ />
+ <div
+ class="MuiFormControl-root-id Component-formControl-id"
+ >
<label
- class="MuiFormControlLabel-root-id MuiFormControlLabel-disabled-id"
+ class="MuiFormLabel-root-id MuiFormLabel-disabled-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id"
+ data-shrink="false"
>
- <span
- class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiIconButton-root-id MuiIconButton-disabled-id MuiSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id MuiSwitchBase-disabled-id MuiCheckbox-disabled-id"
- tabindex="-1"
- >
- <span
- class="MuiIconButton-label-id"
- >
- <svg
- aria-hidden="true"
- class="MuiSvgIcon-root-id"
- focusable="false"
- viewBox="0 0 24 24"
- >
- <path
- d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
- />
- </svg>
- <input
- class="MuiSwitchBase-input-id"
- disabled=""
- name="featured"
- type="checkbox"
- />
- </span>
- </span>
- <span
- class="MuiTypography-root-id MuiTypography-body1-id MuiFormControlLabel-label-id MuiFormControlLabel-disabled-id"
- >
- Feature this product on homepage
- </span>
+ Category
</label>
- </div>
- <div>
- <label
- class="MuiFormControlLabel-root-id MuiFormControlLabel-disabled-id"
+ <div
+ class="MuiInput-root-id MuiInput-disabled-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
>
- <span
- class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiIconButton-root-id MuiIconButton-disabled-id MuiSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id MuiSwitchBase-disabled-id MuiCheckbox-disabled-id"
- tabindex="-1"
+ <div
+ class="MuiSelect-root-id"
>
- <span
- class="MuiIconButton-label-id"
+ <div
+ aria-haspopup="true"
+ aria-pressed="false"
+ class="MuiSelect-select-id MuiSelect-selectMenu-id MuiSelect-disabled-id MuiInput-input-id MuiInput-disabled-id"
+ role="button"
>
- <svg
- aria-hidden="true"
- class="MuiSvgIcon-root-id"
- focusable="false"
- viewBox="0 0 24 24"
- >
- <path
- d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
- />
- </svg>
- <input
- class="MuiSwitchBase-input-id"
- disabled=""
- name="chargeTaxes"
- type="checkbox"
+ <span>
+ ​
+ </span>
+ </div>
+ <input
+ aria-invalid="false"
+ aria-required="false"
+ name="category"
+ type="hidden"
+ value=""
+ />
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id MuiSelect-icon-id"
+ focusable="false"
+ viewBox="0 0 24 24"
+ >
+ <path
+ d="M7 10l5 5 5-5z"
/>
- </span>
- </span>
- <span
- class="MuiTypography-root-id MuiTypography-body1-id MuiFormControlLabel-label-id MuiFormControlLabel-disabled-id"
- >
- Charge taxes
- </span>
- </label>
+ </svg>
+ </div>
+ </div>
</div>
- </div>
- </div>
- <div
- class="Component-cardContainer-id"
- >
- <div
- class="MuiPaper-root-id MuiPaper-elevation2-id MuiPaper-rounded-id MuiCard-root-id"
- >
<div
- class="Component-root-id"
+ class="Component-spacer-id"
+ />
+ <hr
+ class="Component-hr-id"
+ />
+ <div
+ class="MuiFormControl-root-id Component-formControl-id"
>
- <h2
- class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"
+ <label
+ class="MuiFormLabel-root-id MuiFormLabel-disabled-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id"
+ data-shrink="false"
>
- Pricing
- </h2>
+ Collections
+ </label>
<div
- class="Component-action-id"
- />
- </div>
- <table
- class="MuiTable-root-id Component-root-id"
- >
- <tbody
- class="MuiTableBody-root-id"
+ class="MuiInput-root-id MuiInput-disabled-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
>
- <tr
- class="MuiTableRow-root-id"
+ <div
+ class="MuiSelect-root-id"
>
- <td
- class="MuiTableCell-root-id MuiTableCell-body-id"
- >
- Purchase cost
- </td>
- <td
- class="MuiTableCell-root-id MuiTableCell-body-id Component-textRight-id"
+ <div
+ aria-haspopup="true"
+ aria-pressed="false"
+ class="MuiSelect-select-id MuiSelect-selectMenu-id MuiSelect-disabled-id MuiInput-input-id MuiInput-disabled-id"
+ role="button"
>
- <span
- class="Skeleton-skeleton-id"
- >
- ‌
+ <span>
+ ​
</span>
- </td>
- </tr>
- <tr
- class="MuiTableRow-root-id"
- >
- <td
- class="MuiTableCell-root-id MuiTableCell-body-id"
- >
- Margin
- </td>
- <td
- class="MuiTableCell-root-id MuiTableCell-body-id Component-textRight-id"
+ </div>
+ <input
+ aria-invalid="false"
+ aria-required="false"
+ name="collections"
+ type="hidden"
+ value=""
+ />
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id MuiSelect-icon-id"
+ focusable="false"
+ viewBox="0 0 24 24"
>
- <span
- class="Skeleton-skeleton-id"
- >
- ‌
- </span>
- </td>
- </tr>
- </tbody>
- </table>
+ <path
+ d="M7 10l5 5 5-5z"
+ />
+ </svg>
+ </div>
+ </div>
+ </div>
</div>
</div>
<div
@@ -27164,148 +27568,75 @@ exports[`Storyshots Views / Products / Product edit when loading data 1`] = `
<div
class="Component-root-id"
>
- <h2
- class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"
+ <aside
+ class="MuiTypography-root-id MuiTypography-body2-id Component-title-id"
>
- Organisation
- </h2>
+ Availability
+ </aside>
<div
- class="Component-action-id"
+ class="Component-toolbar-id"
/>
</div>
+ <div
+ class="Component-children-id"
+ />
+ <hr
+ class="Component-hr-id"
+ />
<div
class="MuiCardContent-root-id"
>
<div
- class="MuiFormControl-root-id Component-formControl-id"
+ class="Component-pullUp-id"
>
<label
- class="MuiFormLabel-root-id MuiFormLabel-disabled-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id"
- data-shrink="false"
- >
- Category
- </label>
- <div
- class="MuiInput-root-id MuiInput-disabled-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
+ class="MuiFormControlLabel-root-id MuiFormControlLabel-disabled-id"
>
- <div
- class="MuiSelect-root-id"
+ <span
+ class="MuiSwitch-root-id"
>
- <div
- aria-haspopup="true"
- aria-pressed="false"
- class="MuiSelect-select-id MuiSelect-selectMenu-id MuiSelect-disabled-id MuiInput-input-id MuiInput-disabled-id"
- role="button"
+ <span
+ class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiIconButton-root-id MuiIconButton-disabled-id MuiSwitchBase-root-id MuiSwitch-switchBase-id MuiSwitch-colorPrimary-id MuiSwitchBase-disabled-id MuiSwitch-disabled-id"
+ tabindex="-1"
>
- <span>
- ​
+ <span
+ class="MuiIconButton-label-id"
+ >
+ <span
+ class="MuiSwitch-icon-id"
+ />
+ <input
+ class="MuiSwitchBase-input-id"
+ disabled=""
+ name="available"
+ type="checkbox"
+ />
</span>
- </div>
- <input
- aria-invalid="false"
- aria-required="false"
- name="category"
- type="hidden"
- value=""
+ </span>
+ <span
+ class="MuiSwitch-bar-id"
/>
- <svg
- aria-hidden="true"
- class="MuiSvgIcon-root-id MuiSelect-icon-id"
- focusable="false"
- viewBox="0 0 24 24"
- >
- <path
- d="M7 10l5 5 5-5z"
- />
- </svg>
- </div>
- </div>
- </div>
- <div
- class="Component-spacer-id"
- />
- <div
- class="MuiFormControl-root-id Component-formControl-id"
- >
- <label
- class="MuiFormLabel-root-id MuiFormLabel-disabled-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id"
- data-shrink="false"
- >
- Collections
- </label>
- <div
- class="MuiInput-root-id MuiInput-disabled-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
- >
- <div
- class="MuiSelect-root-id"
+ </span>
+ <span
+ class="MuiTypography-root-id MuiTypography-body1-id MuiFormControlLabel-label-id MuiFormControlLabel-disabled-id"
>
<div
- aria-haspopup="true"
- aria-pressed="false"
- class="MuiSelect-select-id MuiSelect-selectMenu-id MuiSelect-disabled-id MuiInput-input-id MuiInput-disabled-id"
- role="button"
+ class="Component-label-id"
>
- <span>
- ​
- </span>
+ Published in storefront
</div>
- <input
- aria-invalid="false"
- aria-required="false"
- name="collections"
- type="hidden"
- value=""
- />
- <svg
- aria-hidden="true"
- class="MuiSvgIcon-root-id MuiSelect-icon-id"
- focusable="false"
- viewBox="0 0 24 24"
- >
- <path
- d="M7 10l5 5 5-5z"
- />
- </svg>
- </div>
- </div>
+ </span>
+ </label>
</div>
</div>
</div>
</div>
- <div
- class="Component-cardContainer-id"
- >
- <div
- class="MuiPaper-root-id MuiPaper-elevation2-id MuiPaper-rounded-id MuiCard-root-id"
- >
- <div
- class="Component-root-id"
- >
- <h2
- class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"
- >
- Attributes
- </h2>
- <div
- class="Component-action-id"
- />
- </div>
- <div
- class="MuiCardContent-root-id"
- >
- <span
- class="Skeleton-skeleton-id"
- >
- ‌
- </span>
- </div>
- </div>
- </div>
</div>
</div>
<div
class="Component-root-id"
>
+<<<<<<< HEAD
<div
class="Component-spacer-id"
/>
@@ -27334,82 +27665,22 @@ exports[`Storyshots Views / Products / Product image details when loaded data 1`
<div
class="Component-root-id"
>
+=======
+>>>>>>> Restyle product section
<button
- class="MuiButtonBase-root-id MuiIconButton-root-id MuiIconButton-colorInherit-id Component-menuButton-id"
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-contained-id MuiButton-raised-id Component-deleteButton-id"
tabindex="0"
type="button"
>
<span
- class="MuiIconButton-label-id"
+ class="MuiButton-label-id"
>
- <svg
- aria-hidden="true"
- class="MuiSvgIcon-root-id"
- focusable="false"
- viewBox="0 0 24 24"
- >
- <g>
- <path
- d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"
- />
- </g>
- </svg>
+ Remove product
</span>
<span
class="MuiTouchRipple-root-id"
/>
</button>
- <h2
- class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"
- >
- Edit image
- </h2>
- <div
- class="Component-action-id"
- />
- </div>
- <div
- class="MuiPaper-root-id MuiPaper-elevation2-id MuiPaper-rounded-id MuiCard-root-id"
- >
- <div
- class="MuiCardContent-root-id"
- >
- <img
- class="Component-image-id"
- src="placeholder255x255.png"
- />
- <div
- class="MuiFormControl-root-id MuiFormControl-fullWidth-id"
- >
- <label
- class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id"
- data-shrink="false"
- >
- Description
- </label>
- <div
- class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-multiline-id MuiInput-underline-id"
- >
- <textarea
- aria-invalid="false"
- aria-required="false"
- class="MuiInput-input-id MuiInput-inputMultiline-id"
- name="description"
- rows="10"
- type="text"
- />
- </div>
- <p
- class="MuiFormHelperText-root-id"
- >
- Optional
- </p>
- </div>
- </div>
- </div>
- <div
- class="Component-root-id"
- >
<div
class="Component-spacer-id"
/>
@@ -27422,19 +27693,27 @@ exports[`Storyshots Views / Products / Product image details when loaded data 1`
<span
class="MuiButton-label-id"
>
- Save
+ Save product
</span>
</button>
</div>
- </form>
-</div>
+ </div>
+</form>
`;
+<<<<<<< HEAD
exports[`Storyshots Views / Products / Product image details when loading data 1`] = `
<div
class="Component-sm-id "
>
<form>
+=======
+exports[`Storyshots Views / Products / Product edit when product has no images 1`] = `
+<form>
+ <div
+ class="Component-md-id"
+ >
+>>>>>>> Restyle product section
<div
class="Component-root-id"
>
@@ -27466,82 +27745,192 @@ exports[`Storyshots Views / Products / Product image details when loading data 1
<h2
class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"
>
- Edit image
+ Ergonomic Plastic Bacon
</h2>
<div
class="Component-action-id"
- />
- </div>
- <div
- class="MuiPaper-root-id MuiPaper-elevation2-id MuiPaper-rounded-id MuiCard-root-id"
- >
- <div
- class="MuiCardContent-root-id"
>
- <span
- class="Skeleton-skeleton-id"
- >
- ‌
- </span>
- <div
- class="MuiFormControl-root-id MuiFormControl-fullWidth-id"
+ <button
+ class="MuiButtonBase-root-id MuiIconButton-root-id"
+ tabindex="0"
+ type="button"
>
- <label
- class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id"
- data-shrink="false"
- >
- Description
- </label>
- <div
- class="MuiInput-root-id MuiInput-disabled-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-multiline-id MuiInput-underline-id"
+ <span
+ class="MuiIconButton-label-id"
>
- <textarea
- aria-invalid="false"
- aria-required="false"
- class="MuiInput-input-id MuiInput-disabled-id MuiInput-inputMultiline-id"
- disabled=""
- name="description"
- rows="10"
- type="text"
- />
- </div>
- <p
- class="MuiFormHelperText-root-id"
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id"
+ focusable="false"
+ viewBox="0 0 24 24"
+ >
+ <g>
+ <path
+ d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"
+ />
+ </g>
+ </svg>
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ <button
+ class="MuiButtonBase-root-id MuiIconButton-root-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiIconButton-label-id"
>
- Optional
- </p>
- </div>
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id"
+ focusable="false"
+ viewBox="0 0 24 24"
+ >
+ <g>
+ <path
+ d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"
+ />
+ </g>
+ </svg>
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
</div>
</div>
<div
class="Component-root-id"
>
- <div
- class="Component-spacer-id"
- />
- <button
- class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id MuiButton-disabled-id"
- disabled=""
- tabindex="-1"
- type="button"
- >
- <span
- class="MuiButton-label-id"
+ <div>
+ <div
+ class="MuiPaper-root-id MuiPaper-elevation2-id MuiPaper-rounded-id MuiCard-root-id"
>
- Save
- </span>
- </button>
- </div>
- </form>
-</div>
-`;
-
-exports[`Storyshots Views / Products / Product list default 1`] = `
-<div
- class="Component-md-id "
->
- <div
- class="Component-root-id"
+ <div
+ class="Component-root-id"
+ >
+ <aside
+ class="MuiTypography-root-id MuiTypography-body2-id Component-title-id"
+ >
+ General information
+ </aside>
+ <div
+ class="Component-toolbar-id"
+ />
+ </div>
+ <div
+ class="Component-children-id"
+ />
+ <hr
+ class="Component-hr-id"
+ />
+ <div
+ class="MuiCardContent-root-id"
+ >
+ <div
+ class="Component-root-id"
+ >
+ <div
+ class="MuiFormControl-root-id MuiFormControl-fullWidth-id"
+ >
+ <label
+ class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
+ data-shrink="true"
+ >
+ Name
+ </label>
+ <div
+ class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
+ >
+ <input
+ aria-invalid="false"
+ aria-required="false"
+ class="MuiInput-input-id"
+ name="name"
+ rows="5"
+ type="text"
+ value="Ergonomic Plastic Bacon"
+ />
+ </div>
+ </div>
+ </div>
+ <div
+ class="Component-spacer-id"
+ />
+ <div
+ class="MuiFormControl-root-id"
+ style="width:100%"
+ >
+ <label
+ class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
+ data-shrink="true"
+ >
+ Description
+ </label>
+ <div
+ class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-multiline-id MuiInput-underline-id"
+ >
+ <div
+ class="Textarea-root-id"
+ style="height:19px"
+ >
+ <textarea
+ aria-hidden="true"
+ class="Textarea-shadow-id Textarea-textarea-id"
+ readonly=""
+ rows="1"
+ tabindex="-1"
+ />
+ <textarea
+ aria-hidden="true"
+ class="Textarea-shadow-id Textarea-textarea-id"
+ readonly=""
+ rows="1"
+ tabindex="-1"
+ >
+ 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.
+ </textarea>
+ <textarea
+ aria-invalid="false"
+ aria-required="false"
+ class="Textarea-textarea-id MuiInput-input-id MuiInput-inputMultiline-id"
+ name="description"
+ rows="1"
+ type="text"
+ >
+ 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.
+ </textarea>
+ </div>
+ </div>
+ <p
+ class="MuiFormHelperText-root-id"
+ >
+ Select text to enable text-formatting tools.
+ </p>
+ </div>
+ </div>
+ </div>
+ <div
+ class="Component-cardContainer-id"
+ >
+<<<<<<< HEAD
+ Save
+ </span>
+ </button>
+ </div>
+ </form>
+</div>
+`;
+
+exports[`Storyshots Views / Products / Product list default 1`] = `
+<div
+ class="Component-md-id "
+>
+ <div
+ class="Component-root-id"
>
<h2
class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"
@@ -27558,135 +27947,1537 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
>
<span
class="MuiIconButton-label-id"
+=======
+ <div
+ class="MuiPaper-root-id MuiPaper-elevation2-id MuiPaper-rounded-id MuiCard-root-id Component-card-id"
+ >
+ <div
+ class="Component-root-id"
+ >
+ <aside
+ class="MuiTypography-root-id MuiTypography-body2-id Component-title-id"
+ >
+ Images
+ </aside>
+ <div
+ class="Component-toolbar-id"
+ >
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Upload image
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ <input
+ class="Component-fileField-id"
+ id="fileUpload"
+ type="file"
+ />
+ </div>
+ </div>
+ <div
+ class="Component-children-id"
+ />
+ <hr
+ class="Component-hr-id"
+ />
+ <div
+ class="MuiCardContent-root-id"
+ >
+ <div
+ class="Component-noPhotosIconContainer-id"
+ >
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id Component-noPhotosIcon-id"
+ focusable="false"
+ viewBox="0 0 24 24"
+ >
+ <g>
+ <path
+ d="M3 4V1h2v3h3v2H5v3H3V6H0V4h3zm3 6V7h3V4h7l1.83 2H21c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V10h3zm7 9c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-3.2-5c0 1.77 1.43 3.2 3.2 3.2s3.2-1.43 3.2-3.2-1.43-3.2-3.2-3.2-3.2 1.43-3.2 3.2z"
+ />
+ </g>
+ </svg>
+ <p
+ class="MuiTypography-root-id MuiTypography-body1-id Component-noPhotosIconText-id"
+ >
+ Drop images to upload
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div
+ class="Component-cardContainer-id"
+>>>>>>> Restyle product section
>
- <svg
- aria-hidden="true"
- class="MuiSvgIcon-root-id"
- focusable="false"
- viewBox="0 0 24 24"
+ <div
+ class="MuiPaper-root-id MuiPaper-elevation2-id MuiPaper-rounded-id MuiCard-root-id"
>
- <g>
- <path
- d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"
+ <div
+ class="Component-root-id"
+ >
+ <aside
+ class="MuiTypography-root-id MuiTypography-body2-id Component-title-id"
+ >
+ Pricing
+ </aside>
+ <div
+ class="Component-toolbar-id"
/>
- </g>
- </svg>
- </span>
- <span
- class="MuiTouchRipple-root-id"
- />
- </button>
- </div>
- </div>
- <div
- class="MuiPaper-root-id MuiPaper-elevation2-id MuiPaper-rounded-id MuiCard-root-id"
- >
- <table
- class="MuiTable-root-id"
- >
- <thead
- class="MuiTableHead-root-id"
- >
- <tr
- class="MuiTableRow-root-id MuiTableRow-head-id"
- >
- <th
- class="MuiTableCell-root-id MuiTableCell-head-id Component-avatarCell-id"
- scope="col"
- />
- <th
- class="MuiTableCell-root-id MuiTableCell-head-id"
- scope="col"
+ </div>
+ <div
+ class="Component-children-id"
+ >
+ <label
+ class="MuiFormControlLabel-root-id"
+ >
+ <span
+ class="MuiButtonBase-root-id MuiIconButton-root-id MuiSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id"
+ >
+ <span
+ class="MuiIconButton-label-id"
+ >
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id"
+ focusable="false"
+ viewBox="0 0 24 24"
+ >
+ <path
+ d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
+ />
+ </svg>
+ <input
+ class="MuiSwitchBase-input-id"
+ name="chargeTaxes"
+ type="checkbox"
+ />
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </span>
+ <span
+ class="MuiTypography-root-id MuiTypography-body1-id MuiFormControlLabel-label-id"
+ >
+ Charge taxes for this item
+ </span>
+ </label>
+ </div>
+ <hr
+ class="Component-hr-id"
+ />
+ <div
+ class="MuiCardContent-root-id"
+ >
+ <div
+ class="Component-root-id"
+ >
+ <div
+ class="MuiFormControl-root-id MuiFormControl-fullWidth-id"
+ >
+ <label
+ class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
+ data-shrink="true"
+ for="price"
+ >
+ Price
+ </label>
+ <div
+ class="MuiInput-root-id MuiInput-formControl-id MuiInput-underline-id"
+ >
+ <input
+ aria-invalid="false"
+ aria-required="false"
+ class="MuiInput-input-id MuiInput-inputType-id"
+ name="price"
+ type="number"
+ value="339.39"
+ />
+ <div
+ class="MuiInputAdornment-root-id MuiInputAdornment-positionEnd-id Component-currencySymbol-id"
+ >
+ <p
+ class="MuiTypography-root-id MuiTypography-body1-id MuiTypography-colorTextSecondary-id"
+ >
+ NZD
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div
+ class="Component-cardContainer-id"
+ >
+ <div
+ class="MuiPaper-root-id MuiPaper-elevation2-id MuiPaper-rounded-id MuiCard-root-id"
+ >
+ <div
+ class="Component-root-id"
+ >
+ <aside
+ class="MuiTypography-root-id MuiTypography-body2-id Component-title-id"
+ >
+ Variants
+ </aside>
+ <div
+ class="Component-toolbar-id"
+ >
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Edit attributes
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Add variant
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ </div>
+ </div>
+ <div
+ class="Component-children-id"
+ />
+ <hr
+ class="Component-hr-id"
+ />
+ <div
+ class="MuiCardContent-root-id"
+ >
+ <p
+ class="MuiTypography-root-id MuiTypography-body1-id"
+ >
+ Use variants for products that come in a variety of version for example different sizes or colors
+ </p>
+ </div>
+ <table
+ class="MuiTable-root-id Component-denseTable-id"
+ >
+ <thead
+ class="MuiTableHead-root-id"
+ >
+ <tr
+ class="MuiTableRow-root-id MuiTableRow-head-id"
+ >
+ <th
+ class="MuiTableCell-root-id MuiTableCell-head-id Component-textLeft-id"
+ scope="col"
+ >
+ Name
+ </th>
+ <th
+ class="MuiTableCell-root-id MuiTableCell-head-id"
+ scope="col"
+ >
+ Status
+ </th>
+ <th
+ class="MuiTableCell-root-id MuiTableCell-head-id"
+ scope="col"
+ >
+ SKU
+ </th>
+ </tr>
+ </thead>
+ <tbody
+ class="MuiTableBody-root-id"
+ >
+ <tr
+ class="MuiTableRow-root-id"
+ >
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-textLeft-id Component-link-id"
+ >
+ Cordoba Oro
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ <div
+ class="Component-root-id "
+ >
+ <span
+ class="Component-successDot-id"
+ />
+ Available
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ 87192-94370
+ </td>
+ </tr>
+ <tr
+ class="MuiTableRow-root-id"
+ >
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-textLeft-id Component-link-id"
+ >
+ silver
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ <div
+ class="Component-root-id "
+ >
+ <span
+ class="Component-successDot-id"
+ />
+ Available
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ 69055-15190
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ </div>
+ <div
+ class="Component-cardContainer-id"
+ >
+ <div
+ class="MuiPaper-root-id MuiPaper-elevation2-id MuiPaper-rounded-id MuiCard-root-id"
+ >
+ <div
+ class="Component-root-id"
+ >
+ <aside
+ class="MuiTypography-root-id MuiTypography-body2-id Component-title-id"
+ >
+ Search Engine Preview
+ </aside>
+ <div
+ class="Component-toolbar-id"
+ >
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Edit website SEO
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ </div>
+ </div>
+ <div
+ class="Component-children-id"
+ />
+ <hr
+ class="Component-hr-id"
+ />
+ <div
+ class="MuiCardContent-root-id"
+ >
+ <p
+ class="MuiTypography-root-id MuiTypography-body1-id"
+ >
+ Add search engine title and description to make this product easier to find
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div>
+ <div
+ class="MuiPaper-root-id MuiPaper-elevation2-id MuiPaper-rounded-id MuiCard-root-id"
+ >
+ <div
+ class="Component-root-id"
+ >
+ <aside
+ class="MuiTypography-root-id MuiTypography-body2-id Component-title-id"
+ >
+ Organize Product
+ </aside>
+ <div
+ class="Component-toolbar-id"
+ />
+ </div>
+ <div
+ class="Component-children-id"
+ />
+ <hr
+ class="Component-hr-id"
+ />
+ <div
+ class="MuiCardContent-root-id"
+ >
+ <div
+ class="MuiFormControl-root-id Component-formControl-id"
+ >
+ <label
+ class="MuiFormLabel-root-id MuiFormLabel-disabled-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
+ data-shrink="true"
+ >
+ Product Type
+ </label>
+ <div
+ class="MuiInput-root-id MuiInput-disabled-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
+ >
+ <div
+ class="MuiSelect-root-id"
+ >
+ <div
+ aria-haspopup="true"
+ aria-pressed="false"
+ class="MuiSelect-select-id MuiSelect-selectMenu-id MuiSelect-disabled-id MuiInput-input-id MuiInput-disabled-id"
+ role="button"
+ >
+ Versatile
+ </div>
+ <input
+ aria-invalid="false"
+ aria-required="false"
+ type="hidden"
+ value="1"
+ />
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id MuiSelect-icon-id"
+ focusable="false"
+ viewBox="0 0 24 24"
+ >
+ <path
+ d="M7 10l5 5 5-5z"
+ />
+ </svg>
+ </div>
+ </div>
+ </div>
+ <div
+ class="Component-spacer-id"
+ />
+ <div
+ class="MuiFormControl-root-id Component-formControl-id"
+ >
+ <label
+ class="MuiFormLabel-root-id MuiFormLabel-disabled-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
+ data-shrink="true"
+ >
+ Is it configurable?
+ </label>
+ <div
+ class="MuiInput-root-id MuiInput-disabled-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
+ >
+ <div
+ class="MuiSelect-root-id"
+ >
+ <div
+ aria-haspopup="true"
+ aria-pressed="false"
+ class="MuiSelect-select-id MuiSelect-selectMenu-id MuiSelect-disabled-id MuiInput-input-id MuiInput-disabled-id"
+ role="button"
+ >
+ Yes
+ </div>
+ <input
+ aria-invalid="false"
+ aria-required="false"
+ type="hidden"
+ value="true"
+ />
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id MuiSelect-icon-id"
+ focusable="false"
+ viewBox="0 0 24 24"
+ >
+ <path
+ d="M7 10l5 5 5-5z"
+ />
+ </svg>
+ </div>
+ </div>
+ </div>
+ <p
+ class="MuiTypography-root-id MuiTypography-body1-id Component-cardSubtitle-id"
+ >
+ Attributes
+ </p>
+ <div
+ class="MuiFormControl-root-id Component-formControl-id"
+ >
+ <label
+ class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
+ data-shrink="true"
+ >
+ Borders
+ </label>
+ <div
+ class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
+ >
+ <div
+ class="MuiSelect-root-id"
+ >
+ <div
+ aria-haspopup="true"
+ aria-pressed="false"
+ class="MuiSelect-select-id MuiSelect-selectMenu-id MuiInput-input-id"
+ role="button"
+ tabindex="0"
+ >
+ portals
+ </div>
+ <input
+ aria-invalid="false"
+ aria-required="false"
+ name="Borders"
+ type="hidden"
+ value="portals"
+ />
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id MuiSelect-icon-id"
+ focusable="false"
+ viewBox="0 0 24 24"
+ >
+ <path
+ d="M7 10l5 5 5-5z"
+ />
+ </svg>
+ </div>
+ </div>
+ </div>
+ <div
+ class="Component-spacer-id"
+ />
+ <div
+ class="MuiFormControl-root-id Component-formControl-id"
+ >
+ <label
+ class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
+ data-shrink="true"
+ >
+ Legacy
+ </label>
+ <div
+ class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
+ >
+ <div
+ class="MuiSelect-root-id"
+ >
+ <div
+ aria-haspopup="true"
+ aria-pressed="false"
+ class="MuiSelect-select-id MuiSelect-selectMenu-id MuiInput-input-id"
+ role="button"
+ tabindex="0"
+ >
+ Auto Loan Account
+ </div>
+ <input
+ aria-invalid="false"
+ aria-required="false"
+ name="Legacy"
+ type="hidden"
+ value="Auto-Loan-Account"
+ />
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id MuiSelect-icon-id"
+ focusable="false"
+ viewBox="0 0 24 24"
+ >
+ <path
+ d="M7 10l5 5 5-5z"
+ />
+ </svg>
+ </div>
+ </div>
+ </div>
+ <div
+ class="Component-spacer-id"
+ />
+ <hr
+ class="Component-hr-id"
+ />
+ <div
+ class="MuiFormControl-root-id Component-formControl-id"
+ >
+ <label
+ class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
+ data-shrink="true"
+ >
+ Category
+ </label>
+ <div
+ class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
+ >
+ <div
+ class="MuiSelect-root-id"
+ >
+ <div
+ aria-haspopup="true"
+ aria-pressed="false"
+ class="MuiSelect-select-id MuiSelect-selectMenu-id MuiInput-input-id"
+ role="button"
+ tabindex="0"
+ >
+ Apparel
+ </div>
+ <input
+ aria-invalid="false"
+ aria-required="false"
+ name="category"
+ type="hidden"
+ value="Q2F0ZWdvcnk6MQ=="
+ />
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id MuiSelect-icon-id"
+ focusable="false"
+ viewBox="0 0 24 24"
+ >
+ <path
+ d="M7 10l5 5 5-5z"
+ />
+ </svg>
+ </div>
+ </div>
+ </div>
+ <div
+ class="Component-spacer-id"
+ />
+ <hr
+ class="Component-hr-id"
+ />
+ <div
+ class="MuiFormControl-root-id Component-formControl-id"
+ >
+ <label
+ class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
+ data-shrink="true"
+ >
+ Collections
+ </label>
+ <div
+ class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
+ >
+ <div
+ class="MuiSelect-root-id"
+ >
+ <div
+ aria-haspopup="true"
+ aria-pressed="false"
+ class="MuiSelect-select-id MuiSelect-selectMenu-id MuiInput-input-id"
+ role="button"
+ tabindex="0"
+ >
+ <div
+ class="Component-chipContainer-id"
+ >
+ <div
+ class="MuiChip-root-id Component-chip-id"
+ role="button"
+ tabindex="-1"
+ >
+ <span
+ class="MuiChip-label-id"
+ >
+ Winter sale
+ </span>
+ </div>
+ </div>
+ </div>
+ <input
+ aria-invalid="false"
+ aria-required="false"
+ name="collections"
+ type="hidden"
+ value="Q29sbGVjdGlvbjoy"
+ />
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id MuiSelect-icon-id"
+ focusable="false"
+ viewBox="0 0 24 24"
+ >
+ <path
+ d="M7 10l5 5 5-5z"
+ />
+ </svg>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div
+ class="Component-cardContainer-id"
+ >
+ <div
+ class="MuiPaper-root-id MuiPaper-elevation2-id MuiPaper-rounded-id MuiCard-root-id"
+ >
+ <div
+ class="Component-root-id"
+ >
+ <aside
+ class="MuiTypography-root-id MuiTypography-body2-id Component-title-id"
+ >
+ Availability
+ </aside>
+ <div
+ class="Component-toolbar-id"
+ />
+ </div>
+ <div
+ class="Component-children-id"
+ />
+ <hr
+ class="Component-hr-id"
+ />
+ <div
+ class="MuiCardContent-root-id"
+ >
+ <div
+ class="Component-pullUp-id"
+ >
+ <label
+ class="MuiFormControlLabel-root-id"
+ >
+ <span
+ class="MuiSwitch-root-id"
+ >
+ <span
+ class="MuiButtonBase-root-id MuiIconButton-root-id MuiSwitchBase-root-id MuiSwitch-switchBase-id MuiSwitch-colorPrimary-id MuiSwitchBase-checked-id MuiSwitch-checked-id"
+ >
+ <span
+ class="MuiIconButton-label-id"
+ >
+ <span
+ class="MuiSwitch-icon-id MuiSwitch-iconChecked-id"
+ />
+ <input
+ checked=""
+ class="MuiSwitchBase-input-id"
+ name="available"
+ type="checkbox"
+ />
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </span>
+ <span
+ class="MuiSwitch-bar-id"
+ />
+ </span>
+ <span
+ class="MuiTypography-root-id MuiTypography-body1-id MuiFormControlLabel-label-id"
+ >
+ <div
+ class="Component-label-id"
+ >
+ Published in storefront
+ </div>
+ </span>
+ </label>
+ </div>
+ <div
+ class="MuiFormControl-root-id MuiFormControl-fullWidth-id Component-date-id"
+ >
+ <label
+ class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
+ data-shrink="true"
+ >
+ Publish product on
+ </label>
+ <div
+ class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
+ >
+ <input
+ aria-invalid="false"
+ aria-required="false"
+ class="MuiInput-input-id MuiInput-inputType-id"
+ name="availableOn"
+ type="date"
+ value="2018-08-25T18:45:54.125Z"
+ />
+ </div>
+ </div>
+ <div
+ class="Component-pullDown-id"
+ >
+ <label
+ class="MuiFormControlLabel-root-id"
+ >
+ <span
+ class="MuiSwitch-root-id"
+ >
+ <span
+ class="MuiButtonBase-root-id MuiIconButton-root-id MuiSwitchBase-root-id MuiSwitch-switchBase-id MuiSwitch-colorPrimary-id"
+ >
+ <span
+ class="MuiIconButton-label-id"
+ >
+ <span
+ class="MuiSwitch-icon-id"
+ />
+ <input
+ class="MuiSwitchBase-input-id"
+ name="featured"
+ type="checkbox"
+ />
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </span>
+ <span
+ class="MuiSwitch-bar-id"
+ />
+ </span>
+ <span
+ class="MuiTypography-root-id MuiTypography-body1-id MuiFormControlLabel-label-id"
+ >
+ <div
+ class="Component-label-id"
+ >
+ Feature on Homepage
+ </div>
+ </span>
+ </label>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div
+ class="Component-root-id"
+ >
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-contained-id MuiButton-raised-id Component-deleteButton-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Remove product
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ <div
+ class="Component-spacer-id"
+ />
+ <button
+ class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id MuiButton-disabled-id"
+ disabled=""
+ tabindex="-1"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Save product
+ </span>
+ </button>
+ </div>
+ </div>
+</form>
+`;
+
+exports[`Storyshots Views / Products / Product image details when loaded data 1`] = `
+<div
+ class="Component-sm-id"
+>
+ <form>
+ <div
+ class="Component-root-id"
+ >
+ <button
+ class="MuiButtonBase-root-id MuiIconButton-root-id MuiIconButton-colorInherit-id Component-menuButton-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiIconButton-label-id"
+ >
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id"
+ focusable="false"
+ viewBox="0 0 24 24"
+ >
+ <g>
+ <path
+ d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"
+ />
+ </g>
+ </svg>
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ <h2
+ class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"
+ >
+ Edit image
+ </h2>
+ <div
+ class="Component-action-id"
+ />
+ </div>
+ <div
+ class="MuiPaper-root-id MuiPaper-elevation2-id MuiPaper-rounded-id MuiCard-root-id"
+ >
+ <div
+ class="MuiCardContent-root-id"
+ >
+ <img
+ class="Component-image-id"
+ src="placeholder255x255.png"
+ />
+ <div
+ class="MuiFormControl-root-id MuiFormControl-fullWidth-id"
+ >
+ <label
+ class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id"
+ data-shrink="false"
+ >
+ Description
+ </label>
+ <div
+ class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-multiline-id MuiInput-underline-id"
+ >
+ <textarea
+ aria-invalid="false"
+ aria-required="false"
+ class="MuiInput-input-id MuiInput-inputMultiline-id"
+ name="description"
+ rows="10"
+ type="text"
+ />
+ </div>
+ <p
+ class="MuiFormHelperText-root-id"
+ >
+ Optional
+ </p>
+ </div>
+ </div>
+ </div>
+ <div
+ class="Component-root-id"
+ >
+ <div
+ class="Component-spacer-id"
+ />
+ <button
+ class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id MuiButton-disabled-id"
+ disabled=""
+ tabindex="-1"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Save
+ </span>
+ </button>
+ </div>
+ </form>
+</div>
+`;
+
+exports[`Storyshots Views / Products / Product image details when loading data 1`] = `
+<div
+ class="Component-sm-id"
+>
+ <form>
+ <div
+ class="Component-root-id"
+ >
+ <button
+ class="MuiButtonBase-root-id MuiIconButton-root-id MuiIconButton-colorInherit-id Component-menuButton-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiIconButton-label-id"
+ >
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id"
+ focusable="false"
+ viewBox="0 0 24 24"
+ >
+ <g>
+ <path
+ d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"
+ />
+ </g>
+ </svg>
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ <h2
+ class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"
+ >
+ Edit image
+ </h2>
+ <div
+ class="Component-action-id"
+ />
+ </div>
+ <div
+ class="MuiPaper-root-id MuiPaper-elevation2-id MuiPaper-rounded-id MuiCard-root-id"
+ >
+ <div
+ class="MuiCardContent-root-id"
+ >
+ <span
+ class="Skeleton-skeleton-id"
+ >
+ ‌
+ </span>
+ <div
+ class="MuiFormControl-root-id MuiFormControl-fullWidth-id"
+ >
+ <label
+ class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id"
+ data-shrink="false"
+ >
+ Description
+ </label>
+ <div
+ class="MuiInput-root-id MuiInput-disabled-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-multiline-id MuiInput-underline-id"
+ >
+ <textarea
+ aria-invalid="false"
+ aria-required="false"
+ class="MuiInput-input-id MuiInput-disabled-id MuiInput-inputMultiline-id"
+ disabled=""
+ name="description"
+ rows="10"
+ type="text"
+ />
+ </div>
+ <p
+ class="MuiFormHelperText-root-id"
+ >
+ Optional
+ </p>
+ </div>
+ </div>
+ </div>
+ <div
+ class="Component-root-id"
+ >
+ <div
+ class="Component-spacer-id"
+ />
+ <button
+ class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id MuiButton-disabled-id"
+ disabled=""
+ tabindex="-1"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Save
+ </span>
+ </button>
+ </div>
+ </form>
+</div>
+`;
+
+exports[`Storyshots Views / Products / Product list default 1`] = `
+<div
+ class="Component-md-id"
+>
+ <div
+ class="Component-root-id"
+ >
+ <h2
+ class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"
+ >
+ Products
+ </h2>
+ <div
+ class="Component-action-id"
+ >
+ <button
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiButton-label-id"
+ >
+ Add product
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id"
+ focusable="false"
+ viewBox="0 0 24 24"
+ >
+ <g>
+ <path
+ d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"
+ />
+ </g>
+ </svg>
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ </div>
+ </div>
+ <div
+ class="MuiPaper-root-id MuiPaper-elevation2-id MuiPaper-rounded-id MuiCard-root-id"
+ >
+ <table
+ class="MuiTable-root-id"
+ >
+ <thead
+ class="MuiTableHead-root-id"
+ >
+ <tr
+ class="MuiTableRow-root-id MuiTableRow-head-id"
+ >
+ <th
+ class="MuiTableCell-root-id MuiTableCell-head-id"
+ scope="col"
+ />
+ <th
+ class="MuiTableCell-root-id MuiTableCell-head-id Component-textLeft-id"
+ scope="col"
+ >
+ Name
+ </th>
+ <th
+ class="MuiTableCell-root-id MuiTableCell-head-id"
+ scope="col"
+ >
+ Type
+ </th>
+ <th
+ class="MuiTableCell-root-id MuiTableCell-head-id"
+ scope="col"
+ >
+ Published
+ </th>
+ <th
+ class="MuiTableCell-root-id MuiTableCell-head-id"
+ scope="col"
+ >
+ Price
+ </th>
+ </tr>
+ </thead>
+ <tfoot
+ class="MuiTableFooter-root-id"
+ >
+ <tr
+ class="MuiTableRow-root-id MuiTableRow-footer-id"
+ >
+ <td
+ class="MuiTableCell-root-id MuiTableCell-footer-id TablePagination-root-id"
+ colspan="5"
+ >
+ <div
+ class="MuiToolbar-root-id MuiToolbar-gutters-id TablePagination-toolbar-id"
+ >
+ <div
+ class="TablePagination-spacer-id"
+ />
+ <div
+ class="TablePaginationActions-root-id"
+ >
+ <button
+ class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiIconButton-root-id MuiIconButton-disabled-id"
+ disabled=""
+ tabindex="-1"
+ type="button"
+ >
+ <span
+ class="MuiIconButton-label-id"
+ >
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id"
+ focusable="false"
+ viewBox="0 0 24 24"
+ >
+ <path
+ d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
+ />
+ </svg>
+ </span>
+ </button>
+ <button
+ class="MuiButtonBase-root-id MuiIconButton-root-id"
+ tabindex="0"
+ type="button"
+ >
+ <span
+ class="MuiIconButton-label-id"
+ >
+ <svg
+ aria-hidden="true"
+ class="MuiSvgIcon-root-id"
+ focusable="false"
+ viewBox="0 0 24 24"
+ >
+ <path
+ d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
+ />
+ </svg>
+ </span>
+ <span
+ class="MuiTouchRipple-root-id"
+ />
+ </button>
+ </div>
+ </div>
+ </td>
+ </tr>
+ </tfoot>
+ <tbody
+ class="MuiTableBody-root-id"
+ >
+ <tr
+ class="MuiTableRow-root-id"
+ >
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-root-id"
+ >
+ <div
+ class="MuiAvatar-root-id Component-avatar-id"
+ >
+ <img
+ class="MuiAvatar-img-id"
+ src="placeholder255x255.png"
+ />
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-textLeft-id"
+ >
+ <span
+ class="Component-link-id"
+ >
+ Tasty Frozen Tuna
+ </span>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ systemic
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ <div
+ class="Component-root-id "
+ >
+ <span
+ class="Component-successDot-id"
+ />
+ Published
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ PYG595
+ </td>
+ </tr>
+ <tr
+ class="MuiTableRow-root-id"
+ >
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-root-id"
+ >
+ <div
+ class="MuiAvatar-root-id Component-avatar-id"
+ >
+ <img
+ class="MuiAvatar-img-id"
+ src="placeholder255x255.png"
+ />
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-textLeft-id"
+ >
+ <span
+ class="Component-link-id"
+ >
+ Incredible Rubber Computer
+ </span>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ Villages
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ <div
+ class="Component-root-id "
+ >
+ <span
+ class="Component-successDot-id"
+ />
+ Published
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ GMD432.08
+ </td>
+ </tr>
+ <tr
+ class="MuiTableRow-root-id"
+ >
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-root-id"
+ >
+ <div
+ class="MuiAvatar-root-id Component-avatar-id"
+ >
+ <img
+ class="MuiAvatar-img-id"
+ src="placeholder255x255.png"
+ />
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-textLeft-id"
+ >
+ <span
+ class="Component-link-id"
+ >
+ Intelligent Frozen Soap
+ </span>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ efficient
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ <div
+ class="Component-root-id "
+ >
+ <span
+ class="Component-errorDot-id"
+ />
+ Not published
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ WST73.74
+ </td>
+ </tr>
+ <tr
+ class="MuiTableRow-root-id"
+ >
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-root-id"
+ >
+ <div
+ class="MuiAvatar-root-id Component-avatar-id"
+ >
+ <img
+ class="MuiAvatar-img-id"
+ src="placeholder255x255.png"
+ />
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-textLeft-id"
+ >
+ <span
+ class="Component-link-id"
+ >
+ Rustic Plastic Chips
+ </span>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ Buckinghamshire
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ <div
+ class="Component-root-id "
+ >
+ <span
+ class="Component-successDot-id"
+ />
+ Published
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ MWK27.68
+ </td>
+ </tr>
+ <tr
+ class="MuiTableRow-root-id"
+ >
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-root-id"
+ >
+ <div
+ class="MuiAvatar-root-id Component-avatar-id"
+ >
+ <img
+ class="MuiAvatar-img-id"
+ src="placeholder255x255.png"
+ />
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-textLeft-id"
+ >
+ <span
+ class="Component-link-id"
+ >
+ Awesome Fresh Chicken
+ </span>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
>
- Name
- </th>
- <th
- class="MuiTableCell-root-id MuiTableCell-head-id"
- scope="col"
+ Future
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
>
- Type
- </th>
+ <div
+ class="Component-root-id "
+ >
+ <span
+ class="Component-errorDot-id"
+ />
+ Not published
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ WST440.79
+ </td>
</tr>
- </thead>
- <tfoot
- class="MuiTableFooter-root-id"
- >
<tr
- class="MuiTableRow-root-id MuiTableRow-footer-id"
+ class="MuiTableRow-root-id"
>
<td
- class="MuiTableCell-root-id MuiTableCell-footer-id TablePagination-root-id"
- colspan="3"
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-root-id"
>
<div
- class="MuiToolbar-root-id MuiToolbar-gutters-id TablePagination-toolbar-id"
+ class="MuiAvatar-root-id Component-avatar-id"
>
- <div
- class="TablePagination-spacer-id"
+ <img
+ class="MuiAvatar-img-id"
+ src="placeholder255x255.png"
/>
- <div
- class="TablePaginationActions-root-id"
- >
- <button
- class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiIconButton-root-id MuiIconButton-disabled-id"
- disabled=""
- tabindex="-1"
- type="button"
- >
- <span
- class="MuiIconButton-label-id"
- >
- <svg
- aria-hidden="true"
- class="MuiSvgIcon-root-id"
- focusable="false"
- viewBox="0 0 24 24"
- >
- <path
- d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
- />
- </svg>
- </span>
- </button>
- <button
- class="MuiButtonBase-root-id MuiIconButton-root-id"
- tabindex="0"
- type="button"
- >
- <span
- class="MuiIconButton-label-id"
- >
- <svg
- aria-hidden="true"
- class="MuiSvgIcon-root-id"
- focusable="false"
- viewBox="0 0 24 24"
- >
- <path
- d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
- />
- </svg>
- </span>
- <span
- class="MuiTouchRipple-root-id"
- />
- </button>
- </div>
</div>
</td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-textLeft-id"
+ >
+ <span
+ class="Component-link-id"
+ >
+ Refined Frozen Chicken
+ </span>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ dot-com
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ <div
+ class="Component-root-id "
+ >
+ <span
+ class="Component-errorDot-id"
+ />
+ Not published
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ HRK398.96
+ </td>
</tr>
- </tfoot>
- <tbody
- class="MuiTableBody-root-id"
- >
<tr
class="MuiTableRow-root-id"
>
<td
- class="MuiTableCell-root-id MuiTableCell-body-id Component-avatarCell-id"
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-root-id"
>
<div
- class="MuiAvatar-root-id"
+ class="MuiAvatar-root-id Component-avatar-id"
>
<img
class="MuiAvatar-img-id"
@@ -27695,28 +29486,45 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
</div>
</td>
<td
- class="MuiTableCell-root-id MuiTableCell-body-id"
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-textLeft-id"
>
<span
class="Component-link-id"
>
- Gardner, Graham and King
+ Practical Concrete Fish
</span>
</td>
<td
class="MuiTableCell-root-id MuiTableCell-body-id"
>
- T-Shirt
+ Public-key
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ <div
+ class="Component-root-id "
+ >
+ <span
+ class="Component-errorDot-id"
+ />
+ Not published
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ HUF959.31
</td>
</tr>
<tr
class="MuiTableRow-root-id"
>
<td
- class="MuiTableCell-root-id MuiTableCell-body-id Component-avatarCell-id"
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-root-id"
>
<div
- class="MuiAvatar-root-id"
+ class="MuiAvatar-root-id Component-avatar-id"
>
<img
class="MuiAvatar-img-id"
@@ -27725,28 +29533,45 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
</div>
</td>
<td
- class="MuiTableCell-root-id MuiTableCell-body-id"
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-textLeft-id"
>
<span
class="Component-link-id"
>
- Gardner, Graham and King
+ Licensed Steel Ball
</span>
</td>
<td
class="MuiTableCell-root-id MuiTableCell-body-id"
>
- T-Shirt
+ payment
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ <div
+ class="Component-root-id "
+ >
+ <span
+ class="Component-errorDot-id"
+ />
+ Not published
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ PKR593
</td>
</tr>
<tr
class="MuiTableRow-root-id"
>
<td
- class="MuiTableCell-root-id MuiTableCell-body-id Component-avatarCell-id"
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-root-id"
>
<div
- class="MuiAvatar-root-id"
+ class="MuiAvatar-root-id Component-avatar-id"
>
<img
class="MuiAvatar-img-id"
@@ -27755,28 +29580,45 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
</div>
</td>
<td
- class="MuiTableCell-root-id MuiTableCell-body-id"
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-textLeft-id"
>
<span
class="Component-link-id"
>
- Gardner, Graham and King
+ Sleek Wooden Pants
</span>
</td>
<td
class="MuiTableCell-root-id MuiTableCell-body-id"
>
- T-Shirt
+ Music
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ <div
+ class="Component-root-id "
+ >
+ <span
+ class="Component-errorDot-id"
+ />
+ Not published
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ SHP62.01
</td>
</tr>
<tr
class="MuiTableRow-root-id"
>
<td
- class="MuiTableCell-root-id MuiTableCell-body-id Component-avatarCell-id"
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-root-id"
>
<div
- class="MuiAvatar-root-id"
+ class="MuiAvatar-root-id Component-avatar-id"
>
<img
class="MuiAvatar-img-id"
@@ -27785,18 +29627,35 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
</div>
</td>
<td
- class="MuiTableCell-root-id MuiTableCell-body-id"
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-textLeft-id"
>
<span
class="Component-link-id"
>
- Gardner, Graham and King
+ Practical Steel Shirt
</span>
</td>
<td
class="MuiTableCell-root-id MuiTableCell-body-id"
>
- T-Shirt
+ International
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ <div
+ class="Component-root-id "
+ >
+ <span
+ class="Component-errorDot-id"
+ />
+ Not published
+ </div>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ UZS197
</td>
</tr>
</tbody>
@@ -27815,19 +29674,20 @@ exports[`Storyshots Views / Products / Product list loading 1`] = `
<h2
class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"
>
- Product list
+ Products
</h2>
<div
class="Component-action-id"
>
<button
- class="MuiButtonBase-root-id MuiIconButton-root-id"
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id"
tabindex="0"
type="button"
>
<span
- class="MuiIconButton-label-id"
+ class="MuiButton-label-id"
>
+ Add product
<svg
aria-hidden="true"
class="MuiSvgIcon-root-id"
@@ -27860,11 +29720,11 @@ exports[`Storyshots Views / Products / Product list loading 1`] = `
class="MuiTableRow-root-id MuiTableRow-head-id"
>
<th
- class="MuiTableCell-root-id MuiTableCell-head-id Component-avatarCell-id"
+ class="MuiTableCell-root-id MuiTableCell-head-id"
scope="col"
/>
<th
- class="MuiTableCell-root-id MuiTableCell-head-id"
+ class="MuiTableCell-root-id MuiTableCell-head-id Component-textLeft-id"
scope="col"
>
Name
@@ -27875,6 +29735,18 @@ exports[`Storyshots Views / Products / Product list loading 1`] = `
>
Type
</th>
+ <th
+ class="MuiTableCell-root-id MuiTableCell-head-id"
+ scope="col"
+ >
+ Published
+ </th>
+ <th
+ class="MuiTableCell-root-id MuiTableCell-head-id"
+ scope="col"
+ >
+ Price
+ </th>
</tr>
</thead>
<tfoot
@@ -27885,7 +29757,7 @@ exports[`Storyshots Views / Products / Product list loading 1`] = `
>
<td
class="MuiTableCell-root-id MuiTableCell-footer-id TablePagination-root-id"
- colspan="3"
+ colspan="5"
>
<div
class="MuiToolbar-root-id MuiToolbar-gutters-id TablePagination-toolbar-id"
@@ -27950,10 +29822,10 @@ exports[`Storyshots Views / Products / Product list loading 1`] = `
class="MuiTableRow-root-id"
>
<td
- class="MuiTableCell-root-id MuiTableCell-body-id Component-avatarCell-id"
+ class="MuiTableCell-root-id MuiTableCell-body-id Component-root-id"
>
<div
- class="MuiAvatar-root-id MuiAvatar-colorDefault-id"
+ class="MuiAvatar-root-id MuiAvatar-colorDefault-id Component-avatar-id"
>
<svg
aria-hidden="true"
@@ -27987,6 +29859,24 @@ exports[`Storyshots Views / Products / Product list loading 1`] = `
‌
</span>
</td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ <span
+ class="Skeleton-skeleton-id"
+ >
+ ‌
+ </span>
+ </td>
+ <td
+ class="MuiTableCell-root-id MuiTableCell-body-id"
+ >
+ <span
+ class="Skeleton-skeleton-id"
+ >
+ ‌
+ </span>
+ </td>
</tr>
</tbody>
</table>
@@ -28004,19 +29894,20 @@ exports[`Storyshots Views / Products / Product list no data 1`] = `
<h2
class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"
>
- Product list
+ Products
</h2>
<div
class="Component-action-id"
>
<button
- class="MuiButtonBase-root-id MuiIconButton-root-id"
+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id"
tabindex="0"
type="button"
>
<span
- class="MuiIconButton-label-id"
+ class="MuiButton-label-id"
>
+ Add product
<svg
aria-hidden="true"
class="MuiSvgIcon-root-id"
@@ -28049,11 +29940,11 @@ exports[`Storyshots Views / Products / Product list no data 1`] = `
class="MuiTableRow-root-id MuiTableRow-head-id"
>
<th
- class="MuiTableCell-root-id MuiTableCell-head-id Component-avatarCell-id"
+ class="MuiTableCell-root-id MuiTableCell-head-id"
scope="col"
/>
<th
- class="MuiTableCell-root-id MuiTableCell-head-id"
+ class="MuiTableCell-root-id MuiTableCell-head-id Component-textLeft-id"
scope="col"
>
Name
@@ -28064,6 +29955,18 @@ exports[`Storyshots Views / Products / Product list no data 1`] = `
>
Type
</th>
+ <th
+ class="MuiTableCell-root-id MuiTableCell-head-id"
+ scope="col"
+ >
+ Published
+ </th>
+ <th
+ class="MuiTableCell-root-id MuiTableCell-head-id"
+ scope="col"
+ >
+ Price
+ </th>
</tr>
</thead>
<tfoot
@@ -28074,7 +29977,7 @@ exports[`Storyshots Views / Products / Product list no data 1`] = `
>
<td
class="MuiTableCell-root-id MuiTableCell-footer-id TablePagination-root-id"
- colspan="3"
+ colspan="5"
>
<div
class="MuiToolbar-root-id MuiToolbar-gutters-id TablePagination-toolbar-id"
@@ -28140,12 +30043,9 @@ exports[`Storyshots Views / Products / Product list no data 1`] = `
<tr
class="MuiTableRow-root-id"
>
- <td
- class="MuiTableCell-root-id MuiTableCell-body-id Component-avatarCell-id"
- />
<td
class="MuiTableCell-root-id MuiTableCell-body-id"
- colspan="2"
+ colspan="5"
>
No products found
</td>
diff --git a/saleor/static/dashboard-next/storybook/stories/products/ProductListCard.tsx b/saleor/static/dashboard-next/storybook/stories/products/ProductListCard.tsx
index 753a0460b9..a44ffe1cab 100644
--- a/saleor/static/dashboard-next/storybook/stories/products/ProductListCard.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/products/ProductListCard.tsx
@@ -1,65 +1,16 @@
import { storiesOf } from "@storybook/react";
import * as React from "react";
-import * as placeholder from "../../../../images/placeholder255x255.png";
-import ProductListCard from "../../../products/components/ProductListCard";
+import * as placeholderImage from "../../../../images/placeholder255x255.png";
import { pageListProps } from "../../../fixtures";
+import ProductListCard from "../../../products/components/ProductListCard";
+import { products as productFixture } from "../../../products/fixtures";
+import Decorator from "../../Decorator";
-const images = [
- {
- id: "2",
- alt: "Image 2",
- url: placeholder as string,
- order: 2
- },
- {
- id: "1",
- alt: "Image 1",
- url: placeholder as string,
- order: 1
- }
-];
-
-const products = [
- {
- id: "UHJvZHVjdDox",
- name: "Gardner, Graham and King",
- thumbnailUrl: placeholder,
- productType: {
- id: "1",
- name: "T-Shirt"
- }
- },
- {
- id: "UHJvZHVjdDoy",
- name: "Gardner, Graham and King",
- thumbnailUrl: placeholder,
- productType: {
- id: "1",
- name: "T-Shirt"
- }
- },
- {
- id: "UHJvZHVjdDoz",
- name: "Gardner, Graham and King",
- thumbnailUrl: placeholder,
- productType: {
- id: "1",
- name: "T-Shirt"
- }
- },
- {
- id: "UHJvZHVjdDoa",
- name: "Gardner, Graham and King",
- thumbnailUrl: placeholder,
- productType: {
- id: "1",
- name: "T-Shirt"
- }
- }
-];
+const products = productFixture(placeholderImage);
storiesOf("Views / Products / Product list", module)
+ .addDecorator(Decorator)
.add("default", () => (
<ProductListCard products={products} {...pageListProps.default} />
))
diff --git a/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx b/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx
index 31f4b7f9c8..410f9f1f7f 100644
--- a/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx
@@ -2,7 +2,6 @@ import { storiesOf } from "@storybook/react";
import * as React from "react";
import * as placeholderImage from "../../../../images/placeholder255x255.png";
-import { categories } from "../../../categories/fixtures";
import ProductUpdatePage from "../../../products/components/ProductUpdatePage";
import { product as productFixture } from "../../../products/fixtures";
import Decorator from "../../Decorator";
@@ -23,6 +22,26 @@ storiesOf("Views / Products / Product edit", module)
images={product.images.edges.map(edge => edge.node)}
variants={product.variants.edges.map(edge => edge.node)}
productCollections={product.collections.edges.map(edge => edge.node)}
+ onAttributesEdit={() => {}}
+ onDelete={() => {}}
+ onProductShow={() => {}}
+ onVariantAdd={() => {}}
+ onVariantShow={() => {}}
+ />
+ ))
+ .add("when product has no images", () => (
+ <ProductUpdatePage
+ errors={[]}
+ onBack={() => {}}
+ onSubmit={() => {}}
+ product={product}
+ collections={product.collections.edges.map(edge => edge.node)}
+ categories={[product.category]}
+ placeholderImage={placeholderImage}
+ images={[]}
+ variants={product.variants.edges.map(edge => edge.node)}
+ productCollections={product.collections.edges.map(edge => edge.node)}
+ onAttributesEdit={() => {}}
onDelete={() => {}}
onProductShow={() => {}}
onVariantAdd={() => {}}
@@ -36,6 +55,7 @@ storiesOf("Views / Products / Product edit", module)
onBack={() => {}}
onSubmit={() => {}}
disabled={true}
+ onAttributesEdit={() => {}}
placeholderImage={placeholderImage}
/>
));