Commit Graph

52088 Commits

Author SHA1 Message Date
Matt Sherman 4e530ba2e2
Prevent theme styles from being used in the block-based product editor (#38491) 2023-05-30 13:25:55 -04:00
Tomek Wytrębowicz 1c7c99636e
Reduce code duplication in Report Controllers (#38048) 2023-05-30 12:53:30 +02:00
Ilyas Foo edf95bf3f4
Update shipping partner suggestions to use data from API (#38457)
* Added shipping partner suggestions data handling in JS

* Add woocommerce services real info

* Add dynamic layout components, remove unused JS, added images to proper asset paths

* Changelog

* Update changelog and removed unused variable

* Remove console.log

* Lint fix

* Add shipping methods module in woocommerce/data

* Update data usage

* Revert "Added shipping partner suggestions data handling in JS"

This reverts commit 6a87ef2658.

* Lint fix
2023-05-30 15:56:32 +08:00
RJ ab18828e84
add: core profiler business info page (#38412)
* add: core profiler business info page
2023-05-30 15:05:38 +08:00
Chi-Hsuan Huang 953a8f5c30
Make option API fail when using a disallowed option name in non-produciton environments (#38388)
* Make option API fail when using a disallowed option name in non-produciton environments and update permission list

* Add changelog

* Change Option API deprecated notice version to WC 6.3
2023-05-30 09:07:29 +08:00
Matt Sherman 27574c98cd
Update DateTimePickerControl's dropdown positioning (#38466) 2023-05-29 16:12:28 -04:00
Matt Sherman f186403a77
Opt out of Reset and Help buttons in DateTimePickerControl (#38480) 2023-05-29 16:09:06 -04:00
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
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
Paul Sealock 7164093928
Workflows: Remove Github Actions Bot conditionals (#38438) 2023-05-25 12:00:22 +12: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
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
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
Alejandro López Ariza cf87fab3c2
Added comment to the PR template for people to indicate if the PR is part of a bigger feature. (#38295) 2023-05-22 14:28:24 +02:00
Matt Sherman 87a8f45b5d
Fix spelling errors in Remote Inbox Notifications Transformers documentation (#38387) 2023-05-22 06:07:32 -04:00
Maikel David Pérez Gómez 195bcd2368
Limit 'email me when stock reaches' field to numerical only (#38353)
* Limit 'email me when stock reaches' field to numerical only

* Add changelog file
2023-05-22 06:59:58 -03:00
Maikel David Pérez Gómez e16792dc11
Make DateTimePickerControl a ForwardedRef (#38306)
* Forward ref the DateTimePickerControl

* Add changelog file

* Remove the component typing definition

* Integrate the forwardedRef component with the schedule-sale block

* Add changelog file
2023-05-22 06:55:07 -03:00
Chi-Hsuan Huang 4547922f3f
Add core profiler user profile page (#38328) 2023-05-22 11:21:16 +08:00
Moon 6d4014042b
Add woocommerce_suggest_jetpack filter to exlude Jetpack suggestion in OBW (#38286)
* Add filter for free extensions endpoint

* Add changelog

* Add filter doc

* Support woocommerce_suggest_jetpack filter to exlude Jetpack

* Update plugins/woocommerce/src/Admin/API/OnboardingFreeExtensions.php

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

---------

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2023-05-21 16:07:01 -07:00