saleor-dashboard/src/customers/components
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
..
CustomerAddress Saleor 5021 add tests for customers (#1688) (#1733) 2022-01-13 11:21:21 +01:00
CustomerAddressChoiceCard Refactor changing address in order details directly (#1697) (#1818) 2022-02-02 12:22:39 +01:00
CustomerAddressDialog Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
CustomerAddresses Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
CustomerAddressListPage Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
CustomerCreateAddress Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
CustomerCreateDetails Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
CustomerCreateNote Reduce bundle size (#1103) 2021-05-14 10:15:15 +02:00
CustomerCreatePage Exit dirty form (#1816) 2022-02-01 10:58:06 +01:00
CustomerDetails Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
CustomerDetailsPage Exit dirty form (#1816) 2022-02-01 10:58:06 +01:00
CustomerInfo Fix typos on customer details page (#1659) 2021-12-08 12:20:59 +01:00
CustomerList Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00
CustomerListPage Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
CustomerOrders Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
CustomerStats Use MacawUI (#1229) 2021-07-21 10:59:52 +02:00