Commit graph

2809 commits

Author SHA1 Message Date
Michał Droń
6b2a34872b
Change cost price placeholder (#1923)
* Change cost price label to cost

* Extract messages

* Update snapshots

* Revert header row label back to cost price
2022-03-22 14:40:18 +01:00
Michał Droń
32ddb72002
Fix undefined thumbnail url in variant details (#1934)
* Fix undefined thumbnail url

* Trigger deployment

* Remove thumbnail.url optional chaining

Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>

Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2022-03-22 12:36:36 +01:00
Dominik Żegleń
be3f009ff0
Skip failing auth tests (#1939) 2022-03-22 09:55:41 +01:00
Wojciech Mista
5059557987
Add search and filters to Pages list page (#1901)
* Uppdate queries

* Add page list search and filters

* Update types

* Update tests

* Update messages

* Change pageType -> pageTypes

* Updae types for page list

* run lint
2022-03-22 09:53:31 +01:00
Dawid Tarasiuk
d35ca150dc
Refetch extension list when installing or uninstalling Apps (#1884) 2022-03-21 13:35:32 +01:00
Karolina Rakoczy
f85786f203
Run critical tests after test env deployment (#1902)
* 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
2022-03-21 13:17:37 +01:00
Michał Droń
f3bca9af39
Fix invisible edit button in media tiles hover state (#1920)
* Fix control icons in media tiles

* Update snapshots

* Change divs to buttons

* Update snapshots
2022-03-21 12:37:55 +01:00
Dominik Żegleń
90ff0ebb5f
Remove initial data from tracking number form (#1910) 2022-03-21 12:35:19 +01:00
Dominik Żegleń
045f1d068d
Add information about immediate save (#1900)
* Add information about immediate save

* Remove leftover code

* Add info about immediate save in sales

* Add info about immediate save in orders

* Add info about immediate save in attributes

* Add info about immediate save in shipping

* Add saved notification

* Fix type errors

* Update messages

* Remove debug code

* Update messages

* Lint project
2022-03-21 12:29:08 +01:00
Dominik Żegleń
fc0e3757ae
Disable query batching (#1922)
* Remove query batching

* Fix imports

* Update changelog
2022-03-17 16:00:17 +01:00
Dominik Żegleń
2425ca59d8
Prevent navigation from variant page if form is dirty (#1913)
* Add basic tests

* Fix invalid return type
2022-03-17 15:59:04 +01:00
Tomasz Magulski
e4d160c453
Fix menu items permissions logic (#1932) 2022-03-17 10:28:12 +01:00
Jakub Majorek
f5d79c3135
Set a dev version for main development (#1759) 2022-03-16 14:29:13 +01:00
Dominik Żegleń
5304eeecc9
Fix empty rich text editor not loading (#1904)
* Fix empty rich text editor not loading

* Fix static rich text font size

* Add cleanup function

* Update snapshots
2022-03-16 11:09:12 +01:00
Dominik Żegleń
ac4a219023
Product variants enhancements (#1918)
* Remove savebar docking

* Hide attributes if empty

* Select text in autocomplete after initial click

* Update snapshots

* Use stable macaw version

* Remove maybes

* Add util filter function
2022-03-16 10:45:15 +01:00
Dominik Żegleń
3e96a68a6e
Indicate menu focus (#1928)
* Add active state to card menu

* Update macaw
2022-03-15 11:14:28 +01:00
Karolina Rakoczy
5e0c8d25dd
fix links to shipping rates (#1916) 2022-03-15 12:02:32 +04:00
Dominik Żegleń
2b2b4de4dd
Fix mutations without onCompleted (#1914) 2022-03-14 10:53:39 +01:00
Tomasz Magulski
b98d1e1d22
[CLOUD-1343] Prepare Sandbox release pull request in GtiHub Actions (#1919) 2022-03-11 11:51:19 +01:00
Mika
29d9f676c1
Disable search engine indexing out of the box (#1907) 2022-03-10 12:04:07 +01:00
Wojciech Mista
e921ca1d7a
Fix country autocomplete field (#1899)
* Fix warehouse country input field

* Update tests

* Fix customer country autocomplete input select

* Update tests
2022-03-10 09:19:09 +01:00
Karolina Rakoczy
6f69f8475c
Fix failing tests due to changes in the description field (#1903)
* fixed test for product

* fix passing description in variables

* fix tests for translations
2022-03-09 16:22:36 +01:00
Dominik Żegleń
4e9c5b8ddd
Fix invalid api path (#1911) 2022-03-09 12:17:10 +01:00
Dominik Żegleń
5b85d6c086
Use graphql-codegen (#1874)
* Use generated hooks in apps

* Remove unused files

* Use proper types in apps

* Use generated hooks in attributes

* Use generated hooks in auth module

* Use generated hooks in categories

* Use generated hooks in channels

* Use generated types in collections

* Remove legacy types from background tasks

* Use generated hooks in customers

* Use generated hooks in discounts

* Use generated hook in file upload

* Use generated types in gift cards

* Use generated types in home

* Use generated hooks in navigation

* Use generated hooks in orders

* Use generated hooks in pages

* Use generated hooks in page types

* Use generated hooks in permission groups

* Use generated hooks in plugins

* Use generated hooks in products

* Use fragment to mark product variants

* Improve code a bit

* Use generated hooks in page types

* Use generated types in searches

* Use generated hooks in shipping

* Use generated hooks in site settings

* Use generated hooks in staff members

* Use generated hooks in taxes

* Place all gql generated files in one directory

* Use generated hooks in translations

* Use global types from new generated module

* Use generated hooks in warehouses

* Use generated hooks in webhooks

* Use generated fragment types

* Unclutter types

* Remove hoc components

* Split hooks and types

* Fetch introspection file

* Delete obsolete schema file

* Fix rebase artifacts

* Fix autoreplace

* Fix auth provider tests

* Fix urls

* Remove leftover types

* Fix rebase artifacts
2022-03-09 09:56:55 +01:00
Wojciech Mista
29461658a2
Add api error log in notifications (#1873)
* add api error log in notifications

* Refactor graphql error handling

* Update messages

* Install macaw-ui from commit hash

* Make notification id be ref index rather than date

* Refactor notification container styles to allow scroll

* Add fix to apollo onError function to get operation name

* Fix userPermission race-condition

* Add refactored error handling

* Temporarly install macaw from pill PR

* Handle case when there are no graphql errors

* Update errors

* Run build-types

* Update stories to include messages

* Update shipping types

* Traverse through onCompleted data and show errors

* Update tests

* Update messages

* Clear error notifications on submit

* Check if context exists - fix tests
2022-03-04 11:52:58 +01:00
Karolina Rakoczy
4d02eb60c0
Add reports to tests (#1898)
* add reporter, fix tests

* remove unused import

* get functions duration

* merge

* update snaps
2022-03-03 11:25:27 +01:00
Wojciech Mista
66705e7f3e
Don't display pricing by default in Product List (#1891)
* Update build-types script

* Remove "pricing" where it's unused; exclude pricing query if no channel is selected

* Update fixtures

* Fix minor preorder issue

* Update types

* Fix build-types script

* Remove unnecessary product fragment

* Fetch only data that is visible in products list (#1892)

* Conditionally include attributes in product list query

* Add 'hasSelectedAtrributes' variable to product list query

* Refactor condition

* Create AttributeValueDetailsFragment fragment

* Use attributeValueDetailsFragment

* Update fragment in products
2022-03-03 11:14:18 +01:00
Wojciech Mista
d3db86a2d2
Fix currency autocomplete widget (#1865)
* bump downshift version

* Firther refactor for downshift bump

* Update tests

* Remove unnecessary id property

* Remove unnecessary !important
2022-03-01 16:04:44 +01:00
Wojciech Mista
9a7c9a3bc3
Add permission-based restrictions in Customer views (#1879)
* Update customer queries - add permissions

* Filter the customer filter by permissions

* Code refactor + optionally render components based on permissions

* Update stories

* Minor code refactor

* Move useUserPermissions to RequirePermissions component

* Change user provider component name

* Change macaw-ui version
2022-03-01 09:38:23 +01:00
Dominik Żegleń
8ab05ab8e1
Merge shipping rates views (#1851)
* Merge price and weight based rate pages

* Increate text field width

* Update messages
2022-02-25 16:04:11 +01:00
Jakub Majorek
5e8b93262e
Update changelog (#1890) 2022-02-23 13:17:58 +01:00
Wojciech Mista
3013cb29c6
Add preview pill in gift cards card (#1886)
* Add preview pill in gift cards card

* Temporararily disable triangle in preview pill
2022-02-22 11:20:46 +01:00
Wojciech Mista
2c494a1b01
Fix translation link color (#1882) 2022-02-22 11:12:12 +01:00
Wojciech Mista
b419fd9975
Fix menu reordering in navigation (#1871) 2022-02-22 10:29:18 +01:00
Jakub Majorek
5850644742
Change extensions naming (#1885)
* Change extensions to apps

* Update translations

* Use explicit translation, bump macaw to latest release
2022-02-22 09:15:55 +01:00
Wojciech Mista
4661a93c0f
Fix return/replace input and table (#1877)
* Add min width to input and add responsive table

* Move inline style to styles
2022-02-22 09:11:44 +01:00
Wojciech Mista
9579bbe2f2
Fix gift cards card in customer view (#1883) 2022-02-21 19:11:31 +01:00
Dominik Żegleń
2a52eb581c
Update apollo to v3 (#1837)
* Update apollo to v3

* Fix imports

* Add generated file to ignored

* Use proper import

* Tidy up code

* Remove unused packages

* Fix tests
2022-02-21 14:32:38 +01:00
Dominik Żegleń
1eab4ac8a6
Preview pills (#1880)
* Add pill component

* Add preview pill to gift card list

* Use outlined prop

* Add arrow to tooltip

* Add preview pill to gift card view headers

* Add preview pills to mark preview features

* Update macaw

* Update tests

* Update messages

* Add black color to pill preview tooltip

Co-authored-by: Wojciech <wojciech.mista@hotmail.com>
2022-02-21 12:38:27 +01:00
Klaudia
8e8fcc775c
fixed issues with CLA, and added tests for update translation (#1868)
* fixed issues with CLA, and added tests for update translation

* npm i
2022-02-21 12:31:50 +01:00
Jakub Majorek
7e6ef8b020
Fix TS issues on icon components (#1878) 2022-02-18 11:49:46 +01:00
Bartłomiej Wiaduch
80e8cb9221
Refactor createSvgIcon import for icons (#1694)
It fixes ts declarations resolution
2022-02-18 10:27:55 +01:00
Michal Zajac
190d2660c5
(SingleSelectField) Dont allow to select option when it is disabled (#1870)
* fix(SingleSelectField): dont allow to select an option when it is disabled

* feat(storybook): add story to the SingleSelectField

* fix(storybook): update snapshot
2022-02-18 09:53:58 +01:00
Michał Droń
f5f4858cf1
Change StatusLabels to Pills (#1867)
* Change StatusLabels to Pills (#1819)

* Refactor StatusLabel component to use Pills

* Remove StatusLabel component

* Remove StatusChip component

* Refactor ChannelsAvailibilityDropdown for usage with Pills

* Remove AvailabilityStatusLabel

* Fix FilterErrorsList dot

* Refactor plugin availability

* Update messages

* Update snapshots & solve rebase conflicts

* Fix rebase conflict - duplicate intl

* Handle products & collections without channels

* Change plugins messages from inactive to deactivated

* Remove redundant ChannelConfigPopup

* Change AvailabilityMenu from onClick to onHover

* Update snapshots & fix rebase conflicts

* Add order title

* Fix status colors

* Remove unused import

* Fix extra spacing in unfulfilled pill

* Add payment card title & move messages outside file

* Fix impromper skeleton rendering in product list

* Update snapshots & fix rebase conflicts

* Change plugins pills to interactive

* Update snapshots

* Trigger deployment

* Apply minor CR fixes

* Change callb
acks props to mapped objects in ChannelsAvailabilityMenu

* Rebase / update snapshots

* Fix fulfilled from label position

* Update snapshots

* Change messages names in oRderPayment

* Fix Pill overflowing

* Update snapshots
2022-02-17 12:08:17 +01:00
Dawid Tarasiuk
675a3a959a
Fix external refresh token error (#1852) 2022-02-14 11:36:17 +01:00
Karolina Rakoczy
bc7eca4e49
Add tests for manage stock reservation (#1832)
* test for manage stock reservation

* merge

* add version
2022-02-11 16:26:01 +01:00
Karolina Rakoczy
7c47566995
add tests for shipping for 3.1 (#1859) 2022-02-11 16:08:45 +01:00
Karolina Rakoczy
74508ed93b
Add tests for updating vouchers (#1845) 2022-02-11 15:58:40 +01:00
Karolina Rakoczy
f86a3559b0
add tests for creating vouchers for 3.1 (#1844) 2022-02-11 15:39:10 +01:00
Karolina Rakoczy
f5a8db9f2e
Update data test ids for 3.1 (#1814)
* add update data test ids

* fix not changed test ids

* fix data-test-id for gift cards

* remove comment

* fix base url
2022-02-11 12:28:55 +01:00