Commit graph

2809 commits

Author SHA1 Message Date
Wojciech Mista
6e09ec9bb2
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
2021-12-23 16:00:37 +01:00
Dominik Żegleń
ff14720e23
Display error if no invoicing plugin is active (#1709)
* Add error message if no invoice plugin installed

* Fix types

* Update messages
2021-12-23 13:42:10 +01:00
Michał Droń
c6e6aeff50
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>
2021-12-22 15:09:29 +01:00
Karolina Rakoczy
95c85a72ed
tests for pages (#1695) 2021-12-22 14:55:08 +01:00
Karolina Rakoczy
926d481268
Add tests for delete/update warehouse (#1676) (#1689)
* remove warehouse from shipping

* tests for warehouses
2021-12-22 14:54:09 +01:00
Dawid Tarasiuk
800f02a635
Fix assign attributes dialog loader (#1705) 2021-12-22 14:51:28 +02:00
Karolina Rakoczy
ef983cc347
Add tests for updating & deleting collections and categories (#1662) (#1693)
* tests for updating & deleting collections and categories

* add empty spaces

* fix create category
2021-12-22 12:27:28 +01:00
Jakub Majorek
5d0c3faa0b
Bump @saleor/sdk to 0.4.1 (#1708) 2021-12-21 10:32:44 +01:00
Karolina Rakoczy
4b05f67b2c
fix login by API (#1700) 2021-12-17 14:27:13 +01:00
Dawid Tarasiuk
4880093f63
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>
2021-12-17 12:10:54 +01:00
Karolina Rakoczy
866bb91177
tests for gift cards (#1677) 2021-12-17 12:08:13 +01:00
Karolina Rakoczy
5a14884f9d
Fix failing cypress tests (#1671)
* fix tests

* fix prorders & images

* change base url

* remove comment
2021-12-17 12:07:51 +01:00
Jakub Majorek
6e9b12b04e
Add missing input value, cast values to number (#1692) 2021-12-17 11:16:44 +01:00
Karolina Rakoczy
a8c6379d4e
Add tests for variant selection (#1627)
* variant selection

* variant selection

* add empty space
2021-12-16 16:16:12 +01:00
Dawid Tarasiuk
9df66818a1
Fix modal footer shadow issue (#1686) 2021-12-16 13:36:03 +02:00
Dawid Tarasiuk
0334411294
Disable form change check in variant creation (#1681) 2021-12-16 13:32:27 +02:00
Karolina Rakoczy
6f8feebf7c
Fix tests for purchase digital product for 3.1 (#1684)
* purchase digital product for 3.1

* purchase digital product for 3.1
2021-12-15 13:17:35 +01:00
Wojciech Mista
ee9e55db0f
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
2021-12-15 11:50:35 +01:00
Karolina Rakoczy
3fd50ee3a7
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>
2021-12-14 12:14:40 +01:00
Michał Droń
92a5563330
Add items response in updateMetadata mutation (#1667) (#1680)
* add items to updateMetadata mutation

* same changes for private metadata

* build types
2021-12-14 10:48:46 +01:00
Michał Droń
fc2aed4725
Fix attributeValueDelete mutation error - required first/last value (#1665) (#1679) 2021-12-14 10:48:12 +01:00
Dawid Tarasiuk
147d8c89cb
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
2021-12-13 15:43:30 +01:00
Wojciech Mista
e875b02adc
Fix typos on customer details page (#1659)
* Fix typos on customer details page

* update tests

* Update tests
2021-12-08 12:20:59 +01:00
Jakub Majorek
f78d5fcc5d
Fix initial discount calculation on draft order line (#1651) 2021-12-07 10:44:49 +01:00
Paweł Kucharski
05cc720b6e
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
2021-12-07 10:43:24 +01:00
Dawid Tarasiuk
f111081331
Fix auto scroll (#1644) 2021-12-06 16:41:18 +02:00
Karolina Rakoczy
e2c05e7dd6
Add new tests for login (#1580)
* always run critical

* tests for login

* tests for login
2021-12-05 16:03:29 +01:00
Karolina Rakoczy
b7da933bf2
Add tests for preorders- threshold and stocks (#1567)
* tests for preorder, stoks an threshold

* fix tests for ordering products in channel threshold
2021-12-05 16:03:04 +01:00
Michał Droń
78f7b5d4fb
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
2021-12-03 12:59:29 +01:00
Magdalena Markusik
bdaeb8b621
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
2021-12-02 16:42:01 +01:00
Jakub Majorek
69b7f64403
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
2021-12-02 15:56:54 +01:00
Michał Droń
ae1d1f478a
Fix long name vouchers (#1626) (#1640)
* Fix long name vouchers

* update snapshots

* QA improvements - wrap page headers

* QA improvements - same changes for sales
2021-12-01 14:37:51 +01:00
Dawid Tarasiuk
45c2726910
Fix saving initial variant attributes (#1624) 2021-11-29 14:32:51 +02:00
Dawid Tarasiuk
057940c99a
Fix refunded value calculation in order view (#1601)
* Fix refunded value calculation in order view

* Fix orders price alignment to right

* Update test snapshots
2021-11-29 14:30:23 +02:00
Wojciech Mista
f9a090ee47
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
2021-11-29 09:32:06 +01:00
Karolina Rakoczy
925e723c35
Add tests for creating preorders (#1563)
* add test for creating preorder variant

* all tests for creating & editing variants in preorder
2021-11-26 12:42:59 +02:00
Wojciech Mista
9ffa27a03f
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
2021-11-24 14:25:46 +01:00
Dawid Tarasiuk
7ac687d082
Add orders filter by payment status (#1619)
* Add orders filter by payment status

* Move messages to root intl file
2021-11-24 12:13:53 +02:00
Dawid Tarasiuk
8cb665e091
Fix assign countries dialogs (#1610) 2021-11-23 10:03:07 +01:00
Karolina Rakoczy
56b48b87ea
Test for creating order with product without sku (#1559) 2021-11-22 16:34:21 +04:00
Karolina Rakoczy
2eb7193ce9
tests for updating products sku (#1555) 2021-11-22 15:59:50 +04:00
Michał Droń
c4cd76eff0
Remove hover state from order lines (#1557) (#1615) 2021-11-22 12:57:54 +01:00
Michał Droń
06f0697438
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
2021-11-22 12:57:32 +01:00
Karolina Rakoczy
a311583647
Add tests for creating products without sku (#1550)
* create products without sku

* update stories

* update stories
2021-11-22 15:57:20 +04:00
Michał Droń
241be6b6ee
Allow returning & refunding partially paid orders (#1572) (#1612)
* allow returning & refunding partially paid orders

* change function name
2021-11-19 14:32:30 +01:00
Wojciech Mista
31adc671a3
Add permissions to Catalog menu item (#1614) 2021-11-19 14:32:02 +01:00
Wojciech Mista
31046ae356
Change height of channels availability list (#1608) 2021-11-18 13:20:10 +01:00
Dawid Tarasiuk
e10d79aceb
Use order token for metadata updates (#1604) 2021-11-17 15:13:41 +02:00
Dawid Tarasiuk
b50225aaa2
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
2021-11-17 14:49:22 +02:00
Michał Droń
c3cc2b03de
Allow to create simple product with no channels (#1552) (#1575) 2021-11-10 13:16:49 +01:00