Commit graph

2343 commits

Author SHA1 Message Date
MahmoudRizk
a473531e8f Fix Category list layout overlapping. 2021-06-05 21:12:37 +02:00
Karolina Rakoczy
dd4519a044
Saleor 3479 tests for permissions groups (#1135)
* test for permission groups

* test for permission groups

* test for permission groups

* test for permission groups

* all tests for permission groups

* all tests for permission groups
2021-06-02 09:59:34 +02:00
mmarkusik
50764b5932
Unify channel ID param in graphql (#1131)
* Update schema & types

* Change channel param to channelId in create order mutation usages

* Update types and plugin update mutation params

* Change usages of channel in graphql mutation params to channelId
2021-06-01 14:25:43 +02:00
mmarkusik
852bc127f6
Fix logo appearing too high on screen when loading login (#1130) 2021-06-01 14:17:44 +02:00
Karolina Rakoczy
01d0a222ac
Saleor 2962 warehouses in checkout (#1118)
* add tests for puchase by type

* add expect for isShippingRequired

* tests for adyen

* tests for adyen

* tests for adyen

* tests for adyen

* adyen

* adyen

* adyen

* adyen

* adyen

* warehouses in chcekout

* test for adyen

* adyen tests

* warehouse in chceckout

* merge changes

* remove dash

* remove video

* fix typo
2021-06-01 10:18:45 +02:00
Karolina Rakoczy
0b1d0a3a54
Saleor 3357 tests for orders (#1119)
* add tests for puchase by type

* add expect for isShippingRequired

* tests for adyen

* tests for adyen

* tests for adyen

* tests for adyen

* adyen

* adyen

* adyen

* adyen

* adyen

* warehouses in chcekout

* rm warehouses in chcekout

* adyen payments

* adyen

* tests for orders

* fix shipping

* unskipp

* orders

* add empty lines

* add empty lines and reduce

* add empty lines
2021-05-31 09:50:31 +02:00
Jakub Majorek
5ace78f279
Change rateType from enum to string (#1121)
* Change rateType from enum to string

* Update snapshots

* Fix accidental recurrency caused by race condition

* Handle null type on SEO form

* Trigger deployment

* Fallback to empty string for undefined/null values
2021-05-24 15:50:41 +02:00
Michał Ociepka
fbfe3c8d7c
Add embed plugin to editorjs (#1114)
* SALEOR-3354 add Editor.js embed dependency

* SALEOR-3354 add embed to EditorJS tools

* SALEOR-3354 update change log
2021-05-18 15:21:33 +02:00
Jakub Majorek
1a9b55715f
Use available channels from context (#1115)
* Use available channels from context

* Allow to specify manage channel availability permissions
2021-05-18 12:08:44 +02:00
Karolina Rakoczy
9f71106f32
Saleor 3038 tests for payments by adyen (#1086)
* add tests for puchase by type

* add expect for isShippingRequired

* tests for adyen

* tests for adyen

* tests for adyen

* tests for adyen

* adyen

* adyen

* adyen

* adyen

* adyen

* warehouses in chcekout

* rm warehouses in chcekout

* adyen payments

* adyen
2021-05-16 13:38:53 +02:00
Dominik Żegleń
935a6f4542
Reduce bundle size (#1103)
* Add analysis tools

* Use deep imports to reduce bundle size

* Remove tslint config

* Remove unused packages

* Remove lodash-es references

* Use root level mui imports

* Remove mui from restricted imports
2021-05-14 10:15:15 +02:00
mmarkusik
bd02c1b260
Merge pull request #1110 from mirumee/SALEOR-1995/add-no-category-set-for-product-alert
Add error for co category set for product
2021-05-13 13:37:58 +02:00
Magdalena Markusik
a82d513dec Refactor after review 2021-05-13 12:27:39 +02:00
Magdalena Markusik
232bfcc139 Extract messages 2021-05-13 12:27:33 +02:00
Magdalena Markusik
467319ebce Add error for co category set for product 2021-05-13 11:23:08 +02:00
mmarkusik
a68cabadc7
Merge pull request #1107 from mirumee/SALEOR-3129/fix-shipping-zone-details
Add some conditionals to fix shipping zone details view when permission are not sufficient
2021-05-13 10:44:32 +02:00
Magdalena Markusik
cb2c2315cd Add some conditionals to fix shipping zone details view when permissions are not sufficient 2021-05-12 16:57:33 +02:00
mmarkusik
1945e9065b
Merge pull request #1099 from mirumee/SALEOR-3065/replace-shipping-zones-from-channel-with-separate-mutation
Saleor 3065/replace shipping zones from channel with separate mutation
2021-05-12 16:50:09 +02:00
mmarkusik
f73b283b47
Merge pull request #1102 from mirumee/add-edges-node-map-util
Add edges node map util
2021-05-12 16:49:56 +02:00
Jakub Majorek
db3049301c
Add new readonly plugin configuration field (#1106) 2021-05-12 16:17:53 +02:00
Magdalena Markusik
72bd0b89ce Add fix for paginating shipping zones for channel 2021-05-12 14:33:03 +02:00
Magdalena Markusik
1824e288ed Update schema - shippingzonesfilterinput, types and refactor 2021-05-12 13:26:11 +02:00
Magdalena Markusik
87de4da15d Update snapshots 2021-05-12 12:01:31 +02:00
Magdalena Markusik
def3a381ba Change more usages to map edges to items 2021-05-12 11:15:33 +02:00
mmarkusik
87f5722229
Channel per plugin fixes (#1105)
* Fix plugin update mutation type - channel from required to nullable

* Fix search not working in plugins list
2021-05-12 10:45:23 +02:00
Magdalena Markusik
b731e7cf89 Change more usages to map edges to items 2021-05-12 10:03:11 +02:00
mmarkusik
e373ce3eaa
Merge branch 'master' into add-edges-node-map-util 2021-05-12 09:50:48 +02:00
Magdalena Markusik
244f4ce021 Update snapshots 2021-05-12 09:47:19 +02:00
mmarkusik
19b8d30565
Feature - channels per plugin (#1093)
* Update schema

* Update queries, mutations, and types

* Add render with dividers util function

* Add plugin details channels card component

* Update plugin details to use channels

* Update stories

* Update plugin configuration type across the app, fix some other types, temporarily comment some things out in plugins list so types match"

* Update schema

* Update types

* Update plugins list to show channels and global statuses, add plugin channel status, update status label component

* Add render with dividers util function

* Comment out some stuff for types to match - temporary

* Add useChannelsSearchWithLoadMore util to imitate loading more from backend for channels list with load more

* Change filters logic to be able to display multiple fields in a field section and add it to plugins view

* Add scroll option to plugin availability popup on plugin list

* Fix plugin list page story

* Temporarily comment some stuff out, fix some types

* Add filters errors WIP

* Fix filters not updating list

* Add error handling to plugins list filters and filters in general

* Rename some components according to review

* Move useChannelsSearch and useChannelsSearchWithLoadMore to hooks, change some imports accordingly

* Fix imports

* Move render collection with dividers to a component, fix usages

* Replace channels with load more and search query to base channels query

* Change render with dividers function to take in a component instead of render function

* Update tests

* Extract messages

* Remove unnecessary imports

* Fix filters - autocomplete messing items order sometimes & some fields not working

* Update plugin update mutation variables - change channelId to channel

* fix failing tests

* Add test ids

* fix failing tests

* fix failing tests

* Rename misc.tsx to ts

* Remove usage of render collection with diviers, change it to CollectionWithDividers component

* Remove unnecessary imports

* Update messages ids

* Update snapshots

Co-authored-by: Karolina Rakoczy <rakoczy.karolina@gmail.com>
2021-05-11 15:58:09 +02:00
mmarkusik
bb441ea11a
Add product / page delete warning (#1095)
* Add Delete button component

* Add product / page type delete warning dialog

* Replace old product types delete dialog with new one, add products total count query

* Update schema, types and queries for pages, add use page count query and add warning delete dialog to page types

* Move type delete warning dialog data to proper hooks, refactor

* Remove unused components and stories

* Add plural forms to messages for product / page type delete warning, refactor

* Add type delete warning dialog stories

* Move type delete hooks to proper directiories, fix imports

* Fix imports

* Remove countallproducts query and instead use useproductcountquery

* Remove unnecessary types and imports
2021-05-11 14:26:17 +02:00
Magdalena Markusik
55df3df28d Fix types 2021-05-11 14:16:21 +02:00
Magdalena Markusik
b9d043f16e Fix types in map utils 2021-05-11 14:14:05 +02:00
Magdalena Markusik
a2b9d9d31f Add test ids 2021-05-11 13:37:29 +02:00
Magdalena Markusik
75eefa8a08 Merge branch 'add-edges-node-map-util' of https://github.com/mirumee/saleor-dashboard into add-edges-node-map-util 2021-05-11 13:36:09 +02:00
Magdalena Markusik
00b9db9366 Update snapshots 2021-05-11 13:34:06 +02:00
mmarkusik
4a6290c9e9
Update src/utils/maps.ts
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2021-05-11 09:50:49 +02:00
Magdalena Markusik
b6c4d2d19c Remove unnecessary imports 2021-05-10 17:29:06 +02:00
Magdalena Markusik
d1ae1559d0 Add mapEdgesToItems util function and replace all usages 2021-05-10 17:25:54 +02:00
Dawid Tarasiuk
4bf40ed410
Fix line on product page (#1098) 2021-05-10 15:05:14 +02:00
Magdalena Markusik
26e537db88 Update schema, types, and replace taking shipping zones straight from channel with channelShippingZones query 2021-05-07 13:20:19 +02:00
Dawid Tarasiuk
5a439176b7
SALEOR 3115 Fix EditorJS inline formatting (#1096)
* Fix EditorJS inline formatting

* Update changelog
2021-05-07 10:06:08 +02:00
Dawid Tarasiuk
8e038dc786
SALEOR-1629 - Fix voucher page bugs (#1031) 2021-05-06 13:43:26 +02:00
Dawid Tarasiuk
0e054cc1e4
Saleor 2798 user addresses selection for draft order (#1082)
* Create user addresses select modal

* Prepare user addresses select modal form

* Add user addresses select modal to order draft details page

* Update draft order validation of adresses in edit modal

* Add Customer Change modal

* Update snapshots and messages

* Indication of address form errors by address type

* Refactor addresses submiting

* Refactor address transform functions

* Add data-testids to addresses change dialog

* Update customer address choice style

* Trigger CI

* Update customer addresses edit flow

* Move styles outside of component files

* Refactor after review

* Refactor after review

* Do not update customer if the same selected

* Handle setting adress after edit customer with no addresses

* Trigger CI
2021-05-06 13:38:15 +02:00
Dawid Tarasiuk
e2a80e4758
Fix sortable chip style (#1091) 2021-05-04 10:45:58 +02:00
Piotr Grundas
2a21609eae
Numeric attributes (#1065)
* Update schema, types

* Add numeric unit control

* Improvements, tests

* Cleanup

* Add messages

* Small fixes

* Add test id's

* Improve useForm, logic

* Use short names

* Review corrections

* Small improvements
2021-04-29 10:58:03 +02:00
Karolina Rakoczy
074c0f7a6c
Saleor 2960 checkout products without shipment (#1075)
* add tests for puchase by type

* add expect for isShippingRequired
2021-04-28 15:10:47 +02:00
Dominik Żegleń
d220914085
Add service worker (#1073)
* Add service worker

* Update messages

* Update changelog

* Remove debug code

* Refactor code and add interval config

* Clear interval

* Reload all pages simultaneously

* Update copy
2021-04-26 12:10:47 +02:00
Jakub Majorek
a83a245654
Drop deprecated fields (#1071)
* Drop deprecated fields

* Update changelog

* Update test recordings

* Fix e2e tests

* Fix product sorting (#1079)

* update stories

Co-authored-by: Karolina Rakoczy <rakoczy.karolina@gmail.com>
2021-04-26 09:49:55 +02:00
Piotr Grundas
d48c0087e0
Rich text, multiselect, useFormset fixes (#1077)
* Rich text field fix

* Fix useFormset setItemValue

* Update changelog
2021-04-23 14:27:31 +02:00
Karolina Rakoczy
6395aa16a3
tests for pagination (#1062)
* tests for pagination

* tests for pagination

* tests for pagination

* tests for pagination

* tests for pagination

* fix test for variants
2021-04-21 15:14:38 +02:00