Commit graph

2809 commits

Author SHA1 Message Date
Michał Droń
d5c9a3dae8
Add trailing commas (#2062)
* Require trailing commas

* Add trailing commas

* Add trailing commas in testUtils dir

* Add trailing commas
2022-06-21 11:36:55 +02:00
Karolina Rakoczy
8bd7824f27
skip webhook update (#2104) 2022-06-17 16:47:52 +04:00
Karolina Rakoczy
ac551e337e
add timeout to revert snapshot job (#2099) 2022-06-13 15:36:18 +04:00
Karolina Rakoczy
cfaf7cdc0d
Change titles in cypress dashboard (#2095)
* Change titles in cypress dashboard

* add url to title

* add url to title

* add ref name
2022-06-13 10:13:02 +04:00
Michał Droń
d7880350ae
Add new webhook events related to apps & warehouses (#2088)
* Update schema

* Build types
2022-06-08 14:45:29 +02:00
Dominik Żegleń
014ae0f362
Fix variant creator (#2085)
* Set channels for products without any variants

* Fix duplicated_input_item error

* Persist skus between steps

* Cleanup code

* Fix types
2022-06-08 13:27:33 +02:00
Karolina Rakoczy
056b3501eb
Update Cypress Version (#2080)
* Update Cypress Version

* sparete specs with coma

* change workflows to use latest cypress verion
2022-06-08 12:33:11 +04:00
Wojciech Mista
c922dfb6fe
Application Marketplace available in dashboard (#2054)
* Add marketplace

* Update messages

* Extract styles

* Update test env

* Update config and rename uri

* Update template

* Trigger CI

* Possible fix

* Update deploy yml

* Add marketplace to staging

* Fix responsiveness

* Trigger CI

* Fix navigation tests (#2081)

* fix navigate through shop

* wait for progress bar not to exist

* simplify code

* add wait

* Fix navigate through shop (#2076)

* fix navigate through shop

* wait for progress bar not to exist

* simplify code

* Refine App about section (#2056)

* Trigger CI

* Trigger CI

* Trigger CI

* Trigger CI

* Fix app activation/deactivation

* Hide configuration url and policy if theres none

* Remove about and support links

* Remove unused code

* Update stories and tests

* Update messages

* Fix privacy policy

* Fix activation and "open app"

* Update tests

Co-authored-by: Karolina Rakoczy <rakoczy.karolina@gmail.com>
2022-06-08 08:44:28 +02:00
Karolina Rakoczy
a8b584a9d6
Fix flaky/broken tests (#2077)
* 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
2022-06-06 14:27:18 +04:00
Karolina Rakoczy
6c7f6fc016
add logs for failed mutations (#2078) 2022-06-06 12:47:39 +04:00
Karolina Rakoczy
8d361293c5
Add tags to tests runs (#2079)
* Add tags to tests runs

* remove unused workflow

* add tags in command

* add tags in command

* add tags in command

* add tags in command
2022-06-03 10:25:16 +02:00
Cezary Miącz
c8e63b93fa
Deploy v3.4 to staging demo (#2073) 2022-06-01 15:55:17 +02:00
Jonatan Witoszek
5138608f86
Apps list page enchancements (#2035)
* Remove marketplace from Apps list

* Move apps in progress to bottom

* Remove pagination from InstalledApps

* Add apps permissions tooltip

* Activate/deactivate InstalledApps from list

* Add changes description to CHANGELOG

* Update package.json to include macaw required changes

* Upadte fixtures

* Rename Local Apps -> Third Party Apps

* Update macaw, fix TS errors

* Refactor AppPermission component to use permission fragment

* Add fragment for app list query, refactor InstalledApps props type

* Fix check for usage within context inside useAppListContext

* Remove redundant errors check in mutation hooks inside AppsList

* Update extracted messages

* Fix AppListPage stories failing

* Fix Tooltip not working in failed installed apps

* Update messages
2022-05-31 17:18:15 +02:00
Jonatan Witoszek
1a19289e43
Enhancements to pagination navigation (#2063)
* Update macaw to include Paginator changes

* Add link support to TablePagination component

* Rewrite usePaginator to use context and links instead of onClick

* Refactor ProductList to use new usePaginator hook

* Add decorator for PaginatorContext in ProductList stories

* Refactor AppList to use new usePaginator hook

* Refactor AttributeList to use new usePaginator hook

* Add missing pagination props for local pagination to AttributeValues

* Refactor CategoryList to use new usePaginator hook

* Refactor CategoryDetails to use useLocalPaginator and context

* Refactor CollectionList to use new usePaginator hook

* Refactor CollectionProducts to use new usePaginator hook

* Refactor CustomerList to use new usePaginator hook

* Refactor VoucherDetailsPage to use PaginationContext

* Refactor SaleDetails to use PaginatorContext

* Refactor SaleList to use new usePaginator hook

* Refactor VoucherList to use new usePaginator hook

* Fix type error in paginatorContextValues fixture

* Refactor GitfCardList to use new usePaginator hook

* Remove unused imports

* Refactor MenuList to use new usePaginator hook

* Refactor OrderDraftList to use new usePaginator hook

* Refactor OrderListPage to use new usePaginator hook

* Refactor PageList to use new usePaginator hook

* Refactor PageTypeList to use new usePaginator hook

* Refactor PermissionGroupList to use new usePaginator hook

* Refactor PluginsList to use new usePaginator hook

* Refactor ProductTypeList to use new usePaginator hook

* Refactor ShippingMethodProducts to use PaginationContext

* Refactor ShippingZonesList to use new usePaginator hook

* Refactor StaffList to use new usePaginator hook

* Fix TS errors

* Update TranslationEntities and TranslationFields to use new usePaginator

* Refactor WarehouseList to use new usePaginator hook

* Fix errors in stories that didn't use PaginationContextDecorator

* Mention changes in changelog

* Update to latest macaw version, update snapshots
2022-05-31 14:53:16 +02:00
Jonatan Witoszek
47ec01dd7c
Handle case when attribute value is empty on initial render (#2068)
* Handle case when attribute value is empty on initial render

* Fix useRichText when initial data is undefined

* Update snapshots

* Handle loading state in useRichText

* Add placeholder RichTextEditor when data is loading

* Update snapshots
2022-05-31 14:52:59 +02:00
Cezary Miącz
7df8268101
Use common workflow for all staging releases (#2051) 2022-05-30 19:22:24 +02:00
Michał Droń
88bfffb2b4
Fix fulfillment page error (#2064) 2022-05-30 11:42:29 +02:00
Jonatan Witoszek
993a99ff07
Fix EditorJS inputs (#2052)
* Bump Editor.js version

* Refactor RichTextEditor to use react-editor-js wrapper

* fixup! Bump Editor.js version

* Rewrite RichTextEditor to use uncontrolled input

* Fix RichTextEditorContent not rendering any content due to missing id

* Fix RichTextEditorContent not working on initial render

* Remove editorjs-undo

* Refactor usage of RichTextEditor to get its data only during submit

* Add useMultipleRichText hook for managing rich text attributes

* fixup! Refactor usage of RichTextEditor to get its data only during submit

* Rewrite Attributes usage to use EditorJS .save() on submit

* Refactor RichTextContext into separate file

* Rewrite tests for useRichText

* Add PR changes to the changelog

* Update snaphosts

* Fix failing tests for components that use RichTextEditor

* Remove duplicated getSubmitData function
2022-05-26 10:06:46 +02:00
Jonatan Witoszek
a113c9202f
Update voucher creation text for "Only once per order" (#2059)
* Update voucher creation text for "Only once per order"

* Update snapshots
2022-05-25 10:53:19 +02:00
Jonatan Witoszek
f8ea5ec95e
Update text for variant price in some products (#2061)
* Update text for variant price in product that don't have channel
assigned

* Update snapshots
2022-05-25 10:52:55 +02:00
Dominik Żegleń
03506aedc4
Bump version to 3.4-dev (#2027) 2022-05-25 10:11:48 +02:00
Jakub Majorek
0d4fecf8cd
Handle order extension mount points (#2055)
* Handle order extension mount points

* Add missing onClick to ButtonWithSelect component

* Update snapshots

* Fix ButtonWithSelect styles
2022-05-23 11:24:20 +02:00
Jonatan Witoszek
707c6b94a7
Fix cannot clear attribute value (#2047)
* Always send updated values of attributes

* Send only changed product attributes to API

* Add change to changelog

* Add tests for preparing upload attribute values
2022-05-20 10:00:53 +02:00
Karolina Rakoczy
f123df7c74
Fix running tests on schedule (#2050)
* Fix running tests on schedule

* add notify slack if revert snashot job fail
2022-05-17 10:07:05 +02:00
Karolina Rakoczy
f843c9a732
Fix test for home page analytics (#2038) 2022-05-16 10:54:17 +02:00
Karolina Rakoczy
7bfb10369e
add data-test-id in channel picker (#2036) 2022-05-16 10:30:34 +02:00
Karolina Rakoczy
97eeccc917
Fix flaky test for creating variant (#2032)
* fix flaky test for creating variant

* fix flaky
2022-05-13 14:08:29 +02:00
Jonatan Witoszek
9c2ed377cc
Fix redirect when modal is opened from table (#2034)
* Fix redirect when modal is opened on apps list

* Update snapshots

* Fix failing Cypress test

* Fix issues with TableRowLink and buttons that have onClick

* Fix CustomAppDetailsPage using wrong Backlink compponent

* Remove custom click event handler from TableRowLink

* Add TableButtonWrapper component

* Refactor Buttons and Links in TableRowLink to use TableButtonWrapper

* Refactor Buttons in SortableTableRowLink to use TableButtonWrapper

* Add comments about reasoning behind TableButtonWrapper
2022-05-13 13:04:16 +02:00
Karolina Rakoczy
ad7e6458b5
Add critical input in cypress workflow (#2043) 2022-05-13 12:01:49 +02:00
Jonatan Witoszek
66bfd1a32d
Fix subcategory creation (#2041)
* Fix subcategory create button didn't use Button from dashboard
* Update snapshots
2022-05-12 15:39:27 +02:00
Cezary Miącz
9cf555d740
Add demo staging deployment workflow (#2042) 2022-05-12 11:44:09 +02:00
Jonatan Witoszek
4c24d01d7a
Add stacking context to App wrapper (#2024) 2022-05-11 15:45:31 +02:00
Michał Droń
2d71c138b7
Fix flickering warehouse list in variant details (#2009)
* Fix merge functionin cached stocks

* Revert "Fix merge functionin cached stocks"

This reverts commit caf4956fde78abe33e893ed8b095f6275f73ef37.

* Change mutation order
2022-05-10 13:27:20 +02:00
Michał Droń
8fee2ccd4b
Fix overflowing page headers (#2008)
* Fix too long page headers

* Update snapshots

* Update snapshots
2022-05-10 13:25:39 +02:00
Jonatan Witoszek
1e38c14116
Use links instead of onClick navigate function (#1969)
Add links instead of navigate + onClick in:
* Lists - ex. product list (except Plugins, see below)
* SortableTables - ex. product variants
* Sidebar
* Buttons that open new page - ex. "Create product"
* Backlinks
* Menus - ex. "Account Settings"
* Links that actually used onClick - ex. warehouse shipping zone, reset password
2022-05-06 10:59:55 +02:00
Dominik Żegleń
a95a3021e4
Autocomplete in channel selection (#2020)
* Add autocomplete to channel picker

* Update macaw

* Update macaw

* Use filter from fuzzaldrin
2022-05-05 10:36:32 +02:00
Dominik Żegleń
7d9441a7ec
Use esbuild-loader (#1983)
* Minor fixes for intl messages

* Add esbuild-loader
* switch from babel to esbuild-loader
* use formatjs enforce-id linter

* Generate ids for intl messages

* id format defined by idInterpolationPattern

* Modify intl messages extraction

* remove react-intl-translations-manager
* remove transpile-tx.js
* use formatjs cli

* Modify defaultMessages.json

* modify ids in defaultMessages.json with defined idInterpolationPattern

* Fix errors

* Fix page crash

* Use babel to transpile tests

* Fix useStateFromProps

* Improve render count

* Add test to useStateFromProps

* Fix reloading state buh

* Do not check if form with channels is dirty

* Stop blocking save if form has not changed

* Remove debug code

* Fix form disabling

* Fix variant selection checkbox onClick

* Update translations

* Update messages

* Use esbuild to build storybook

Co-authored-by: Bartłomiej Wiaduch <tukan2can@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2022-05-05 09:54:28 +02:00
Klaudia
22c16113bf
Saleor 6757 xit for failing tests (#2030)
* EXLUDED TEST TC:SALEOR_2807 FORM AUTOMATIC EXECUTION. FAILING REASON NEED TO BE CHECKED IN FUTURE

* nmp -i

* npm test -- -u
2022-05-04 10:42:52 +02:00
Karolina Rakoczy
5f4292a041
Exclude failing tests from executing (#2029) 2022-04-29 15:03:17 +02:00
Karolina Rakoczy
3a5d72e811
Fix nightly tests (#2028)
* run nightly

* remove branches

* Branches and on pull request removed

* update snap
2022-04-29 13:53:21 +02:00
Michał Droń
6cf148c4c3
Fulfillment creation refactor (#1896)
* Create change warehouse dialog (#1850)

* Add allocations & variant stocks to order details query

* Add asc sorting to warehouse search query

* Add OrderChangeWarehouseDialog component

* Add key to warehouse list in dialog

* Update snapshots

* Remove debug directive

* Remove IDs from messages

* Fix typo in method name & extract messages

* Add quantity to allocations in order details query

* Add types to functions

* Move functions to local utils file

* Add utility type WithOptional

* Fix warehouse types

* Change multiple items unavailable message name

* Fix fetching onScroll

* Fix types in utils

* Add backdrop click support

* Add id to stocks and allocations

* Change unavailableLines from .map to .filter

Co-authored-by: Wojciech Mista <wojciech.mista@hotmail.com>

* Fix linter issue

Co-authored-by: Wojciech Mista <wojciech.mista@hotmail.com>

* Refactor order cards headers (#1875)

* Add keys to TableLines

* Bump macaw

* Move & rename CardTitle used in Cards with order lines

* Improve OrderCardTitle typography

* Replace StatusLabels with CircleIndicators

* Fix card title divs placement

* Add warehouse selection button to OrderUnfulfilledCard

* Fix fulfill button placement

* Update snapshots

* Make warehouse in order details view optional so that it works with uncofirmed orders

* Fix undefined lines in warehouse dialog

* Fix spacing in warehouse change button

* Fix macaw dependency

* Bump macaw-ui

* Extract messages

* Implement default warehouse selection logic

* Move CircleIndicator render condition to wrapper

* Fix failing reduce on orders with no lines

* Improve warehousesAvailable early return

* Drop counter in favor of filter().length

* Fix tests post-rebase

* Refactor fulfillment details page (#1915)

* Add shipment information card

* Refactor multiple warehouse fulfilling to one warehouse

* Fix fulfill button navigation

* Remove redundant code from OrderFulfill view

* Fix OrderFulfill story

* Move styling to seperate file & remove unused classes

* Replace colQuantityTotal class with colStock

* Add warehouse label under page header

* Fix preorder cases

* Change default values to maximum

* Simplify logic

* Add badge for preorder & deleted variant cases

* Remove unused data

* Add yellow outline for exceeding stock

* Fix failing tests

* Extract messages

* Fix tests post-rebase

* Add support for tracking number

* Block fulfilling no items

* Fix deleted variant order details bug

* Fix preorder & deleted variant cases

* Update snapshots

* Remove redundant import

* Fix linter issue

* Extract fulfillment lines as separate component

* Fix types

* Export styles & messages to seperate files

* Simplify formset changes

* Fix warning input styling

* Fix shouldEnableSave for overfulfillment cases

* Simplify preorder rendering

* Move empty line rendering

* Change Warehouse prop to just id of it

* Add endAdornment for deleted variant cases

* Update snapshots

* Fix linter issue

* Extract messages

* Fix incorrect operator precedence resulting in NaN values

* Extract fulfillment lines to fragment

* Replace nested types with fragment type

* Match fragment names

* Update snapshots

* Create exceeding stock confirmation dialog (#1970)

* Cherry-pick OrderFulfillStockExceededDialog

* Fix types to graphql-codegen

* Unify names in OrderFulfillStockExceededDialogLines

* Fix types in OrderFulfillStockExceededDialogLines

* Fix types in util

* Change utils for usage with single warehouse context

* Refactor OrderFulfillStockExceededDialogLine for usage with single warehouse context

* Fix deleted variant cases in OrderFulfillStockExceededDialogLine

* Include only exceeded lines

* Display stock exceeded dialog on error

* Add confirm button state

* Change fixed height in OrderFulfillStockExceededDialog to responsive

* Extract messages

* Move initial form data after interfaces

* Change nested type to fragment

* Reuse logic

* Remove unused import

* Remove redundant isStockError

* Remove unused imports

* Fix minor bugs in fulfillment creation refactor (#1972)

* Fix unfulfilled card header quantity calculation

* Fix formset default value for deleted variants

* Update snapshots

* Fix default warehouse selection in order draft (#1971)

* Fix default warehouse selection

* Replace Skeleton with circular progress

* Reuse logic

* Reuse logic

* Apply CR fixes

* Remove unused imports

* Fix canceled order header status

* Update snapshots

* Revert CircularProgress & change to Skeleton

* Change complex types to fragments

* Extract default warehouse logic to hook

* Fix linter issue

* Remove type assertion from OrderFulfillPage story

* Handle exceeding stock fulfillment approvals (#1988)

* wip Add OrderFulfillStockExceeded modal for fulfillment approvals

* wip Fix types & imports

* wip Fix union typing in stock exceeded dialog for both views

* Add allowStockToBeExceeded flag on submit

* Fix lines keys in FulfilledCard

* Remove redundant import

* Extract attributes caption function

* Use getById util

* Fix deleted warehouse cases in approvals

* Fix typo

* Fix styling for long warehouse names (#2019)

* Fix styling in change warehouse dialog

* Fix styling in warehouse selection button

* Add extra margin in button

* Update snapshots

Co-authored-by: Wojciech Mista <wojciech.mista@hotmail.com>
2022-04-29 11:16:58 +02:00
Klaudia
e0cc89478f
exluded test cases before those can be fixed ad part of the SALEOR-6… (#2025)
* exluded test cases before those can be fixed ad part of the  SALEOR-6705 Exclude all failing tests task

* exluded npm test -- -u
2022-04-29 10:21:53 +02:00
Karolina Rakoczy
79b4eb1836
Add input for cypress workflow (#2023)
* Add input for cypress workflow

* remove run on pull request
2022-04-28 11:42:50 +02:00
Karolina Rakoczy
6d5b894dd9
fix shipping method (#2014)
* fix shipping method

* shippings fixed

* fix jest
2022-04-28 10:56:56 +02:00
Dominik Żegleń
8fc48eb5f2
Allow all attributes to appear in grid in PLP (#1933)
* Remove unnecessary attribute filtering

* Enable all attribute types to be displayed in plp

* Improve attribute rendering in plp

* Remove obsolete filters

* Add story

* Rmove dashboard settings section

* Update snapshots

* Remove unused import

* Add column search

* Fix type

* Update messages

* Allow popper to appear on top of select

* Update snapshots

* Update label

* Use autocomplete from macaw

* Fix stories

* Remove unused imports

* Update macaw

* Update message

* Update messages and snapshots
2022-04-28 10:43:05 +02:00
Karolina Rakoczy
bd15c52ee5
fix tests for vouchers (#2012) 2022-04-28 09:52:57 +02:00
Klaudia
eabc944604
Fix tests for categories (#1975)
* 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>
2022-04-28 09:39:56 +02:00
Dominik Żegleń
dc07855b96
Update snapshots (#2022) 2022-04-27 16:01:07 +02:00
Dominik Żegleń
3e180c8d17
Minor improvements (#1924)
* Add basic tests

* Test if qs is preserved

* Preserve querystring

* Improve import performance
2022-04-27 14:57:10 +02:00
Michał Droń
fbf57bbbb1
Fix links in giftcard events created by apps (#1998)
* Fix links in giftcard events created by apps

* Trigger deployment
2022-04-27 14:12:01 +02:00