Commit graph

2381 commits

Author SHA1 Message Date
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
Dawid Tarasiuk
795f9ccc4b
SALEOR-1903 - Fix custom currency formatting (#1067)
* Fix custom money formatting

* Update changelog

* Fix adding channels to shipping rates

Co-authored-by: Magdalena Markusik <magdalena.markusik@mirumee.com>
2021-04-21 11:03:57 +02:00
Karolina Rakoczy
4013105844
Saleor 2697 tests for updating products (#1060)
* updating products

* updating products

* test for updating
2021-04-21 10:02:48 +02:00
Karolina Rakoczy
b89e3533d6
Saleor 2690 tests for sorting products (#1033)
* tests for sorting

* tests for sorting

* sort products

* sort products

* sort products

* sort products

* tests for sorting

* fix imports

* tests for sorting
2021-04-21 09:51:10 +02:00
mmarkusik
9d6cc99103
Merge pull request #1066 from mirumee/SALEOR-2547/update-adding-draft-order-products-per-channel (#1070)
Update adding draft order products per channel
2021-04-20 16:06:39 +02:00
Dawid Tarasiuk
bddfa2c4af
SALEOR-1888-1889 - Fix voucher and sales sorting errors (#1063)
* Fix voucher and sales sorting errors

* Update changelog

* Fix channel slug argument in sorting
2021-04-19 16:03:51 +02:00
Jakub Majorek
e5df1b2dbf
Add shipping method description (#1058)
* Add shipping method description - WIP

* Wire up logic

* Handle more editorjs issues

* Fix minor issues

Co-authored-by: Dawid Tarasiuk <tarasiukdawid@gmail.com>
2021-04-16 14:33:14 +02:00
Karolina
d5233b3131
Saleor 2893 fix failing cypress tests (#1064)
* fix tests

* fix tests

* fix tests
2021-04-16 13:36:24 +02:00
mmarkusik
8fe66a3bde
Add channel shipping zones (#1015)
* Add naked input option to SingleAutocompleteSelectField and update it's stories

* Add new icons - chevron up, down & trash

* Add deletable item component and stories

* Add card add items footer component to be used in warehouses and product stocks assign

* Update schema and types

* Add shipping zones card components

* Update channel details page form to also include shipping zones

* Update makeTopLevelSearch hook files directory and add getSearchFetchMoreProps function to avoid extracting it manually every time

* Update channels types & fragments

* Move getDefaultNotifierSuccessErrorData function to useNotifier utils, update dir etc., also make order discount provider use it from the new dir

* Add shippinh zone to channel update and create and add shipping zone search

* Update messages

* Fix types

* Fix lint, types etc

* Small refactor from review and quick fix styles of shipping zones card

* Refactor a bit and update snapshots

* Refactor a bit and update snapshots

* Addd / refactor channels availability components

* Add useChannelsWithProductVariants hook with utils and types

* Add / refactor more channels availability components

* Move avatar from table cell avatar to separate component for it to be usable outside of tables

* Add channels with variants logic to product create and update pages & views

* Refactor components to use updated channels availability components

* Remove unnecessary comments

* Update storybook

* Update types

* Update messages

* Fix prices for variants / simple product not uodating properly

* Post merge cleanup, update schema, types, etc.

* Change shipping zone details warehouses card into settings card and add ability to assign channels to shipping zone

* Update types

* Update snapshots

* Fix selecting / deselecting all channels in channels with variants modal

* Fixes after review, some types changes etc.

* Update snapshots

* Small types fixes

* Make price rates views use parent shipping method channels instead of all

* Make price rates views use parent shipping method channels instead of all

* Update types

* Fix bugs

* Fixes after review

* Fix channels availability data submission

* Fix lint

* Fix variant pricing card showing not related channels

* Fixes after review

* Fix types

* Hide unaviable variants in add products to draft order dialog

* Fix channels with variants availability modal showing confirm button as enabled when it shouldn't

* Fix types

* Update semi checked icon to match old designs

* Update types

* Update channels icon in channels with variants availability

* Fix product cypress test after product channels mutation changed

* Fix trash and chevron down colors in dark mode

* Fix shipping zones card footer not updating query after click away

* Fix types in schema, add condition not to display shipping zones select in channel details if all zones have already been selected

* Fix products adding in order draft dialog

* Fix simple productupdate

* Update snapshots after merge with master

* Update messages

* Fix product api request for cypress

* Add missing test id

* Fix selecting if product is simple -> form being submitted with empty data sometimes

* Update snapshots, messages and add fix for invalid date at product update

* Remove unnecessary imports

* Fix failing test in saleor 2552 (#1061)

* fix

* fix

* fix

Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
Co-authored-by: Karolina <rakoczy.karolina@gmail.com>
2021-04-14 15:44:25 +02:00
Dominik Żegleń
07bc522af1
Prevent endless limit refetching (#1059)
* Fix endless limit refresh loop

* Improve naming
2021-04-14 13:09:13 +02:00
Zachary Keeping
9362ea53b0
Fix "secret" typo (#993) 2021-04-14 09:39:34 +02:00
Dominik Żegleń
a3abb9c476
Handle Cloud limits (#1053)
* Handle limit reached error

* Update changelog

* Move notifications to higher layer

* Handle limits top-level

* Remove unused imports

* Add alert component

* Fetch limits from API

* Display limits in staff list

* Fix disabled text button color

* Display limits in products pages

* Display limits in channel list

* Display limits in warehouse list

* Display limits in order list

* Add stories for limits

* Move alert to corresponding section

* Update schema

* Update changelog

* Fetch only needed limitations

* Fix types

* Fix story

* Display limits in variant creator

* Improve type consistency

* Update snapshots

* Update limit counter after object deletion

* Fix copy

* Improve code readability

* Lint files

* Fix dark mode alerts

* Improve contrast

* Fix sku limit in product variant list

* Update stories

* Update messages

* Extract messages
2021-04-13 11:59:16 +02:00
Jakub Majorek
20fbc19739
Update schema (#1057) 2021-04-12 17:23:37 +02:00