Commit graph

2820 commits

Author SHA1 Message Date
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
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