Commit graph

2809 commits

Author SHA1 Message Date
Klaudia
5c6c0b43f1
Adding missing test to collections tests (#1952)
* Adding missing test to collections tests

* Adding missing test to collections tests

* fixing merge issues

* fixing merge issues

* update to test-env-deploy

* update to test-env-deploy

* changing test-env-deploy

* adding sugestions

* fixing what Karolina suggested

* pulling from main
2022-04-27 13:14:05 +02:00
Tomasz Magulski
116b2568d2
[SALEOR-6645] Show appUrl in 3rd-party apps list (#2015)
* [SALEOR-6645] Show appUrl in 3rd-party apps list
2022-04-27 12:41:03 +02:00
Dominik Żegleń
7254c2d3df
Update schema and types (#2018) 2022-04-26 18:52:26 +02:00
Michał Droń
8f25e1b9ed
Navigate to order draft list after canceling order draft (#2010) 2022-04-26 15:32:09 +02:00
Michał Droń
ede1026a09
Fix invalid select header in vouchers (#1992)
* Fix selected header width in vouchers

* Update snapshots

* Change number of columns in customer list to correct value

* Update snapshots

* Same fix in navigation view

* Update snapshots

* Remove redundant import
2022-04-26 15:30:51 +02:00
Michał Droń
b9d94ccd83
Trim queries with whitespace (#2002)
* Disable rank sorting when query is empty

* Trim query in handlers

* Fix crash on empty query
2022-04-26 15:30:18 +02:00
Michał Droń
f24f7b3089
Fix unreadable alert boxes in dark mode (#2001) 2022-04-26 15:29:47 +02:00
Karolina Rakoczy
f257a248cc
Switch snapshot to restore (#2017) 2022-04-26 14:27:47 +02:00
Karolina Rakoczy
2c8607e1e5
Fix tests for products attributes (#2016) 2022-04-26 14:04:09 +02:00
Dominik Żegleń
8c667cc7b8
Add filtering by metadata (#1995)
* Add metadata field to filters

* Fix type

* Add metadata filters to orders list

* Refactor key value filter into separate component

* Update Filter types to support other values than string[]

* Rename IFilterElement to FilterElement, remove duplication in types

* Add new messages for Metadata filter

* Fix metadata key-value pair not formatted correctly in the URL

* Add delete metadata button

* Update snapshots

Co-authored-by: Jonatan Witoszek <jonatanwitoszek@gmail.com>
2022-04-26 10:10:12 +02:00
Wojciech Mista
522569f536
Pass appId to iframe src (#1990)
* Pass appId to iframe src

* Bump app-bridge version
2022-04-25 18:06:45 +02:00
Jonatan Witoszek
1cab89f297
Remove store name, store URL and Store description from dashboard settings (#1989)
* Disable store domain field in cloud, update query to save store name

* Update field label for domain to "Store API URL"

* Remove store name from store settings page

* Skip enitre shopDomainUpdate mutation when running in cloud

* Remove SiteDetailsSettingsCard

* Update snapshots
2022-04-25 14:00:06 +02:00
Cezary Miącz
a93f6aca6f
Add 3.3 staging deployment workflow (#2011) 2022-04-25 12:58:27 +02:00
Karolina Rakoczy
c00d34434c
Create workflow for nightly tests (#2007)
* Create workflow for nightly tests

* fix step without run

* fix if

* add missing quotes

* fix if

* checkout before install

* add needs

* check npm version

* set up node version

* fix access token

* add staging env variable

* add quote

* add caching

* check if run when revert skipped

* check if run correctly

* remove execute on pull
2022-04-25 11:22:50 +02:00
Jonatan Witoszek
c6d0ec8dbd
Update macaw-ui to 0.4.0 (#2004)
* Update macaw-ui to 0.4.0
* Update snapshots after macaw update
2022-04-20 17:52:26 +02:00
Michał Droń
2130a2a3e1
Fix richTextcase in prepareAttributeInput (#1994) 2022-04-15 16:33:01 +02:00
Jonatan Witoszek
0f237ad2e7
Fix event spread in PriceField (#1996)
* Fix event spread in PriceField

* Use synthetic event

Co-authored-by: Dominik Żegleń <flesz3@o2.pl>
2022-04-15 16:12:13 +02:00
Karolina Rakoczy
207ce6d031
Fix Critical (#1991)
* change api url

* fix critical
2022-04-15 13:17:52 +02:00
Cezary Miącz
8d021a2513
Fix release trigger in 3.2 staging deployment workflow (#1993) 2022-04-14 16:25:47 +02:00
Jonatan Witoszek
0686e1ae6b
Ignore more than 2 decimal numbers in price input (#1954)
* Ignore more than 2 decimal numbers in price input

* Handle currencies that don't support decimal values in PRiceField

* Fix helper function when no currency is provided, add calculated step
attribute

* Update storyshots for PriceField, replace $ currency symbol with USD

* Reject exponent character (e) in PriceField

* Add fallback when no currency symbol is provided

* Fix shortening decimal part in PriceField didn't work with >=3 numbers

* Update PriceField to use React.ChangeEventHandler

Co-authored-by: Dominik Żegleń <flesz3@o2.pl>

* Fix missing element type in React.ChgangeEventHandler

Co-authored-by: Dominik Żegleń <flesz3@o2.pl>
2022-04-14 15:06:45 +02:00
Dominik Żegleń
fe3b965019
Set descending order when ordering by rank (#1976) 2022-04-14 14:15:09 +02:00
Dominik Żegleń
b7b6def0c2
Update schema (#1987)
* Update generated API types

* Save schema
2022-04-14 14:11:50 +02:00
Michał Droń
2de4acb4a8
Skip empty attributes (#1968) 2022-04-14 14:06:01 +02:00
Klaudia
74662a11ac
copping solution form 3.0 branch (#1953)
* copping solution form 3.0 branch

* coping and merging to main

* correcting typo
2022-04-13 12:55:05 +02:00
Cezary Miącz
66b68fc02e
Refactor staging deployments (#1986) 2022-04-13 08:59:01 +02:00
Klaudia
dd85c4c6c8
removing hardcoded keys and adding CYPRESS_RECORD_KEY variable (#1979)
* removing hardcoded keys and adding  CYPRESS_RECORD_KEY  variable

* removing redundant scripts

* removed A
2022-04-12 13:06:03 +02:00
Karolina Rakoczy
f78b4472b7
Fix channels in shipping (#1936)
* fix channels in shipping

* merge

* fix run tests

* fix run critical

* fix base url
2022-04-11 10:20:26 +02:00
Karolina Rakoczy
6358ee0b89
Fix variant selection attribute (#1935)
* fix variant selection attribute

* Add TC to names

* variant selection attribute only for this test

* variant selection attribute only for this test
2022-04-07 10:38:20 +02:00
Wojciech Mista
168887ac3b
Prevent form submit if country is not selected (#1966)
* Prevent form submit if country is not selected

* Refactor error checking function

* Make address forms not invoke chrome's autofill

* Add a comment

* Update tests
2022-04-06 11:32:31 +02:00
M.Graczyk
05c2efde6c
Cypress configuration (#1973)
* Update projectID

* Add record argument to critical-tests workflow with key configuration

Co-authored-by: Michalina Graczyk <michalinagraczyk@Michalinas-MacBook-Pro.local>
2022-04-05 11:11:05 +02:00
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