Commit graph

2343 commits

Author SHA1 Message Date
Tomasz Szymanski
743e122029 Temporary changes for unconfirmed discounts 2021-03-23 10:19:11 +01:00
Tomasz Szymanski
b4a7c9f471 Merge branch 'master' of github.com:mirumee/saleor-dashboard into feature/unconfirmed-order-line-manipulation 2021-03-23 08:52:27 +01:00
Tomasz Szymanski
755fed7cc7 Fix missing email event 2021-03-22 12:34:28 +01:00
Tomasz Szymanski
e637b77fb4 Missing emails event 2021-03-22 12:16:48 +01:00
Jakub Majorek
7bc4bc6696
Define node requirements, ts cleanup (#1008)
* Define node requirements, ts cleanup

* Update snapshot

* fix tests
2021-03-19 13:06:17 +01:00
Grzegorz Derdak
429e7b9d83
Add ability to upload video URL to product gallery (#972)
* Create a dropdown and modal for uploading Video URLs

* Add ability to upload video URL to product gallery

* Add support for other video providers, minor UI tweaks

* Extract translations

* Style changes

* Adjust dashboard to fetch media oembed data

* Update codebase to match the schema

* Changes after code review

* Update schema.graphql and fixtures

* Update defaultMessages.json

* Fix failing jest tests

* Update schema and types
2021-03-17 14:07:48 +01:00
Karolina
f8d5593fc3
Saleor 1741 tests for orders (#1011)
* first test for draft orders

* tests for channels in draft orders

* tests for channels in draft orders

* tests for channels in draft orders

* test for moving draft order to orders

* test for orders

* test for orders

* tests for draft orders

* tests for draft orders

* tests for draft orders

* tests for draft orders

* test for moving draft order

* tests for orders
2021-03-17 11:00:30 +01:00
Tomasz Szymanski
17e01508a6 Merge branch 'master' of github.com:mirumee/saleor-dashboard into feature/unconfirmed-order-line-manipulation 2021-03-16 11:11:47 +01:00
Piotr Grundas
824f1cdb9e
Add product variant events (#1006)
* Add product variant events to apps panel

* Update snapshots

* Update changelog

* Bump translations
2021-03-16 10:03:11 +01:00
Karolina
0157914edb
Saleor 1740 tests for draft orders (#1002)
* first test for draft orders

* tests for channels in draft orders

* tests for channels in draft orders

* tests for channels in draft orders

* test for moving draft order to orders

* test for orders

* test for orders

* tests for draft orders

* tests for draft orders

* tests for draft orders

* tests for draft orders

* test for moving draft order
2021-03-15 14:16:02 +01:00
Karolina
746ce8b95f
Saleor 1745 tests for discounts sales (#998)
* test plan for sales - discounts

* create sale

* passing tests for sales

* tests for collections

* remove eslint diable in sales tests

* remove eslint-disable

* move shared selectors

* move shared selectors

* fix indentation in requests

* add formatDate function

* remove moment

* remove moment
2021-03-12 15:57:02 +01:00
Karolina
fc597a7a7f
Saleor 2590 remove classes from cypress tests (#1003)
* remove classes in shipping & products utils

* remove classes

* add const

* remove getters in ProductsUtils

* remove getters in Utils

* remove getters in Utils
2021-03-12 13:14:18 +01:00
Tomasz Szymański
88f51a1d31
Refactor of postalCodes related components (#999)
* Refactor of postalCodes related components

* CR changes

* Simplify postal codes reducer

* Typing for newState in postal codes reducer
2021-03-12 12:55:14 +01:00
Dawid Tarasiuk
bf9b7c5120
Use sortBy for search products (#997) 2021-03-11 11:40:58 +01:00
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
Tomasz Szymanski
5d63968a6f Merge branch 'master' of github.com:mirumee/saleor-dashboard into feature/unconfirmed-order-line-manipulation 2021-03-03 09:35:09 +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