Commit Graph

52504 Commits

Author SHA1 Message Date
Maikel David Pérez Gómez b0ac1607b9
View should scroll to the top when navigating between tabs (#38484)
Override the interface skeleton container so it can be scrollable
2023-05-29 15:28:50 -04:00
Ron Rennick 98a1ba3174
Maybe default the selected state as the first one when it's "*" (#38469) 2023-05-29 16:02:41 -03:00
Moon 6946ef384a
Core Profiler - Add extensions page (#38405)
* Initial design impl. without the full functionality

* Delete unused icons

* Add is_installed and plugins_page_skipped

* Add plugin-card component to render an installable plugin

* Implement plugins page

* Add loaders for plugins

* Add changelog

* Remove unused type

* Add changelog

* Remove unnecessary return statement

* Add obw/core-profiler

* Replace extensions with plugins

* Temp -- use window.location.href for Woo Home redirection

* Minor: code refactor

* Refactor isntallAndActivatedPlugins

* Skip plugins page when there is no available plugin

* Apply mobile styles

* Update plugins/woocommerce-admin/client/core-profiler/components/plugin-card/plugin-card.scss

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Update plugins/woocommerce-admin/client/core-profiler/components/plugin-card/plugin-card.scss

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Update plugins/woocommerce-admin/client/core-profiler/style.scss

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Bold errored plugin name

* Fix checkbox alignment

* Update changelog

* Fix object type for formatToParts function

* Fix lint issues

* Fix CSS lint issues

* Fallback to en-US when locale is not available

* Fix error with siteLocale

---------

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2023-05-29 07:45:30 -07:00
Fernando Marichal 5e3fe64598
Fix RIM rules processor (#38312)
* Fix url comparison.

* Add changelog

* Fix lint

* Fix `process` function

* Fix `contains` switch

* Create class "PrepareUrl"

* Fix "PrepareUrl"

* Fix "compare" and "process"

* Fix "process"

* Add readme and changelog

* Refactor OptionRuleProcessor

* Fix lint

* Fix conditional

* Add unit tests

* Fix lint
2023-05-29 09:29:02 -03:00
Chi-Hsuan Huang 340d74cdba
Update woocommerce_suggest_jetpack filter description (#38501)
* Update woocommerce_suggest_jetpack filter description

* Add changelog

* Update filter description
2023-05-29 15:21:24 +08:00
Chi-Hsuan Huang f937a3e61b
Add an action to add trunk to live branches manifest (#38419)
Add build-live-branch action to add trunk to live branches manifest
2023-05-29 12:08:32 +08:00
Christopher Allford 230bc04050
Updated `wp-env` To 8.0.0 (#38440) 2023-05-26 15:48:48 -07:00
Moon f3a515889c
Core Profiler - replace install-async with install-activate-async (#38434)
* Change install-async to install-activate-async

* Add changelog

* Add comment for activated function

* Fix tests and rename install-activate-async to install-and-activate-async

* Rename callback function to static
2023-05-26 13:34:54 -07:00
ajayghaghretiya-multidots 0780386610
Fixed import and visibility tax values to lowercase (#33820)
* Fixed import and visibility tax values to lowercase

* Minor fixes

---------

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2023-05-26 13:23:35 -05:00
Scott Kingsley Clark 7feda5e4dd
Bring in code suggestions from Ron
Co-authored-by: Ron Rennick <ron@ronandandrea.com>
2023-05-26 12:53:00 -05:00
Ron Rennick bf77b4c022
[Fix] Undefined array key 1, 2, 3 when using list to extract cookie values. (#38294) 2023-05-26 13:28:34 -03:00
Ron Rennick 73c8b91b6f
Add changelog file 2023-05-26 12:33:41 -03:00
Matt Sherman 2b12908a80
Add @woocommerce/create-product-editor-block package (#38263)
* Initial commit for create-product-editor-block

* Changelog

* Add stylelint support

* Install WooCommerce and WooCommerce Beta Tester in wp-env

* Set PHP and WordPress versions

* Enable product block editor after wp-env setup

* Lower priority for modifying template, so that the template is actual there!

* Update wp-env afterSetup command to use npx

* Update output README.md

* Update README for package

* Use long form of template parm name in README

* Remove unused example in block config

* Update block registration to handle both WP 6.2 and WP 6.3

* Include note about how to change version of WP and WC in README

* Update WP to 6.2.1

* Remove explicit enqueuing of block script and style

* Update minimum required versions of WordPress and PHP in generated plugin file

* Enable feature flag option after setup of wp-env

* Add minimum required WC version to generated plugin file

* Support wp-env lifecycleScripts

* Guard against product_block_editor not enabled or missing template

* Update lock file
2023-05-26 08:16:57 -04:00
Nathan Silveira c44ee9649f
Filter by date_paid and date_completed on list table orders (#38428)
* Filter by date_paid and date_completed on list table orders based on configuration

* Use separate query param 'order_date_type' to filter orders

* Add clarifying comment

* Add missing phpcs ignore

* Refactor to use 'm' and 'order_date_type' query parameters
2023-05-26 05:19:01 -03:00
Paul Sealock 0cfbf0a653
Changelog CLI: Add command to make entry from PR description (#38357) 2023-05-26 12:02:20 +12:00
Rua Haszard bb79e28cf6 make all params optional (except body text) and conditonally render button 2023-05-26 11:02:43 +12:00
Rua Haszard ff89bfda40 tidy / polish new order metabox hook:
- rename for consistency with related hooks
- add `$order` param as will likely be useful to clients
- document in docblock
- remove wrapper div
2023-05-26 10:49:34 +12:00
Rua Haszard 4c9df162ce fix parameter order – consistent with docblock, group soon-tobe-optionall button params 2023-05-26 10:40:20 +12:00
Moon 2f6ff0f3e6
Core Profiler - Add obw/core-profiler to the extensions endpoint (#38418)
* Add obw/core-profilers

* Added name fields to all plugins

* Added icons for jetpack and woocommercer-services

* Add changelog

* Fix lint issues
2023-05-25 13:20:39 -07:00
Scott Kingsley Clark 4eea158c82
Rename changelog/fix-default-selected-state-for-country to plugins/woocommerce/changelog/fix-default-selected-state-for-country 2023-05-25 15:17:27 -05:00
Scott Kingsley Clark 59ecb9306c
Rename pr-38467 to fix-default-selected-state-for-country 2023-05-25 14:40:48 -05:00
Scott Kingsley Clark 9840cc48d7
Add changelog 2023-05-25 14:38:16 -05:00
Scott Kingsley Clark c32c133235
Remove extra tabs 2023-05-25 14:32:49 -05:00
Scott Kingsley Clark 839bc0ea18
Maybe default the selected state as the first one when it's "*"
When WC is provided only the country for the option `woocommerce_default_country` then it will fail to select a default state within the listed states.

Try this by manually setting `woocommerce_default_country` to "US" and you will see it selects the first country in the list instead of the first state within that country.

This only happens for countries that have states like US and CA for instance.
2023-05-25 14:28:05 -05:00
Barry Hughes 3fecc47437
Revert "Add REST API Products featured image" (#38460) 2023-05-25 12:08:38 -07:00
Ron Rennick c045584248
Revert "Add REST API Products featured image" 2023-05-25 14:44:49 -03:00
Albert Juhé Lluveras 94d8b54de6
Update WooCommerce Blocks package to 10.2.1 (#38449) 2023-05-25 16:02:58 +02:00
RJ 80f6d0a6a6
add: wccom migrate link in nux (#38441)
* add: wccom migrate link in nux

* Update plugins/woocommerce-admin/client/profile-wizard/steps/business-details/flows/selective-bundle/style.scss
2023-05-25 20:25:03 +10:00
louwie17 4db856db05
Add declare compatibility functions to beta tester (#38393)
* Add declare compatibility for custom order table and product block editor features

* Add changelog

* Fix PHP lint errors
2023-05-25 05:06:06 -03:00
Fitim Vata 00b96fb940
Merge branch 'woocommerce:trunk' into trunk 2023-05-25 09:46:16 +02:00
Chi-Hsuan Huang af26209886
Update "Set up additional payment options" task view & complete logic (#38273)
* Cache WooCommercePayments task is_complete() result

* Update Set up additional payment task view logic

* Add changelog

* Update additional payment task view & complete logic

* Add changelog

* Fix lint and view logic

* Fix lint

* Fix lint

* Update payment task section heading logic
2023-05-25 12:24:15 +08:00
Rua Haszard 27e2f7b334 prototype contextual notice component – php func, template, and css 2023-05-25 16:01:44 +12:00
Rua Haszard 43c7212f53 Add fake but informative changelog to appease the pre-commit hooks. 2023-05-25 14:36:09 +12:00
Paul Sealock 7164093928
Workflows: Remove Github Actions Bot conditionals (#38438) 2023-05-25 12:00:22 +12:00
Corey McKrill d6eab3615c
Add unit tests 2023-05-24 16:27:04 -07:00
Corey McKrill ed2013d933
Add changelog file 2023-05-24 16:23:45 -07:00
Corey McKrill 1e40699ed2
Add OrderUtil methods to check for specific order admin screens 2023-05-24 16:23:44 -07:00
Corey McKrill 83f3dae429
Use container class to retrieve orders page controller
This ensures that the instance of the page controller class that
is used to set up the HPOS order admin screens is accessible and has
all its properties set correctly for use with the new is_order_screen
method.
2023-05-24 16:23:44 -07:00
Corey McKrill 498c08592a
Add method is_order_screen to HPOS PageController class 2023-05-24 16:23:44 -07:00
Corey McKrill 1f42f3f17b
Add missing post_type value to WP_Screen for HPOS order screens 2023-05-24 16:23:44 -07:00
github-actions[bot] 8bd49ad2ae
Prep trunk for 7.9 cycle (#38402)
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-05-24 17:34:49 -05:00
Denis Dvali a946d4ec2a Merge branch 'trunk' into add/ssr-report-endpoint
# Conflicts:
#	plugins/woocommerce/includes/wccom-site/class-wc-wccom-site.php
#	plugins/woocommerce/includes/wccom-site/rest-api/endpoints/class-wc-rest-wccom-site-installer-controller.php
2023-05-24 21:54:09 +04:00
Maikel David Pérez Gómez a43a418019
List price gets reset on blur when error is shown (#38414)
* List price gets reset on blur when error is shown

* Add changelog file

* Fix linter error
2023-05-24 13:53:28 -04:00
Matt Sherman 014644895e
Don't show confirmation message when removing a non-variation attribute from a product (#38386) 2023-05-24 12:41:45 -04:00
Joshua T Flowers 353e01eb65
Tweak typography and element spacing in product editor (#38351)
* Update header font size

* Remove icons from sections

* Update radio block label and spacing

* Make checkbox tooltips larger and vertically align

* Update description colors

* Update h4 font sizes in editor

* Add changelog entry

* Add core changelog entry

* Handle initial design feedback

* Remove copy of assets in client webpack config
2023-05-24 10:11:00 -04:00
Rua Haszard 928783be8b add a hook to allow extenders to add notices or content after payment details on order edit screen 2023-05-24 14:57:56 +12:00
Ethan Clevenger d6931f316e
Update deprecated jQuery ready calls (#37320)
* Make `ready` call jQuery 3 valid

* Another call during setup.

* Add changelog.

* Trigger CI

---------

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2023-05-23 17:40:11 -05:00
Paul Sealock 3e56cd54cf
Code Freeze: Fix outdated variables in Slack message (#38409)
add correct variables
2023-05-24 09:57:57 +12:00
Corey McKrill 684baa698a
Enable running phpcs-changed locally against a branch (#38085)
* Add lint-branch.sh

* Add doc block and make var name more explicit

* Add changelog file

* Update composer's lint and lint-staged scripts

It turns out that using single brackets for a test doesn't work
sometimes when the variable contains spaces or multiple items.
Double brackets handles this better, so should make the scripts more
robust.

* Use double brackets in lint-branch script

Using double brackets for a test is more robust and may be able to
handle some cases that single brackets can't, such as a variable that
contains spaces or multiple items.

Note that this also required updating the shebang at the top of the
script file from `sh` to `bash` since double brackets is a syntax
introduced in Bash.
2023-05-23 08:29:16 -05:00
Sam Seay 4b2bece1c2
Use the new slack util to send slack notification in code freeze (#38290) 2023-05-23 09:15:46 +12:00