Commit graph

2826 commits

Author SHA1 Message Date
Michał Droń
a54fc0396b
Deprecate secret key in webhooks (#2119)
* Add deprecated message

* Extract messages

* Add deprecated pill to webhook secret key

* Update snapshots

* Move extra info to pill toolbar

* Extract messages

* Update snapshots

* Remove preventDefault

* Open link in a new tab

* Update snapshots

* Fix linter issue

* Make webhooks active by default when creating new ones

* Update snapshots
2022-07-07 10:29:33 +02:00
Michał Droń
dc327f1f76
Bump MacawUI (#2126)
* Bump macaw

* Bump macawUI to 0.6.3
2022-07-07 10:28:10 +02:00
Michał Droń
fba74ab7d3
Sort orders by rank (#2114)
* Add rank sortfield to orders sort field enum

* Make useSortRedirects hook generic

* Add sorting by rank to orders list

* Move useSortRedirects to generic hooks dir

* Add hook description

* Add type parameters
2022-07-07 10:26:11 +02:00
Michał Droń
6bc7efc737
Fix filtering by boolean attribute (#2031)
* Fix parsing boolean value from query

* Change v to val
2022-07-07 10:23:58 +02:00
Karolina Rakoczy
8a5db9ca26
Run only critical tests (#2143)
* run critical tests

* run stable tests
2022-07-06 18:27:09 +02:00
Karolina Rakoczy
13bd0c4784
fix get env from version regex (#2120)
* fix get env from version regex

* Fix regex
2022-07-06 10:05:17 +02:00
Dawid
e924fb001c
Fix app deep linking when mount path set (#2137) 2022-07-05 12:53:47 +02:00
Dawid
1f179f8fbd
Fix app deep url redirects (#2116)
* Fix app deep url redirects

* Update app-bridge

* Refactor useAppActions helper function

* Trigger CI
2022-07-05 10:39:58 +02:00
Timur Carpeev
c81cceefaa
Add note about .env file (#2128)
* Add note about .env file

* Mention env variables
2022-07-04 09:06:36 +02:00
Dawid
079c25f16d
Fix app iframe resolution (#2111)
* Fix app frame sizes

* Update app frame height

* App page functions refactor

* Move useLocationState hook to apps

* Update apps test snapshots
2022-06-30 11:05:09 +02:00
Tomasz Magulski
1c131053d6
[SALEOR-6851] Replace appUrl with manifestUrl in 3rd-party apps list (#2115) 2022-06-29 10:08:46 +02:00
Karolina Rakoczy
9e43dd4ab1
Fix get correct domain from version (#2118) 2022-06-27 18:49:35 +02:00
Karolina Rakoczy
fd7813692a
Change way of tagging tests, add stable tag (#2102)
* change tags in tests

* change tags in tests

* add finde-names

* correct critical tag

* fix navigation

* remove comments

* fix config

* fix baseUrl port
2022-06-27 11:30:51 +02:00
Jonatan Witoszek
69eeb4c280
Pass query params for product and order details app mounting points (#2100)
* Pass query params to iframe from dashboard

* Pass search params in product details and order details extensions

* Move released features in Changelog

* Add entry to chagnelog

* Fix ESLint issues
2022-06-24 14:17:58 +02:00
Karolina Rakoczy
d48dcb87ab
Revert to snapshot (#2112)
* Use next tag for saleor cli

* Use dash instead of underscore for backup restore

Co-authored-by: Bartłomiej Wiaduch <tukan2can@gmail.com>
2022-06-23 11:16:06 +02:00
Karolina Rakoczy
6098bd293f
Automatically run automation test (#2110)
* add workflow for automatically run tests

* add event name

* add repository dispatch event to nightly tests

* fix not equal

* fix run on correct domain

* Run only on sandboxes and demo
2022-06-23 09:15:48 +00:00
Karolina Rakoczy
349133d922
Add workflow for automatically run tests (#2109)
* add workflow for automatically run tests

* add event name

* add repository dispatch event to nightly tests

* fix not equal
2022-06-22 13:15:59 +02:00
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