Commit graph

2165 commits

Author SHA1 Message Date
Jakub Majorek
a7736e2bf9
Attach permission variables to all queries (#1000)
* [SALEOR-2190] Attach permission variables to all queries

* Fix TS linter issues

* Update package-lock
2021-03-09 09:44:09 +01:00
mmarkusik
2cd4ea9529
Saleor 1856/implement discount modal 2 (#978)
* Add currency to orderline unitprice and update hella lots of types

* wip

* Add diiscount modal component

* Refactor action dialog - move buttons to separate component so they can be reused

* Add discount provider to keep logic of discounts separated and wrap proper components

* Add discount ccalculator util class, and make draft details summary use it, along with discounts data, modal etc

* UUpdate lots of types, fragments, schema etc

* Update quries and mutations

* ARename OrderLineDiscountModal -> OrderDiscountCommonModal, add types etc

* Add order line discount provider + consumer, same for order discount

* Fix ts wip

* Update schema and types

* Update order discount provider

* Add nnetto price to order details fragment and update lots of types

* Adjust fixtures to order details containing net total

* Move both order and order line provider to same dir to make types and utils more accessible

* Update schema to match master

* Update schema and types

* Update order history, add some related components, add events etc.

* Fix types

* Fix schema to match master

* Update messages

* Update changelog

* Retrigger build

* Add stories and update common modal to display floats properly

* Add and update stories and tests

* Add optional displaying of reason in case it's empty

* Make user name label for history events return email if last name and first name are absent

* Update schema, types, and mutations to properly refresh

* Remove unnecessary imports

* Add discounts decorator to draft details page storybook

* Fixs after review

* Update messages

* Small fixes to timeline events

* Update types for order shipping price to use net as well, fix labels in draft summary and add colors to theme palette

* Updaste tests, messages

* Fixs after review

* Add theme highlighted active and inactive color text, add valuue conversion to discount modal when changing calculation mode

* Add change to changelog

* Add extra options to select employee display name for order event when some data is missing. Also add filtering null elements in event header when data missing alltogether and element is null

* Refactor selecting employee name in utils

* Add conditional to extended timeline event when orderline is null
2021-03-05 15:52:02 +01:00
Jakub Majorek
3d8a849301
[SALEOR-2587] Handle null orderLine item (#1001) 2021-03-05 11:02:27 +01:00
Karolina
8075d72c17
Merge pull request #996 from mirumee/SALEOR-1744-Tests-for-Collections
Saleor 1744 tests for collections
2021-03-04 16:15:20 +01:00
Karolina Rakoczy
bc9d6a0666 tests for collections 2021-03-04 15:51:55 +01:00
Karolina Rakoczy
b6093e3fc5 resolve conflicts 2021-03-04 13:58:01 +01:00
Karolina
6c5e3d923a
Merge pull request #995 from mirumee/SALEOR-1743-Tests-for-variants
Saleor 1743 tests for variants
2021-03-04 13:36:59 +01:00
Karolina Rakoczy
44a0a6555e add isVisible utils function 2021-03-04 13:35:45 +01:00
Karolina Rakoczy
c9df58727b rename test in collectins tests 2021-03-03 11:40:33 +01:00
Karolina Rakoczy
5df9a927d0 rename test in collectins tests 2021-03-03 09:42:07 +01:00
Karolina Rakoczy
a9999c43d8 fix tests for variants 2021-03-02 18:26:57 +01:00
Krzysztof Wolski
ad0d723a09
Fix rich text editor bug at page creation (#994) 2021-03-02 11:24:25 +01:00
Karolina Rakoczy
44a6f21128 update stories 2021-03-02 10:29:46 +01:00
Karolina Rakoczy
cf0b3b1bf6 tests for collections 2021-03-02 10:01:58 +01:00
Karolina Rakoczy
a8a9a5eb3a tests for collections 2021-03-02 09:38:24 +01:00
Karolina Rakoczy
fb36c6b633 tests for variants 2021-03-01 16:28:14 +01:00
Karolina Rakoczy
62cf68c841 tests for variants 2021-03-01 16:27:37 +01:00
Karolina Rakoczy
ad3c1de234 tests for variants 2021-03-01 15:51:46 +01:00
Karolina Rakoczy
00e28061bd tests for variants 2021-03-01 13:50:36 +01:00
Karolina Rakoczy
30e3fd9320 tests for variants 2021-03-01 13:37:31 +01:00
Karolina Rakoczy
af059da41b tests for collections 2021-03-01 13:25:13 +01:00
Karolina Rakoczy
dfdf43fed5 merge with master 2021-03-01 13:07:05 +01:00
Karolina Rakoczy
4a64dd8d57 tests for variants 2021-03-01 12:54:08 +01:00
Karolina
4e99c7bcdf
Merge pull request #979 from mirumee/SALEOR-1742-Tests-for-products
Saleor 1742 tests for products
2021-03-01 10:29:00 +01:00
Karolina Rakoczy
7e793140e7 test for variants 2021-02-26 16:39:42 +01:00
Karolina Rakoczy
36dca95454 test for products, remove cy command 2021-02-26 15:34:35 +01:00
Karolina Rakoczy
089a2c428d test for variants 2021-02-26 15:32:01 +01:00
Krzysztof Wolski
e3bcd3e008
Update changelog after community contribution (#991) 2021-02-25 14:55:59 +01:00
Danilo Gačević
0af427e36e
fix: trigger form change when collections are being added to list of product collections (#987)
* fix: trigger form change when collections are being added to list of product collections

* fix: eslint and prettier

Co-authored-by: danilofatcat <danilo.gacevic@fatcatcoders.com>
2021-02-25 14:00:47 +01:00
Karolina Rakoczy
fde78fe874 remove class 2021-02-25 11:40:07 +01:00
Karolina Rakoczy
ded6cdd5c4 tests for variants 2021-02-25 10:51:52 +01:00
Karolina Rakoczy
83bf59889e merge with products 2021-02-24 20:35:37 +01:00
Karolina Rakoczy
6e6b9956ef collections tests 2021-02-24 14:21:19 +01:00
Karolina Rakoczy
095a5522d3 fix login commands 2021-02-24 12:21:06 +01:00
Jakub Majorek
e5e5c638ad
Configuration changes (#988)
* Use root path for development

* Use cheaper source maps for development
2021-02-24 12:20:59 +01:00
Karolina Rakoczy
3a90d9bdc2 fix login commands 2021-02-24 12:19:17 +01:00
Karolina Rakoczy
f1c86f0a4d tests for products -change login cy command 2021-02-24 10:27:57 +01:00
Karolina Rakoczy
ac7f1b19b6 tests for products - fix storefront req 2021-02-23 15:30:52 +01:00
Karolina Rakoczy
e8c20ae511 tests for products 2021-02-23 13:09:58 +01:00
Tomasz Szymański
c30429f7f4
Implement inclusion feature of postal codes (#983)
* Temporary merged schema and types update

* Update typing for zipCodeRules -> postalCodeRules

* Refactor zipCodes to postalCodes

* Fix new schema webhooks

* Delete postal code unassign dialog

* Query inclusion type from backend

* Clean up schema from old mutations

* Proper new mutations structure, all postal code related changes

* Linter changes

* Fix bug with save not being refreshed after codes are added / deleted / inclusion change

* Tests and translations

* Fix warnings across app, minor variables refactor

* Linting

* Trigger deployment

* CR changes, cleanups and refactors

* Update snapshots

* Resolve bug with radio not shows correct value on page refresh

* Fix price and weight creation of codes

* Reducer

* Revert "Reducer"

This reverts commit 07a3aed9c88332bde7d9be61b6dbc29e34e4edba.
2021-02-23 09:58:25 +01:00
mmarkusik
626fa1336f
Merge pull request #985 from mirumee/SALEOR-2270/update-nullable-editor-js-fields
Saleor 2270/update nullable editor js fields
2021-02-22 15:34:26 +01:00
Magdalena Markusik
c7fa1ae79d Update snapshots 2021-02-22 13:38:24 +01:00
Magdalena Markusik
bf5e775cbf Merge with master, resolve conflicts 2021-02-22 13:26:32 +01:00
Karolina Rakoczy
170a9b8b44 tests for collections 2021-02-22 13:10:51 +01:00
Sebastian Kalinowski
af01ebe4dc
fix: Use STATIC_URL in development server (#980)
`publicPath` was not set to STATIC_URL when making use
of development server. This prevented properly put dashboard
under subdir in some cases in development mode.
2021-02-22 12:47:57 +01:00
Karolina
153b52dc0f
Merge pull request #986 from mirumee/Skip-cypress-test-in-PR-from-private-forks
Skip cypress test if PR from private fork
2021-02-19 19:17:22 +01:00
Karolina Rakoczy
ca5df50640 tests for collections 2021-02-19 13:41:40 +01:00
Karolina Rakoczy
2ea9035e9c 2021-02-19 12:08:10 +01:00
Karolina Rakoczy
4fc9fefa74 tests for products 2021-02-19 10:57:25 +01:00
Karolina Rakoczy
03c6149f6f tests for variants 2021-02-19 09:45:34 +01:00