Commit graph

2729 commits

Author SHA1 Message Date
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
Michał Droń
3de07a4f3b
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
2021-11-10 13:05:56 +01:00
Michał Droń
4f18947dda
fix product list covering search bar (#1527) (#1577) 2021-11-10 12:54:22 +01:00
whiteUnicorn
feef026fd0
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>
2021-11-10 11:55:27 +01:00
dependabot[bot]
c6cfb2ecc9
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>
2021-11-09 16:37:23 +01:00
dependabot[bot]
c6178c30c6
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>
2021-11-09 16:37:10 +01:00
dependabot[bot]
a31e286009
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>
2021-11-09 16:36:55 +01:00
dependabot[bot]
afe170cdfc
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>
2021-11-09 12:55:41 +01:00
dependabot[bot]
b6fca536a6
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>
2021-11-09 12:55:30 +01:00
dependabot[bot]
b13b1bacca
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>
2021-11-09 12:55:21 +01:00
dependabot[bot]
f7627ca6c5
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>
2021-11-09 12:55:10 +01:00
Dawid Tarasiuk
0fb58ea800
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
2021-11-09 13:17:18 +02:00
Michał Droń
7bc9825a0b
add extra condition for disabling button (#1530) (#1574) 2021-11-08 13:45:50 +01:00
Wojciech Mista
7db7ac88d2
Add contentType prop to file attribute mutation (#1534) (#1570)
* Add contentType parameter to mutation variables

* Fix type issue
2021-11-08 10:41:27 +01:00
Michał Droń
8584301c8f
Add scrollable area for user addresses (#1561) (#1564)
* Add scrollable area for user addresses (#1561)

* add scrollable area for user addresses

* fix billing address

* Trigger deployment
2021-11-08 10:10:27 +01:00
Karolina Rakoczy
a39f729a1f
update tests for vouchers (#1546) 2021-11-03 12:29:59 +01:00
Karolina Rakoczy
80809a078a
Fix cypress tests (#1541)
* fix tests

* fix base url

* fix varinats tests
2021-11-03 12:15:39 +01:00
Karolina Rakoczy
b0369bf5ca
tests for sales (#1494)
* tests for sales

* fix create sale with assigned products tests and add test for deleting voucher

* remove unused imports

* Update cypress/support/api/utils/discounts/salesUtils.js

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

* fix async, remove unused imports

Co-authored-by: Dominik Żegleń <flesz3@o2.pl>
2021-10-28 16:43:26 +02:00
Karolina Rakoczy
d618b8e775
Add tests for stripe (#1529)
* test for stripe

* first test for stripe

* tests for stripe

* remove comment

* fix import

* fix import

* remove todo
2021-10-28 14:14:07 +02:00
Michał Droń
d0a6e10cec
Fix type error when returning items (#1525) (#1548)
* optional chaining wip

* resolve property of undefined error

* remove error toast when there is no error

* revert makeMutation

* apply suggestions from code review

* revert newline

* code review suggestions

* remove unnecessary optional chaining

* fix orderRefund undefined errors
2021-10-27 11:02:23 +02:00
Michał Droń
a466676858
Fix pagination state after refresh (#1496) (#1515)
* fix pagination state after refresh

* remove unused imports

* remove unused imports

* add newline

* add generic types to hook parameters
2021-10-25 17:29:27 +02:00
Wojciech Mista
2eec208144
Fix channel picker hiding in resend code modal bug (#1479)
* Replace savebar with actionbar

* Bump macaw version to 0.2.5

* Update tests
2021-10-21 13:25:24 +02:00
Karolina Rakoczy
cc7626be42
Duplicate current test for sales to work on variants instead on products (#1491)
* Duplicate current test for sales to work on variants instead on products

* remove unecessery imports

* Update cypress/integration/discounts/salesForVariants.js

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

Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>
2021-10-21 12:47:18 +02:00
Karolina Rakoczy
29a90f3e3d
test for refresh (#1497) 2021-10-21 12:46:17 +02:00
Karolina Rakoczy
39c1e8e208
tests for click & collect (#1488) 2021-10-21 12:45:38 +02:00
Michał Droń
e879a0c1d5
Disable auto scroll to the top on assign references (#1510) (#1524)
* add resetScroll behavior to navigator hook

* disable scroll to top on modal close

* refactor useNavigator hook

* fix linter issue

* fix no default value of destructured parameter
2021-10-21 10:34:56 +02:00
Wojciech Mista
fe3de902b1
Add metadata input filtering before create/update (#1495)
* Add metadata input filtering before create/update

* Small refactor

* remove unnecessary return
2021-10-19 15:23:02 +02:00
Michał Droń
13c63283a9
Fix empty label on button (#1504) (#1514)
* Fix empty label on button (#1504)

* Trigger deployment
2021-10-19 12:04:53 +02:00
Szymon Wiszczuk
39dabc8ea2
Variant selection attributes (#1463)
* Create separate table for variant attributes and handle variant selection state

* implemented most required changes

* implementation

* localize leftover string

* implement most cr changes

* implemented most of cr changes

* add additional comment and fix ci

* reorder update mutation for BE consistency

Co-authored-by: bonifacy1 <szewczyk134@gmail.com>
2021-10-19 10:38:54 +02:00
Michał Droń
19f90d29e8
Fix wrapping issue & typos on homescreen (#1505) (#1517)
* fix wrapping issues & messages

* fix messages id & camelCase
2021-10-18 12:18:46 +02:00
Magdalena Markusik
314b043afa
Saleor 4626/fix shipping zone rate UI (#1511)
* Fix shipping zone rates ui

* Update tests and messages
2021-10-18 10:57:53 +02:00