* Add assign warehouse section in channel page
* Update data-test-ids on channel page
* Update channel page form details
* Update shipping zones and warehouses cards in chaannel page
* Assigning warehouses by channel in product and variant pages (#2135)
* Assigning warehouses by channel in product and variant pages
* Disable warehouse assignment when no channel on variant page
* Update products stocks section messages
* Fix remove attribute from product type
* fix should be able to display different price for each channel
* Fix collections
* fix pagination
* add test case number
* Fix TC:2605
* fix for categories
* fixing last test case
* Fix deploying proper version to staging on new tag release (#1967)
* Fix deploying proper version to staging on new tag release
* Another approach
* Remove leftovers
* fixing last test case
* changing test-env-deploy
* npm i
* removing added cy.logs
* fix for categories
* after review
* after review
* fix after review
* switched test function for mutation for category creation
* restoring package-lock.json
* restoring package-lock.json
* restoring package-lock.json
* restoring package.json
Co-authored-by: GrzegorzKowalik <kowalik.grzegorz@outlook.com>
* Adding missing test to collections tests
* Adding missing test to collections tests
* fixing merge issues
* fixing merge issues
* update to test-env-deploy
* update to test-env-deploy
* changing test-env-deploy
* adding sugestions
* fixing what Karolina suggested
* pulling from main
* run critical tests after test env deployment
* add cache
* add all branches
* change workflow name
* add run on pull request for testing
* change type
* add run on deployment
* run on copleted
* test critical
* add quote
* change baseUrl
* fix base url
* fix base url
* upload reports
* run in parallel
* save build folder
* remove build from gitignore
* remove build
* update nide version
* last try with parallel
* save build
* save build
* Run critical
* change cypress API url
* run critical in parallel
* check which workflow has lower duration time
* save all reports with container in name
* add reports on failure
* remove reporters
* fix jobs
* merge
* add group name
* run critical
* Refactor critical tests (#1906)
* refactored tag added to purchaseWithProductsTypes, navigation, stocksInCheckout
* homePageAnalitics - refactor
* refactor home page
* refactor creating variants
* refactor adding product without sku to order
* add script to run critical locally
* change tests cases names
* fix names, remove comments, add script to run refactored tests
* remove workflow for parallel
* remove key
* run critical in deploy workflow
* remove workflow
* remove workflow
* run critical tests after test env deployment
* add cache
* add all branches
* change workflow name
* add run on pull request for testing
* change type
* add run on deployment
* run on copleted
* test critical
* add quote
* change baseUrl
* fix base url
* fix base url
* upload reports
* run in parallel
* save build folder
* remove build from gitignore
* remove build
* update nide version
* last try with parallel
* save build
* save build
* Run critical
* change cypress API url
* run critical in parallel
* check which workflow has lower duration time
* save all reports with container in name
* add reports on failure
* remove reporters
* fix jobs
* merge
* add group name
* run critical
* Refactor critical tests (#1906)
* refactored tag added to purchaseWithProductsTypes, navigation, stocksInCheckout
* homePageAnalitics - refactor
* refactor home page
* refactor creating variants
* refactor adding product without sku to order
* add script to run critical locally
* change tests cases names
* fix names, remove comments, add script to run refactored tests
* remove workflow for parallel
* remove key
* tests for product types for 3.1
* updated stories
* chage test cases names for product types
* add test for setting attribute as variant selection in product type
* add test for setting attribute as variant selection in product type
* split product types spec file
* uncomment purchase with product types test
* Update cypress/integration/configuration/productTypes/attributesInProduductTypes.js
Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>
Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>
* added tests for gift cards
* update tests names for gift cards
* change naming, move functions from test file, fix testId
* fix move function
* Edit test case name
Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>
Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>
* fix failing tests
* fix tests for gift cards
* fix tests for gift cards
* upload video only when fail
* fix preorder time
* fixed translation page
* fix navigation, stripe and adyen
* fix graphQl npm
* update stories
* Duplicate current test for sales to work on variants instead on products
* remove unecessery imports
* Update cypress/integration/discounts/salesForVariants.js
Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>
Co-authored-by: Ewa Czerniak <ewa.czerniak@saleor.io>
* tests for images on product list
* image on product details page should be displayed
* test for upload image
* fix collection utils import
* fix creating test data
* update jest
* gift cards in checkout
* complete checkout after trying to add gift card
* fix gift cards tests
* fix gift cards
* update snapshots
* fix tests
* fix gift cards in checkout
* delete created channels
* WIP add new configuration menu
* Add missing permissions
* Changed filtering to one based on arrays of permissions
* Add hasAnyPermissions and hasAllPermissions functions
* Simplify getConfigMenuItemsPermissions function
* Simplify routing logic
* Implement attribute values pagination in variant pages
* Implement attribute values pagination in variant creator
* Update variant creator design bugs
* Fix deleting attribute value error
* Refactor attribute value handling in variant creator
* Update after review
* Create local pagination state for attribute values
* Fix autocomplete select field scrolling on fetch more
* Change onAttributeSelect to onAttributeFocus
* Update cypress test function with attribute values pagination
* 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
* 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
* 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>
* 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>
* Skip unused queries on product list
* Further optimize queries
* Fix product type details search on product create page
* Fix test fixtures
* Update query for product type details in product create page
* Update cypress test for product list
* Update package.lock
Co-authored-by: Dawid Tarasiuk <tarasiukdawid@gmail.com>
* 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
* 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
* 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