From c4c667864c6a3170347b42bdc335c81c549967e9 Mon Sep 17 00:00:00 2001 From: Marcin Kwiatkowski Date: Thu, 7 Jul 2022 13:56:58 +0200 Subject: [PATCH] chore: release 1.0.0-rc.10 --- components/AppHeader.vue | 22 +- components/BottomNavigation.vue | 25 +- components/CartSidebar.vue | 30 +- components/Checkout/UserBillingAddresses.vue | 111 ------ .../CurrencySelector/CurrenciesModal.vue | 7 +- .../__tests__/CurrencySelector.spec.ts | 80 ++++ .../__tests__/currencyData.mock.ts | 31 ++ .../HeaderNavigationSubcategories.vue | 2 +- components/Header/SearchBar/SearchBar.vue | 22 +- components/Header/SearchBar/SearchResults.vue | 3 +- components/MobileStoreBanner.vue | 37 +- components/SkeletonLoader/index.vue | 8 +- components/StoreSwitcher/StoresModal.vue | 4 +- .../__tests__/StoresModal.spec.ts | 81 ++++ .../__tests__/availableStores.mock.ts | 136 +++++++ .../TopBar/checkStoresAndCurrency.gql.ts | 4 +- components/UserAddressDetails.vue | 7 +- components/__tests__/BottomNavigation.spec.ts | 157 ++++++++ composables/useApi/index.ts | 11 +- composables/useConfig/index.ts | 6 +- composables/useConfig/useConfig.ts | 6 + .../useContent/commands/loadBlocksCommand.ts | 2 +- .../useContent/commands/loadContentCommand.ts | 2 +- composables/useCountrySearch/index.ts | 2 +- .../useCurrency/__tests__/useCurrency.spec.ts | 66 ++++ .../commands/updateSubscriptionCommand.ts | 2 +- .../useReview/commands/addReviewCommand.ts | 2 +- .../commands/loadCustomerReviewsCommand.ts | 2 +- .../commands/loadReviewMetadataCommand.ts | 5 +- .../commands/searchReviewsCommand.ts | 2 +- composables/useReview/index.ts | 5 +- composables/useReview/useReview.ts | 2 +- composables/useUiHelpers/index.ts | 1 + composables/useUrlResolver/index.ts | 6 +- helpers/cart/addToCart.ts | 1 + helpers/checkout/address.ts | 23 +- helpers/integrationPlugin/_proxyUtils.ts | 2 +- jest-setup.js | 5 +- jest.config.js | 2 +- lang/de.js | 14 +- lang/en.js | 12 +- middleware/is-authenticated.ts | 3 +- .../components/cms/categoryContent.gql.ts | 4 +- .../components/filters/CategoryFilters.scss | 4 +- .../components/filters/CategoryFilters.vue | 6 - .../command/getProductFilterByCategory.gql.ts | 4 +- .../filters/renderer/CheckboxType.vue | 59 +-- .../components/filters/renderer/RadioType.vue | 63 +-- .../filters/renderer/SwatchColorType.vue | 29 +- .../components/filters/renderer/YesNoType.vue | 9 +- .../components/navbar/CategoryNavbar.vue | 8 +- .../MobileCategorySidebar.vue | 4 +- .../__tests__/MobileCategorySidebar.spec.ts | 20 +- .../components/views/CategoryProductGrid.vue | 32 +- .../components/views/CategoryProductList.vue | 20 + .../components/views/CategoryProductPrice.vue | 4 +- .../views/useProductsWithCommonCardProps.ts | 4 +- .../category/composables/useCategory/index.ts | 2 +- .../composables/useCategory/useCategory.ts | 4 +- .../composables/useCategorySearch/index.ts | 9 +- .../composables/useFacet/getFacetData.gql.ts | 4 +- .../category/composables/useFacet/index.ts | 3 +- .../stores/graphql/categoryList.gql.ts | 6 +- modules/catalog/pages/category.vue | 37 +- modules/catalog/pages/product.vue | 25 +- .../pricing/getGroupedProductPriceCommand.ts | 4 +- modules/catalog/pricing/getPricesQuery.gql.ts | 4 +- .../components/ProductAddReviewForm.vue | 16 +- .../product-types/bundle/BundleProduct.vue | 36 +- .../bundle/BundleProductOptionSkeleton.vue | 35 ++ .../bundle/BundleProductSelector.vue | 12 +- .../configurable/ConfigurableProduct.vue | 19 +- .../grouped/GroupedProductSelector.vue | 19 +- .../product-types/simple/SimpleProduct.vue | 14 +- .../components/product-types/styles.scss | 4 + .../composables/useRelatedProducts/index.ts | 2 +- .../composables/useUpsellProducts/index.ts | 2 +- .../queries/getProductPriceBySku.gql.ts | 155 ++++++++ .../checkout/components}/CartPreview.vue | 2 +- .../components/UserBillingAddresses.vue | 93 +++++ .../components}/UserShippingAddresses.vue | 78 ++-- .../components}/VsfPaymentProvider.vue | 0 .../components}/VsfShippingProvider.vue | 0 .../components/styles/userAddresses.scss | 27 ++ .../commands/saveBillingAddressCommand.ts | 3 +- .../checkout/composables/useBilling/index.ts | 4 +- .../composables/useBilling/useBilling.ts | 4 +- .../useCart/commands/addItemCommand.ts | 101 ++--- .../useCart/commands/clearCartCommand.ts | 7 - .../useCart/commands/loadTotalQtyCommand.ts | 5 +- .../useCart/commands/removeItemCommand.ts | 5 +- modules/checkout/composables/useCart/index.ts | 20 +- .../checkout/composables/useCart/useCart.ts | 1 + .../getCustomerShippingMethodsCommand.ts | 7 +- .../getGuestShippingMethodsCommand.ts | 2 +- .../useGetShippingMethods/index.ts | 2 +- .../commands/placeOrderCommand.ts | 5 +- .../composables/useMakeOrder/index.ts | 5 +- .../composables/useMakeOrder/useMakeOrder.ts | 3 +- .../getAvailablePaymentMethodsCommand.ts | 6 +- .../commands/setPaymentMethodOnCartCommand.ts | 2 +- .../composables/usePaymentProvider/index.ts | 6 +- .../usePaymentProvider/usePaymentProvider.ts | 7 +- .../setShippingMethodsOnCartCommand.ts | 6 +- .../composables/useShippingProvider/index.ts | 4 +- modules/checkout/getters/cartGetters.ts | 2 +- modules/checkout/pages/Checkout.vue | 2 +- modules/checkout/pages/Checkout/Billing.vue | 180 ++++----- modules/checkout/pages/Checkout/Payment.vue | 13 +- modules/checkout/pages/Checkout/Shipping.vue | 155 ++++---- .../checkout/pages/Checkout/UserAccount.vue | 32 +- .../components/LoginModal/LoginModal.vue | 12 +- .../LoginModal/__tests__/LoginModal.spec.ts | 38 -- .../composables/useAddresses/index.ts | 11 +- .../composables/useAddresses/useAddresses.ts | 3 +- .../composables/useForgotPassword/index.ts | 4 +- .../commands/attachToCartCommand.ts | 6 +- modules/customer/composables/useUser/index.ts | 102 +++-- .../commands/createCustomerAddressCommand.ts | 6 +- .../commands/deleteCustomerAddressCommand.ts | 6 +- .../commands/updateCustomerAddressCommand.ts | 6 +- .../composables/useUserAddress/index.ts | 13 +- .../useUserAddress/useUserAddress.ts | 3 +- .../composables/useUserOrder/index.ts | 2 +- .../customer/getters/userAddressesGetters.ts | 6 +- .../customer/getters/userBillingGetters.ts | 2 + .../AddressesDetails/AddressForm.vue | 17 +- .../AddressesDetails/AddressesDetails.vue | 30 +- .../MyAccount/MyProfile/ProfileUpdateForm.vue | 4 +- .../customer/pages/MyAccount/MyWishlist.vue | 77 ++-- .../MyAccount/OrderHistory/OrderHistory.vue | 13 +- .../OrderHistory/SingleOrder/SingleOrder.vue | 18 +- .../pages/MyAccount/useSidebarLinkGroups.ts | 3 +- .../wishlist/components/WishlistSidebar.vue | 31 +- nuxt.config.js | 7 +- package.json | 15 +- plugins/__tests__/i18n.spec.js | 3 + plugins/dompurify.ts | 4 +- plugins/i18n.ts | 38 +- plugins/query/StoreConfig.gql.ts | 4 +- plugins/token-expired.ts | 2 +- test-utils/mocks/categoryTreeDataMock.ts | 1 + test-utils/mocks/useCurrency.ts | 11 + test-utils/mocks/useStore.ts | 11 + test-utils/mocks/useUiState.ts | 6 +- tests/load/README.md | 45 +++ tests/load/searchProduct.js | 370 ++++++++++++++++++ yarn.lock | 45 +-- 148 files changed, 2413 insertions(+), 984 deletions(-) delete mode 100644 components/Checkout/UserBillingAddresses.vue create mode 100644 components/CurrencySelector/__tests__/CurrencySelector.spec.ts create mode 100644 components/CurrencySelector/__tests__/currencyData.mock.ts create mode 100644 components/StoreSwitcher/__tests__/StoresModal.spec.ts create mode 100644 components/StoreSwitcher/__tests__/availableStores.mock.ts create mode 100644 components/__tests__/BottomNavigation.spec.ts create mode 100644 composables/useCurrency/__tests__/useCurrency.spec.ts create mode 100644 modules/catalog/product/components/product-types/bundle/BundleProductOptionSkeleton.vue create mode 100644 modules/catalog/product/queries/getProductPriceBySku.gql.ts rename {components/Checkout => modules/checkout/components}/CartPreview.vue (98%) create mode 100644 modules/checkout/components/UserBillingAddresses.vue rename {components/Checkout => modules/checkout/components}/UserShippingAddresses.vue (53%) rename {components/Checkout => modules/checkout/components}/VsfPaymentProvider.vue (100%) rename {components/Checkout => modules/checkout/components}/VsfShippingProvider.vue (100%) create mode 100644 modules/checkout/components/styles/userAddresses.scss delete mode 100644 modules/checkout/composables/useCart/commands/clearCartCommand.ts create mode 100644 test-utils/mocks/useCurrency.ts create mode 100644 test-utils/mocks/useStore.ts create mode 100644 tests/load/README.md create mode 100644 tests/load/searchProduct.js diff --git a/components/AppHeader.vue b/components/AppHeader.vue index 046bec6..ce5ac04 100644 --- a/components/AppHeader.vue +++ b/components/AppHeader.vue @@ -12,8 +12,14 @@