Michał Droń
d5c9a3dae8
Add trailing commas ( #2062 )
...
* Require trailing commas
* Add trailing commas
* Add trailing commas in testUtils dir
* Add trailing commas
2022-06-21 11:36:55 +02: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
Dawid Tarasiuk
0e054cc1e4
Saleor 2798 user addresses selection for draft order ( #1082 )
...
* Create user addresses select modal
* Prepare user addresses select modal form
* Add user addresses select modal to order draft details page
* Update draft order validation of adresses in edit modal
* Add Customer Change modal
* Update snapshots and messages
* Indication of address form errors by address type
* Refactor addresses submiting
* Refactor address transform functions
* Add data-testids to addresses change dialog
* Update customer address choice style
* Trigger CI
* Update customer addresses edit flow
* Move styles outside of component files
* Refactor after review
* Refactor after review
* Do not update customer if the same selected
* Handle setting adress after edit customer with no addresses
* Trigger CI
2021-05-06 13:38:15 +02:00