Skip to content

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

Add app progress

dominik-zeglenc442d2a31212
diff --git a/saleor/static/dashboard-next/categories/views/CategoryDetails/index.tsx b/saleor/static/dashboard-next/categories/views/CategoryDetails/index.tsx
index b26e198fee..b89860bfbf 100644
--- a/saleor/static/dashboard-next/categories/views/CategoryDetails/index.tsx
+++ b/saleor/static/dashboard-next/categories/views/CategoryDetails/index.tsx
@@ -79,6 +79,7 @@ export const CategoryDetails: React.StatelessComponent<
);
return (
<TypedCategoryDetailsQuery
+ displayLoader
variables={{ ...paginationState, id }}
>
{({ data, loading }) => (
diff --git a/saleor/static/dashboard-next/categories/views/CategoryList.tsx b/saleor/static/dashboard-next/categories/views/CategoryList.tsx
index 43052de96c..266506d1a4 100644
--- a/saleor/static/dashboard-next/categories/views/CategoryList.tsx
+++ b/saleor/static/dashboard-next/categories/views/CategoryList.tsx
@@ -9,7 +9,7 @@ import { categoryAddUrl, categoryUrl } from "../urls";
export const CategoryList: React.StatelessComponent = () => (
<Navigator>
{navigate => (
- <TypedRootCategoriesQuery>
+ <TypedRootCategoriesQuery displayLoader>
{({ data }) => (
<CategoryListPage
categories={maybe(
diff --git a/saleor/static/dashboard-next/collections/views/CollectionDetails.tsx b/saleor/static/dashboard-next/collections/views/CollectionDetails.tsx
index c89336351a..28370ba1e7 100644
--- a/saleor/static/dashboard-next/collections/views/CollectionDetails.tsx
+++ b/saleor/static/dashboard-next/collections/views/CollectionDetails.tsx
@@ -53,6 +53,7 @@ export const CollectionDetails: React.StatelessComponent<
<SearchProductsProvider>
{(searchProducts, searchProductsOpts) => (
<TypedCollectionDetailsQuery
+ displayLoader
variables={{ id, ...paginationState }}
>
{({ data, loading }) => {
diff --git a/saleor/static/dashboard-next/collections/views/CollectionList.tsx b/saleor/static/dashboard-next/collections/views/CollectionList.tsx
index 47307c154d..91c95794af 100644
--- a/saleor/static/dashboard-next/collections/views/CollectionList.tsx
+++ b/saleor/static/dashboard-next/collections/views/CollectionList.tsx
@@ -25,7 +25,7 @@ export const CollectionList: React.StatelessComponent<CollectionListProps> = ({
{navigate => {
const paginationState = createPaginationState(PAGINATE_BY, params);
return (
- <TypedCollectionListQuery variables={paginationState}>
+ <TypedCollectionListQuery displayLoader variables={paginationState}>
{({ data, loading }) => (
<Paginator
pageInfo={maybe(() => data.collections.pageInfo)}
diff --git a/saleor/static/dashboard-next/customers/views/CustomerCreate.tsx b/saleor/static/dashboard-next/customers/views/CustomerCreate.tsx
index b82f232d1e..7850b2c603 100644
--- a/saleor/static/dashboard-next/customers/views/CustomerCreate.tsx
+++ b/saleor/static/dashboard-next/customers/views/CustomerCreate.tsx
@@ -30,7 +30,7 @@ export const CustomerCreate: React.StatelessComponent<{}> = () => (
}
};
return (
- <TypedCustomerCreateDataQuery>
+ <TypedCustomerCreateDataQuery displayLoader>
{({ data, loading }) => (
<TypedCreateCustomerMutation
onCompleted={handleCreateCustomerSuccess}
diff --git a/saleor/static/dashboard-next/customers/views/CustomerDetails.tsx b/saleor/static/dashboard-next/customers/views/CustomerDetails.tsx
index 428f6baf14..a3db23033f 100644
--- a/saleor/static/dashboard-next/customers/views/CustomerDetails.tsx
+++ b/saleor/static/dashboard-next/customers/views/CustomerDetails.tsx
@@ -65,7 +65,7 @@ export const CustomerDetailsView: React.StatelessComponent<
onCompleted={handleCustomerUpdateSuccess}
>
{(updateCustomer, updateCustomerOpts) => (
- <TypedCustomerDetailsQuery variables={{ id }}>
+ <TypedCustomerDetailsQuery displayLoader variables={{ id }}>
{customerDetails => (
<>
<WindowTitle
diff --git a/saleor/static/dashboard-next/customers/views/CustomerList.tsx b/saleor/static/dashboard-next/customers/views/CustomerList.tsx
index 9439f44638..afbbe87dfd 100644
--- a/saleor/static/dashboard-next/customers/views/CustomerList.tsx
+++ b/saleor/static/dashboard-next/customers/views/CustomerList.tsx
@@ -25,7 +25,7 @@ export const CustomerList: React.StatelessComponent<CustomerListProps> = ({
{navigate => {
const paginationState = createPaginationState(PAGINATE_BY, params);
return (
- <TypedCustomerListQuery variables={paginationState}>
+ <TypedCustomerListQuery displayLoader variables={paginationState}>
{({ data, loading }) => (
<Paginator
pageInfo={maybe(() => data.customers.pageInfo)}
diff --git a/saleor/static/dashboard-next/home/views/index.tsx b/saleor/static/dashboard-next/home/views/index.tsx
index ceedd34d68..a1f6737136 100644
--- a/saleor/static/dashboard-next/home/views/index.tsx
+++ b/saleor/static/dashboard-next/home/views/index.tsx
@@ -14,7 +14,7 @@ const HomeSection = () => (
{navigate => (
<UserContext.Consumer>
{({ user }) => (
- <HomePageQuery>
+ <HomePageQuery displayLoader>
{({ data }) => (
<HomePage
activities={maybe(() =>
diff --git a/saleor/static/dashboard-next/orders/views/OrderDetails/index.tsx b/saleor/static/dashboard-next/orders/views/OrderDetails/index.tsx
index caac33c391..e94ab77962 100644
--- a/saleor/static/dashboard-next/orders/views/OrderDetails/index.tsx
+++ b/saleor/static/dashboard-next/orders/views/OrderDetails/index.tsx
@@ -52,7 +52,7 @@ export const OrderDetails: React.StatelessComponent<OrderDetailsProps> = ({
}) => (
<Navigator>
{navigate => (
- <TypedOrderDetailsQuery variables={{ id }}>
+ <TypedOrderDetailsQuery displayLoader variables={{ id }}>
{({ data, error, loading }) => {
if (error) {
return <ErrorMessageCard message="Something went wrong" />;
diff --git a/saleor/static/dashboard-next/orders/views/OrderList.tsx b/saleor/static/dashboard-next/orders/views/OrderList.tsx
index f262e9641a..f3ba32adf9 100644
--- a/saleor/static/dashboard-next/orders/views/OrderList.tsx
+++ b/saleor/static/dashboard-next/orders/views/OrderList.tsx
@@ -68,6 +68,7 @@ export const OrderList: React.StatelessComponent<OrderListProps> = ({
return (
<TypedOrderListQuery
+ displayLoader
variables={{
...paginationState,
status: params.status
diff --git a/saleor/static/dashboard-next/pages/views/PageDetails.tsx b/saleor/static/dashboard-next/pages/views/PageDetails.tsx
index c3ce1523fb..d7b36cd504 100644
--- a/saleor/static/dashboard-next/pages/views/PageDetails.tsx
+++ b/saleor/static/dashboard-next/pages/views/PageDetails.tsx
@@ -32,7 +32,7 @@ export class PageUpdateForm extends React.Component<
render() {
const { id } = this.props;
return (
- <TypedPageDetailsQuery variables={{ id }}>
+ <TypedPageDetailsQuery displayLoader variables={{ id }}>
{({ data: detailsResult, error, loading }) => {
if (error) {
return (
diff --git a/saleor/static/dashboard-next/pages/views/PageList.tsx b/saleor/static/dashboard-next/pages/views/PageList.tsx
index a8ad759586..154786ae22 100644
--- a/saleor/static/dashboard-next/pages/views/PageList.tsx
+++ b/saleor/static/dashboard-next/pages/views/PageList.tsx
@@ -25,7 +25,7 @@ export const PageList: React.StatelessComponent<PageListProps> = ({
const paginationState = createPaginationState(PAGINATE_BY, params);
const handleEditClick = (id: string) => () => navigate(pageUrl(id));
return (
- <TypedPageListQuery variables={paginationState}>
+ <TypedPageListQuery displayLoader variables={paginationState}>
{({ data, loading, error }) => {
if (error) {
return (
diff --git a/saleor/static/dashboard-next/productTypes/views/ProductTypeCreate.tsx b/saleor/static/dashboard-next/productTypes/views/ProductTypeCreate.tsx
index e156e9d2d9..7217e6813e 100644
--- a/saleor/static/dashboard-next/productTypes/views/ProductTypeCreate.tsx
+++ b/saleor/static/dashboard-next/productTypes/views/ProductTypeCreate.tsx
@@ -49,7 +49,7 @@ export const ProductTypeCreate: React.StatelessComponent = () => (
}
});
return (
- <TypedProductTypeCreateDataQuery>
+ <TypedProductTypeCreateDataQuery displayLoader>
{({ data, loading }) => (
<>
<WindowTitle title={i18n.t("Create product type")} />
diff --git a/saleor/static/dashboard-next/productTypes/views/ProductTypeList.tsx b/saleor/static/dashboard-next/productTypes/views/ProductTypeList.tsx
index 0830ee9270..6e8f023599 100644
--- a/saleor/static/dashboard-next/productTypes/views/ProductTypeList.tsx
+++ b/saleor/static/dashboard-next/productTypes/views/ProductTypeList.tsx
@@ -26,7 +26,7 @@ export const ProductTypeList: React.StatelessComponent<
{navigate => {
const paginationState = createPaginationState(PAGINATE_BY, params);
return (
- <TypedProductTypeListQuery variables={paginationState}>
+ <TypedProductTypeListQuery displayLoader variables={paginationState}>
{({ data, loading, error }) => {
if (error) {
return <ErrorMessageCard message="Something went wrong" />;
diff --git a/saleor/static/dashboard-next/productTypes/views/ProductTypeUpdate/index.tsx b/saleor/static/dashboard-next/productTypes/views/ProductTypeUpdate/index.tsx
index 49d66d2b09..49a8718bb4 100644
--- a/saleor/static/dashboard-next/productTypes/views/ProductTypeUpdate/index.tsx
+++ b/saleor/static/dashboard-next/productTypes/views/ProductTypeUpdate/index.tsx
@@ -37,7 +37,7 @@ export const ProductTypeUpdate: React.StatelessComponent<
{navigate => (
<ProductTypeUpdateErrors>
{({ errors, set: setErrors }) => (
- <TypedProductTypeDetailsQuery variables={{ id }}>
+ <TypedProductTypeDetailsQuery displayLoader variables={{ id }}>
{({ data, loading: dataLoading }) => {
const closeModal = () => {
navigate(productTypeUrl(encodeURIComponent(id)), true);
diff --git a/saleor/static/dashboard-next/products/views/ProductCreate.tsx b/saleor/static/dashboard-next/products/views/ProductCreate.tsx
index a199980dfb..f81122f7d6 100644
--- a/saleor/static/dashboard-next/products/views/ProductCreate.tsx
+++ b/saleor/static/dashboard-next/products/views/ProductCreate.tsx
@@ -31,7 +31,7 @@ export const ProductUpdate: React.StatelessComponent<
const handleBack = () => navigate(productListUrl());
return (
- <TypedProductCreateQuery>
+ <TypedProductCreateQuery displayLoader>
{({ data, error, loading }) => {
const handleSuccess = (data: ProductCreate) => {
if (data.productCreate.errors.length === 0) {
diff --git a/saleor/static/dashboard-next/products/views/ProductImage/index.tsx b/saleor/static/dashboard-next/products/views/ProductImage/index.tsx
index c3659c892a..64668148df 100644
--- a/saleor/static/dashboard-next/products/views/ProductImage/index.tsx
+++ b/saleor/static/dashboard-next/products/views/ProductImage/index.tsx
@@ -41,6 +41,7 @@ export const ProductImage: React.StatelessComponent<ProductImageProps> = ({
};
return (
<TypedProductImageQuery
+ displayLoader
variables={{
imageId,
productId
diff --git a/saleor/static/dashboard-next/products/views/ProductList.tsx b/saleor/static/dashboard-next/products/views/ProductList.tsx
index 248e80b878..65149080cd 100644
--- a/saleor/static/dashboard-next/products/views/ProductList.tsx
+++ b/saleor/static/dashboard-next/products/views/ProductList.tsx
@@ -43,6 +43,7 @@ export const ProductList: React.StatelessComponent<ProductListProps> = ({
const paginationState = createPaginationState(PAGINATE_BY, params);
return (
<TypedProductListQuery
+ displayLoader
variables={{
...paginationState,
stockAvailability: params.status
diff --git a/saleor/static/dashboard-next/products/views/ProductUpdate/index.tsx b/saleor/static/dashboard-next/products/views/ProductUpdate/index.tsx
index 1965e14ad8..e38d864bb5 100644
--- a/saleor/static/dashboard-next/products/views/ProductUpdate/index.tsx
+++ b/saleor/static/dashboard-next/products/views/ProductUpdate/index.tsx
@@ -37,7 +37,7 @@ export const ProductUpdate: React.StatelessComponent<ProductUpdateProps> = ({
<Navigator>
{navigate => {
return (
- <TypedProductDetailsQuery variables={{ id }}>
+ <TypedProductDetailsQuery displayLoader variables={{ id }}>
{({ data, loading, error }) => {
if (error) {
return <ErrorMessageCard message="Something went wrong" />;
diff --git a/saleor/static/dashboard-next/products/views/ProductVariant/index.tsx b/saleor/static/dashboard-next/products/views/ProductVariant/index.tsx
index 3c4f8feeba..2816ed9c8b 100644
--- a/saleor/static/dashboard-next/products/views/ProductVariant/index.tsx
+++ b/saleor/static/dashboard-next/products/views/ProductVariant/index.tsx
@@ -41,7 +41,7 @@ export const ProductVariant: React.StatelessComponent<ProductUpdateProps> = ({
{navigate => (
<Messages>
{pushMessage => (
- <TypedProductVariantQuery variables={{ id: variantId }}>
+ <TypedProductVariantQuery displayLoader variables={{ id: variantId }}>
{({ data, loading, error }) => {
if (error) {
return <ErrorMessageCard message="Something went wrong" />;
diff --git a/saleor/static/dashboard-next/products/views/ProductVariantCreate.tsx b/saleor/static/dashboard-next/products/views/ProductVariantCreate.tsx
index 16dc1fa54b..7b10fc9b01 100644
--- a/saleor/static/dashboard-next/products/views/ProductVariantCreate.tsx
+++ b/saleor/static/dashboard-next/products/views/ProductVariantCreate.tsx
@@ -37,7 +37,10 @@ export const ProductVariant: React.StatelessComponent<ProductUpdateProps> = ({
{navigate => (
<Messages>
{pushMessage => (
- <TypedProductVariantCreateQuery variables={{ id: productId }}>
+ <TypedProductVariantCreateQuery
+ displayLoader
+ variables={{ id: productId }}
+ >
{({ data, error, loading: productLoading }) => {
if (error) {
return (
diff --git a/saleor/static/dashboard-next/siteSettings/views/index.tsx b/saleor/static/dashboard-next/siteSettings/views/index.tsx
index 85b9e24331..f300c9eb18 100644
--- a/saleor/static/dashboard-next/siteSettings/views/index.tsx
+++ b/saleor/static/dashboard-next/siteSettings/views/index.tsx
@@ -74,7 +74,7 @@ export const SiteSettings: React.StatelessComponent<{}> = () => (
}
};
return (
- <TypedSiteSettingsQuery>
+ <TypedSiteSettingsQuery displayLoader>
{siteSettings => (
<TypedAuthorizationKeyAdd onCompleted={handleAddKeySuccess}>
{(addAuthorizationKey, addAuthorizationKeyOpts) => (
diff --git a/saleor/static/dashboard-next/staff/views/StaffDetails.tsx b/saleor/static/dashboard-next/staff/views/StaffDetails.tsx
index 298aec6927..ce2fc82bc8 100644
--- a/saleor/static/dashboard-next/staff/views/StaffDetails.tsx
+++ b/saleor/static/dashboard-next/staff/views/StaffDetails.tsx
@@ -33,7 +33,7 @@ export const StaffDetails: React.StatelessComponent<OrderListProps> = ({
{navigate => (
<Messages>
{pushMessage => (
- <TypedStaffMemberDetailsQuery variables={{ id }}>
+ <TypedStaffMemberDetailsQuery displayLoader variables={{ id }}>
{({ data, loading }) => {
const handleStaffMemberUpdate = (data: StaffMemberUpdate) => {
if (!maybe(() => data.staffUpdate.errors.length !== 0)) {
diff --git a/saleor/static/dashboard-next/staff/views/StaffList.tsx b/saleor/static/dashboard-next/staff/views/StaffList.tsx
index cabea01a1a..3727c99eba 100644
--- a/saleor/static/dashboard-next/staff/views/StaffList.tsx
+++ b/saleor/static/dashboard-next/staff/views/StaffList.tsx
@@ -39,7 +39,7 @@ export const StaffList: React.StatelessComponent<StaffListProps> = ({
{pushMessage => {
const paginationState = createPaginationState(PAGINATE_BY, params);
return (
- <TypedStaffListQuery variables={paginationState}>
+ <TypedStaffListQuery displayLoader variables={paginationState}>
{({ data, loading }) => {
const handleStaffMemberAddSuccess = (data: StaffMemberAdd) => {
if (!maybe(() => data.staffCreate.errors.length)) {