Commit graph

2809 commits

Author SHA1 Message Date
Wojciech Mista
948fd39389
Prevent needless metadata updates (#1860)
* Update metadata queries

* Add conditional metadata update
2022-02-11 10:25:43 +01:00
Dawid Tarasiuk
a8f56defe1
Fix rest of the world checkbox on shipping zone create (#1672)
* Fix rest of the world checkbox on shipping zone create

* Add query to fetch rest of the world countries

* Fix query in shipping zone view

* Remove default shipping zonecountries

* Refactor rest of the world queries

* Refactor rest of the world

* Update shipping zone countries query

* Fix naming

* Handle no rest of the world countries left
2022-02-09 11:47:37 +02:00
Karolina Rakoczy
b7f6a932b9
merge (#1821) 2022-02-08 11:23:46 +01:00
Jakub Majorek
f088095335
Fix order settings button being disabled (#1833) 2022-02-08 10:28:39 +01:00
Wojciech Mista
9836f6b206
Bump debounce rate in search input (#1831) 2022-02-07 12:43:41 +01:00
Wojciech Mista
5f771568c1
Fix select on channel checkbox (#1828) 2022-02-07 12:43:19 +01:00
Karolina Rakoczy
10fb086d6e
Add tests for product types for 3.1 (#1806)
* tests for product types for 3.1

* updated stories

* chage test cases names for product types

* add test for setting attribute as variant selection in product type

* add test for setting attribute as variant selection in product type

* split product types spec file

* uncomment purchase with product types test

* Update cypress/integration/configuration/productTypes/attributesInProduductTypes.js

Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>

Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>
2022-02-07 10:30:52 +01:00
Wojciech Mista
9f3dfe3bcd
Fix card menu styles on small screens (#1813)
* Move cardMenu to page header

* Update tests

* Fix extension menu items

* Refactor card menu in page header

* Update tests

* Apply new page styling to gift cards list
2022-02-03 13:59:36 +01:00
Wojciech Mista
f1575ac179
EditorJS initialisation fixes (#1789) (#1822)
* Fix editor initialising issue in update pages

* Fix translation editor error
2022-02-02 23:12:58 +01:00
Dawid Tarasiuk
a76c6a0e5f
Support apps in navigation (#1785)
* Support apps in dashboard navigation

* Update macaw-ui sidebar

Trigger CI

* Update app routing

* Update app extensions schema

* Update navigation external app routing

* Refactor sidebar extension menu items open handling

* Update macaw-ui

* Update messages

* Update prettier config

* Refactor

* Update extensions manu item active indication

* Update macaw-ui
2022-02-02 16:30:34 +01:00
Michał Droń
394c33c0b5
Refactor changing address in order details directly (#1697) (#1818)
* Refactor changing address in order details directly (#1697)

* wip change address edit buttons behaviour in order draft

* wip modify dialog view when customer is not changed

* wip remove old address edit modal

* wip rm old address modal storybook

* wip async search state change

* wip disable edit in draft when no customer is selected

* wip fix submitting issues

* wip allow single address mutation

* wip fix billing change & manual address change

* wip fix covered country dropdown

* wip add address clone checkbox

* wip normal order details & unconfirmed views

* wip messages minor fixes

* wip clone address checkbox on new address input option

* Storybook update

* cleanup

* billing same as shipping fixes

* improve stories titles & move to component folder

* improve continueToAddressSearchState readibility

* improve dialog title/description message descriptors

* change .then() to await

* Remove redundant onClick arrow function

Co-authored-by: Dominik Żegleń <flesz3@o2.pl>

* Improve OrderAddressFields component

* move shipping & billing address edit props outside file

* Update snapshots

* fix mutation output types in order views

* Fix confirm button state type

* fix skipping query when modal is refreshed

* fix cancel button to match designs

* update dialog headers

* fix customer address choice card styling for blue theme

* change hidecard to showcard

* export types to local file

* improve isAnyAddressEditModalOpen function

* fix cut hover effect on inputs

* fix submitting modal when modal is closed with x button

* fix validation & initial form data

* update messages

* Update partial mutation return type

* Add vertical spacer component

* Revert CardSpacer changes

* Change some of Form & Card spacers to Vertical Spacers

* Fix makeStyles import in VerticalSpacer

* Fix border color for AddressCards

* Add type to addressFieldsCommonProps object

* Change stories subtitles to lowercase

* Fix country choices type

* Fix setState react type

* Improve address change handlers

* Update snapshots

* Fix default country not showing up in address edit single autocomplete field

Co-authored-by: Dominik Żegleń <flesz3@o2.pl>
Co-authored-by: Magdalena Markusik <magdalena.markusik@mirumee.com>

* Fix linter issue

Co-authored-by: Dominik Żegleń <flesz3@o2.pl>
Co-authored-by: Magdalena Markusik <magdalena.markusik@mirumee.com>
2022-02-02 12:22:39 +01:00
Michał Droń
519b816afa
Add hover tooltip on sorting disabled columns (#1811)
* Add hover tooltip on sorting disabled columns in lists (#1784)

* Update macaw

* Add TooltipTableCellHeader component

* Add filterDependency type to lists

* Add tooltip to conditional columns in Voucher List

* Add tooltip to conditional columns in Sale List

* Add tooltip to conditional columns in Collection List

* Add tooltip to conditional columns in Product List

* Update snapshots

* Improve component clarity

* Change TableCellHeader to React.forwardRef component

* Change TooltipTableCellHeader to use TableCellHeader

* Remove RefTableCellHeader

* Bump macaw

* Update snapshots

* Remove merge conflict leftovers

* Add tooltip header to gift card list

* Refactor gift card list tooltip

Co-authored-by: Wojciech <wojciech.mista@hotmail.com>
2022-02-02 09:48:12 +01:00
Wojciech Mista
f9e1bb0569
Don't render delete button if user doesn't have an avatar (#1803)
* Make "delete" button appear only when user has an avatar

* Remove unused import

* Update tests

* Refetch user on avatar update
2022-02-01 15:41:31 +01:00
Dominik Żegleń
3bfed3216e
Fix order line overflowing texts (#1788) (#1810)
* Fix overflowing order line cells

* Update snapshots
2022-02-01 14:59:42 +01:00
Wojciech Mista
44a8a1c182
Shipping zones button fix (#1804)
* update tests

* wip

* Post-rebase fix

* Revert "wip"

This reverts commit 225276edb5c0730ab0cefba0f98a663d6e4fb37a.

* Post-rebase fixes

* Update tests, messages and stories

* Fixes

* Update messages

* Update tests and messages
2022-02-01 14:28:30 +01:00
Karolina Rakoczy
35e48a635f
Add tests for gift cards (#1779)
* added tests for gift cards

* update tests names for gift cards

* change naming, move functions from test file, fix testId

* fix move function

* Edit test case name

Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>

Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>
2022-02-01 11:58:02 +01:00
Dawid Tarasiuk
5892bca40b
Fix double authentication (#1772) 2022-02-01 12:23:48 +02:00
Magdalena Markusik
3d636f4789
Exit dirty form (#1816)
* Add Exit form prompt component and change some minor styles in other components to match

* Add Exit form prompt provider

* Adjust generic form and useform hook to allow using exit form prompt provider

* Add exit form prompt provider to index

* wip

* Fix types

* Fix styling

* Fix types

* Revert warehouse details refactor

* Add handling of edge cases to exit prompt

* Refactor, add comments, fix some types

* Refactor after exit form dialog name change

* fix types

* Fixes after review

* Add default value for useform prop opts so the app doesn't crash

* Add missing category prop to getting initial data for category details form

* Add exit dialog to everywhere WIP (#1600)

* Add Exit form prompt component and change some minor styles in other components to match

* Add Exit form prompt provider

* Adjust generic form and useform hook to allow using exit form prompt provider

* Add exit form prompt provider to index

* wip

* Fix types

* Fix styling

* Fix types

* Revert warehouse details refactor

* Add handling of edge cases to exit prompt

* Refactor, add comments, fix some types

* Refactor after exit form dialog name change

* fix types

* Add CommonUseFormResultWithHandlers type for later use and refactor handleFormSubmit util

* Refactor login form not to use custom form since it doesn't need to

* Add exit form dialog to order refund page

* Add exit form dialog to order return page

* Add exit form dialog to order order settings  page

* Add exit form dialog to product variant page

* Add exit form dialog to product create page

* Add exit form dialog to product update page

* Add exit form dialog to product variant create page

* Fix confirm leave prop passing in generic Form

* Add util function to handle for submit to extract errors

* Add confirmLeave prop to generic forms

* Move handleChange for custom forms to useForm

* Add exit dialog to more forms

* Add extract mutation errors util function

* Add extracting errors to submit functions that use metadata create handler

* Fix typo

* Add missing category prop to getting initial data for category details form

* Fix types

* wip

* wip

* wip

* wip

* Fix types & refactor

* Fix types & refactor

* Fix typescript

* Fix unmatching tag

* Fixes

* Add handling of multiple forms at once to exit dirty form provider

* Change all usages of ExitFormDialogContext to designated hook

* wip

* wip

* wip

* Fix types wip

* Fix types

* Remove console logs

* Add isSubmitting prop to exit form dialog in order to avoid enabling exit dialog while submit is still in progresS

* Replace handleSubmit global util with a hook to use exit form dialog props inside

* Move useHandleSubmit to general hooks dir, update imports

* Small fixes

* Update snapshots

* Fix types

* Small fixes due to extensive rebase

* Update package lock

* Fixes after rebase

* Remove exit form from customer address dialog

* Fix types and update messages

* Fix types

* Change imports names

* Refactor

* Remove unnecessary console.log

* Update types, snapshots. etc after rebase
2022-02-01 10:58:06 +01:00
Karolina Rakoczy
9b1fce078a
Add test for creating product type with gift card kind (#1776)
* add test for creating product type with gift card type

* change product type tests names

* update tests names for producttypes
2022-01-31 10:25:59 +01:00
Karolina Rakoczy
5ede05affe
fix failing tests (#1797)
* fix failing tests

* fix tests for gift cards

* fix tests for gift cards

* upload video only when fail

* fix preorder time

* fixed translation page

* fix navigation, stripe and adyen

* fix graphQl npm

* update stories
2022-01-31 09:37:49 +01:00
Wojciech Mista
6e5494d028
Cache user on auth provider re-render (#1793) 2022-01-31 09:33:04 +01:00
Wojciech Mista
517d3f9400
Reload page after navigation after error (#1795) 2022-01-31 09:30:13 +01:00
Dominik Żegleń
f8254fd11b
Bump macaw to 0.3 (#1807)
* Update to new design theme (#1631)

* Update macaw to 0.3.0 (#1623)

* Update macaw to 0.3

* Use proper pagination component

* Fix type errors

* Remove leftover import

* Remove variant and color from confirm button

* Remove alias

* Update macaw

* Fix button type

* Random fixes (#1633)

* Improve layout components

* Use colored svgs

* Minor fixes

* Fix autocomplete loaders

* Fix padding

* Fix button variant

* Remove codegen file

* Fixes after bumping macaw to 0.3 part 2 (#1638)

* Fix various visual bugs

* Fix type errors

* Bump macaw

* Random fixes part 3 (#1647)

* wip

* Fix mismatched paddings

* Fix actions container padding

* Put story in the right directory

* Fix shipping zone picker

* Fix minor visual bugs

* Remove unused imports

* Move styles to separate file

* Random fixes part 4 (#1641)

* Fix various visual bugs

* Fix type errors

* Fix last table item padding

* Add outline on hover

* Fix spaces

* Fix spaces

* Remove dead code

* Fix elevation

* Remove dead code

* Fix shadows

* Add outline to expand button

* Fix spacing

* Fix spacings

* Fix selectable tables hover

* Use proper delete icon

* Fix ConfirmButtonTransitionState imports

* Update src/apps/components/CustomApps/CustomApps.tsx

Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>

Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>

* Rework error page (#1670)

* Remake error page

* Fix types

* Update error id styles

* Fix types

* Login page rework (#1703)

* Rework login page

* Remove outline

* Fix logo and footer placement

* Sort imports

* Random fixes part 5 (#1669)

* Fix text color in dark mode

* Update password reset pages (#1714)

* Update password reset pages

* Update src/auth/components/ResetPasswordPage/ResetPasswordPage.tsx

Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>

Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>

* Fix collection page

* Update dark mode logo

* Bring back "create app" button

* Fix spacings

* Fix selects

* Fix login e2e test

* Fix not found page displaying

* Update selector

* Add missing package

* Let dropdown overflow through card

* Fix scroll

* Fix scroll

* Fix overflow on grid element

* Fix e2e tests

* Fix data-test-id

* Update snapshots

* Update messages

* Update macaw

* Update snapshots

* Use stable macaw version

Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>

* Update to new design theme (#1631)

* Update macaw to 0.3.0 (#1623)

* Update macaw to 0.3

* Use proper pagination component

* Fix type errors

* Remove leftover import

* Remove variant and color from confirm button

* Remove alias

* Update macaw

* Fix button type

* Random fixes (#1633)

* Improve layout components

* Use colored svgs

* Minor fixes

* Fix autocomplete loaders

* Fix padding

* Fix button variant

* Remove codegen file

* Fixes after bumping macaw to 0.3 part 2 (#1638)

* Fix various visual bugs

* Fix type errors

* Bump macaw

* Random fixes part 3 (#1647)

* wip

* Fix mismatched paddings

* Fix actions container padding

* Put story in the right directory

* Fix shipping zone picker

* Fix minor visual bugs

* Remove unused imports

* Move styles to separate file

* Random fixes part 4 (#1641)

* Fix various visual bugs

* Fix type errors

* Fix last table item padding

* Add outline on hover

* Fix spaces

* Fix spaces

* Remove dead code

* Fix elevation

* Remove dead code

* Fix shadows

* Add outline to expand button

* Fix spacing

* Fix spacings

* Fix selectable tables hover

* Use proper delete icon

* Fix ConfirmButtonTransitionState imports

* Update src/apps/components/CustomApps/CustomApps.tsx

Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>

Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>

* Rework error page (#1670)

* Remake error page

* Fix types

* Update error id styles

* Fix types

* Login page rework (#1703)

* Rework login page

* Remove outline

* Fix logo and footer placement

* Sort imports

* Random fixes part 5 (#1669)

* Fix text color in dark mode

* Update password reset pages (#1714)

* Update password reset pages

* Update src/auth/components/ResetPasswordPage/ResetPasswordPage.tsx

Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>

Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>

* Fix collection page

* Update dark mode logo

* Bring back "create app" button

* Fix spacings

* Fix selects

* Fix login e2e test

* Fix not found page displaying

* Update selector

* Add missing package

* Let dropdown overflow through card

* Fix scroll

* Fix scroll

* Fix overflow on grid element

* Fix e2e tests

* Fix data-test-id

* Update snapshots

* Update messages

* Update macaw

* Update snapshots

* Use stable macaw version

Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>

* Fix visual bugs and artifacts

* Fix dropdown menus being clipped (#1762)

* wip

* Fix clipped select menus

* Remove unused import

* Fix spacing

* Fix tests

* Fix select content appearing under dialogs (#1777)

* Fix type errors

* Fix bulk delete button placement

* Fix filter arrow buttons

* Fix messages

* Remove backling from pages list

* Move status above events

* Update messages and snapshots

Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2022-01-28 13:34:20 +01:00
Wojciech Mista
1ee2114153
Redirect user to created variant after variant create (#1790)
* Redirect user to the created variant after creation

* Refactor variant creation navigation to use onComplete
2022-01-28 09:06:21 +01:00
Wojciech Mista
50712e6155
Remove insert of html, replace it with a component (#1769) (#1799) 2022-01-26 13:07:18 +01:00
Wojciech Mista
8f9c1ba19e
Gift cards post mvp (#1632)
* Add gift bulk create (#1490)

* Add gift card bulk create dialog WIP

* Update schema, add gift card bulk create mutation and types

* Add gift card bulk create modal and mutation

* Fix types and update messages

* Refactor gift card bulk create

* Add closing gift card bulk create dialog after success

* Change gift card list closeDialog prop name to onClose

* Review fixes

* Review fixes

* Add error message to invalid expiryDate (#1518)

* Add error message to invalid expiryDate

* Add default messages

* Replace filter with some

* Add gift card export (#1499)

* wip

* Add exporting gift cards

* Update messages

* Fix types

* Review fixes

* Review fixes

* Refactor passing messages to export settings component

* Refactor

* Update messages

* Gift card customer page (#1520)

* Add gift cards card to customer page (#1456)

* WIP

* WIP

* Extract activate/deactivate logic to a hook

* add optional side action

* Add query for customer's gift cards

* Add component for giftcard status chip

* Graphql run types

* Add gift card card to customer page

* Fix status chip header

* Revert style change

* Unify status chip logic

* Fix naming scheme

* Add currentOpts to act/deactivate gift cards hook

* Add queries to refetch prop

* Simplify gift card list component

* Fix order status chip

* Extract messages to separate file

* Remove unused lines of code

* Tests and messages

* Fix card list rendering

* Type fix

* Code review fixes

* Review changes

* Scripts

* Change variable name

* Fix formatted message

* Check if giftcards exist before rendering collection

* Add loading button to CardMenu component (#1476)

* WIP

* WIP

* Add gift card card to customer page

* Fix status chip header

* Fix naming scheme

* Add currentOpts to act/deactivate gift cards hook

* Remove unused lines of code

* Revert style change

* Tests and messages

* Fix card list rendering

* Type fix

* Code review fixes

* Review changes

* Scripts

* Add loading animation to card menu buttons

* Added default messages

* Change conditional prop checking to filtering

* Issue gift card in customer page (#1468)

* WIP

* WIP

* Replace typed query with make query

* Add customer details context to customer page

* Add context to customer gift cards

* Disable customer select when initial customer is present

* Pass initial customer to create gift card form

* Fixes after cherry-pick

* Code cleanup

* Remove getInitialData function

* Remove unused package

* Remove new line

* Post-rebase fixes

* Code cleanup & extract messages

* Remove unused code

* Create customer details hook

* Minor fixes

* Update default messages

* Update gift card types

* Type fixes

* Change directory of useCustomerDetails hook

* CR Fixes

* Update tests

* Make PageTitleWithStatusChip use ExtendedPageHeader

* Update tests

* Update hook name

* Post-rebase fixes

* Eslint fix

* Fix scrollbar appearing in menu issue (#1539)

* Change displayCode to last4CodeChars (#1573)

* Add filtered redirect to gift card page from customer details (#1556)

* Limit number of channel list items (#1607)

* Add max height to single select field menu items container

* Add storybook case

* Update stories tests

* Fix gift card product changing to preorder on save issue (#1583)

* Variant preorder fix

* Global threshold input should be optional

* update snapshot

* Add displaying logic gift cards list toolbar (#1617)

* add displaying logic for gift card toolbar

* Logic fix

* Handle bulk export after creation (#1544)

* Add gift bulk create (#1490)

* Add gift card bulk create dialog WIP

* Update schema, add gift card bulk create mutation and types

* Add gift card bulk create modal and mutation

* Fix types and update messages

* Refactor gift card bulk create

* Add closing gift card bulk create dialog after success

* Change gift card list closeDialog prop name to onClose

* Review fixes

* Review fixes

* Add gift card export (#1499)

* wip

* Add exporting gift cards

* Update messages

* Fix types

* Review fixes

* Review fixes

* Refactor passing messages to export settings component

* Refactor

* Update messages

* Handle export after bulk gift card creation

* Add default messages

* Create an util function to get correct input for export

* Update component's name

* Change modal's title

* Update messages

Co-authored-by: Magdalena Markusik <magdalena@markusik.com>

* Gift Card List item number change doesn't refetch fix (#1643)

* Fix number of rows change not refetching list

* Add pagination reset

* Update descriptions for gift card messages to be more descriptive (#1648)

* Gift card history timeline  (#1597)

* Update queries and mutations

* Allow title to be a react node

* Show user name if it exists in data object

* Update types

* Refresh queries on note add

* Add gift card history

* type fix

* Update messages

* Fix timeline note

* Add event fragment to form update result

* Update types

* Fix typo

* Update messages

* Disable input if gift card is expired

* Remove unused imports

* CR Fixes

* Change messages location

* Change message to include user in order

* Allow adding notes to expired gift cards

* Fix disabled input showing dropdown issue (#1636)

* On click is disabled when component is disabled

* update tests

* Order filtering for gift cards in Order List View (#1628)

* Add gift card order filter

* Add gift card filter card in orders view

* Bump macaw version

* Update messages

* Update tests

* Code review changes

* update messages

* Change info card message to use only one message

* Fix order gift card filter

* Gift card filter in product list view (#1621)

* Add GiftCard or Normal filter in Product List View

* Fix tests

* Fix type check

* Don't filter if query param is not in enum

* Update messages

* Update tests

* Code cleanup

* Add default messages

* Pass intl rather than initialise it in util

* Post-rebase fixes

* Change product type details messages (#1642)

* Update product type gift card options messages

* update tests

* Add sorting to gift card list (#1569)

* Update queries and types for sorting

* Add optional handleError method to makeQuery

* Add sorting to gift card list

* Sorting hook uses useGiftCardList hook

* Convert to boolean

* Add default sorting field

* format fix

* Add expiry error handling for issuing gift cards (#1634)

* Add expiry error handling for issuing gift cards

* Add expiry error message to gift card bulk issue

* Update Gift Card tag queries to utilise multiple tags (#1685)

* Change displayCode to last4CodeChars (#1573)

* Update types

* WIP

* Update gift card forms to utilise multiple tags

* Code cleanup

* Update gift card event types

* Fixes

* Change column with no click handler behaviour

* Remove an ability to sort by tags

* Remove unused code

* Update tests

* Update timeline events

* Update messages

* change array reduce to join

* Add Y scroll to dialog content

* Bulk create Y scroll fix

* Endless loading fix (#1732)

* Order filtering for gift cards in Order List View (#1628)

* Add gift card order filter

* Add gift card filter card in orders view

* Bump macaw version

* Update messages

* Update tests

* Code review changes

* update messages

* Change info card message to use only one message

* Fix order gift card filter

* Wip

* Extract dialog component outside of gift card create

* Update component's name

* Extract dialog component outside of export component to provider

* Update tests

* Various gift card bugs fixes (#1749)

* Change currency to options field

* Fix hover and font size

* Fix gift card list width

* Fix bulk delete dialog

* Allow balance to be sorted only when currency is filtered

* Sorting by balance after removing currency filter defualts to usedBy

* Fix trash icon

* Add filter dependency

* Fix single deletion with bulk

* Update tests

* Refactor Links used in Gift Cards

* Fix export dialog (#1791)

Co-authored-by: Magdalena Markusik <magdalena@markusik.com>
2022-01-25 13:44:19 +01:00
Dawid Tarasiuk
53a391eebc
Allow no attribute values in variant creator (#1739)
* Allow no attribute values in variant creator

* Update test snapshots
2022-01-25 12:56:40 +02:00
Rafał Pitoń
b13ecfc197
Update schema (#1787) 2022-01-25 10:27:59 +01:00
Wojciech Mista
1e3f3eae8d
Removing collection fix (#1764)
* Pass combined choices to autocomplete handler

* Refactor autocomplete handler to use combined choices
2022-01-24 14:58:27 +01:00
Krzysztof Kulig
80f3af4e5e
Port new shipping method schema to 3.1 (#1768)
* Update schema

* refactor(shippingMethods): change name from availableShippingMethods to shippingMethod

* refactor(shippingMethods): change shippingMethod to shippingMethodType

* Add missing files

* refactor(order): add active and message prop to the shippingMethod field

* Add support for new webhook types

* refactor(OrderShippingMethodEditDialog): show inactive shipping method as disabled

* refactor(SingleSelectField): change the disabled prop strictly boolean

Co-authored-by: Dominik Żegleń <flesz3@o2.pl>

* refactor(OrderShippingMethodEditDialog): remove unused style

Co-authored-by: Michal Zajac <michal.99.zajac@gmail.com>
Co-authored-by: Michal Zajac <50200782+Michal99Zajac@users.noreply.github.com>
Co-authored-by: Dominik Żegleń <flesz3@o2.pl>
2022-01-24 14:50:17 +01:00
Karolina Rakoczy
204dfac29f
Add tests for content attributes fo 3.1 (#1773) 2022-01-24 13:09:48 +01:00
Wojciech Mista
ede2094d30
Redirect user back to the first landing page after external login (#1742)
* Preserve fallbackuri on external login

* Change default uri to "/"
2022-01-24 10:23:19 +01:00
Karolina Rakoczy
03f6034531
Always run critical tests (#1579)
* always run critical

* always run critical

* add opened type

* remove if

* run on click

* Always run critical - test PR (#1683)

* add extra condition for disabling button (#1530) (#1574)

* Fix overlapped content by sidebar (#1508)

* Fix overlapped content by sidebar

* Update app layout widths

* Update test snapshots

* Update macaw ui

* Update macaw-ui version

* Bump path-parse from 1.0.6 to 1.0.7 (#1585)

Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump axios from 0.21.1 to 0.21.4 (#1586)

Bumps [axios](https://github.com/axios/axios) from 0.21.1 to 0.21.4.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.21.1...v0.21.4)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump tmpl from 1.0.4 to 1.0.5 (#1587)

Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump semver-regex from 3.1.2 to 3.1.3 (#1588)

Bumps [semver-regex](https://github.com/sindresorhus/semver-regex) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/sindresorhus/semver-regex/releases)
- [Commits](https://github.com/sindresorhus/semver-regex/commits)

---
updated-dependencies:
- dependency-name: semver-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump dns-packet from 1.3.1 to 1.3.4 (#1591)

Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4.
- [Release notes](https://github.com/mafintosh/dns-packet/releases)
- [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mafintosh/dns-packet/compare/v1.3.1...v1.3.4)

---
updated-dependencies:
- dependency-name: dns-packet
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump postcss from 7.0.35 to 7.0.39 (#1590)

Bumps [postcss](https://github.com/postcss/postcss) from 7.0.35 to 7.0.39.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/7.0.39/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.35...7.0.39)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump url-parse from 1.5.1 to 1.5.3 (#1589)

Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.1 to 1.5.3.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.1...1.5.3)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Change ExpansionPanel as Accordion (#1279)

* Fix variant creation - remove channels + prices

* Update messages and snapshots

* Change ExpansionPanel as Accordion

* Update snapshots

Co-authored-by: Magdalena Markusik <magdalena.markusik@mirumee.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>

* fix product list covering search bar (#1527) (#1577)

* Add current usage on vouchers (#1519) (#1576)

* wip design label

* add usesLeft calculation

* snapshots & messages

* fix type errors

* add error on input and disable save button when value is invalid

* resetting input value to initial after checkbox state change

* remove uses left on new vouchers & set initial value to 1

* Allow to create simple product with no channels (#1552) (#1575)

* Add sorting products by update at date (#1581)

* Add sorting products by update at date

* Update messages

* Change columns order in product list view

* Display updated date column by default

* Use order token for metadata updates (#1604)

* Change height of channels availability list (#1608)

* Add permissions to Catalog menu item (#1614)

* Allow returning & refunding partially paid orders (#1572) (#1612)

* allow returning & refunding partially paid orders

* change function name

* Add tests for creating products without sku (#1550)

* create products without sku

* update stories

* update stories

* Fix partially cut checkboxes in channel dialogs (#1560) (#1613)

* wip logic for indeterminate icon

* wip remove unused imports

* fix cutted off checkbox ripples

* refactor & cleanup

* Remove hover state from order lines (#1557) (#1615)

* tests for updating products sku (#1555)

* Test for creating order with product without sku (#1559)

* Fix assign countries dialogs (#1610)

* Add orders filter by payment status (#1619)

* Add orders filter by payment status

* Move messages to root intl file

* Refactor sale update and create forms (#1553) (#1622)

* Update form types to include fixed and percentage values

* Update createSalechannels to include new value types

* Merge two update mutations to one

* Make value text field rely on form state rather than internal state

* Update submit handler, error and loading

* Update create and update sale price validation

* Typo

* Fix saleUpdate mutation

* post-rebase fix

* Update types

* Add tests for creating preorders (#1563)

* add test for creating preorder variant

* all tests for creating & editing variants in preorder

* Add optional channel selection in price and weight rates view + voucher view (#1531)

* Add useChannels test

* Fix unnecessary re-render that caused overwrite of form list

* Change array diff check

* Channel selection in price and weight rates is optional

* Fix refunded value calculation in order view (#1601)

* Fix refunded value calculation in order view

* Fix orders price alignment to right

* Update test snapshots

* Fix saving initial variant attributes (#1624)

* Fix long name vouchers (#1626) (#1640)

* Fix long name vouchers

* update snapshots

* QA improvements - wrap page headers

* QA improvements - same changes for sales

* Use node v14 for running tests on CI (#1646)

* Use old default for unhandled rejections flag

* Update type import

* Use less strict flag, fix types

* Use node v14 for running tests

* Add preorder and click&collect filters to order list (#1568)

* Add preorder and click&collect filters to order list

* Update messages

* Add fixtures

* Update snapshots

* Update snapshots and extract messages

* Searching addresses in order drafts (#1618) (#1655)

* Searching addresses in order drafts (#1618)

* wip search addresses

* wip fix query regex verification

* wip move dialog title & add selected label

* wip move dialog title

* wip edit icon

* wip address selection logic

* wip change messages

* wip message when search is unsuccesful

* wip add billing address change support

* wip default address validation & cleanup

* wip run tests & extract messages

* wip bump macaw

* tests & cleanup

* fix scrollbars

* remove address card wrapper

* apply code review suggestions

* remove comments

* Bump macaw to 0.2.7

* Fix outside modal click state retention

* Add tests for preorders- threshold and stocks (#1567)

* tests for preorder, stoks an threshold

* fix tests for ordering products in channel threshold

* Add new tests for login (#1580)

* always run critical

* tests for login

* tests for login

* Fix auto scroll (#1644)

* Limit quantity per checkout (#1536)

* Add site settings and variant detail text fields related with limit per checkout

* Add message translations

* Fix review issues pt.1

* Update snapshots

* Apply fixes after review pt.2

* Fix initial discount calculation on draft order line (#1651)

* Fix typos on customer details page (#1659)

* Fix typos on customer details page

* update tests

* Update tests

* test PR

* Separate sync and async app webhooks (#1635)

* Separate sync and async app webhooks

* Remove create webhook page and cleanups

* Update util

* Auto unselect events when anyEvent choice is selected

* Update test snapshots

* Fix attributeValueDelete mutation error - required first/last value (#1665) (#1679)

* Add items response in updateMetadata mutation (#1667) (#1680)

* add items to updateMetadata mutation

* same changes for private metadata

* build types

* Add tests for swatch attributes (#1606)

* always run critical

* tests for swatch attributes

* Update cypress/integration/configuration/attributes/attributes.js

Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>

Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>

* Fix error when clicked on filter if list is loading (#1661)

* Fix error when clicked on filter if list is loading

* CR Fixes

* Update tests

* Fix tests for purchase digital product for 3.1 (#1684)

* purchase digital product for 3.1

* purchase digital product for 3.1

* Disable form change check in variant creation (#1681)

* Fix modal footer shadow issue (#1686)

* Add tests for variant selection (#1627)

* variant selection

* variant selection

* add empty space

* Add missing input value, cast values to number (#1692)

* Fix failing cypress tests (#1671)

* fix tests

* fix prorders & images

* change base url

* remove comment

* tests for gift cards (#1677)

* Use Auth SDK (#1474)

* Use Auth SDK

* Update auth provider hook

* Update sdk module mapping

* Update setting password

* Fix no user details on first login

* Update auth tests

* Cleanups

* Update SDK

Update SDK

Update SDK

Update test recordings

Update SDK

* Implement SDK External Auth

Update new password view

Hnalde external logout

Update SDK

Fix logout external redirect

* Fix login page style

* Update SDK

* Auth Provider cleanups

Update and refactor auth

Auth types cleanups and refactor

* Update channel context provider

* Fix login error handling

* Logout immidiatelly non-staff user

* Update test snapshots

* Trigger CI

* Update to SDK v0.4, remove duplicated UserContext hook

* Handle server errors during login

* Fix wrong login page form submition handling

* Update login error messages

Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>

* fix login by API (#1700)

* Bump @saleor/sdk to 0.4.1 (#1708)

* Add tests for updating & deleting collections and categories (#1662) (#1693)

* tests for updating & deleting collections and categories

* add empty spaces

* fix create category

* Fix assign attributes dialog loader (#1705)

* Add tests for delete/update warehouse (#1676) (#1689)

* remove warehouse from shipping

* tests for warehouses

* tests for pages (#1695)

* Disable save in product create & edit when product name is empty (#1551) (#1710)

* disable save in product edit & create when name is empty

* code review refactor

* Fix disabled button

Co-authored-by: Magdalena Markusik <magdalena@markusik.com>

* fix incorrect logic

* fix incorrect logic

* fix disable form on product variant

Co-authored-by: Magdalena Markusik <magdalena@markusik.com>

Co-authored-by: Magdalena Markusik <magdalena@markusik.com>

* Display error if no invoicing plugin is active (#1709)

* Add error message if no invoice plugin installed

* Fix types

* Update messages

* Use variant prices in add product modal (#1698)

* Replace channel price with variant price; add new price label

* Update fixtures

* Remove unused code

* Remove unused style

* Lint fix

* Remove type conversion

* lint fix

* update queries and types

* CR Fixes

* Money align right

* Update tests for creating variants (#1718)

* merge

* add data-test-id to sku input

* remove data-test-id from sku input

* update stories

* remove duplicated attribute

* Fix EditorJS read-mode toggle race condition (#1711)

* Fix EditorJS read-mode toggle race condition

Fixes rare edge case when toggling read mode is peerformed at the same
time.

* Make PromiseQueue function

* Rename ExpansionPanel components to Accordion (#1727) (#1740)

* Logout redirects user to home page (#1721)

* Redirect to home page on logout

* Change internal redirect to use router

* Update authProvider test

* Add error handling to non-existent apps (#1723)

Co-authored-by: Michał Droń <dron.official@yahoo.com>
Co-authored-by: Dawid Tarasiuk <tarasiukdawid@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: whiteUnicorn <daehyun.baek1@gmail.com>
Co-authored-by: Magdalena Markusik <magdalena.markusik@mirumee.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>
Co-authored-by: Magdalena Markusik <magdalena@markusik.com>
Co-authored-by: Paweł Kucharski <pawel.kucharski@mirumee.com>
Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>
Co-authored-by: Dominik Żegleń <flesz3@o2.pl>

Co-authored-by: Michał Droń <dron.official@yahoo.com>
Co-authored-by: Dawid Tarasiuk <tarasiukdawid@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: whiteUnicorn <daehyun.baek1@gmail.com>
Co-authored-by: Magdalena Markusik <magdalena.markusik@mirumee.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>
Co-authored-by: Magdalena Markusik <magdalena@markusik.com>
Co-authored-by: Paweł Kucharski <pawel.kucharski@mirumee.com>
Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>
Co-authored-by: Dominik Żegleń <flesz3@o2.pl>
2022-01-21 14:56:26 +01:00
Dawid Tarasiuk
8b5dc985fd
Scroll to top on main navigation routes change (#1752) 2022-01-20 14:56:55 +02:00
Jakub Majorek
15ee95fba8
Fix internal redirect after logout (#1767) 2022-01-18 15:35:09 +01:00
Dominik Żegleń
2aab5b80ff
Fix link hrefs (#1761)
* Fix link hrefs

* Remove createHref

* Remove unused imports
2022-01-17 14:08:46 +01:00
Karolina Rakoczy
41e80d71c0
Add tests for attributes for 3.1 (#1725)
* merge changes

* fix bracket
2022-01-17 11:03:52 +01:00
Karolina Rakoczy
8d20394518
merge (#1726) 2022-01-14 11:08:25 +01:00
Wojciech Mista
e36da6df28
Fix overflow issue in export dialog (#1737) 2022-01-13 15:03:33 +01:00
Wojciech Mista
d17bd24419
fix shop version loading (#1734) 2022-01-13 15:03:19 +01:00
Dawid Tarasiuk
c2ea65dea7
Fix switch account login and credentials API wrong login loop issues (#1729)
* Fix switch account login and credentials API wrong login loop issues

* Update auth provider hook
2022-01-13 15:08:07 +02:00
Karolina Rakoczy
0e6ac66fb9
Record test in cypress dashboard for 3.1 (#1748)
* merge changes

* update npm graphql
2022-01-13 13:59:39 +01:00
Michał Droń
ce2f90946c
Add product type link in product details view (#1724) (#1750)
* add link to product type in product details

* fix tests

* Apply CR suggestion

Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>

* improve Link component

* Fix tests - add memory router

* fix undefined value in createHref

* fix onclick when it is not provided

* Fix undefined app mount uri

* fix undefined api uri in ci/cd tests

* remove onclick from product type link

Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>

Co-authored-by: Wojciech Mista <wojciech.mista@saleor.io>
2022-01-13 13:04:45 +01:00
Karolina Rakoczy
55492aff9a
Saleor 5021 add tests for customers (#1688) (#1733)
* customers

* all tests for customers

* change data-test attribute name

* add empty lines
2022-01-13 11:21:21 +01:00
Jakub Majorek
df29cf6adf
Adjust changed permission requirements(#1542) (#1747)
Co-authored-by: sektordv <roman@sawblade.pl>

Co-authored-by: sektordv <roman@sawblade.pl>
2022-01-12 14:14:46 +01:00
Wojciech Mista
ed262f913d
Add error handling to non-existent apps (#1723) 2022-01-11 13:34:48 +01:00
Wojciech Mista
d4a28fedf2
Logout redirects user to home page (#1721)
* Redirect to home page on logout

* Change internal redirect to use router

* Update authProvider test
2022-01-11 13:32:59 +01:00
Michał Droń
3bb7209db7
Rename ExpansionPanel components to Accordion (#1727) (#1740) 2022-01-11 09:05:45 +01:00
Dawid Tarasiuk
4c53dd0792
Fix EditorJS read-mode toggle race condition (#1711)
* Fix EditorJS read-mode toggle race condition

Fixes rare edge case when toggling read mode is peerformed at the same
time.

* Make PromiseQueue function
2022-01-10 14:34:17 +02:00
Karolina Rakoczy
a01a2b5a30
Update tests for creating variants (#1718)
* merge

* add data-test-id to sku input

* remove data-test-id from sku input

* update stories

* remove duplicated attribute
2022-01-04 16:13:15 +01:00