Commit Graph

63118 Commits

Author SHA1 Message Date
Thilina Hasantha 561b443152 Add the view for showing admin notice for activating the plugin. 2024-03-08 18:02:11 +01:00
Thilina Hasantha 85c6c180a2 Add install/activate notice to Browse and Themes tabs. 2024-03-08 18:01:32 +01:00
Thilina Hasantha be685db4e8 Add close button to modal with message to activate WUM. 2024-03-08 18:00:27 +01:00
Bhupesh Mishra 319408bb67
changed filter by attribute filter options order (#44799)
* changed filter by attribute filter options order

In filter by attribute, order of the filter conditions "ALL" and "ANY" reversed as requested.

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

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-08 13:45:53 +01:00
Néstor Soriano 0432a8fd88
Add the plugin install engine (#44856)
* Add the PluginInstaller class

* Add changelog file

* Fix linting issues

* Changes in the installer:

- Allow installS from the WordPress.org directory only
- If the installer name is WooCommerce, throw if the caller is not
  in 'includes' or 'src' in WooCommerce core
- Remove two unnecessary includes
- Check if WP plugin upgrader classes already exist before
  executing the includes for them
- Get the installed plugin info using the plugin_info method
  of the plugin upgrader class

* Remove the get_installed_plugin_info method as it's no longer used

* Log plugin install only on sites with WooCommerce active
2024-03-08 07:29:41 -05:00
Jorge A. Torres 0da0e372d6
[HPOS CLI] Flush in-memory cache after each batch in migration (#44670) 2024-03-08 12:47:27 +01:00
Thilina Hasantha 5520d4a5f7 Increasing the left margin of the install notice to match admin notices. 2024-03-08 12:37:31 +01:00
Alba Rincón 1c9620b3be
[CYS] Show the default header and footers as the first option (#45414)
* Show the default header and footers as the first option

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-08 12:03:19 +01:00
Luigi Teschio a57b322bd9
CYS: improve font installation with the async job (#45411)
* CYS: improve font installation with the async job

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-08 10:26:19 +00:00
Barry Hughes 6a910390a9
[Minor] Fix docblock/typo (#45405)
Fix docblock.
2024-03-08 10:53:12 +01:00
Chi-Hsuan Huang 10561c8c1a
Add default values for Launch your store task (#45306)
* Add LYS task default values

* Add changelog

* Add unit tests

* Init LaunchYourStore task only when feature flag is enabled

* Add action to woocommerce class

* Remove WCAdminHelper use

* Add lys options to permission list

* Set launch-status option

* Fix woocommerce_store_pages_only

* Use WC_Install::is_new_install() instead

* Use woocommerce_newly_installed action

* Check if feature flag is enabled

* Use singleton WooCommerce object in tests

---------

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2024-03-08 17:27:46 +08:00
Luigi Teschio 913953f586
CYS: fix Undefined array key queryId warning (#45399)
* CYS: fix Undefined array key queryId warning

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-08 10:02:41 +01:00
Karol Manijak a3811fa007
Product Collection: Set initial value of Created filter for New Arrivals collection (#45355)
* Set initial vlaue of Created filter for New Arrivals collection

* Add changelog

* Remove a check for products in tests as they may not really be displayed

* Adjust the New Arrivals test

* Adjust the tests logic after the change

* Bring back previous formatting

* Bring back function closure removed by mistake
2024-03-08 08:33:21 +01:00
Niels Lange ba85f36219
Unskip Mini Cart i18n test (#45371)
* Unskip Mini Cart i18n test

* Install language packs before each i18n-related test suite

* Delete translations.sh

* Add changelog

* Replace deprecated WP-CLI command

* Remove obsolete WP-CLI command
2024-03-08 12:39:22 +07:00
Moon 1f914c755e
Add Launch Your Store settings section (#45402)
* Support div setting type

* Add wc_settings_general_site_visibility_slotfill slotfill

* Add site visibility setting section

* Add placeholder

* Rename div to slotfill_placeholder

* Add comment

* Fix component name

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

* Use unique id

* Rename option names

* Put LYS settings behind launch-your-store flag

* Move Site Visibility header to component

* Lint fixes

* Lint fixes

* Use woocommerce-settings scope

* lint fix

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-08 04:11:52 +00:00
Jorge A. Torres f229c3d765
Prevent backup post from being deleted when HPOS is authoritative (#45330)
This PR short-circuits wp_delete_post() so that when HPOS is authoritative, any attempts to delete the backup post are not successful (which could also end up deleting the HPOS order). This only applies to non placeholder posts, as placeholder posts won't trigger the cascade of operations that might be problematic here.

Fixes #42746
2024-03-07 16:24:36 -08:00
Bart Kalisz ed6c7ea1e9
Blocks E2E: Make the workflow self-trigger (#45391) 2024-03-07 20:32:58 +01:00
Christopher Allford 293a88491c
Enhanced `pnpm clean` (#45326)
This adds `.wireit` directories to `pnpm clean` and fixes the
ordering so `pnpm store prune` works as it should.
2024-03-07 11:30:37 -08:00
jonathansadowski 41bb2ba0ad
Add workflow with cron for testing against WP nightly (#45260) 2024-03-07 11:12:13 -08:00
Luigi Teschio 76e7d84523
[CYS] Improve logic to ensure that the font is active (#45385)
* improve logic to ensure that the font is active

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-07 18:44:01 +00:00
Thilina Hasantha de79035b6d Update CTA and image for the not connected screen. 2024-03-07 17:39:21 +01:00
Alba Rincón 60d93e447f
[CYS on core] Set the default width after logo update (#45384)
* Set default width after logo update

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-07 15:13:31 +01:00
louwie17 d6cbbfb4d2
Add simple products to the Analytics orders query for the attributes filter (#44901)
* Add subquery for simple products

* Update query to make use of product lookup instead

* Add changelog

* Revert change

* Update PHP tests and fix lint errors

* Move subquery out to its own variable to make it more readable
2024-03-07 10:52:38 -03:00
Bart Kalisz 211b6ef01b
Blocks E2E: Be more descriptive with the workflow job titles (#45381) 2024-03-07 13:32:29 +00:00
Bart Kalisz 9a14411937
Blocks E2E: Allow manually triggering the workflow (#45382) 2024-03-07 14:01:22 +01:00
Fernando Marichal 9865701cbb
Add message after publishing a product to pre-publish panel (#44864)
* Add message after publishing product

* add styles

* Fix animation styles

* Fix panel footer

* Remove console.logs

* Add changelog

* Fix product url

* Remove preview

* Add post-publish-section and fix animation

* Add hook useProductURL

* Add postpublish

* Refactor usePreview

* Use PostPublishSection and PostPublishTitle

* move style

* modify styles

* Fix footer

* Fix copy

* Add ts-ignore

* Add CopyButtonProps

* Fix productStatus

* Rename isPublished
2024-03-07 09:08:51 -03:00
Bart Kalisz 8ff89fa6db
Blocks E2E: Do not report slow tests (#45375) 2024-03-07 12:57:48 +01:00
Thilina Hasantha ed5aee55c0 Fixing the notice generated due to empty body. 2024-03-07 11:07:35 +01:00
Walther Lalk c509f424dc
Allow extensions in Add Products task (#44892)
* Add POC for tasklist product types extensibility

* Replace create product with custom onClick when it exists

* Don't include dummy plugin

* Remove dummy file

* Cleanup product type filter for tasklist

* Create unit test for product type filter

* Added changelog

* Move changelog file

* Is Enhancement

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

* Delete plugins/woocommerce/changelog/extend-product-task

* Fix lint errors

* Apply suggestions from code review

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

* CR responses

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-03-07 10:04:10 +00:00
Néstor Soriano 564fd47ef7
Adjust the WC_Admin_Notices to support multisite setups (#45349)
Previously there was one single locally cached instance of the notice names array that wasn't aware of switch_to_blog executions. Now in multisite setups one separate array is kept for each existing blog id.
2024-03-07 10:54:35 +01:00
Luigi Teschio 77f8716c78
CYS: fix the footer large pattern - use only one navigation block (#45308)
* CYS: fix footer large pattern - use only one navigation block

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-07 09:08:08 +00:00
Thilina Hasantha fcc74f3127 Remove the hard coded ID of the Woo Update Manager and use the slug to get the ID of the plugin based on update-check response. 2024-03-07 09:31:07 +01:00
Christopher Allford 65fe267f32
Product Collection: Added `featured` PHPUnit Tests (#45359) 2024-03-06 14:24:10 -08:00
Alexandre Lara 8163b83bf7
Price Filter: Fix styling issue when Inline input fields is enabled (#45197)
* Fix styling issue in the Editor when Inline input fields is enabled

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

* Fix styling issue on the Frontend when Inline input fields is enabled

* Fix css lint errors

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-06 17:10:12 -03:00
Alexandre Lara be9b3ab4f0
Filter blocks: Add block preview (#45258)
* Add block preview to filter blocks

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-06 16:55:04 -03:00
Alexandre Lara bbd2e50a53
Product Filter - Price (Beta) block: Fix Filter is not applied when using the numeric inputs (#45327)
* Add missing `name` attribute to min and max input fields

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-06 16:43:13 -03:00
Thilina Hasantha b9da926150 Remove WUM from available to install list of extensions on my-subscriptions tab. 2024-03-06 19:57:57 +01:00
Thilina Hasantha 2ace396b43 Add a method to get the id of the WUM. 2024-03-06 19:56:38 +01:00
Thilina Hasantha a8bd90dc41 Update download url for WUM. 2024-03-06 18:19:35 +01:00
Thilina Hasantha 0a973c3965 Update install url to new structure. 2024-03-06 18:06:02 +01:00
Luigi Teschio 26c19fa1f8
Revert "[e2e tests blocks] Configure the number of shards for each ma… (#45324)
* Revert "[e2e tests blocks] Configure the number of shards for each matrix project (#45212)"

This reverts commit 72789656cf.

* trigger CI

* run E2E tests

* restore ci.yml file

* trigger E2E tests

* disable E2E tests about mini cart translations

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

* Fix the setupAndFetchQueryContextURL utility

* add comment

* Remove obsolete test

* Blocks E2E: Update timeout values (#45353)

Set timeout values same as core

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Bart Kalisz <bartlomiej.kalisz@gmail.com>
2024-03-06 16:52:37 +00:00
Justin Palmer 56d087f536
Hide unnecessary order attribution details (#44907)
* Hide more details for simple sources
2024-03-06 11:25:01 +01:00
Tung Du 2cfd120f15
[Experimental] Fix: add an unique id to each list item to prevent diffing issue (#45304)
* fix: add an unique id to each list item to prevent diffing issue

* chore: changelog
2024-03-06 10:36:20 +07:00
Christopher Allford e2ed2a9fdb
Removed Product Collection Unique ID (#44625)
With the availability of other unique characteristics
for identifying collection blocks, it is no longer necessary
to keep this attribute. Since it has not been used it is safe
to remove it without a deprecation cycle.
2024-03-05 14:08:17 -08:00
Thilina Hasantha 259e9ed517 Implement the bubble showing number of updates available on WooCommerce -> Extensions menu. Add one to available Woo.com updates if WUM is not installed or activated. 2024-03-05 19:12:50 +01:00
Thilina Hasantha 5af5d4ebd3 Use html text for install notice message. 2024-03-05 18:35:46 +01:00
Thilina Hasantha 3e78a1d74b Update the text based on the latest flow and show a different message when WUM is installed but not activated. 2024-03-05 18:34:59 +01:00
Brent MacKinnon babf31877f
Docs fix ux guidelines (#45323)
* Update accessibility.md

* Update docs-manifest.json

* Update theme design accessibility guidlelines

* Update theme-accessibility.md

* Update docs-manifest.json

---------

Co-authored-by: Jacklyn Biggin <hi@jacklyn.dev>
2024-03-05 17:25:24 +00:00
Alba Rincón 1c68e2dd9f
[CYS] Fix the selected pattern in footer, header and homepage (#45240)
* Check also the number of inner blocks before checking the attributes

* Add classes to assembler footer patterns

* Add classes to assembler header patterns

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

* Mark the current homepage template as selected

* Remove unused import

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-05 18:21:44 +01:00
Thilina Hasantha a45216db34 Update connect store message. 2024-03-05 17:53:56 +01:00