Commit Graph

10711 Commits

Author SHA1 Message Date
Ron Rennick 39dad76b08
Fix dynamic property declaration warnings in shipping code (PHP 8.2+) (#38569) 2023-06-02 14:36:14 -03:00
Jorge A. Torres 491aa8216c Fix dynamic prop declaration warning in `WC_Email` 2023-06-02 12:28:51 -05:00
Ron Rennick 2068738300
Fix dynamic property declaration warnings in gateway code (PHP 8.2+) (#38566) 2023-06-02 14:25:42 -03:00
Jorge A. Torres 1abb0874c3
Fix dynamic property declaration warnings in HPOS code (PHP 8.2+) (#38565)
* Fix typo in variable name

* Remove unnecessary instance var from CustomOrderTable migration files

* Add changelog
2023-06-02 12:24:01 -05:00
Ron Rennick a4bb76a573
Support values written in exponential notation for HPOS migrations. (#38561) 2023-06-02 13:21:33 -03:00
Jorge A. Torres 48385351b1 Add changelog 2023-06-02 11:03:15 -05:00
Jorge A. Torres 345d99e1c1 WCAdmin fixes 2023-06-02 11:03:07 -05:00
Jorge A. Torres 22e8217220 PHPCS fixes 2023-06-02 09:24:07 -05:00
Jorge A. Torres c3f2ff0714 Add changelog 2023-06-02 09:24:07 -05:00
Jorge A. Torres 59ea67768c Fix ‘dynamic property declaration’ warning in `WC_Countries` 2023-06-02 09:24:07 -05:00
Jorge A. Torres 88618ca07a Fix ‘creation of dynamic property’ warnings for shipping methods code 2023-06-02 09:24:07 -05:00
Adrian Duffell c477fe852b Add changelog 2023-06-02 21:59:56 +08:00
Adrian Duffell bb2fcce173 Update task header max width
Fixes a bug where on 2-col layouts, text was overlapping the image because the overall container size is less than 500px.

75% is the equivelent of 500px for single-col layout.
2023-06-02 21:51:32 +08:00
Rua Haszard 61324ccd4f correct @since version and clarify changelog 2023-06-02 15:17:42 +12:00
Rua Haszard 8fbfa57798 remove `contextual notice` experiment, can use inline notice Gutenberg component 2023-06-02 15:11:45 +12:00
Maikel David Pérez Gómez abcedbefe0
[MVP QA #1] Visual: spacings (#38325)
* Update the margin-left on the buttons in the top bar from 16px to 8px

* On mobile, the left and right body margins should be 32 px

* The inner padding in the tab in the top bar should be 12px, not 16px

* In the edit product link modal, let's set this modal’s width to 650 px and remove the line separating the header from the contents

* All modals should now have 8 px window radius

* In the feedback form, can we fix the buttons at the bottom

* The help icon in checkboxes small, detached from the item label, and vertically misaligned. Left margin of 4 px, no vertical adjustment; somehow it has a -2px set for the top margin)

* Fix block-editor-block-contextual-toolbar top position

* When the product is in a draft state, the button in the top bar should say Add, not Save. It should change into Update once it's published on the store

* Fix layout margin top

* Add ection support for blockGap and set title and description to optional

* Remove non needed control field margin bottom

* Fix schedule sale block spacing

* Remove non needed control field help text margin bottom

* Remove the sub section outer spacing

* Move pricing fields into a sub section block

* Fix collapsible-contet margin top

* Remove invalid inner block layout spacing

* Wrap sku, stock toogle and quantity within a sub section

* Group inventory advance section inner blocks into a sub section

* Fix linter error

* Add changelog files

* Fix php lint error

* Change unit names to fit GB definitions
see: b2c16f3c68/packages/base-styles/_variables.scss\#L31-L41
2023-06-01 13:56:31 -04:00
Jorge A. Torres e14bfd46d7 Add changelog 2023-06-01 11:55:04 -05:00
Jorge A. Torres d8b6add2a3 Fix dynamic property declaration warnings in gateway code 2023-06-01 11:55:04 -05:00
github-actions[bot] 49383a5be2
Delete changelog files based on PR 38433 (#38554)
Delete changelog files for 38433

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-01 08:28:12 -05:00
Vedanshu Jain 01368cef58 Add changelog. 2023-06-01 18:08:26 +05:30
Vedanshu Jain ab9630b43a Coding standard fixes. 2023-06-01 18:07:33 +05:30
Vedanshu Jain cece0a5bf5 Fix for migrating orders where values are in exponential notation. 2023-06-01 18:04:06 +05:30
Albert Juhé Lluveras 76af1aa551
Update WooCommerce Blocks to 10.2.2 (#38545) 2023-06-01 10:33:59 +02:00
Vedanshu Jain 25843a9baf
[HPOS] Add properties and methods for detecting order admin screens more easily (#38417) 2023-06-01 12:07:16 +05:30
Vedanshu Jain 404ea4dc4d
fix Unsupported operand string * float (#38532) 2023-06-01 11:21:55 +05:30
Barry Hughes 356afd3388
Add endpoint to get SSR (#38433) 2023-05-31 16:46:40 -07:00
Sam Seay 664468f51a
Add a new plugin to the monorepo for the docs project (#38406) 2023-06-01 10:21:33 +12:00
Ron Rennick ffc58145f0
Hide HPOS plugin incompatibility warning from users with no 'activate_plugins' perm (#38535) 2023-05-31 15:53:31 -03:00
Ron Rennick ba57d8da29
ensure parameter datatype for array_slice (#38529)
* ensure parameter datatype for array_slice

* add phpdocs to existing filters

* fix spacing

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-05-31 13:18:57 -05:00
Matt Sherman f0e6802f2a
Load custom editor-only blocks in the block-based product editor (#38495) 2023-05-31 13:14:00 -04:00
github-actions[bot] a80c68fb4b
Delete changelog files based on PR 38449 (#38454)
Delete changelog files for 38449

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-05-31 10:06:17 -05:00
github-actions[bot] c7b16f1acc
Release: Remove 7.8 change files (#38404)
Delete changelog files from 7.8 release

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-05-31 10:05:03 -05:00
jonathansadowski 14a53c2dd4
Remove change file from 38441 (#38464)
Delete add-core-profiler-business-location copy
2023-05-31 10:04:27 -05:00
github-actions[bot] 91095db43a
Delete changelog files based on PR 38542 (#38544)
Delete changelog files for 38542

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-05-31 10:04:14 -05:00
Denis Dvali 07f662ecf8 - Logic to submit SSR data to WooCommerce.com.
- Allow request SSR  only if user has permissions to manage WooCommerce.
2023-05-31 17:01:11 +04:00
louwie17 7d4f65b8c7
Fix save settings error within Analytics (#38542)
* Filter out undefined query params

* Add changelog
2023-05-31 09:35:54 -03:00
Ron Rennick 84a62ced27
cast url to string for str_replace (#38530)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-05-31 12:25:21 +02:00
Sam Seay b076a7b521
Fix linter issues and update Syncpack (#38523) 2023-05-31 11:45:10 +12:00
Jorge A. Torres 8d02566d9c Add changelog 2023-05-30 15:10:36 -05:00
Jorge A. Torres 700a3114cd Do not show HPOS incompatibility warning to users with no access to the plugins screen 2023-05-30 15:10:32 -05:00
Ron Rennick 8c9ff70c33 fix string + string for PHP 8.X 2023-05-30 16:35:56 -03:00
Ron Rennick dd04184dd5 fix Unsupported operand string * float 2023-05-30 15:25:28 -03: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
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
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
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
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 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
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
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
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
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
Matt Sherman 87a8f45b5d
Fix spelling errors in Remote Inbox Notifications Transformers documentation (#38387) 2023-05-22 06:07:32 -04: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
nigeljamesstevenson ff50a69256
Remove the unnecessary `daily.playwright.config` (#38336) 2023-05-20 00:49:07 +01:00
Matt Sherman 08d7c24298
Fix race condition when rendering product attributes tab empty state (#38354) 2023-05-19 19:15:06 -04:00
Corey McKrill 4791f03b47
Implement admin-side order edit lock for HPOS orders (#38230)
This PR adds support to HPOS for order edit locking in the admin (similar to what posts and custom post types get by default). Specifically, the following is implemented:

* The lock is stored in order meta for interoperability with WP's implementation.
* Orders that are being edited by a user other than the current one will appear with a lock icon next to them in the list table. This lock icon/status is updated live via heartbeat with no page refresh necessary.
* When opening an order that is being edited by another user, a warning will be displayed, with the ability to take over the order:
* When someone has taken over an order you're editing, you'll get a warning about it automatically via heartbeat (no page refresh involved)

Fixes #37108
2023-05-19 15:50:08 -07:00
Nathan Silveira 5723f436cd
Add `wcadmin_settings_change` tracks event to shipping fields (#38305)
* Call update_option and update_options in shipping_zone_add_method

* Add new hook 'woocommerce_update_shipping_setting' to settings tracking

* Add tracking for shipping_zone_add_method

* Add tracking to shipping_zone_methods_save_changes

* Add changelog

* Update hook name and track modified option

* Prevent options from being added twice to array
start fixing php sniff issues

* Add docblocks

* Remove empty space

* Add docblock for parameter

* Fix lint issue

* Fix code introduced by mistake
2023-05-19 16:05:07 -03:00
Nathan Silveira ef0a32ff48
Reload page when toggling new-product-management-experience (#38348)
* Add callback to reload page when togglint new-product-management-experience

* Add changelog

* Implement reload for product-block-editor and code review suggestions
2023-05-19 14:57:51 -03:00
Maikel David Pérez Gómez ebf0b92960
Use feature the new feature flags engine to guard the access to the new product blocks experience (#37122)
Unregister the product-block-editor feature flag from WC Admin Test Helper, and enable product block editor feature.
2023-05-19 12:53:55 -04:00
Nathan Silveira 869b897ddd
Rename tracks event `product_attributes_add` to `product_attributes_save` on the product page and update attributes (#38278)
* Change attributes of tracks event product_attributes_add

* Don't send used_for_variations_count if it's not variable product type

* Explicitly add null values in product_attributes_add when the attribute is sent on the other call

* Rename product_attributes_add on the product page to product_attributes_save
Fix inverted local and global attributes count
Remove unnecessary parameters
Refactor code

* Update changelog
2023-05-19 12:44:54 -03:00
nigeljamesstevenson 67a583d9a8
Remove wp-env workaround (#38326) 2023-05-19 16:14:55 +01:00
Vedanshu Jain 048778a72b
Support strict SQL modes in HPOS migration that dont allow zero date (#38332) 2023-05-19 16:57:50 +02:00
nigeljamesstevenson f903feb741
Break down `create-variable-product` spec into smaller files (#38335) 2023-05-19 15:38:41 +01:00
Mike Jolley 28c72e81c4
Remove the global wc-cart-fragments enqueue (#35530) 2023-05-19 13:53:41 +01:00
Matt Sherman ab770510c1
Always show product variations empty state with message when there are no "used for variations" attributes (#38358) 2023-05-19 08:37:22 -04:00
Matt Sherman 2992e22507
Show correct confirmation message when removing an attribute from a product (#38355) 2023-05-19 08:27:47 -04:00
nigeljamesstevenson c99d60647e
E2e/gutenberg latest nightly 0 (#38287) 2023-05-19 12:24:08 +01:00
Chi-Hsuan Huang fc493c41ef
Remove sample data from product templates (#38343)
* Remove sample data from product templates for product task

* Add changelog

* Update product templates

* Remove unused columns from product templates and set Published to -1
2023-05-19 19:04:15 +08:00
Peter Fabian 862a947d7c
Install/update: Make the DELETE in 2 queries instead of 60+ (#37472) 2023-05-19 12:35:37 +02:00
Ashwin Parthasarathi ee31067f8f
Dev/37219 add hook to remove order items (#37822) 2023-05-19 12:10:11 +02:00
Jorge A. Torres f94ef3aa0a Add tests 2023-05-18 17:33:24 -05:00
Jorge A. Torres 0d4fd536b8 Move EditLock to correct folder 2023-05-18 17:33:24 -05:00
Jorge A. Torres 7b2afeb381 Improve styles for edit lock icon 2023-05-18 17:33:24 -05:00
Jorge A. Torres 4025c07097 Add changelog 2023-05-18 17:33:23 -05:00
Jorge A. Torres 5dd84a5fe6 Integrate edit lock into edit order screen 2023-05-18 17:33:23 -05:00
Jorge A. Torres ead99659e8 Integrates edit locking into the orders list table 2023-05-18 17:33:23 -05:00
Jorge A. Torres 4a11c03083 Remove ‘_edit_lock’ from internal datastore keys 2023-05-18 17:33:23 -05:00
Jorge A. Torres cc385bf16d fixes to css list table 2023-05-18 17:33:23 -05:00
Jorge A. Torres fb5ac94218 Change how the checkbox column is rendered in the ListTable 2023-05-18 17:33:23 -05:00
Jorge A. Torres e74f3eb206 Initial version of EditLock 2023-05-18 17:33:23 -05:00
Jorge A. Torres f306e632fa Allow CSS classes to be defined for table list rows and the table itself 2023-05-18 17:33:23 -05:00
Jorge A. Torres d18c13eb71 Fix possible error in ListTable bulk actions 2023-05-18 17:33:23 -05:00
Corey McKrill e8afe4649a
COT CLI: Add support to verify specific order types. (#38318)
This PR fixes the bug the where we were only verifying shop_order orders. This also adds the option to provide a list separated by , of order types to verify.

Fixes #38317
2023-05-18 10:09:33 -07:00
louwie17 2843fbb7a8
Fix editor header hidden in Firefox (#38247)
* Update page config to add support for layout header/footer

* Fix lint error
2023-05-18 13:00:42 -03:00
Ron Rennick 5d6b3d5ceb
Use esc_html_e instead of esc_attr_e (#36868) 2023-05-18 11:56:11 -03:00
Vedanshu Jain 2650292fa6 Minor doc fix. 2023-05-18 17:08:54 +05:30
Vedanshu Jain 33acd4c4d1 Add support to verify specific order types. 2023-05-18 17:08:54 +05:30
rodelgc 94b665817c Merge branch 'trunk' into e2e/remove-daily-playwright-config 2023-05-18 19:36:19 +08:00
rodelgc e3a39d5b20 Clear cookies on request 2023-05-18 19:34:35 +08:00
Joshua T Flowers 81e92392d5
Fix double scrollbars on product editor page (#38281)
* Refactor Layout component to functional component

* Add class to pages based on page path

* Add styling for interface skeleton on product pages

* Add changelog entries

* Move product page styles out of product editor package and into client

* Fix linting issues

* Check for location before checking path in page tracking

* Dont add body classes when no page path exists

* Record page view without router location for embed pages
2023-05-18 05:25:36 -03:00
Néstor Soriano 32bd197d0e
Minor grammar fix 2023-05-18 09:26:25 +02:00
Chi-Hsuan Huang b8aa7eb1fe
Update task list documentation and example (#38245)
* Update woocommerce task list examples

* Update onboarding-tasks.md

* Add changelog

* Update changelog

* Update task list doc

* Update onboarding-tasks.md

* Update examples readme

* Fix lint

* Update onboarding-tasks.md

* Fix build wca example cmd

* Update plugins/woocommerce-admin/docs/features/onboarding-tasks.md

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

* Update plugins/woocommerce-admin/docs/features/onboarding-tasks.md

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

* Update plugins/woocommerce-admin/docs/features/onboarding-tasks.md

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

* Update plugins/woocommerce-admin/docs/features/onboarding-tasks.md

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

* Update task list image

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-05-18 11:21:53 +08:00
RJ 00952e8b95
add: core profiler fetch extensions (#38270)
add: fetch extensions and countries from API for core profiler

- prefetch it once in the machine init so that it's instant when used later
- fetch it again in preExtensions state and store it to context
- added prefetch for getCountries as well
2023-05-18 10:50:59 +08:00
Moon baf7714dfa
Add onboarding/plugins REST endpoint (#38174)
* Remove unused $job_id argument

* Support WP_Upgrader argument -- helps for testing

* Minor refactor to support a custom logger in install_plugins

   * Support a custom logger in install_plugins
   * Support swapping out WP_Upgrader impl.
   * Added woocommerce_plugins_install_async_callback callback to call install_plugins with a custom logger from action scheduler

* Add a new REST endpoint for onboarding plugins

* POST /wc-admin/onboarding/plugins/install-async -- queues plugin installs to action scheudler
* GET /wc-admin/onboarding/plugins/scheduled-installs/:job_id -- returns current status of given job id

* Remove WP_Upgrader support -- not using it

* Add changelog

* Fix phpcs errors

* Call complete

* Update test to wait 1 sec before checking the action scheduler

* Remove test that requires waiting an async action

* Add test for 404 status

* Add status field

* Remove woocommerce_plugins_install_async_callback action -- no longer used

* Call run-in-background endpoint with blocking=false to simulate a background process

* Update plugins/woocommerce/src/Admin/PluginsInstallLoggers/AsynPluginsInstallLogger.php

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

* Update plugins/woocommerce/src/Admin/PluginsInstallLoggers/PluginsInstallLogger.php

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

* Update plugins/woocommerce/tests/php/src/Admin/API/OnboardingPluginsTest.php

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

* Update plugins/woocommerce/tests/php/src/Admin/API/OnboardingPluginsTest.php

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

* Update plugins/woocommerce/tests/php/src/Admin/API/OnboardingPluginsTest.php

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

* Update plugins/woocommerce/src/Admin/PluginsInstallLoggers/PluginsInstallLogger.php

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

* Fix incorrect logger name

* Add max_execution_time setting

* Remove test code

* Skip failing test -- hard to test as the function uses site url and test env does not actaully have a running WP

* code format

* Revert background process changes

* Add install and activate endpoint

* Update plugins/woocommerce/src/Admin/PluginsInstallLoggers/AsynPluginsInstallLogger.php

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

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

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

* Require activate_plugins permission

* Add test to check for permissions

* Update install and activate schema

* Fix: import AsyncPluginsInstallLogger correctly

* Fix: add missing comments

---------

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-05-17 19:08:00 -07:00
Ron Rennick d8eee11eb2
Fix TT3 styles and typography in the single product's attributes table (#37895) 2023-05-17 16:37:49 -03:00
rodelgc 677c3c9cee Add changelog 2023-05-18 00:22:32 +08:00
rodelgc 58f113ec47 Remove daily playwright config 2023-05-18 00:21:26 +08:00
rodelgc 34dd147b5b Fix assertion 2023-05-18 00:11:50 +08:00
rodelgc bdb4fa35fe Replace networkidle with web assertions 2023-05-17 23:56:54 +08:00
rodelgc 30e27254c1 Add utility methods for the variable product tests 2023-05-17 23:29:27 +08:00
rodelgc 0ef5904b7e Add utility method for creating variations 2023-05-17 23:28:18 +08:00
rodelgc 054fa4f65a Checkout the new files 2023-05-17 23:25:35 +08:00
rodelgc 6fb55fc686 Add changelog 2023-05-17 23:24:18 +08:00
rodelgc 82dc1e3fae Delete old spec 2023-05-17 23:22:34 +08:00
rodelgc db10af9583 Apply timeout to all tests 2023-05-17 15:31:28 +08:00
rodelgc 043bfa1943 Add explicit waits 2023-05-17 15:20:02 +08:00
rodelgc fd5bc2a420 Replace deprecated page methods.
Blur and wait for autosave.
Add a few explicit waits.
2023-05-17 15:19:18 +08:00
rodelgc 3be1f45f2e Merge branch 'trunk' into e2e/increase-timeouts 2023-05-17 12:52:49 +08:00
rodelgc 77d75b1a34 Set timeout within test 2023-05-17 12:18:49 +08:00
Moon 3db18516e6
Update RIN Transformers doc with examples. (#38176)
* Update transformers doc with examples

* Add changelog
2023-05-16 19:13:56 -07:00
Chi-Hsuan Huang dcbfbe2748
Cleanup task list and re-organize file structure (#38271)
* Deprecate onboarding task snooze APIs

* Cleanup task list and organize tasks file structure

* Add changelog

* Fix lint

* Fix tests

* Remove two-columns check logic

* Fix mock path
2023-05-17 09:54:31 +08:00
jamelreid 900b264ec7 Added changelog 2023-05-16 15:40:52 -05:00
jamelreid c1518d1352 Removed wp-env workaround 2023-05-16 15:39:20 -05:00
rodelgc e077c4c027 Replace deprecated page methods 2023-05-17 03:07:08 +08:00
rodelgc f2108a81ae Increase spec timeout to 3m 2023-05-17 00:45:07 +08:00
James Collins 8dc16fa48d
Re-assign existing webhooks during user deletion (#37814)
Co-authored-by: James Collins <james@om4.com.au>
Co-authored-by: Nestor Soriano <konamiman@konamiman.com>

Includes UI detailing how many webhooks are assigned to each of the users being deleted, and explaining how the re-assignment works.
2023-05-16 16:23:10 +02:00
rodelgc 35ba63403a Update readme 2023-05-16 20:41:23 +08:00
rodelgc 319c8038f7 Add changelog 2023-05-16 20:38:56 +08:00
rodelgc 83c0e3e393 Increase spec timeout to 2m 30s 2023-05-16 20:37:54 +08:00
rodelgc 8d4066aff5 Increase default timeout to 2m 2023-05-16 20:37:40 +08:00
Maikel David Pérez Gómez 4b3479595b
Only register blocks when user navigates to the product edit page (#38303)
* Remove block registration from within the Editor component

* Expose the initBlocks function to be used outside of the product package

* Register blocks within the ProductPage component

* Add changelog files

* Unregister blocks when product page gets unmounted
2023-05-16 07:41:26 -03:00
Chi-Hsuan Huang 8d249841b9
Fix `get_options` deprecation notice (#38289)
* Fix get_options deprecation notice

* Add changelog

* Remove duplicates
2023-05-16 09:36:20 +08:00
RJ 38dc82b4b1
dev: add core profiler state machine tests (#38154)
dev: added tests for core profiler state machine

- added tests to demonstrate model based testing with @xstate/test
2023-05-16 08:56:39 +08:00
Corey McKrill 5a3e0b1a67
Introduce missing button element classes for the account orders and downloads (#37933)
Ensures button styles are consistent in the front end UI.
2023-05-15 17:18:11 -07:00
nigeljamesstevenson 06006619b3
Update test timeout to 90 seconds, and suggest using `DEFAULT_TIMEOUT_OVERRIDE` in E2E README (#38288) 2023-05-15 20:12:39 +01:00
Maikel David Pérez Gómez 332094e87d
Update shipping class block to match new designs (#38301)
* Change the section title from Shipping fee to Shipping class

* Replace the radio buttons with a regular dropdown

* Add changelog files
2023-05-15 13:06:48 -04:00
Christopher Allford dedf728d51
Support PHPUnit Tests In `wp-env` (#38265)
You can now run unit tests with `test:unit:env` after using
`env:test` to start the environment.
2023-05-15 09:47:50 -07:00
Gan Eng Chin d6ffdddf9a
Add changelog. 2023-05-16 00:42:52 +08:00
Gan Eng Chin 57220390b9
Update Codisto extension description and fix WooCommerce name typo in test. 2023-05-16 00:42:15 +08:00
“Chris ad5c577abe Merge branch 'trunk' into fix/tt3-attributes-table 2023-05-15 14:25:41 +03:00
“Chris f1b1df93d1 Bump order-again template 2023-05-15 14:25:18 +03:00
“Chris 66c5a16e2e Bump template versions 2023-05-15 14:24:27 +03:00
“Chris ee74bc6873 Merge branch 'trunk' into add/tt3-comp-button-classes 2023-05-15 14:23:19 +03:00
Vedanshu Jain 2d6e433e05
Fix the child order upshifting when parent order is deleted (#38199) 2023-05-15 16:03:35 +05:30
nigeljamesstevenson c190f971b1
skip k6 api batch update when batch create fails (#38282) 2023-05-15 11:16:11 +01:00
Vedanshu Jain bd5abe1c3e Apply coding standards. 2023-05-15 15:34:09 +05:30
Vedanshu Jain b2f7599647 Add compat for status count as well. 2023-05-15 15:14:43 +05:30
Fitim Vata 642a66fd8c [Fix] Undefined array key 1, 2, 3 when using list to extract woocommerce cookie values. 2023-05-15 11:44:23 +02:00
Vedanshu Jain 00530cce42 Add HPOS compat queries for tracker. 2023-05-15 15:06:06 +05:30
Moon 0bf6859383
Add Business Location page to the core profiler (#38019)
* Add core profiler - welcome to woo page

* Update checkbox styles

* Add tracks

* Update default tracking value

* Update copies

* using invoked promise instead of useState

- take advantage of xstate's built ins for side effects instead of  useEffect/hooks
- discovered that error result wasn't really handled in original useEffect
- use text labels instead of inline functions so that we can decouple the implementation from the machine model
- todo: can move the invoked function out elsewhere and also tests if needed (not necessary here because it's a simple call)

* add: core profiler scaffolding using xstate

* Add navigation and progress-bar components

* fix css lint error

* Update plugins/woocommerce-admin/client/core-profiler/components/navigation/woologo.tsx

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

* Update plugins/woocommerce-admin/client/core-profiler/components/progress-bar/progress-bar.tsx

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

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

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

* Remove var from __ function

* Use woocommerce prefix for classnames

* Fix css lint error

* Fix broken tests

* Add business location page

* Remove unwanted changes from rebase

* Remove unwanted changes from rebase

* Redirect to Woo Home on exit

* Add tracks

* Fix js lint error

* Add loader page

* Support meta value from nested states

* Use navigateTo

* Add tests for getCountryStateOptions

* Use Country type from navigation package

* Rename useStages to getLoaderStageMeta

* Add changelog

* Move progress from 20 to 80

* Fix xstate warning

* Fix broken pnpm lock

* Fix eslint errors

* Update plugins/woocommerce-admin/client/core-profiler/services/country.ts

Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>

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

Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>

* Save country to option

* Fix jslint error

* Update plugins/woocommerce-admin/client/core-profiler/services/country.ts

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>

* Fix eslint error

* Use decodeEntities directly

* Update comment for artificial 3 seconds wait

* Disable Go to my store button when country is empty

* Style for mobile devices

* Style updates for the country dropdown

* Fix js lint error

* Update country dropdown border color

* Style the loader

* Fix css lint

---------

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
Co-authored-by: rjchow <me@rjchow.com>
Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>
2023-05-15 04:56:47 +08:00
rodelgc e729c776b9 UPdate readme 2023-05-13 16:48:55 +08:00
rodelgc e4845842cb Default to 90 sec 2023-05-13 16:48:49 +08:00
rodelgc 9f592117a1 Add changelog 2023-05-13 16:14:54 +08:00
Ron Rennick f6b5913d32
Add HPOS specific k6 test suite (#37665)
* Add HPOS specific k6 test suite

* revert unintntional partial revert of #37719

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-05-12 16:25:51 -03:00
Faisal Alvi 8e9ff0d7f5
Fix/37601 Add `aria-describedby` to Select options button (#37880)
* Add `aria-describedby` to select options button

* add a changelog

* update the chnagelog file

* fix type

* fix the function name

* remove `aria-describedby`s if with value

* suggestions implemented

* Minor PHPCS fixes

---------

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2023-05-12 16:16:38 -03:00
Ron Rennick 0c639eb10d
Add changelog file 2023-05-12 13:30:24 -03:00
louwie17 0ea5205672
Move template addition to feature flag (#38276)
* Remove template from product type and move to feature flag

* Add changelog

* Fix lint errors
2023-05-12 13:28:57 -03:00
Ron Rennick 71f3a8c40d
Do not call login if user is already logged in (#37850) 2023-05-12 13:27:10 -03:00
Ron Rennick 36202d744d skip k6 batch update when batch create fails 2023-05-12 13:20:11 -03:00
Vedanshu Jain e45dbd7301
Compute if any order is pending, when deciding to process next migration batch (#38165)
We change the behavior of how we decide whether to continue or stop the migration. Earlier, when deciding, we were counting all pending orders which was slow especially on large sites, and will continue to get slower as the migration processes. However, now we will only fetch if there is any order that needs migrating to decide whether to go ahead with the migration or not, which should be much faster then calculating the total count.
2023-05-12 16:34:05 +02:00
Nestor Soriano 6ed8fb4e4c
Delete child orders using wc_get_order->delete
Also remove get/set_verify_parent_id methods as in the end
they don't seem to be needed.
2023-05-12 15:32:41 +02:00
Karol Manijak fabc728119
Update/woocommerce blocks 10.2.0 (#38246) 2023-05-12 13:49:39 +02:00
Alejandro Iglesias 0f2561bec7 amends from CR 2023-05-12 11:15:51 +02:00
Karol Manijak 05ddf0bb8e Update the changelog file 2023-05-12 08:08:28 +02:00
Karol Manijak 5424af88a8 Restore composer.lock files 2023-05-12 07:55:17 +02:00
rodelgc d99b122d5e Fix pluginSlug error 2023-05-12 13:05:23 +08:00
rodelgc 074c8b871a Test Gutenberg and its nightly build 2023-05-12 12:21:23 +08:00
AashikP 7e3729c5fc
Add e2e test for Merchant > Pages > Can create a new page (#38238)
* Add create-page.spec.js

Create e2e test for Critical Flow: Merchant > Pages > Can create a new page

* Add changelog entry

* Update selector for close dialog

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-05-11 15:23:47 -07:00
Nathan Silveira 345cca1e09
Fix activity panel not showing unread when closed (#38173)
* Create new attribute to calculate more accurately if activity tab has something "new"

* Fix wrong attribute name

* Revert previous change, rename functions and remove isPanelOpen clause from hasAbbreviatedNotifications logic

* Rename functions
2023-05-11 16:07:13 -03:00
Christopher Allford 7b7ca116f6
Update `wp-env` To 7.0.0 (#38223)
* Updated `wp-env` To 7.0.0

* Adopted `wp-env` Changes To `update-wp-env.php`

* Updated E2E Test Bootstrapping

With the changes to `wp-env` we can update our
test bootstrapping to use the new functionality.

* Changelogs

* Restored `update-wp-env.php` Usage

There's a bit of work to do in support of this and I
don't want it to hold up the pull request!

* Fixed `wp-env` JSON Problems

It was writing an empty array in places where the
expectation was an empty object.

* Fixed Broken Echo Escape

* Fixed Init Quoting

* Update close button locator

* Reverted Quote Removal

There is an upstream bug relating to quotes that needs to be resolved!

* Reverted Quote Removal

---------

Co-authored-by: rodelgc <rodel.calasagsag@automattic.com>
2023-05-11 11:31:10 -07:00
rodelgc 2b573d4f54
In E2E Readme, add instruction to run Playwright UI mode (#38197)
* Add instruction for running Playwright UI mode

* Add changelog
2023-05-11 10:49:13 -07:00
Michael Pretty 6be097ff45
Add context to the credit card names used for translators. (#36364)
Co-authored-by: Michael Pretty <prettyboymp@Michaels-MacBook-Pro.local>
Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2023-05-11 16:59:24 +02:00
Ron Rennick 246053277e
Fix/37599 Add Product Name in the `aria-label` attribute (#37830) 2023-05-11 10:55:58 -03:00
Karol Manijak 8c7fa2e171 Add changelog entry 2023-05-11 14:28:57 +02:00
Karol Manijak 966c586113 Update composer.lock files 2023-05-11 14:28:32 +02:00
Nestor Soriano a0a2390d9e
Delete child orders using existing functions instead of direct db access.
Additionally, add get/set_verify_parent_id methods to the order object.
2023-05-11 12:48:21 +02:00
rodelgc a5c3838a1d Add changelog 2023-05-11 18:20:41 +08:00
rodelgc 78fd2f88af Add test steps 2023-05-11 18:18:29 +08:00
Néstor Soriano eccff559a5
Hide state selector from Ethiopia and Rwanda addresses (#35481)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-05-11 11:05:11 +02:00
Alejandro Iglesias 4688290463
Save order before calculating totals if created via REST API (#37845) 2023-05-11 10:29:48 +02:00
Alejandro Iglesias 6a3839e7fa make nonce verification static 2023-05-10 23:50:25 +02:00
Alejandro Iglesias 79acdad45b remove password reset query arg 2023-05-10 23:50:19 +02:00
Alejandro Iglesias f3f9a3a45c Revert previous fix 2023-05-10 23:50:11 +02:00
Ron Rennick d93a5d4e88
Add default styles for product meta in the TT3 order details table (#38172) 2023-05-10 16:59:46 -03:00
Nathan Silveira f668ce72ac
Add tests to tracks events fired through JS (#38124)
* Add test for inbox_note_view event

* Add tracks test for Layout's page_view

* Add test to inbox_action_click

* Add tests to analytics_filter tracks event

* Add tracks event test to activity_panel_open

* Add tests to tracks event activity_panel_orders_orders_begin_fulfillment

* Add tracks tests to activity_panel_stock_update_stock

* Improve tests based on code review comments

* Mock recordEvent and recordPageView globally

* Add missing mock

* Improve inbox panel tests
2023-05-10 09:36:42 -03:00
Nestor Soriano 2ff1c70f9d
Add changelog file 2023-05-10 12:55:14 +02:00
Nestor Soriano 7b5b6420fe
Fix the child order upshifting when parent order is deleted
PR 36218 implemented child order upshifting (setting their parent
order id to 0) when the parent order is deleted, but this needs to
happen only when the post type of the parent order is hierarchical,
otherwise child orders need to just be deleted. This commit fixes that.
2023-05-10 12:47:59 +02:00
Chi-Hsuan Huang fa658a0e94
Fix "Add store details" task fails to mark as completed for selecting Nigeria based address (#38181)
* Fix "add store details" task fails to mark as completed for selecting Nigeria based address while OBW

* Add changelog

* Remove empty line

* Fix lint
2023-05-10 17:08:33 +08:00
Menaka S c3d06ad05f
Add WC Tracker unique payment method (#37951)
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2023-05-10 09:22:58 +02:00
Ilyas Foo 1b8eeed2e2
Fix tracks identifier mismatch (#38094)
* Add tracks identifyUser when initializing wcTracks object

* Changelog

* Remove unused code

* Lint

* Lint

* More lint
2023-05-10 14:08:19 +08:00
Chi-Hsuan Huang 687549dc6b
Fix "Marketing & Merchandising" padding on store management panel (#38088)
* Add a 24px spacing between the Manage my store header and the Marketing & Merchandising heading

* Add changelog

* Update store management card style

* Update .woocommerce-store-management-links__card-body padding
2023-05-10 13:02:22 +08:00
Chi-Hsuan Huang 956d09c34b
Fix shipping tour layout context error (#38183)
* Add LayoutContextProvider to embedded body layout to fix shipping tour error

* Show an error notice and record track when failing to update shipping option

* Add changelog

* Update error message

* Remove unused import
2023-05-10 13:01:37 +08:00
Chi-Hsuan Huang 4ba276d3fb
Re-enable purchase unit tests and falling back to simply not display any prices when data is not available (#38163)
* Re-enable Purchase unit tests

* Fallback to simply not display any prices rather than empty prices when data is not available.

* Add changelog
2023-05-10 10:30:59 +08:00
Jonathan Lane 71981b5318
Playwright 1.33 and UI mode (#38100)
* Update Playwright to 1.33

* Add UI command

* Changelog entry

* Increase timeout

* Increase timeout again

* Moved Playwright to devDependencies

* Remove UI command

* Re-update Playwright

* Comment out failing assertion

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-05-10 09:30:08 +08:00
Matt Sherman d11f50b5a3
Update empty state for product attributes tab (#38126)
* Remove empty state HTML

* Add empty attribute when product has no attributes

* Remove unused woocommerce_admin_meta_boxes.has_local_attributes

* Remove unused toggle_add_global_attribute_layout

* Remove unused button.add_attribute click handling (button doesn't exist anymore)

* Fix positioning of Expand / Close

* Remove unnecessary add-attribute-container div

* Refactor attribute search selection handling

* Remove empty attribute if adding an existing attribute

* Update e2e test clicking of "Add new" attribute button

* Update Tracks handling for "Add new" attribute button

* Changelog

* Fix action recorded when "Add new" button is clicked

* Remove console.log statements

* Allow propagation of click event on "Create value" button

* Move Tracks wcadmin_product_attributes_buttons action: 'add_existing' to product-tracking TS

* Make function names more descriptive. Add comment to clarify why event.preventDefault is used.
2023-05-09 20:04:29 -04:00
Tomek Wytrębowicz 00c151f9aa
Remove `qs` dependency from `woocommerce-admin` (#35128) 2023-05-09 21:03:25 +02:00
Fernando Marichal eef417fe39
Variations - Rename the Generate variations button after variations are created (#38084)
* Rename 'Generate variations' button

* Add changelog

* Fix button rename

* Refactor fix
2023-05-09 15:12:29 -03:00
Barry Hughes 6a42565550
fixed spacing issue of thumb image (#35491) 2023-05-09 10:51:25 -07:00
Fernando Marichal 765a87a741
Variations - Remove separator between buttons and empty state screen (#38123)
* Remove separator between buttons and empty state screen

* Add changelog

* Fix separator style
2023-05-09 12:43:25 -03:00
Tomek Wytrębowicz bbf4f47c9c Remove qs dependency from `WCAddonsTour` ,
use native `URLSearchParams` instead.
2023-05-09 14:57:39 +02:00
Chi-Hsuan Huang 4c9bcbc30e
Add missing woocommerce_run_on_woocommerce_admin_updated hook for RemoteInboxNotificationsEngine scheduled action (#38159)
* Remove maybe_mark_complete usage

* Add changelog

* Add woocommerce_run_on_woocommerce_admin_updated hook

* Add changelog

* Fix lint
2023-05-09 18:53:08 +08:00
Chi-Hsuan Huang 059d1de563
Remove core onboarding usage of woocommerce_updated hook (#38158)
* Remove maybe_mark_complete usage

* Add changelog
2023-05-09 18:20:42 +08:00
Chi-Hsuan Huang 2189cb181a
Hide "Upload a logo" step in Personalize task if theme doesn't support it (#38161)
* Hide upload logo step in Personalize task if theme doesn't support it

* Add changelog

* Fix lint
2023-05-09 18:20:18 +08:00
Chi-Hsuan Huang e06097b4c2
Fix `wc-experimental` strings are not translated (#38108)
* Add wc-experimental to translated_scripts

* Add changelog
2023-05-09 17:07:36 +08:00
Chi-Hsuan Huang 0148c3eafd
Make all fields in the tax location form mandatory (#38137)
* Make all fields in the tax location form mandatory

* Add changelog
2023-05-09 17:01:37 +08:00
Joshua T Flowers 329fcd1bc3
Add tinymce scripts to product editor pages (#38175)
* Add tinymce scripts to product editor pages

* Add changelog entry
2023-05-09 04:32:00 -03:00
Chi-Hsuan Huang 4a237ca476
Migrate Purchase task and dashboard utils to TS (#37725)
* Fix onboarding productTypes TS define type

* Rename purchase.js -> purchase.tsx

* Rename utils.js -> utils.ts

* Migrate dashboard/util to TS

* Rename tasks fills to index.ts

* Migrate purchase task to TS

* Add changelog

* Fix types

* Update changelog
2023-05-09 11:28:57 +08:00
Jorge A. Torres 1206b5a38a
Enhancement: Add order note to display held stock inventory. #29132 (#37833) 2023-05-08 19:46:14 -03:00
Jorge A. Torres 8eb8a09c88 Minor fixes 2023-05-08 18:18:39 -03:00
Jorge A. Torres 63916fed3c Drop `$held_stock_counter` to simplify logic 2023-05-08 17:53:05 -03:00
“Chris 38db587d1e Add changelog 2023-05-08 22:23:04 +03:00
“Chris 105137c406 Add styling for wc-item-meta in order details table 2023-05-08 22:20:48 +03:00
“Chris 92287f7557 Make phpcs happy 2023-05-08 22:00:21 +03:00
“Chris f43b943523 Merge branch 'trunk' into add/tt3-comp-button-classes 2023-05-08 21:50:30 +03:00
AashikP 552806b34a
Add e2e test for Merchant > Posts > Can create a new post (#38041)
* Add create-post.spec.js

Create e2e test for Critical Flow: Merchant > Posts > Can create a new post

* Fix e2e Merchant Create Post

* Force delete created post
* Check for Welcome modal - close if exists
* Change assertion for Published post confirmation from `check if true` to `check if visible`
* Added changelog file

* e2e-pw: Create post - replace btoa

Replace deprecated function btoa with Buffer function
2023-05-08 10:33:29 -07:00
Fernando Marichal 7f87c7d1b7
[Enhancement]: Allow dropdown options recording for WooCommerce Settings (#38035)
* Add dropdown recording

* Add changelog

* Fix lint
2023-05-08 12:04:14 -03:00
Maikel David Pérez Gómez c265db936e
Add Sale price validation (#38078)
* Create sale-price block

* Create regular-price block

* Add changelog files

* Fix some typos in field validator names
2023-05-08 10:05:13 -04:00
Chi-Hsuan Huang 880459ee9a
Change product-category-metabox scripts/styles enqueue logic (#38076)
* Update product-category-metabox JS/style enqueue logic

Change to only enqueue on product pages, not all admin pages.

* Add changelog
2023-05-08 17:19:12 +08:00
Jeffrey Paul df0583f9b8
Fix/37502: Correct spelling errors. (#37887)
* change reference of Catpure to Capture

Co-Authored-By: Vikram  <93216400+vikrampm1@users.noreply.github.com>

* change reference of expicitly to explicitly

Co-Authored-By: Vikram  <93216400+vikrampm1@users.noreply.github.com>

* change reference 'cutted' to 'cut'

* change reference 'determening' to 'determining'

* change reference 'retreive' to 'retrieve'

* change reference 'neccessary' to 'necessary'

* change reference 'Fitler' to 'Filter'

* change reference of "seperate" to "separate"

Co-Authored-By: Ankit K Gupta <ankit.himcs@gmail.com>

* change reference of "wether" to "whether"

Co-Authored-By: Sumit Bagthariya <67687255+qasumitbagthariya@users.noreply.github.com>

* change reference of "staus" to "status"

* change reference of "retrive" to "retrieve"

* change references of "gatways" to "gateways"

* change references of "existant" to "existent"

* change reference of "requries" to "requires"

* change reference of "configuation" to "configuration"

* change reference of "processsing" to "processing"

* change reference of "represenation" to "representation"

* change reference of "dimentions" to "dimensions"

* change references of "reigster" to "register"

* change reference of "colum" to "column"

* change reference of "transtions" to "transitions"

* change references of "intially" to "initially"

* change references of "orignal" to "original"

* change references of "deprected" to "deprecated"

* change references of "paramter" to "parameter"

* change reference of "intance" to "instance"

* change reference of "elemets" to "elements"

* change references of "funcitons" to "functions"

* change reference of "specificed" to "specified"

* change references of "atributes" to "attributes"

* change reference of "tast" to "task"

* change reference of "chaning" to "changing"

* change reference of "retreiving" to "retrieving"

* change reference of "caluclation" to "calculation"

* change references of "Invaid" to "Invalid"

* change references of "paramaters" to "parameters"

* change reference of "Additonal" to "Additional"

* change reference of "teh" to "the"

* change reference of "evalutes" to "evaluates"

* change reference of "addedd" to "added"

* change reference of "excempt" to "exempt"

* change reference of "sequencially" to "sequentially"

* change reference of "previos" to "previous"

* change reference of "elegible" to "eligible"

* change references of "Boostrap" to "Bootstrap"

* change references of "compability" to "compatibility"

* change reference of "heirarchy" to "hierarchy"

* change references of "visibilty" to "visibility"

* change reference of "comparsion" to "comparison"

* change reference of "capabilties" to "capabilities"

* change reference of "datatores" to "datastores"

* change reference of "occured" to "occurred"

* change reference of "coresponding" to "corresponding"

* change references of "thier" to "their"

* change reference of "sucessfully" to "successfully"

* change reference of "insde" to "inside"

* change reference of "nagivation" to "navigation"

* change references of "visiblity" to "visibility"

* change reference of "documentaiton" to "documentation"

* change reference of "anayltics" to "analytics"

* change reference of "intalling" to "installing"

* change reference of "mininum" to "minimum"

* change references of "intial" to "initial"

* change reference of "Feld" to "Field"

* change reference of "taks" to "task"

* change reference of "trasnfer" to "transfer"

* change reference of "respone" to "response"

* change reference of "Extenstions" to "Extensions"

* change reference of "detault" to "default"

* change reference of "simultanious" to "simultaneous"

* change reference of "overides" to "overrides"

* change references of "Indvidual" to "Individual"

* change reference of "refering" to "referring"

* change reference of "aginst" to "against"

* change reference of "execuatable" to "executable"

* change reference of "repsonse" to "response"

* change reference of "documention" to "documentation"

* change reference of "asumed" to "assumed"

* change reference of "Minium" to "Minimum"

* change reference of "unqiue" to "unique"

* change references of "existance" to "existence"

* change reference of "compatability" to "compatibility"

* change reference of "Taxnomy" to "Taxonomy"

* change reference of "quering" to "querying"

* change reference of "retrun" to "return"

* change reference of "informations" to "information"

Co-Authored-By: Viktor Szépe <viktor@szepe.net>

* Add changelog

* Add changelog

* Fix typo

---------

Co-authored-by: Vikram  <93216400+vikrampm1@users.noreply.github.com>
Co-authored-by: Ankit K Gupta <ankit.himcs@gmail.com>
Co-authored-by: Sumit Bagthariya <67687255+qasumitbagthariya@users.noreply.github.com>
Co-authored-by: Viktor Szépe <viktor@szepe.net>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2023-05-08 15:55:09 +08:00
Chi-Hsuan Huang 3f0219b1bc
Fix misaligned loading sample product's progress message (#38107)
* Fix misaligned loading sample products modal

* Add changelog

* Fix misaligned loading sample product confirm modal
2023-05-08 12:19:55 +08:00
Tomek Wytrębowicz 0d45b0f107 Merge branch 'trunk' into remove/qs 2023-05-07 16:18:32 +02:00
Corey McKrill 87e25de9ab
Make more information available to `checkout_place_order` callbacks (#38147)
Makes the `wc_checkout_form` object available to Javascript event handlers during the checkout process. This makes it easier for extension (payment gateway) developers to manipulate the checkout experience. In isolation, though, nothing should change and everything should work as before.

Fixes #26827
2023-05-05 16:12:36 -07:00
barryhughes 7743fa41b6 Changelog. 2023-05-05 13:58:27 -07:00
minaldiwan 29ea9b0b65 fixed spacing issue of thumb image 2023-05-05 13:57:26 -07:00
Ben Meredith 6fdddd25f0
Fix typo (#35232)
* Fix typo

"Log out" is a verb
"logout" is a noun. 

This link should be an action. So it's the verb form.

* Add changelog file

* update E2E tests for text change

* update unit test for text change

---------

Co-authored-by: Ron Rennick <ron@ronandandrea.com>
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-05-05 13:50:07 -07:00
barryhughes ce23ac81af Whitespace/formatting. 2023-05-05 12:28:29 -07:00
barryhughes 7449329599 Changelog. 2023-05-05 12:26:31 -07:00
Emran Ahmed 73829979fc When triggering handlers for `checkout_place_order[_*]` events, supply extraParameters.
Adding `extraParameters` to `triggerHandler` to gateways manipulate the checkout if needed with more data
2023-05-05 12:24:17 -07:00
“Chris f0ab1de963 Merge branch 'add/tt3-comp-button-classes' of github.com:woocommerce/woocommerce into add/tt3-comp-button-classes 2023-05-05 15:41:45 +03:00
Chris Lilitsas dab5f98aea
Fix typo for echoing the class name
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2023-05-05 15:36:08 +03:00
“Chris c55af4836e Merge branch 'trunk' into add/tt3-comp-button-classes 2023-05-05 15:31:22 +03:00
aezazs-multidots 24a59c8d59
updated product description tips text (#38070)
* updated product description tips text

* Add Description in changelog
2023-05-05 20:10:58 +08:00
Luigi Teschio 7ba4c8b5ca
Update WooCommerce blocks package to 10.0.4 (#38135) 2023-05-05 14:07:38 +02:00
Chi-Hsuan Huang 208ac81ba3
Fix tasklist completion message when no tasks are completed (#38092)
* Fix task list progress title

* Add changelog
2023-05-05 17:48:10 +08:00
github-actions[bot] cabe966291
Delete changelog files based on PR 37783 (#37965)
Delete changelog files for 37783

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-05-05 20:16:28 +12:00
github-actions[bot] 6cd8695407
Delete changelog files based on PR 37907 (#37963)
Delete changelog files for 37907

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-05-05 20:16:17 +12:00
github-actions[bot] 112c4a03c3
Delete changelog files based on PR 37753 (#37960)
Delete changelog files for 37753

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-05-05 20:15:59 +12:00
Adrian Duffell fde7290e48
Add "SlotFill Examples" Feature to Beta Tester Plugin (#38113)
* Update WCA Test Helper JS script dependencies

Add the WooCommerce Admin app script as a dependency to ensure it loads before WCA Test Helper. This enables WCA Test Helper scripts to check available features.

* Add experimental_woocommerce_wcpay_feature fill

* Add beta-tester-slotfill-examples feature

* Fix a bug

* Fix lint issues

* Add changelog
2023-05-05 16:10:26 +08:00
Chi-Hsuan Huang ef7bf6a28b
Update Payfast logo and title (#38090)
* Update Payfast title

* Update Payfast logo

* Add changelog

* Update Payfast 72x72 logo
2023-05-05 15:42:47 +08:00
Ron Rennick 358e1a4066
Prevent height flickering when selecting a variation in TT3 (#38115) 2023-05-04 15:13:03 -03:00
Joel Thiessen 4729ea054b
Adding basic ordering to tab slot fill (#38081) 2023-05-04 10:57:19 -07:00
Joel Thiessen b3d9c706e1
Removing auto-draft as wc post type to fix post publish time bug (#38099) 2023-05-04 10:50:10 -07:00
Matt Sherman 79377fb883
Use snackbar to show variations generated message, instead of browser alert (#38103)
* Use snackbar instead of alert when showing generated variations message

* Changelog
2023-05-04 13:05:16 -04:00
Ilyas Foo 8e6fd416e0
Fix partial data import with product task imports (#38089)
* Fix product task import mapping issue with en_US locale

* Sanitize template name

* Changelog
2023-05-04 22:54:41 +08:00
Peter Fabian 81b899b55e
Added a button to download SSR to a file. (#38110) 2023-05-04 15:58:33 +02:00
“Chris 5b3666b014 Add changelog 2023-05-04 13:02:49 +03:00
“Chris f60b7e7b4b Prevent margin-top on the first element in description 2023-05-04 13:01:15 +03:00
Matt Sherman 865fcd053c
Fix product data field description styling, including checkboxes and radio buttons (#38066)
* Set .description to block for everything except for those for checkboxes and radio buttons

* Changelog
2023-05-03 18:08:46 -04:00
Jorge A. Torres 9bbe72d431
Fix/issue 36360 (#37883) 2023-05-03 18:23:45 -03:00
Barry Hughes d87fc28ad4
Update wp org listing description (#38074) 2023-05-03 14:23:24 -07:00
Peter Fabian cd8dcf29a7 Updated plugin description, take 2. 2023-05-03 22:46:01 +02:00
barryhughes 546ef267a9 Remove phpcs:ignore tag. 2023-05-03 11:10:44 -07:00
barryhughes f8af80a0d4 Document hook, mark one as duplicate. 2023-05-03 11:09:52 -07:00
Ron Rennick 066e269da3
Create orders as 'auto-draft' by default in admin (#37643) 2023-05-03 11:28:29 -03:00
Chi-Hsuan Huang ea58ae339a
Add core profiler "Welcome to Woo!" page (#37952)
* Add core profiler - welcome to woo page

* Add changelog

* Update checkbox styles

* Update copies

* Add test

* Add enable prop to window.wcTracks type

* Add tracks

* Add explat changelog

* Fix import

* Update default tracking value

* Update copies

* Fix test

* using invoked promise instead of useState

- take advantage of xstate's built ins for side effects instead of  useEffect/hooks
- discovered that error result wasn't really handled in original useEffect
- use text labels instead of inline functions so that we can decouple the implementation from the machine model
- todo: can move the invoked function out elsewhere and also tests if needed (not necessary here because it's a simple call)

* use actions.choose instead of branching inside action 

- https://stately.ai/docs/xstate/transitions-and-choices/guarded-actions#the-choose-action
- makes it so that the machine model is serializeable
- todo: in the distant future i wonder if it might be tidier to have tracks be its own actor that just receives the same events that this machine does, that way it's just standalone instead of mixing up tracks with the implementation

* use dispatch instead of useDispatch

- decouples the implementation of the handler from the react component
- makes the handler testable on its own if needed
- makes the state machine testable without relying on external dependencies

* decoupled remaining function calls

* Fix lint error

* Fix style lint

* address xstate console warnings

- .withConfig() is a function call that returns a new object every invocation so we need to wrap it in useMemo to keep it stable

* Add optInDataSharing is false test

* Fix lint

---------

Co-authored-by: rjchow <me@rjchow.com>
2023-05-03 15:54:28 +08:00
Joel Thiessen 3679f019bb
Adding attributes block to product block editor. (#38051) 2023-05-02 21:13:48 -07:00
Jorge A. Torres 3c27123aa2 Make changes per review 2023-05-02 17:11:36 -03:00
Matt Sherman 94599a14cf
Add product type options to product tracking (#38017)
* Add product_type_options to wcadmin_product_add_publish
* Add product_type_options to wcadmin_product_update
* Add product_type_options to other wcadmin_product_ events
2023-05-02 13:42:57 -04:00
Shojib khan 0ae9ec0844
Solves Cross-Sells display variable product (#37616)
Solved cross-sells display issue on cart
2023-05-02 10:24:22 -04:00
Nathan Silveira 4145b6e0f7
Await triggerNoteAction before navigating when action is clicked (#38047)
* Await triggerNoteAction before navigating when action is clicked

* Add additional logic and use @woocommerce/navigation to navigate
2023-05-02 11:17:50 -03:00
Tomek Wytrębowicz d35e8f3c46 Fix path for `segment_label` in Products & Variations schema 2023-05-02 16:11:58 +02:00
Jorge A. Torres fa6ee94bc8 Add changelog 2023-05-02 10:17:45 -03:00
Peter Fabian 02dbd1f325
Update wp org listing description 2023-05-02 15:03:35 +02:00
Tomek Wytrębowicz fbd377b2ec Change `get_item_properties_schema` to be protected 2023-05-02 14:22:51 +02:00
“Chris 9d9a5bbb72
Add changelog 2023-05-01 15:43:03 -07:00
“Chris a6e4a9e8ab
Fix TT2 comment list 2023-05-01 15:43:03 -07:00
Tomek Wytrębowicz b0b80445ab Move common stats item schema bits to a shared class 2023-05-01 23:31:05 +02:00
Tomek Wytrębowicz 6a027f8eb7 Fix whitespaces for PHPCS 2023-05-01 22:51:43 +02:00
Tomek Wytrębowicz 5d75137f73 Rename `AbstractController` to `GenericController` 2023-05-01 22:19:05 +02:00
Tomek Wytrębowicz 58bc88e0fc Move `interval` collection param to a shared parent class 2023-05-01 22:10:22 +02:00
Tomek Wytrębowicz 766e19e109 Fix `Taxes\Stats\Controller::get_collection_params`
remove lefover `$params` overwrite, let it use parent's one.
2023-05-01 21:46:12 +02:00
jonathansadowski dfd3c9fbb6
Remove woorelease config (#37730)
* Remove woorelease config

* Add changelog
2023-05-01 13:10:25 -05:00
Joel Thiessen 16b9191c0d
Adding shipping class option and modal (#37968) 2023-05-01 10:04:54 -07:00
Joshua T Flowers d86a3d1dab
Register server-side tracking during rest requests (#37796)
* Register server-side tracking during rest requests

* Move loading of tracks related functionality to WC class

* Load tracks functions to allow tests to pass

* Move single init hook for WC Site Tracking to core class
2023-05-01 09:50:58 -07:00
Jorge A. Torres 3002a19bce
Print blocks-based element CSS classes only when a block theme is used (#37631) 2023-04-28 16:57:51 -03:00
Nathan Silveira 8fc6972161
Fix N/A displayed on re-enabling toggles for "Stats overview" panel after refreshing "Woocommerce > Home" page. (#38030)
* Fix N/A on stats overview on WooCommerce > Home

* Add changelogs

* Fix wrongfully added type definition
2023-04-28 16:15:10 -03:00
Jorge A. Torres 6fde831921
fix/37604: replace title html attribute with aria-label (#37811) 2023-04-28 15:53:44 -03:00
Tomek Wytrębowicz 2654d577c0 Fix whitespaces for PHPCS 2023-04-28 17:41:52 +02:00
Maikel David Pérez Gómez a35f2c3d5d
Update List price Pricing link on the general tab to navigate to the Pricing tab (#37961)
* Update List price Pricing link on the general tab to navigate to the Pricing tab

* Add changelog files

* Simplify the event name to product_pricing_help_click
2023-04-28 11:33:56 -04:00
Ali Shan 255d5f377c
Order is search with the phone number and linked with the user accoun… (#37844)
* Order is search with the phone number and linked with the user account. #36810

* updated the query and tested on local env

* fixed the phpcs issue

* added the changelog

* updated the string concatenation issue and also moved the change log file to the correct path

* removed the %i placeholder from the query and used the old way to add the table name
2023-04-28 11:11:58 -04:00
Tomek Wytrębowicz f5779ba468 Add the changelog entry 2023-04-28 16:44:19 +02:00
Tomek Wytrębowicz 9f921b8e40 Move common `prepare_item_for_response` bits to the shared class
to make the code DRYier.

`Reports/Controller` differs, so its children will still contain redundant code.
2023-04-28 16:41:20 +02:00
Siddharth Thevaril 9f277ad7f5 remove echo 2023-04-28 19:32:49 +05:30
Tomek Wytrębowicz 9126db1abb Move common `get_collection_params` bits to the shared class
to make the code DRYier
2023-04-28 15:40:30 +02:00
louwie17 411a3e600a
Remove dot in images description (#37983) 2023-04-28 05:46:33 -03:00
RJ d15f62241f
dev: added xstate inspector toggling (#38022)
* dev: added xstate inspector toggling

* dev: added eslint-plugin-xstate
2023-04-28 15:30:52 +08:00
Tomek Wytrębowicz 7a2a80bf81 Move `X-WP-Total` headers logic to a shared class,
to DRY - remove duplicated code
2023-04-27 15:28:30 +02:00
Matt Sherman 72551f170a
Show correct variations count when generating a single variation (#37876) 2023-04-26 21:40:08 -04:00
Moon 3c2bae196b
Add navigation and progress-bar components for the new core profiler (#37741)
* add: core profiler scaffolding using xstate

* Add navigation and progress-bar components

* fix css lint error

* Update plugins/woocommerce-admin/client/core-profiler/components/navigation/woologo.tsx

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

* Update plugins/woocommerce-admin/client/core-profiler/components/progress-bar/progress-bar.tsx

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

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

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

* Import HTMLAttributes

* Remove var from __ function

* Make progress bar color configurable

* Destruct props directly in the function and use const to define the comp

* Refactor fillerStyles

* Use woocommerce prefix for classnames

* Use inherit for display -- initial did not work properly

* Fix css lint error

* Remove unused WooLogo var

* Use named export

* Fix js style

* Add changelog

* Fix broken tests

---------

Co-authored-by: rjchow <me@rjchow.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2023-04-26 17:27:53 -07:00
Abdalsalaam Halawa 704ad2832a Limit the number of products that are listed in the held stock note. 2023-04-27 00:09:43 +02:00
Paul Sealock 64c2526b98
Update WooCommerce support policy to L-1 (#37970) 2023-04-27 08:41:31 +12:00
Leif Singer dc88812e90
Update stable tag to 7.6.1 (#38006) 2023-04-26 17:44:55 +02:00
Corey McKrill ddc94fc59f
Fix/36785 Clear floats after Product Summary in 2023 theme (#37877)
Ensures that sections like related products and upsells don't wrap around the product image if there's no product description.

Fixes #36785
2023-04-26 06:28:55 -07:00
Tomek Wytrębowicz c924b21c84 Remove `$rest_base` from `…\API\Reports\Controller` as it is defined in its parent `WC_REST_Controller` 2023-04-26 14:44:20 +02:00
Matt Sherman e81f8ae88f
Update AdvancedFilters to use createInterpolateElement instead of interpolateComponents (#37967) 2023-04-26 06:58:14 -04:00
Joel Thiessen 6f7eeeaf49
Refactoring LayoutContext and implementing with product editor (#37720) 2023-04-25 15:17:33 -07:00
Ron Rennick e849ff002f
Fix #36664 (#37916) 2023-04-25 18:57:13 -03:00
Christopher Allford c99a1eb633
Fixed Beta Tester TSConfig (#37841)
All of our TS projects need this to avoid pulling conflict types
from higher `node_modules` directories.
2023-04-25 13:20:04 -07:00
Ron Rennick dec3e66410
Change from using a `figure` to using a `div` around the single product image (#37853) 2023-04-25 17:05:31 -03:00
Ron Rennick c7335b2070
Add changelog file 2023-04-25 17:01:40 -03:00
Jorge A. Torres 226af5017d
Fix "Out of stock threshold" when filed value is empty - Fix/issue 36960 (#37855) 2023-04-25 15:36:43 -03:00
Joshua T Flowers 48af8c1333
Add the product description block and callbacks for the IframeEditor (#37852)
* Add onChange and onClose callbacks to IframeEditor

* Add description block

* Add initial blocks to iframe editor

* Update button text when description already exists

* Remove unused editorStyle block property

* Debounce onChange callback

* Add changelog entry

* Handle PR feedback

* Fix up export after rebase
2023-04-25 11:05:25 -07:00
Ravinder Kumar f58ea73702
use of page.fill() in variable product e2e tests (#37854)
* tweeak: use locator to fill values

* chore: log change

* format: improve code formatting

* chore: remove locator refference from variable name

* Update create-variable-product.spec.js

Specify last element with selector

* Update create-variable-product.spec.js

Different selector

* Update create-variable-product.spec.js

Third time is a charm.

* Update create-variable-product.spec.js

.second doesn't exist.  User .nth

---------

Co-authored-by: Jonathan Lane <lanej0@users.noreply.github.com>
2023-04-25 09:45:33 +02:00
Sam Seay 7cbc3811d8
Update monorepo to pnpm 8 and Node to 16.14 (#37915) 2023-04-25 18:49:30 +12:00
Paul Sealock 99fd4a1e09
Delete changelog from cherry picked commit from 37890 (#37946)
remove changelog from cherry picked commit
2023-04-25 08:38:15 +12:00
Jorge A. Torres 4ae4e15777
Plugin installer version 2 (#37753) 2023-04-24 14:44:13 -03:00
Maikel David Pérez Gómez fb7e68a83d
Track stock quantity for this product should be disabled when Enable stock management within settings is disabled, and enabled otherwise (#37957)
* Track stock quantity for this product should be disabled when Enable stock management within settings is disabled, and enabled otherwise.

* Add changelog files
2023-04-24 13:42:45 -04:00
Denis Dvali d428a51606 Fix warnings "PHP Deprecated: Creation of dynamic property". 2023-04-24 21:12:53 +04:00
Matt Sherman 2ab11a7236
Analytics: Fix update_registered_customer when invalid user_registered value (#37907) 2023-04-24 10:12:48 -04:00
nigeljamesstevenson c038f22c6d
Fix URL and assertions in merchant/add-order perf tests (#37719) 2023-04-24 09:35:24 +01:00
Leif Singer 0fd5224f78
remove unused deasync dependency (#37821) 2023-04-24 09:37:40 +02:00
RJ f0109e89ac
add: new core profiler scaffolding in xstate (#37628)
* add: core profiler scaffolding using xstate

* address review feedback and questions

* changed path to use setup-wizard

* default new core-profiler feature flag to false
2023-04-24 10:08:24 +08:00
github-actions[bot] e60d251cd0
Delete changelog files based on PR 37927 (#37944)
Delete changelog files for 37927

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-04-24 11:19:36 +12:00
github-actions[bot] 5c98b1c7a8
Delete changelog files based on PR 37818 (#37826)
Delete changelog files for 37818

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-04-24 10:05:08 +12:00
github-actions[bot] ecc4588ffc
Delete changelog files based on PR 37827 (#37874)
Delete changelog files for 37827

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-04-24 10:04:58 +12:00
Joel Thiessen 3c5a96712a
Adding Stock status to inventory tab and toggle block (#37906) 2023-04-21 14:49:34 -07:00
Maikel David Pérez Gómez 1f2d735d0c
Update current block names to reflect use case and avoid conflicts (#37851)
* Change woocommerce/product-name to woocommerce/product-name-field

* Change woocommerce/product-summary to woocommerce/product-summary-field

* Change woocommerce/product-pricing to woocommerce/product-pricing-field

* Change woocommerce/product-radio to woocommerce/product-radio-field

* Change woocommerce/product-images to woocommerce/product-images-field

* Fix product name block invalid class name

* Move woocommerce/product-section to blocks folder

* Move woocommerce/product-tab to blocks folder

* Move woocommerce/product-collapsible to blocks folder

* Organize block registration, imports and styles

* Add changelog files

* Change woocommerce/product-category to woocommerce/product-category-field

* Change woocommerce/product-checkbox to woocommerce/product-checkbox-field

* Change woocommerce/product-inventory-email to woocommerce/product-inventory-email-field

* Change woocommerce/product-sku to woocommerce/product-sku-field

* Register woocommerce/product-schedule-sale-fields in server side

* Register woocommerce/product-track-inventory-fields in server side

* Fix invalid reference in tabs tests
2023-04-21 16:26:53 -04:00
Joel Thiessen 87da63eb3a
Moving section icon svgs to assets folder and loading by URL (#37869) 2023-04-21 11:53:06 -07:00
Barry Hughes afe226d573
Fix bulk sale price update (#37812) 2023-04-21 11:43:30 -07:00
louwie17 07fc512429
Fix/37785 cash on delivery not showing (#37927)
* Mkae sure the date_column_name default matches that of stats

* Add changelog

* Fix test
2023-04-21 14:44:58 -03:00
Barry Hughes bf8d19e35a
Create default pages in store locale language (#37795) 2023-04-21 10:35:53 -07:00
Gan Eng Chin b44eca1c59
Fix wrong file name in error message in `update-wp-env.php` (#37891) 2023-04-22 00:41:48 +08:00
TarekNabil 5d82365ec1 Fix #36664 2023-04-21 18:29:44 +02:00
“Chris e30983ef59 Add changelog 2023-04-21 19:07:32 +03:00