Commit Graph

21023 Commits

Author SHA1 Message Date
Damián Suárez 38390ab6e8
Product Editor: improve E2E tests. Test the `+3 More` item label in the Organization tab (#48891)
* introduce attributes fixture

* expose the tabs from the new data/ folder

* introduce confirmGlobalAttributesLoaded helper

* reuse confirmGlobalAttributesLoaded helper

* reuse attributes fixture

* check the `+3 More` item label

* changelog

* not only this test

* rename to waitForGlobalAttributesLoaded
2024-06-28 07:58:22 +01:00
Vladimir Reznichenko 66ae029f70
CI: lint strict types directive for new files (#48779)
Tooling: extend php-files linting (require strict types directive)
2024-06-28 08:09:40 +02:00
Manish Menaria b0ef3886c0
Product Collection: Fix Preview badge border-radius and alignment (#48856)
* Fix Preview badge border-radius and alignment

The Preview badge's bottom left and right corners now have border-radius set to 0px to ensure they smoothly morph into the block's stroke. The badge is visually aligned with the furthest edge of the block's right border.

* Add changefile(s) from automation for the following project(s): woocommerce-blocks

* Fix Lint errors

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-28 11:14:59 +05:30
Paul Sealock 28ce50fefe
Store Alerts: Update widths to match main body (#48487) 2024-06-28 08:37:25 +12:00
Fernando Marichal 5811655e1a
Revert "Set stock quantity value to 0 by default (#48448)" (#48863)
* Revert "Set value to stock quantity"

This reverts commit 4350f497fd.

* Revert "Undo set_stock_quantity"

This reverts commit 19affd841b.

* Add changelog

* Fix lint

* Fix lint

* Fix lint warning

* Undo set_stock_quantity
2024-06-27 13:23:56 -03:00
Wacław Jacek c7fcc8eaac
Don't recommend WCS&T in default extension recommendations if WCShip or WCTax is active (#48705) 2024-06-27 17:17:50 +02:00
Ilyas Foo 6d1de12aa9
Fix shipping zones add zone button flinching (#48869)
* Fix add zone button flinching and vertical centering

* Changelog
2024-06-27 23:06:46 +08:00
Veljko V 4077d36ceb
Fix Core with Gutenberg e2e tests (#48896)
* Fix Core Gutenberg e2e tests

* Fix merchant create checkout block test
2024-06-27 16:33:26 +02:00
Wacław Jacek f257baa4e5
Don't recommend WCS&T on shipping settings page if WCShip or WCTax is active (#48701) 2024-06-27 15:36:00 +02:00
Wacław Jacek f0b9a9147f
Don't display WCS&T help in tasks if WCShip or WCTax is active (#48703) 2024-06-27 15:35:18 +02:00
Ilyas Foo 4eba3cb09a
Exclude coming soon patterns from block inserter (#48821)
* Exclude coming soon patterns from block inserter

* Changelog

* Remove coming soon block from inserter
2024-06-27 19:17:06 +08:00
Luigi Teschio bfe65d61d1
CYS: Update sidebar homepage copy (#48882)
* CYS: Update sidebar homepage copy

* Add changefile(s) from automation for the following project(s): woocommerce

* fix lint error

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-27 09:50:45 +00:00
Damián Suárez ce81de95a9
Product Editor: fix issue when trying to create same terms with different cases (#48627)
* prevent creating duplicated items with different cases

* changelog

* allow terms with same name for local attributes

* fix wrong const name to identy local attributes

* use more complext terms for E2E test

* encode URL to pass E2E test

* split E2E when creating new terms

* introduce `slug` property to TokenItem

* rename terms with globalAttributeTerms

* jsdoc

* minor test name change

* changelog
2024-06-27 09:50:27 +01:00
Luigi Teschio c119a1b64f
CYS: Improve Block Toolbar logic (#48799)
* CYS: Improve Block Toolbar logic

* disable animation

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-27 08:22:32 +00:00
Damián Suárez 84353a8987
Product Editor: restore Product (local) Attributes E2E test (#48871)
* minor test re-organization. test.only for dev

* update test when creating local attrs with terms

* udpate checking the attribute terms

* fix checking terms in the frontend

* attribute value is not used. clean

* improve jsdoc

* run not only this test

* changelog

* minor doc improvement
2024-06-27 08:05:29 +00:00
Albert Juhé Lluveras e13ce86036
Add back revert template e2e tests (#48805)
* Add back revert template e2e tests

* Add changelog file
2024-06-26 15:15:38 +02:00
Luigi Teschio e601afb351
CYS: Remove not necessary patterns (#48750)
* remove not necessary patterns

* use always template1 for AI flow

* show default patterns homepage

* Add changefile(s) from automation for the following project(s): woocommerce

* remove not used images

* restore changes

* fix e2e test

* fix e2e test

* restore necessary patterns

* add necessary patterns

* restore necessary patterns

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-26 12:55:35 +00:00
Jonathan Lane 6fb9131728
Update coupon test for retries (#48734)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-06-26 14:06:20 +03:00
Jonathan Lane 745964d048
Fix variations saving with UI check (#48737)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-06-26 13:59:46 +03:00
Albert Juhé Lluveras 0205513556
Fix Classic Template block registration on WP 6.6 (#48730)
* Fix Classic Template block registration on WP 6.6

* Update Compatibility Layer docs

* Add changelog file

* Remove unused function

* Simplify logic
2024-06-26 12:20:22 +02:00
Néstor Soriano cacb10065e
Improvements in the handling of feature compatibility for plugins (#48169)
- In the plugins list only features that are currently enabled
  will be considered for the list of features that are incompatible
  with a given plugin.

- A per-feature flag named "plugins_are_incompatible_by_default"
  is used. Defaulting to false, when it's true for a given feature
  it means that plugins not declaring compatibility with a the
  feature are to be considered incompatible with the feature.
  The flag is set for the HPOS feature only.

- A new 'woocommerce_plugins_are_incompatible_with_feature_by_default'
  filter is added, which allows to alter the flag for a given feature.

- The "plugins incompatible with feature" page will display all the
  incompatible/uncertain plugins, even if the feature is disabled.
  The "plugins incompatible with ALL features" page still shows
  only plugins that are incompatible/uncertain with enabled features.

- Add a --ignore-plugin-compatibility switch to the "wc hpos enable"
  command, to allow enabling even if there are incompatible plugins.

- Add a new "wc hpos compatibility-info" command, which lists 
  the plugins that are compatible/incompatible/uncertain with HPOS.
2024-06-26 08:45:43 +02:00
Manish Menaria 9bdd6cc45b
Product Collection: Add comment for regression E2E tests (#48782)
* Add comment for regression E2E tests

* Add changefile(s) from automation for the following project(s): woocommerce-blocks

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-26 11:03:11 +05:30
Moon dfc40ff775
Beta tester - fix lint errors (#48825)
* Fix lint errors

* Add changefile(s) from automation for the following project(s): woocommerce-beta-tester

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-25 21:09:14 -07:00
Moon 97e5873b1b
Bump beta tester to 2.3.2 to prep a new release (#48806)
* Bump version to 2.3.2

* Update changelogs

* Add changefile(s) from automation for the following project(s): woocommerce-beta-tester

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-25 20:53:49 -07:00
Bhupesh Mishra 3b9bd6d019
Update - Disable toggle by default and secondary enhancements (#48762)
* Update - Disable toggle by default and secondary enhancements

- Disabled toggle by default in Checkout blocks Return to cart button.

- Change Account options to Navigation options.

- Add a subtext to explain when to turn it on or off.

* set default value to false in attributes.tsx also

* Add changefile(s) from automation for the following project(s): woocommerce-blocks

* Changelog

* Remove check for link from test suite—this is now hidden by default

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Mike Jolley <mike.jolley@me.com>
2024-06-25 16:47:31 +01:00
Mike Jolley c2783847c4
Fix: stack coupon fields on smaller screens (#48623)
* Wrap button and input using flexbox

* Use basis instead of size

* changelog
2024-06-25 16:19:49 +01:00
Adrian Duffell ccb3d589d6
Update Printful label (#48778)
* Change label to “Promoted”

* Add changelog
2024-06-25 15:02:11 +00:00
Estian 858231c238
#48459 coupon email restrictions fix (#48488)
* Create customer object from user object to fetch emails in try-catch.

* Add changefile(s) from automation for the following project(s): woocommerce

* 48459 Replace $check_emails array values with user_email.

* Update plugins/woocommerce/changelog/48488-48459-coupon-email-restriction-fix

Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Mike Jolley <mike.jolley@me.com>
Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>
2024-06-25 15:32:57 +01:00
Wacław Jacek 00f7420f81
Don't recommend WCS&T in tax task if WCShip or WCTax is active (#48699) 2024-06-25 14:23:07 +02:00
Veljko V 134f431187
Fix failing e2e test merchant/settings-tax (#48792)
* Remove unnecessary step in the settings tax test

* Add changelog

* Remove unnecessary waituntil
2024-06-25 13:46:52 +02:00
Mike Jolley 7a8d5e0b6d
Fix: Block theme template overrides for notices were impacting all templates (#48686)
* Narrow scope of notice template overrides from theme

* changelog
2024-06-25 11:04:54 +01:00
Jorge A. Torres e0322c57fe
Return HTTP 404 in REST API for non-existent webhooks (#48729) 2024-06-25 10:48:15 +02:00
Pascal Birchler e5b7f84704
Prevent translations from being loaded too early (#47113)
* Prevent translations from being loaded too early

* Undo accidental changes to `CheckoutFields`

* Keep plugins_loaded, but include required file

* Update order in the meantime

* Change to admin_init

* Add changelog file

* Undo `init_jetpack_connection_config` change

* Undo change to Packages class

* Fix LocalPickupUtils instead

* PHPCS fixes

* Update method name in test
2024-06-25 10:20:00 +02:00
Moon a09522df1c
WCA Test helper - add remote inbox notification staging importer (#48735)
* Add Remote inbox notifications management

* Remove admin notes section -- replaced by remote inbox notifications

* Add import from staging and production

* Add changefile(s) from automation for the following project(s): woocommerce-beta-tester

* WIP - change test to run

* Display failed rules on error

* Change run to test

* Add changefile(s) from automation for the following project(s): woocommerce-beta-tester, woocommerce

* Retire Remote Spec Ruel Validation -- use test action from Remote Inbox Notifications

* Run spec when all rules have passed

* Fix typo

* Change btn text to Run

* Update copy text

* Place delete all button on the left side

* Update plugins/woocommerce-beta-tester/api/remote-inbox-notifications/class-wca-test-helper-remote-inbox-notifications.php

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Update plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/RuleEvaluator.php

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Update plugins/woocommerce-beta-tester/api/remote-inbox-notifications/class-wca-test-helper-remote-inbox-notifications.php

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Add changefile(s) from automation for the following project(s): woocommerce-beta-tester

* Separate remote inbox notification heler functions into a class and fix DELETE method errors

* Fix typo

* Display all errors

* Fix errors

* Fix error with test

* Add import from URL

* Change func name to importFromUrl

* Rename 48735-feature-remote-notiifcation-importer to 48735-feature-remote-notification-importer

Fix filename typo

* Add changefile(s) from automation for the following project(s): woocommerce-beta-tester

* Fix changelog filename typo

Fix changelog filename typo

* Add changefile(s) from automation for the following project(s): woocommerce-beta-tester

* Revert adding new changelog

It seems the new CI is automatically creating a changelog based on branch name 43d6abe3e7

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2024-06-24 23:32:36 -07:00
RJ 655c1436ec
fix: lys congrats refetch site cache status (#48710) 2024-06-25 13:50:30 +08:00
github-actions[bot] fe9e3f48f2
Prep trunk for 9.2 cycle (#48653)
Prep trunk for 9.2 cycle with version bump to 9.2.0-dev

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-06-24 23:17:56 -04:00
github-actions[bot] bebcb713c8
Release: Remove 9.1 change files (#48654)
Delete changelog files from 9.1 release

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-06-24 23:17:28 -04:00
Paul Sealock 5a30d0b480
Settings Save button disable/enable (#47444) 2024-06-25 13:12:14 +12:00
Julia Amosova beb5625214
Update stable tag to 9.0.2 (#48776)
woorelease: Update stable tag to 9.0.2

Co-authored-by: Julia Amosova <juliaamosova@ultraw-mbp.mynetworksettings.com>
2024-06-24 17:14:39 -04:00
github-actions[bot] 7e1bf29c11
Delete changelog files based on PR 48753 (#48764)
Delete changelog files for 48753

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-06-24 16:41:35 +01:00
Vedanshu Jain cebeac1b47
Revert PR 46857 for backward compatibility (#48753)
* Revert PR 48753 to restore back compat.

* Typo fixes.
2024-06-24 20:42:02 +05:30
Luigi Teschio 91e3154a1c
CYS: Disable readonly mode only when full composability feature flag is enabled (#48752)
* CYS: Disable readonly mode only when full composability feature flag is enabled

* Add changefile(s) from automation for the following project(s): woocommerce

* add import

* address feedback

* no select block when it is added

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-24 14:43:26 +02:00
Gan Eng Chin 841d00e150
Display "View store" button text by default. (#48690)
* Display "View store" button text by default.

* Add changelog.
2024-06-24 19:25:55 +08:00
Alexandre Lara 3b00882aed
[Experimental] Product Filters Redesign > Wrapper block: Fix icon (#48635)
* Fix Product Filters wrapper block icon

* Add changefile(s) from automation for the following project(s): woocommerce-blocks

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-21 17:47:58 -03:00
Maikel Perez 5e997435bd
Create an API that manage the custom field names (#48504)
* Create WC_REST_Product_Custom_Fields_Controller

* Register WC_REST_Product_Custom_Fields_Controller

* Add pagination to the /product-custom-fields/names request

* Add WC_REST_Product_Custom_Fields_Controller_Tests

* Fix linter errors

* Add changelog file

* Fix linter error

* Change endpoint path to matches the product related endpoints set

* Fix controller file description

* Use more descriptive table alias in the sql query
2024-06-21 18:43:00 +00:00
Veljko V c77dfe5030
Add tags to e2e tests and update PW configs (#48715)
* Add tags to e2e tests and update pw configs

* Fix lint issues
2024-06-21 11:06:12 -07:00
Barry Hughes 200c7b3239
Initial work to constrain when the `tk_ai` (anon ID tracking cookie) is set (#47863)
Initial work to constrain when the `tk_ai` (anon ID tracking cookie) is set.
2024-06-21 10:59:02 -07:00
Hsing-yu Flowers daf7d5c6f9
Get tax line lable instead of name (#48445)
* Get tax line lable instead of name

* Remove error log

* Add changefile(s) from automation for the following project(s): woocommerce

* Update plugins/woocommerce/changelog/48445-update-get-tax-line-label

* Add changefile(s) from automation for the following project(s): woocommerce

* Add changefile(s) from automation for the following project(s): woocommerce

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
2024-06-21 17:46:57 +00:00
Damián Suárez 0273910e32
Product Editor: restore and fix E2E test that creates product variations (#48725)
* update test when creating product variations

* fix picking 50 value from page

* handle snackBar step properly

* enable the rest of tests

* changelog

* simplify. remove console.log lines
2024-06-21 09:49:30 -07:00
Alba Rincón 464c2d48ed
CYS > Remove the site title block fixed length (#48671)
* Remove the site title block fixed length

* Add changefile(s) from automation for the following project(s): woocommerce

* Remove the site title block fixed length

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-21 16:52:33 +02:00