Commit graph

2729 commits

Author SHA1 Message Date
Dominik Żegleń
74595a4266
Update translations (#1965)
* Update transifex config

* Update translations
2022-04-05 09:33:48 +02:00
GrzegorzKowalik
a946dba254
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
2022-04-04 08:36:53 +02:00
Jonatan Witoszek
90807bb0cf
Update unassignProductAttributeMutation to use new array parameter types (#1957)
* Update unassignProductAttributeMutation to use new array parameter types

* Replace [Collection]! with [Collection!]! in queries to match API changes

* Fix failing test on ProductVariantPage
2022-03-31 14:45:48 +02:00
Michał Droń
5dcd9751a0
Add fallback paginationState for useSectionLocalPaginationState hook (#1959) 2022-03-30 15:59:37 +02:00
Michał Droń
26f8a776be
Fix variant create null thumbnail (#1956)
* Fix null thumbnail error

* Fix too few hooks rendered on non-existent products & variants
2022-03-30 15:50:47 +02:00
Michał Droń
879e1da69e
Fix shifted text in create variants dialog (#1950)
* Fix radio labels misalignment

* Remove DialogContent padding & move styles to external file
2022-03-30 15:48:12 +02:00
Wojciech Mista
7b45ef2758
Fetch only published producs in draft order (#1921) 2022-03-30 09:01:14 +02:00
Michał Droń
560ed2cd6e
Add build-schema tool (#1947)
* Add build-schema tool

* Include build-schema in fetch schema
2022-03-29 10:39:33 +02:00
Karolina Rakoczy
8bc2931679
Fix flaky tests for gift cards (#1938)
* fix gift cards

* add new command to search elements on table

* remove unused imports
2022-03-28 13:52:06 +04:00
Dominik Żegleń
40d9575cad
Fix plugin auth section crash (#1951)
* Fix plugin auth section crash

* Simplify code
2022-03-25 15:24:28 +01:00
Michał Droń
d273706ef8
Fix search permission groups at staff member edit page (#1937)
* Fix undefined choices in multi autocomplete select field

* Replace optional chaining with empty array default prop
2022-03-25 13:46:43 +01:00
Michał Droń
e186b2f8c3
Fix sidebar items not showing up with partial permissions (#1949)
* Skip navigator's customerSearch query on dashboard load

* Fetch extensions list only with MANAGE_APPS permission

* Show sidebar sections with partial permissions

* Trigger deployment

* Change skipping query from always to when query is empty
2022-03-25 13:41:54 +01:00
Jakub Majorek
cf7a51ab8e
Use sandbox on App iframe (#1893)
* Use sandbox, handle external redirect

* Add allow-same-origin flag

* Update translations
2022-03-25 13:39:09 +01:00
Dominik Żegleń
1e77665b4a
Minor visual fixes (#1927)
* Fix label

* Improve product organization widget labels

* Fix misaligned label

* Fix arrow behavior

* Add clickable rows to country picker

* Update snapshots

* Update messages

* Fix misaligned label

* Update snapshots
2022-03-25 13:37:01 +01:00
Michał Droń
2b7d514da5
Fix select address button on small resolutions (#1943) 2022-03-24 10:28:52 +01:00
Dominik Żegleń
ed1c189b02
Fix bugs in forms (#1941)
* Fix plugin config form

* Add missing webhooks

* Fix rate description field

* Fix auth race condition

* Fix customer removal

* Fix staff member deletion

* Fix shipping rate submitting
2022-03-23 15:12:56 +01:00
Wojciech Mista
26659a0be7
Remove redundant confirmLeave on tracking number dialog (#1926)
* Add onBeforeUnload handler to prevent accidental refresh

* Update button messages

* Fix exit form not working after submit

* Make onBeforeUnload disable if env is development

* Fix onClose

* Remove internal date time field state

* Update messages and dialog

* Prevent navigation on 400 error

* Add submit disabled ref in exit form

* Update exit form dialog for disabled save

* Update confirmLeave forms to set ref if save is disabled

* Remove unused error handling

* Remove explicit ref type

* Remove unused import

* Fix disabled type

* Add disable check function to generic forms

* Add custom isDisabled method to sale and voucher forms

* Add default isDisabled functions to confirmLeave forms

* Update tests

* Remove unused code

* Rebase fixes + update tests

* Refactor form and useform

* Refactor disabling forms

* Change "saveDisabled" name to "isSaveDisabled" for improved readability

* Change "isDisabled" function to "checkIfSaveIsDisabled"

* Remove redundant confirmLeave on tracking number dialog
2022-03-23 11:41:26 +01:00
Karolina Rakoczy
74848922dc
Run critical tests in ever PR (#1945)
* 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
2022-03-23 11:36:30 +02:00
Wojciech Mista
a5ac6bb92e
Exit form fixes (#1889)
* Add onBeforeUnload handler to prevent accidental refresh

* Update button messages

* Fix exit form not working after submit

* Make onBeforeUnload disable if env is development

* Fix onClose

* Remove internal date time field state

* Update messages and dialog

* Prevent navigation on 400 error

* Add submit disabled ref in exit form

* Update exit form dialog for disabled save

* Update confirmLeave forms to set ref if save is disabled

* Remove unused error handling

* Remove explicit ref type

* Remove unused import

* Fix disabled type

* Add disable check function to generic forms

* Add custom isDisabled method to sale and voucher forms

* Add default isDisabled functions to confirmLeave forms

* Update tests

* Remove unused code

* Rebase fixes + update tests

* Refactor form and useform

* Refactor disabling forms

* Change "saveDisabled" name to "isSaveDisabled" for improved readability

* Change "isDisabled" function to "checkIfSaveIsDisabled"

* Update exit form disabling conditions for zone rates forms
2022-03-23 10:13:23 +01:00
Wojciech Mista
7576afed4e
Don't fetch user details on login (#1909)
* Install sdk from commit

* Don't include user details on login

* Update recordings

* Update saleor-sdk version

* Update sdk version
2022-03-23 08:15:05 +01:00
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