Commit Graph

53059 Commits

Author SHA1 Message Date
Niels Lange d8074c91b1
Add or modify states 2023-08-22 15:51:48 +02:00
RJ cb2cf79342
dev: refactor core profiler loader (#39735)
* dev: refactor core profiler loader

* dev: added storybook example for loader

* lint

* Apply suggestions from code review

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

* addressed review feedback

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-08-22 19:58:33 +10:00
Néstor Soriano 4876ab35b8
Bump WooCommerce minimum required PHP version to 7.4 (#39820)
-Change "Requires PHP":
  - In woocommerce.php
  - In readme.txt
  - In plugins/woocommerce-docs/woocommerce-docs.php
  - In packages/js/create-product-editor-block/plugin-templates/$slug.php.mustache

- Change "testVersion" in phpcs.xml:
  - In the root of the repository
  - In plugins/woocommerce
  - In plugins/woocommerce-beta-tester

- Change "require-php" and "config-platform-php" in composer.json
- Update composer.lock with more modern versions of some of the dependencies
- Remove the admin notice about the upcoming bump for PHP 7.3 users in class-wc-admin-notices.php
2023-08-22 09:21:09 +02:00
Jonathan Lane c2cbc87807
Updates Playwright to 1.37.1 from 1.33 (#39815)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-08-22 12:59:28 +08:00
Niels Lange 0519dbb7d0
Bump WooCommerce blocks package to 10.9.2 (#39828)
* Bump WooCommerce blocks package to 10.9.2

* Add changelog file
2023-08-21 14:50:01 -05:00
Moon 6f1a84e435
Run A/B test on the core profiler plugins page with Jetpack and Jetpack Boost (#39799)
* Update Jetpack label and description

* Replace Jetpack with Jetpack Boost for treatment group

* Add changelog

* Append plugin_name param to Jetpack Connection page URL

* Use the correct experiment name
2023-08-21 12:43:15 -07:00
Maikel David Pérez Gómez a4ed336a0d
Variation attributes can not be enabled in Attributes section and Non Variations attributes cannot be enabled in Variation Options section (#39770)
* Disabled attributes used in different section

* Let the attribute input field to disable some items within the dropdown list

* Define disabled attribute ids and message

* Filter non variable attributes as disabled to be used under variations options

* Filter variable attributes as disabled to be used under attributes

* Add changelog file

* Fix linter error

* Add tooltip option to menu item and use it for attribute and variations

* Fix some rebase conflicts

* Add changelog file

---------

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2023-08-21 15:39:31 -04:00
Joshua T Flowers 0c161dcacb
Add block template registry and controller (#39698)
* Add id, description, title, and area to block template methods

* Add block template registry and controller

* Remove errant die

* Add new template properties to existing test templates

* Add new template method tests to custom block template tests

* Add template registry tests

* Add template controller tests

* Add tests around template transformer

* Use template instance for registration

* Add changelog entry

* Fix tests for block controller not be initialized by container
2023-08-21 10:22:19 -07:00
Fernando Marichal 3f17b9b13b
Allow users to select multiple items from the media library while adding images (#39741)
* Allow select multiple items

* Add changelog

* Fix TS error
2023-08-21 12:10:30 -03:00
Fernando Marichal 79df3d7937
Fix display error in the Categories dropdown (#39811)
* Set flip as false

* Add changelog
2023-08-21 11:02:12 -03:00
Ismael Martín Alabarce 1227a27458
Fix onboarding payments task not completed after setting up WooPayments (#39786)
* Remove is_connected condition from can_view

To display WooPayments task as completed if applicable rather than an uncompleted payments task.

* Add changelog entry
2023-08-21 12:55:49 +02:00
Vedanshu Jain bc5c355eb7
Always return bool values from WPCacheEngine functions. (#39819) 2023-08-21 16:12:08 +05:30
Kader Ibrahim S e22338a7e7
Fixes WooCommerce knowledge base API returning empty posts (#39809) 2023-08-21 14:54:24 +05:30
github-actions fa7d9ec920 Add changefile(s) from automation for the following project(s): woocommerce 2023-08-21 08:59:37 +00:00
Vedanshu Jain 031530305d Always return bool values from cache function. 2023-08-21 14:20:29 +05:30
Jonathan Lane 497c5694e0
Fix failing disable test (#39674)
* Fix failing disable test

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

* Fix daily failing

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2023-08-18 15:33:07 -07:00
louwie17 b3f7be5fdc
Update ImageGallery toolbar: changing icon to text and adding ellipsis menu (#39753)
* Update ImageGallery Toolbar by adding an ellipsis options dropdown menu

* Add changelog

* Remove typings

* Fix build issues

* Fix lint errors

* Add comment and remove old comment
2023-08-18 16:24:26 -03:00
github-actions 657971e6ca Add changefile(s) from automation for the following project(s): woocommerce 2023-08-18 15:59:56 +00:00
Kader Ibrahim S 520bbe4f9c Fixes lint errors (#39808) 2023-08-18 20:02:53 +05:30
Kader Ibrahim S d77a0dde30 Fixes Knowledge base API (#39808) 2023-08-18 20:01:06 +05:30
Fernando Marichal 278366def9
Disable tabs in parent product page with variations (#39675)
* Add warning block

* Delete warning block

* Add notice component

# Conflicts:
#	packages/js/product-editor/src/style.scss

* Add page notice

# Conflicts:
#	packages/js/product-editor/src/blocks/tab/edit.tsx

* Add `isOptionsNoticeVisible` to tab

* Add utils functions

* Remove warning

* Add notice visibility to tab

* Add notice visibility to pricing, inventory, shipping

* Add changelog

* Remove warning

* Change button text

* Add check to hasAttributesUsedForVariations

* Fix tests

# Conflicts:
#	packages/js/product-editor/src/components/tabs/test/tabs.spec.tsx

* Create notice block and move notice from tabs

* Fix product-notice block declaration

* Remove title from array

* Fix notices

* Fix styles

* Change error to error-type

* Revert "Add notice visibility to pricing, inventory, shipping"

This reverts commit 140703d49e.

* Remove import

* Revert "Fix tests"

This reverts commit 96036c5a6c.

* Remove duplicated function

* Add changelog

* Remove `isSelectedTabApplicableForOptionsNotice`

* Remove styles out of scope

* Fix notice props

* Rename block

* Remove selectedTab

* Update packages/js/product-editor/src/blocks/notice/edit.tsx

Co-authored-by: louwie17 <lourensschep@gmail.com>

* Fix lint

---------

Co-authored-by: louwie17 <lourensschep@gmail.com>
2023-08-18 11:14:02 -03:00
Fernando Marichal 5f7e20bed7
[Product Block Editor] remove digital products from target list (#39801)
* Fix remove digital products from the target list

* Add changelog
2023-08-18 09:32:06 -03:00
AnnaMag afc8e0fac5
Disable the new editor for variable products. (#39780)
* Disable the new editor for variable products with the dev feature flag disabled.

* Add changelog
2023-08-18 09:26:56 -03:00
Ahmed 74beca459e
Add support for Japan and UAE to WooPayments (#39431)
* Add support for JP and UAE

* Add changelog file
2023-08-18 17:58:39 +08:00
AnnaMag 772541a751
[New Blocks Editor]: Update product experiment name. (#39684)
* Update product experiment name

* Add changelog

---------

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2023-08-18 10:54:22 +02:00
RJ d663c304c9
add: customize your store xstate scaffolding (#39619)
* add: customize your store xstate scaffolding

* Update plugins/woocommerce-admin/client/core-profiler/types.tsx

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

* improved findComponentMeta

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-08-18 13:30:25 +08:00
Barry Hughes 1cba486c51
Move 'Adding Actions and Filters' from wiki to docs folder (#39697)
* Move 'Adding Actions and Filters' wiki page to docs folder.

* Apply some recommended readability/grammar tweaks.
2023-08-17 22:17:39 -03:00
Barry Hughes 3ed285c7c2
HPOS: Ensure refund meta data is saved correctly (alternative approach) (#39700) 2023-08-17 16:35:57 -07:00
Thomas Shellberg ffb38055a0
Woo AI - fix store branding settings page regression. (#39773)
Woo AI - fix store branding settings page regression.
2023-08-17 21:45:32 +02:00
Sam Seay 3e9656187a
Add support to send files in Slack CLI tool (#39778)
* Add a file upload command to the slack CLI.

* Clean up, add file command to program.

* Rename the command to 'file'

* Better error handling, don't ask for file info.
2023-08-17 13:06:37 -05:00
github-actions 07137472a4
Add changefile(s) from automation for the following project(s): woocommerce 2023-08-17 10:28:57 -07:00
Corey McKrill 11a31e8b64
Update refund meta directly instead of using setters
This is an alternative to #39466, as a way to ensure that refund meta
data gets saved correctly.

Fixes #39215
2023-08-17 10:28:57 -07:00
Niels Lange 2afba8b8fe
Update WooCommerce Blocks to 10.9.0 (#39783) 2023-08-17 18:03:19 +02:00
Ilyas Foo 3e9c14d5fb
Add plugin installation request track for core profiler (#39533)
* Add track to plugin installation in core profiler

* Rename available to shown

* Add changelog

* Lint
2023-08-17 22:34:52 +08:00
Niels Lange 9a001126b5
Update WooCommerce Blocks to 10.9.0 2023-08-17 12:31:24 +02:00
Sam Seay 6e93e8d35e
Add shard to the matrix name in PHP unit tests for clarity in GH UI (#39747) 2023-08-17 17:23:35 +12:00
Barry Hughes 2993118a5b
Checkout: show "thank you" message regardless of verification status (#39758) 2023-08-16 13:56:32 -07:00
louwie17 c11b11631b
Add/39443 attribute filters (#39685)
* Add not filterable and not visible icons to attribute list

* Fix types

* Add changelogs

* Fix lint errors
2023-08-16 14:49:52 -04:00
nigeljamesstevenson 4bb1afa012
Fixes for HPOS new/update order hook behavior + webhook support (#39694) 2023-08-16 18:10:42 +01:00
RJ 99182c015c
dev: fix core profiler context ts type error (#39749) 2023-08-16 20:19:51 +08:00
Sam Seay 2926acb521
Speed up the lint and test task by doing pnpm install instead of full setup (#39760) 2023-08-16 23:02:32 +12:00
Sam Seay 462c690d61
Remove redundant deps on e2e in wc-admin (#39746) 2023-08-16 12:15:03 +12:00
Sam Seay a9ac6a43cb
Fix create-extension bugs (#39703)
Update dependencies, docs, remove outdated scripts.
2023-08-16 12:12:33 +12:00
github-actions 95c279f96c Add changefile(s) from automation for the following project(s): woocommerce 2023-08-15 21:46:27 +00:00
Corey McKrill acee366e8b
phpcs cleanup 2023-08-15 14:23:46 -07:00
Corey McKrill 9212d5f70d
Checkout: show "thank you" message regardless of verification status
As an alternative to #39406, this tries to solve the same issue in a
simpler way: break the "thank you" message out into its own small
template file and just include it in more places, so that no matter
the context, the order confirmation screen will always say thank you,
acknowledging that the order data has been received.
2023-08-15 14:10:06 -07:00
github-actions[bot] 53b0f113e5
Update changelog.txt from release 8.0.2 (#39754)
Prep trunk post release 8.0.2

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-08-15 15:11:51 -05:00
jonathansadowski beea09de2e
Update stable tag to 8.0.2 (#39757)
woorelease: Update stable tag to 8.0.2
2023-08-15 15:11:07 -05:00
Thomas Shellberg a319582c6d
Fix saving bug with Woo AI settings page and simplify. (#39565)
* Fix Woo AI plugin settings page save bug and refactor settings page.
2023-08-15 22:10:21 +02:00
Jorge A. Torres 2928a0246e
Address some more wc-admin PHP 8.1+ deprecation warnings (#38774)
* More wc-admin fixes

* Add changelog
2023-08-15 16:41:09 -03:00