Commit graph

3040 commits

Author SHA1 Message Date
Dawid
ab8111a62d
Add status pills to webhooks list (#2153) 2022-07-13 13:12:58 +02:00
Dawid
b6312c2dff
Fix sortable chip dragging style (#2150) 2022-07-13 13:11:38 +02:00
Dawid
51baacd0ff
Remove copyright from login page (#2139) 2022-07-13 13:10:31 +02:00
Timur Carpeev
b9a53a6fde
Add rules of hooks (#2131)
* Fix conditional hooks

* Add rules of hooks lint

* Install dependencies with node 14
2022-07-13 11:13:58 +02:00
Wojciech Mista
e7f68f4c07
Periodical refresh of app token (#2091)
* Install jwt-decode

* Add token refetch hook

* Fix types

* Remove app settings

* Regenerate lock

* Fix jwt test issues

* CR fixes

* Bump node and npm

* Reinstall jwt-decode
2022-07-12 12:30:53 +02:00
Mika
d50b7ee939
Deploy demo for 3.5 tags (#2160)
This allows to automatically release 3.5 tags to demo.
2022-07-12 10:49:29 +02:00
Dominik Żegleń
0c3148893b
Update schema (#2159) 2022-07-12 10:38:49 +02:00
Dawid
f1ffb5093f
Add assign warehouse section in channel page (#2127)
* 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
2022-07-11 11:43:08 +02:00
Karolina Rakoczy
eb58e2c8ed
Update channel in warehouse in cypress tests (#2152)
* Assign warehouse to channel

* Assing warehouse to channel
2022-07-11 12:14:23 +03:00
Dawid
eff15075d4
Add transaction events to order history (#2138) 2022-07-08 12:14:42 +02:00
Karolina Rakoczy
2c206e7eb6
Activate plugins on new snapshot (#2149)
* run critical tests

* run stable tests

* update snapshot to restore
2022-07-08 10:52:36 +03:00
Michał Droń
10e5b8d331
Better input validation in Order Draft lines (#2003)
* Stop sending queries for empty & 0 values in TableLineForm

* Provide default value for incorrect ones

* Fix submit/change handlers

* Remove async
2022-07-07 17:31:26 +02:00
Michał Droń
7d3897f75f
Fix hover borders & remove scrollbar in assign product dialog (#2124)
* Fix hover borders & remove scrollbar

* Trigger deployment
2022-07-07 17:30:32 +02:00
Michał Droń
3ac4ac4c1b
Fix fulfilling deleted variants (#2090)
* Add optional chaining

* Fix type

* Fix a similar bug in the stock exceeded dialog

* Add keys to fulfillment lines

* Add undefined to return type
2022-07-07 17:28:12 +02:00
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