Commit graph

54 commits

Author SHA1 Message Date
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
Dawid Tarasiuk
1e140853ec
File attributes (#884)
* Update changelog with file attributes

* Add file type attribute

* Update attribute properties form

* Update translation messages with file upload

* Create generic attributes component (#832)

* Create generic Attributes component

* Add story for Attributes component

* Remove deprecated attribute value type field from queries

* Update test snapshots of attributes component

* Add file upload field to atributes (#888)

* Add story for Attributes component

* Update test snapshots of attributes component

* Create file upload field in attributes

* Update upload file input data-test

* Update storybook test snapshots of attributes

* Add dedicated input props to file field

* Run Cypress using custom API

* Add missing error handling in file upload field

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>

* Add file attribute upload to page attributes (#894)

* Support upload file attribute for pages

* Update after review

* Add file attribute upload to variant attributes (#892)

* Support upload file attribute for variants

* Update after review

* Refactor attribute values errors merging

* Update after review

* Add file attribute upload to product attributes (#826)

* Support upload file attribute for products

* Update after review

* Refactor attribute values errors merging

* Refactor product attribute value delete handling

* Fix deleting file in file upload field

* Fix delete attribute values errors handling

* Add link to file upload field (#898)

* Update file attributes updates (#899)

* Update file attributes updates

* Refactor file uploads handling

* Move attributes utils to attributes directory

* Fix product channel listing updates

* Clear file field value if file is not passed as prop

* Delete attribute values before update (#908)

* Delete file attributes after file update

* Triggr CI

* Show skeleton in file upload field during loading

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
2020-12-16 11:53:28 +01:00
Dominik Żegleń
c7cd531aeb
Fix Chrome 87 fieldset rendering bug (#883)
* Fix order page gray box

* Fix shipping page gray boxes

* Do not put background to fieldsets

Fixes Chrome 87 bug

* Fix disabled style

* Update snapshots

* Trigger CI

* Revert card changes
2020-12-04 13:45:49 +01:00
Marek Choiński
c96d252fd1
Remove zero opacity for placeholders (#846) 2020-11-20 15:23:50 +01:00
AlicjaSzu
eba4ba2edf
update VisibilityCard component (#679)
* update VisibilityCard component

* add visibleInListings in Product

* update mutations and types with visibleInListings

* update ProductExportDialogInfo with availableForPurchase

* update defaultMessages

* update useDateLocalize hook

* update cypress tests

* update orders with availability info

* revert cypress changes

* update changelog

* update product update handlers

* fix VisibilityCard styles

* create AvailabilityCard component

* update defaultMessages

* update snapshots and messages

* fix ProductCreatePage form data types

* update defaultMessages
2020-09-03 12:25:16 +02:00
dominik-zeglen
09fd02ddec Update checkboxes to newest design 2020-08-18 16:10:15 +02:00
dominik-zeglen
88168cb157 wip 2020-08-18 16:10:14 +02:00
AlicjaSzu
2921d14b75 update messages stories 2020-07-02 14:49:41 +02:00
AlicjaSzu
58c0a5859a use react-alert to render multiple notifications 2020-07-02 14:49:38 +02:00
AlicjaSzu
49df188703 add expandedText prop to MessageManager 2020-07-02 14:49:37 +02:00
AlicjaSzu
b3eb13a785 update MessageManager 2020-07-02 14:49:37 +02:00
dominik-zeglen
3ceb400a58 Update label color 2020-05-07 13:14:25 +02:00
dominik-zeglen
87b94f47e1 Refactor filter components 2020-01-20 16:45:06 +01:00
dominik-zeglen
54feb60950 Add notification about navigator 2019-11-25 17:23:52 +01:00
dominik-zeglen
eb58db95a5 Fix notification font size 2019-11-13 14:12:15 +01:00
dominik-zeglen
4ab886a7ca Update customer note design 2019-11-13 14:12:14 +01:00
dominik-zeglen
5c42b3cf23 Minor visual changes 2019-11-07 14:29:08 +01:00
dominik-zeglen
74d6794679 Update @material-ui to v4 2019-11-07 14:29:07 +01:00
dominik-zeglen
d84ba84e91 Update @material-ui 2019-11-07 14:22:40 +01:00
dominik-zeglen
3c82164340 Fix theme 2019-10-24 15:12:28 +02:00
Krzysztof Bialoglowicz
7376c5e84d Fix modal overlowX 2019-10-23 16:43:34 +02:00
Krzysztof Bialoglowicz
4af5f080d9 Fix cancel button colors 2019-10-22 12:14:03 +02:00
Krzysztof Bialoglowicz
aef468357c Fix modal overflow bar 2019-10-22 11:57:04 +02:00
dominik-zeglen
54dad7cae5 Allow users to change language 2019-10-21 13:11:51 +02:00
dominik-zeglen
99d0053b20 Fix RadioGroupField styling 2019-10-15 17:52:14 +02:00
dominik-zeglen
03374fb00b Minor fixes 2019-10-09 12:24:54 +02:00
dominik-zeglen
b87b0dcb6c Fix invisible adornments 2019-10-09 12:19:06 +02:00
dominik-zeglen
c7b650b27a Add default token 2019-09-30 18:56:30 +02:00
dominik-zeglen
1bc91e0cfc Fix input's hover effect when errored 2019-09-26 16:51:28 +02:00
Krzysztof Bialoglowicz
96b1a445f0 Remove unused importants 2019-09-26 16:34:05 +02:00
Krzysztof Bialoglowicz
a20d6fe6d8 Fix input error style 2019-09-26 16:23:51 +02:00
Krzysztof Bialoglowicz
ee66758fb3 Fix import order 2019-09-16 04:16:49 +02:00
Krzysztof Bialoglowicz
fbb97a751a Fix button hover styles and small issues 2019-09-16 04:14:57 +02:00
Krzysztof Bialoglowicz
00a82c78e9 Fix material types 2019-09-11 12:47:38 +02:00
Krzysztof Bialoglowicz
17d6e17e5f Improve inputs color 2019-09-11 12:27:15 +02:00
Krzysztof Bialoglowicz
1fab184f4f Fix types 2019-09-11 11:47:39 +02:00
Krzysztof Bialoglowicz
7fb5ecbf49 Fix single select styles 2019-09-11 10:52:15 +02:00
Krzysztof Bialoglowicz
8c5d287ebe Fix radio button styles 2019-09-11 10:29:17 +02:00
Krzysztof Bialoglowicz
9899223a41 Fix input background position 2019-09-10 19:08:44 +02:00
Krzysztof Bialoglowicz
4b4b7fbf20 Fix configutation style 2019-09-10 18:43:34 +02:00
Krzysztof Bialoglowicz
ec7f2366cf Fix tabs style in dark mode 2019-09-10 18:23:59 +02:00
Krzysztof Bialoglowicz
c0cc82aae1 Fix checkbox on dark mode 2019-09-10 17:57:52 +02:00
Krzysztof Bialoglowicz
d762f29f75 Fix snackbars shadows 2019-09-10 15:47:20 +02:00
Krzysztof Bialoglowicz
188c92aea3 Fix list hover color opacity 2019-09-10 15:37:36 +02:00
Krzysztof Bialoglowicz
0400fe19bf Change switches to checkboxes 2019-09-09 11:28:06 +02:00
Krzysztof Bialoglowicz
b7dfb8a38c Fix dropdown select bg, snackbars styles 2019-09-05 12:25:39 +02:00
Krzysztof Bialoglowicz
6277ad4a83 Fix name field width 2019-09-05 12:24:41 +02:00
Krzysztof Bialoglowicz
8653b8cf3c Fix disabled input style 2019-09-05 12:24:41 +02:00
Krzysztof Bialoglowicz
07fbcf7162 Fix color on flat button in dark mode 2019-09-05 12:24:41 +02:00
Krzysztof Bialoglowicz
b6529efd83 Fix product filter input and select 2019-09-05 12:24:41 +02:00