Commit graph

2071 commits

Author SHA1 Message Date
Marek Choiński
9069b6bc80
Saleor 1680 add shipping methods to translation section (#864)
* Add update shipping method translations query

* Added queries and types for shipping method translation tab

* Fix tab view for shipping method

* Fix query and view for shipping method

* Revert password credentials type any

* Update storybook

* Update locale

* Update CHANGELOG.md
2020-11-27 16:53:48 +01:00
Dominik Żegleń
44bbe5842c
Fix not loading variants (#865) 2020-11-26 18:01:27 +01:00
AlicjaSzu
1845111537
fix SaleCreate view (#857)
* fix SaleCreate view

* fix SaleValue input styles, update snapshots

* add success status to create sale notification
2020-11-26 11:43:05 +01:00
Dominik Żegleń
b07c391af4
Merge pull request #859 from mirumee/SALEOR-1753-channel-picker-update-value
[1753] Update channel default choice on change
2020-11-25 14:04:57 +01:00
Jakub Majorek
b0091b23b9 [1753] Update channel default choice on change 2020-11-25 13:49:14 +01:00
Karolka
2970e203ee
Add transaction reference input at order page (#837)
* Add transaction reference input at order page

* Add spacer between cards in order details

Co-authored-by: Karolina Kuźniewicz <karolina.kuzniewicz@mirumee.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
2020-11-24 17:02:50 +01:00
Marek Choiński
ba1c06d999
Fix wrong placeholder text (#856) 2020-11-24 14:18:22 +01:00
AlicjaSzu
51548af8d3
fix shipping forms save button disabled state (#855)
* fix shipping forms save button disabled state

* update defaultMessages
2020-11-24 14:17:03 +01:00
Marek Choiński
101e2c7cdc
Saleor 1670 visual improvements for dashboard homepage (#850)
* Fix overflow for card hover

* Add padding on arrow icon

* Update storybook for homepage
2020-11-24 14:16:44 +01:00
Krzysztof Wolski
ca8fcfec50
Update Saleor schema (#854) 2020-11-23 15:49:50 +01:00
Dominik Żegleń
2765dc1324
Use product pricing instead of discounted price (#847)
* Use product pricing instead of discountedPrice

* Fix input width

* Update snapshots

* Fix reading price range of null pricing

Co-authored-by: Dawid Tarasiuk <tarasiukdawid@gmail.com>
2020-11-23 14:04:24 +01:00
Dawid Tarasiuk
48a68ed1bf
Update GraphQL schema and its types (#853) 2020-11-23 12:38:28 +01:00
Jakub Majorek
acdec39489
Merge pull request #849 from mirumee/SALEOR-1611-channel-choose-for-draft-orders
Create channel picker for draft order creation
2020-11-23 12:31:58 +01:00
Jakub Majorek
4eb628018d [1611] Use modal action query params 2020-11-23 11:56:08 +01:00
Jakub Majorek
da7add51b0 [1611] Update messages 2020-11-23 11:35:58 +01:00
Jakub Majorek
cf7329ccce [1611] Create channel picker for draft order creation 2020-11-23 11:35:31 +01:00
Dominik Żegleń
a175fb9497
Add global channel picker (#841)
* Move theme switch to user menu

* Add global channel picker

* Fix picker styles

* Use app channel state

* Improve prop naming to indicate id vs slug

* Disable picker if no reason to pick channel

* Remove settings modal leftovers

* Remove channel settings dialog

* Remove unused props

* Skip channel fetching if user is not authenticated

* Remove channel selection from components

* Update messages

* Fix e2e tests

* Remove channel picker leftover

* Revert ChannelSettingsDialog deletion

* Update snapshots

* Update messages
2020-11-23 10:39:24 +01:00
Dominik Żegleń
607eba6a10
Use proper loading and null value logic (#848) 2020-11-23 10:38:46 +01:00
Marek Choiński
c96d252fd1
Remove zero opacity for placeholders (#846) 2020-11-20 15:23:50 +01:00
Krzysztof Wolski
439e5b249e
Remove im ready message (#843) 2020-11-20 10:44:50 +01:00
Karolka
e2e5f7f7a5
Add rating input at Create/Edit Product page (#828)
* Add rating input at Create/Edit Product page

* Fix cypress tests

Co-authored-by: Karolina Kuźniewicz <karolina.kuzniewicz@mirumee.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
2020-11-19 18:07:42 +01:00
Dawid Tarasiuk
fc02fce701
Page types (#807)
* Create attribute class selector

* Use ProductAttributeType to check if product is simple or with variants

* Allow attribute class selection only during its creation

* Update attribute type selection translations

* Show only product attributes in columns picker on product list view

* Cleanups in Attribute Organization component

* Create Page Types list page

* Create content management section in settings

* Implement page types list view

* Remove unused imports from page type list

* Updatte page type list style

* Remove legacy code from page type list component

* Update PageTypeListPage component

* Create Page Types details page

* Fix page type attribute reordering

* Implement PageType create view

* Implement PageType update view

* gUpdate page type details components

* Fix page type update component

* Update page type components stories

* Update page type errors handling

* Update page type details view

* Create Page Types details page

* Implement PageType create view

* Update product attribute assignment mutations

* Add page types attribute assignment mutations

* Add page types attribute assignment handling

* Temporarily fix page create mutation

* Update page type error messages

* Remove legacy storybook page type stories

* Update attribute assignment dialogs stories

* Update page type details error handling

* Update props for page type components

* Create attribute class selector

* Implement page types list view

* Add page type selector on page create and details views

* Add attributes list to page details views

* Update page types list

* Use attribute errors for attributes muatations

* Save attribute values on page create and update

* Update messages for page view

* Update page attributes fragment

* Use AttributeError in AttributeBulkDelete

* Update page type and its attribute selection

* Handle page types deleting

* Update page types deleting messages

* Handle page types attribute reorder

* Fix PageOrganizeContent component types

* Update graphqql types

* Fix page fixture

* Update messages

* Update test snapshots

* Pass pageTypes to PageForm

* Update changelog with page type addition note

* Update package-lock

* Update test snapshots

* Fix malformed generated type

* Update messages after rebase
2020-11-19 15:42:14 +01:00
Jakub Majorek
080f6e5b01
Merge pull request #842 from mirumee/saleor-1516-do-not-clear-form-on-error
[1516] Create product only when all required fields are valid
2020-11-19 15:40:26 +01:00
Jakub Majorek
aa9df18fa8 [1516] Move product remove logic to create handler 2020-11-19 13:22:43 +01:00
Jakub Majorek
c59a7f4349 [1516] Create product when all required fields are valid 2020-11-19 11:57:13 +01:00
Dominik Żegleń
33d680639b
Add new side menu navigation (#819)
Update snapshots

Fix savebar

Fix cypress

Update messages

Fix cypress
2020-11-18 16:11:15 +01:00
Krzysztof Wolski
6d31be7c2c
Fix select all channels checkbox (#838)
* Fix select all channels checkbox

* Clarify checkout description
2020-11-18 15:32:22 +01:00
Jakub Majorek
01f92310bf
Merge pull request #836 from mirumee/saleor-1599-do-not-redirect-on-channel-edit
[1599] Do not redirect on channel details edit
2020-11-17 18:58:45 +01:00
Jakub Majorek
b91d8d77c4 [1599] Do not redirect on channel details edit 2020-11-17 18:35:17 +01:00
Dominik Żegleń
6f9060144a
Multichannel (#833)
* add multichannel to configuration view

* create multichannels list view

* create multichannels list view

* add ChannelsCreate view

* update channels in configuration

* add stories

* update default messages

* fix ChannelForm props

* update channels list styles

* update snapshots

* update channel form currency input

* update Channels fragments

* extract messages

* remove tabs from channelsList

* channel details, channel delete modal (#598)

* create Channel details view

* create ChannelDeleteDialog

* add channels delete dialog to channels list

* update messages and types

* fixes after review

* channels availability (#609)

* create Channel details view

* update messages and types

* create ChannelsAvailability component

* create more product channels components

* create channels stories, update fixtures, types

* update product views with channels data

* update schema and snapshots

* update defaultMessages

* update ProductUpdate view

* create ChannelsAvailabilityDropdown component

* add product channels to local storage

* update globalTypes

* Update to new schema and resolve issues

* Update messages

* create deleteChannel mutation

* add channels availability component to product create view

* refactor ProductCreate and ProductUpdate views

* CollectionProducts view cleanup

* add disabled prop to ActionDialog

* use updateChannels mutation in ProductCreate view

* ProductCreate - update submit function

* fixes after review

* update snapshots and messages

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

* channels shipping components (#655)

* create PricingCard, OrderValue and OrderWeight components

* create ShippingZoneRatesPage and DeleteShippingRateDialog

* update ChannelsAvailability component

* updates after review

* channels shipping views (#662)

* update ChannelsAvailability component

* updates after review

* create PriceRate views, update types

* create weight rates views

* update shipping views, stories, messages

* update snapshots

* update snapshots

* update useChannels hook

* orders channels components (#698)

* create OrderChannelSectionCard component

* update OrderDetailsPage

* update DraftOrderChannelCard

* update snapshots

* update fixtures

* small change after review, update snapshots

* product pricing (#702)

* update product types

* update Pricing in simple product view

* use productVariantCreate mutation in simple product view

* update snapshots and messages

* handle create variant (#715)

* update product types

* update Pricing in simple product view

* handle product create and update errors

* update snapshots and messages

* fix update and create product handlers

* update pricing types

* channels modal - new styles, search input (#717)

* update product types

* update Pricing in simple product view

* handle product create and update errors

* update pricing types

* add search input in ChannelsAvailabilityDialog

* update ChannelsAvailabilityDialog in all views

* update snapshots

* fix search input label styles

* update toggleAllChannels function

* update variant creator (#724)

* update product types

* update Pricing in simple product view

* handle product create and update errors

* update pricing types

* add search input in ChannelsAvailabilityDialog

* update ChannelsAvailabilityDialog in all views

* update snapshots

* add channelLisitngs to variant creator

* update variant creator price styles

* update product variant creator reducer tests

* update createVariants tests

* update error handling in product variant creator

* add Skip pricing for now option

* use PriceField instead of TextField in ProductVariantCreatorSummary

* create price validation function

* fix errors handling in ProductVariantPrice component

* fixes after review

* Product List - remove publish/unpublish buttons (#727)

* ProductList - remove publish and unpublish buttons

* update messages

* update snapshots, messages

* revert changes in ChannelsAvailabilityDropdown

* products/shipping/discount list settings (#739)

* create ChannelSettingsDialog component

* update snapshots

* ProductList - open settings modal when there is no selected channel

* add settings modal to vouchers list

* add settings dialog to sales list

* add setting modal to shipping list

* update shipping

* update snapshots, messages

* useChannelsSettings - remove selectedChannelSlug

* fix channels update handler in product and shipping view

* messages update in ChannelSettingsDialog

* handle product/discount list when there is no channels

* update onSettingsOpen prop

* collection availability dropdown (#743)

* add availability dropdown to collection products list

* update channelListingProduct fragment name

* update voucher view/components with channels (#746)

* update voucher view/components with channels

* update VoucherSummary, remove defaultCurrency from voucher components

* update snapshots

* move getChannelsVariables func to discounts handlers

* update voucher messages

* sale view/components with channels (#750)

* update sale views with channels

* small fixes in discounts

* order views with channels (#752)

* update draft orders with channels

* add channel activate/deactivate mutations

* remove sort by total in orders list

* add error notification on channel activate/deactivate

* product variants channel select (#755)

* add channels selector to ProductVariants component

* remove selectedChannel from ProductUpdate, update messages and snapshots

* update product fragments

* update translations (#762)

* update translations

* fix translation types

* update messages

* update Availability component (#766)

* update ChannelsAvailability component

* update product fixtures

* update collection and channel fixtures

* ChannelsAvailability - handle errors

* update product handlers

* update ChannelsAvailability styles

* update ProductVariant

* update snapshots

* fix missing things in multichannel  (#785)

* add availability dropdown to discount products list

* fix error handling in shipping components

* update product views and components

* update messages

* update category view/components

* update CategoryProducts styles

* remove defaultCurrency from shipping components

* create ChannelsSelect component

* update channels error handling after review

* another fixes after review

* Add channels to collection views/components (#791)

** update collection components and views

* update create collection view

* update error handling in collection

* remove filter bar from collection list

* update products fragments

* small fix in collection create view

* use collectionFragment in useCatalogSearch

* update defaultMessages and snapshots

* update homepage view/drop defaultCurrency (#801)

* update homepage view

* drop defaultCurrency prop

* fix onChannelChange function in home view

* remove visibility from product list filters

* update export products with channels (#803)

* update ProductExportDialog with channels

* add new channel error code

* remover VISIBLE from product export dialog Financial information

* fix input size in ProductVariantCreatorSummary (#804)

* channels currency code select (#806)

* create select with currency codes

* fix ChannelDeleteDialog

* update defaultMessages, remove unneeded ChannelDetails handlers

* fixes after rebase

* replace channelListing with channelListings

* [multichannel] Update schema]

* Fix product create test

Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 17:10:42 +01:00
Karolka
596ba1f63b
Merge pull request #825 from mirumee/feature/saleor-1577-support-multiline-text-secret-field
Support multiline text in plugin configuration secret field
2020-11-16 10:29:08 +01:00
Mikail KOCAK
2e48e79f69 Dropped set-env in favor of outputs 2020-11-16 09:34:13 +01:00
Karolina Kuźniewicz
b7294e9cbc Support multiline text in plugin configuration secret field 2020-11-13 17:55:20 +01:00
Marcin Gębala
cc758a650b
Merge pull request #830 from mirumee/update-changelog
Update changelog
2020-11-13 14:04:27 +01:00
Marcin Gębala
1d8f912fc6 Update changelog 2020-11-13 11:39:22 +01:00
Krzysztof Wolski
054c067653
Update schema - remove webhooks (#827)
* Remove unused code and update schema

* Remove old code
2020-11-12 14:47:44 +01:00
Dominik Żegleń
807fcc670d
Merge pull request #800 from mirumee/SALEOR-916-editor-js
Replace Draftail with EditorJS
2020-11-06 12:28:00 +01:00
dominik-zeglen
c60d719f21 Update messages 2020-11-06 12:19:37 +01:00
dominik-zeglen
b2e6baf4e9 Use proper submit return type 2020-11-06 11:54:03 +01:00
dominik-zeglen
3de9ae58df Update tests 2020-11-06 09:34:05 +01:00
dominik-zeglen
4d15fa52b8 Add undo ability 2020-11-05 17:32:55 +01:00
dominik-zeglen
02e93b06d6 Use rich text editor in translations 2020-11-05 17:30:38 +01:00
dominik-zeglen
55d9a1c986 Fix selection styles 2020-11-05 15:31:00 +01:00
dominik-zeglen
8bc0b18e4f wip 2020-11-05 15:16:39 +01:00
dominik-zeglen
bc78c03e29 Improve dark mode 2020-11-05 15:10:46 +01:00
dominik-zeglen
dfc063caa1 Improve component encapsulation 2020-11-05 14:56:29 +01:00
dominik-zeglen
44df6225ad Add todo 2020-11-04 13:59:28 +01:00
dominik-zeglen
7c90ec1c72 Fix types 2020-11-04 13:59:26 +01:00
dominik-zeglen
f4dfbe7e90 Fix header styling 2020-11-04 13:59:25 +01:00
dominik-zeglen
7c9f2a93d4 Add rich text editor to pages 2020-11-04 13:59:23 +01:00