Commit Graph

50062 Commits

Author SHA1 Message Date
louwie17 04d6e8849c
Add name to select control popover slots (#35353)
* Add name to SelectControlMenuSlot

* Add changelogs

* Update changelog

* Fix typo in changelog
2022-10-27 12:52:29 -03:00
Thomas Roberts c539e5614f
Update `@woocommerce/extend-checkout-block` to include an example of a forced inner block (#33833)
* Update main integration file to register newsletter block scripts/styles

* Add files for example newsletter block

* Use only one internal dependencies comment

* Include newsletter block in index

* Move entry to correct position in webpack

* Rename functions to register scripts and styles

* Add changelog

* Remove block registration code

* Register slug as a block category to prevent warnings in console

* Add comment explaining the purpose of the function

* Bring templates up to date with latest changes to WC Blocks

The way the validation store selectors work was updated, so this template will use the new selectors.

* Ensure error message shows when box is not checked

* Ensure checkbox is targeted with CSS in editor
2022-10-27 01:28:44 -07:00
Jamel Noel Reid bfe0e958b8
Revert setting up permalinks in PW global setup (#35337)
* Revert permalinks setup

* Add changelog

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2022-10-26 12:36:44 -07:00
Jonathan Lane c72122ab5d
Skip flakey settings API test. (#35338)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2022-10-26 13:07:57 -06:00
Joshua T Flowers 89961fe067
Add summary field to new product experience (#35201)
* Add summary to new product page experience

* Add changelog entry
2022-10-26 11:20:11 -07:00
Alejandro López Ariza 4cb9bc45c4
Updated COT plugin used to set up the local environment with COT enabled. (#34990)
* Updated COT plugin used to set up the local environment with COT enabled.

* Enable HPOS in the e2e environment using env var (#35057)

* Updated COT plugin used to set up the local environment with COT enabled.

* Used env var to enable HPOS

* Disable HPOS for performance tests

* Updated permissions

* Set ENABLE_HPOS to 1

Co-authored-by: Alex López <alex.lopez@automattic.com>

Co-authored-by: Jamel Noel Reid <MrJnrman@users.noreply.github.com>
2022-10-26 09:29:41 -07:00
jonathansadowski afe3b4af01
Fix line endings in change file from 34292 (#35334)
* Fix line endings in change file from 34292

* Correctly update change file
2022-10-26 11:14:38 -05:00
nigeljamesstevenson 3d15a401b1
Add/a2 p create settings crud api core tests (#35253)
* api-core-tests settings tests

* api-core-tests settings tests

* api-core-tests settings tests

* update settings test to ensure concurrent tests do not fail
2022-10-26 08:24:57 -06:00
Ilja Zaglov 332204723b
Cat dashboard loading time (#34292)
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2022-10-26 10:12:42 +02:00
Dharmesh Patel c6c2828f60
Fixed "Unsupported operand types" error. (#34327) 2022-10-26 10:12:06 +02:00
Alexandre Faustino c4564372f6
Uniform order customer search and display code (#35244)
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2022-10-26 10:10:56 +02:00
Chi-Hsuan Huang 1e94d3fc18
Fix changelog command in PR template (#35326) 2022-10-26 11:38:01 +08:00
jonathansadowski 1807fb20a4
Fix reference to HEAD to work with community PRs (#35315) 2022-10-25 16:36:46 -05:00
Maikel David Pérez Gómez 47439ec241
Fix the display of letter descenders in the shipping class dropdown menu (#35258)
* Fix the display of letter descenders in the shipping class dropdown menu

* Add comment suggestions
2022-10-25 17:28:37 -03:00
Maikel David Pérez Gómez 78f659b702
Increase the spacing between the shipping box illustration and the dimensions fields (#35259) 2022-10-25 17:17:30 -03:00
Maikel David Pérez Gómez 09df031593
Update font size and spacing in the tooltip component (#35265) 2022-10-25 17:00:11 -03:00
Matt Sherman 8ea8b532c0
Support PHP style date format specifiers in DateTimePickerControl (#35285)
* Use @wordpress/date to format for display in DateTimePickerControl
* Update default formats to PHP style
* Update tests to use @wordpress/date formatting
* Update CustomDateTimeFormat story to use PHP style formatting
2022-10-25 15:50:59 -04:00
Maikel David Pérez Gómez c1e5098ff2
Change the product info section title to Product Details (#35255)
* Change the product info section title to Product Details

* Add comment suggestions
2022-10-25 16:49:48 -03:00
Maikel David Pérez Gómez 1bca35c360
Improve the communication around required and optional (#35266)
* Improve the communication around required and optional

* Add comments suggestions
2022-10-25 16:49:02 -03:00
Matt Sherman 9ca5cbe3a5
Fix DateTimePickerControl suffix style (#35256) 2022-10-25 14:56:29 -04:00
Peter Fabian 4cde06e151
Update states.php -> added Senegal Regions (#35199)
* Update states.php -> added Senegal Regions

* Update to CLDR.

* Changelog.

Co-authored-by: Papa Amadou Korka Sow <32936698+Sowgenius@users.noreply.github.com>
2022-10-25 10:51:34 -07:00
Greg ec40d85de9
Update Playwright API Core Tests readme (#35303)
* Update api core tests readme

* Added changelog

* Minor spacing tweak
2022-10-25 10:42:39 -06:00
nigeljamesstevenson a7264fa6d7
add webhooks api-core-tests (#35292) 2022-10-25 08:23:49 -06:00
Maikel David Pérez Gómez 69e52c2fa0
Remove some placeholder values (#35267) 2022-10-25 10:17:43 -03:00
Greg 43eeb0c997
Add an NPM script to run the Playwright API Core Tests (#35283)
* Added script for running Playwright API Core Tests

* Added changelog
2022-10-25 11:07:13 +01:00
Sam Seay 197c43e557
Remove phpcs Github action in favor of running phpcs directly (#35237) 2022-10-25 20:17:38 +13:00
Md Mehedi Hasan a5e3215f23
Fix: Typo Mistake (#35111)
* Fix: Typo Mistake

* changelog added

Co-authored-by: HeyMehedi <mehedi.sovware@gmail.com>
2022-10-25 14:38:39 +13:00
rodelgc 39b472be7a
Set paths for `allure-results`, `test-results.json`, and save state files to be inside their respective E2E or API folders (#35206)
* Set paths to e2e-pw

* Delete and untrack storage state files

* Add changelog

* Checkout updated version of smoke test daily workflow

* Allow setting allure output paths to e2e-pw folder using environment variables

* Set allure output paths to be inside api-core-tests/api-test-report folder

* Remove unnecessary TODO comment
2022-10-24 16:53:46 -07:00
Jamel Noel Reid ed23996808
Update permalink structure using Playwright global setup (#35282)
Setup permalink in global-setup.js
2022-10-24 16:24:28 -07:00
Joshua T Flowers 2aa4ce0d9f
Disable product inventory toggle when inventory management is disabled (#35059)
* Disable product inventory toggle when inventory management is disabled

* Export conditional wrapper as experimental component

* Conditionally show the tooltip

* Add comment explaining the tooltip overlay

* Add components changelog entry

* Display tooltip on hover any portion of toggle or label

* Add changelog entry

* Fix scss lint error

* Center tooltip over label and toggle

* Fix up input props after rebase

* Add wrapper around field to maintain block item formatting
2022-10-24 09:08:27 -07:00
jonathansadowski c6313abfd1
Update the config for assignment of community PRs (#35161)
* Update project-community-pr-assigner.yml

* Remove extraneous comment, add beta-tester to assignment config

* Update .github/project-community-pr-assigner.yml

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

* Update .github/project-community-pr-assigner.yml

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

* Update .github/project-community-pr-assigner.yml

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

* Update .github/project-community-pr-assigner.yml

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

* Update .github/project-community-pr-assigner.yml

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

* Update .github/project-community-pr-assigner.yml

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2022-10-24 10:35:18 -05:00
nigeljamesstevenson 87942e776c
add payment gateway api-core-tests (#35279) 2022-10-24 08:26:18 -06:00
github-actions[bot] a72e68ea65
Prepare Packages for Release (#35277)
Automated change: Prep @woocommerce/components for release.

Co-authored-by: chihsuan <chihsuan@users.noreply.github.com>
2022-10-24 16:37:07 +08:00
Maikel David Pérez Gómez 64ee20ff0f
Show a dismissible snackbar if the server responds an error (#35160)
* Show a dismissible snackbar if the server responds an error

* Removed the default value New shipping class from the Name field and replaced it with a placeholder: e.g. Fragile products

* Only used the category's name when the user creates a new shipping class for the first time

* Fix linter errors

* Update grammar error

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Add empty initial values to form field to prevent controlled/uncontrolled react error

* Tune error handling

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2022-10-22 10:47:17 -03:00
Tam Mullen 0c5f93bb39
k6: add baseline scenario and additional account requests (#35252)
Add additional my account k6 requests and updated test scenarios
2022-10-21 22:58:36 +01:00
Jonathan Lane a94eecc910
Playwright 1.27.1 (#35106)
* Update Playwright to 1.27.1

* Add changelog

* Try adding retry action to github actions workflow

* Revert "Try adding retry action to github actions workflow"

This reverts commit 6196a5dd21.

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2022-10-21 15:16:00 -06:00
github-actions[bot] da2c81b8b1
Delete changelog files based on PR 35257 (#35261)
Delete changelog files for 35257

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-10-21 12:47:24 -05:00
Thomas Roberts a32966a2da
Update WooCommerce Blocks package to 8.7.4 (#35257) 2022-10-21 12:45:10 -05:00
nigeljamesstevenson 569043ecda
add api-core-tests for system status (#35254)
* add api-core-tests for system status

* add api-core-tests for system status

* add system status api-core-tests

* add system status api-core-tests formatting updates
2022-10-21 11:32:55 -06:00
rodelgc 64320a2c5c
Migrate Daily smoke tests to Playwright (#35114)
* Checkout updated files

* Checkout more files

* Remove invalid php-version input

* Add changelog

* Update pnpm-lock.yaml

* Re-add accidentally deleted filter value

* Remove unnecessary TODO comment
2022-10-21 09:07:53 -07:00
louwie17 ccae9ac72f
Revert change that auto collapses the short description field (#35213) 2022-10-21 12:34:27 -03:00
Joshua T Flowers 28f8e7f996
Enhance getInputProps to allow passing of non-overridden props (#35034)
* Allow additional props to be passed to the Form getInputProps method

* Remove getTextControlProps

* Pass additional shared props through getInputProps in shipping

* Simplify checkbox props

* Unwrap currency props

* Use onBlur event to sanitize prices

* Add changelog entry

* Add option to get checkbox props to form context helpers

* Update checkbox tracks handler naming and typing

* Fix up usage of getInputProps

* Add helper sanitize method

* Use sanitize helper method for product input fields

* Fix inventory input props after rebase

* Fix shipping typo

* Fix up form types after rebase

* Align all checkboxes on product page

* Rename new checkbox helper to getCheckboxControlProps

* Add helper method to get select control props

* Add data changelog entry

* Check for product name length on blur

* Add initial value for name to prevent uncontrolled value

* Add initial value for sku
2022-10-21 07:03:49 -07:00
github-actions[bot] be6c26b671
Delete changelog files based on PR 35125 (#35246)
Delete changelog files for 35125

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-10-21 08:42:49 -05:00
Néstor Soriano fa20d434f3
[COT/HPOS] Fix trashing/untrashing of orders (#35125)
* Fix trashing/untrashing orders when using COT:

- Trashing wasn't changing the update date on the orders table record.
- Trashing wasn't applying trash on the corresponding post.
- Untrashing wasn't actually deleting _wp_trash_meta_status in metadata.

* Fix: maybe_sync_order was syncing even with identical update dates.

* PHPCS is happy now.

* WP_DIE when attempting to load a trashed order in Admin
(same behavior as when using the posts table)

* Add changelog file

* Revert change in order records date comparison

Data comparison is needed too when the dates are equal, since data in the metadata table could have been modified as well.

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>

* Fix handling of order status and trash meta when untrashing.

Untrashing an order was setting it to the default status of "pending"
instead of the previous status. This is what was happening:

1. Order is trashed, order meta table gets the value (e.g.) "on-hold"
   for the _wp_trash_meta_status key
2. Post is trashed, post meta table gets "wc-on-hold"
3. Order is re-read, but then so is posts, and the order meta value is
   updated to "wc-on-hold"
4. On untrash the previous order status from order meta table is
   prefixed with "wc-", thus it becomes "wc-wc-on-hold", which is not
   a valid status
5. Not having a valid status, the order is restored as the default
   status of "pending payment"

To fix this, the previous status is stored in order meta table
with "wc-", and it doesn't get prefixed on untrash.

Also, wp_untrash_post is called on order untrash, otherwise the
trash metadata keeps dangling and being synced back and forth.

* Add unit tetst for the trash-untrash cycle

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2022-10-21 15:18:54 +05:30
Peter Fabian 97773025c0
Improve unit test install script for db connection over socket (#35152) 2022-10-21 11:31:01 +02:00
Miguel Gasca c20f58e16a
Fix 'Invalid payment method' error upon double click 'Delete' #30862 (#30884)
* Fix 'Invalid payment method' error upon double click 'Delete' #30862

An 'Invalid payment method' error shows when a user double clicks the
'Delete' button in the 'Add Payment method screen'. Every time the user clicks
the button, there is a GET request to delete the payment method. First request is
handled correctly, but subsequent requests throw an error, because the payment
method cannot be found since it was already deleted.

This adds an event handler to disable the button on the first
click.

* Add changelog entry
2022-10-21 12:26:46 +05:30
Sam Seay 976e2f9e0b
Declare npm registry when setting up node to allow NPM auth to work (#35235)
Declare npm registry when setting up node to allow NPM auth to work
2022-10-21 15:14:10 +13:00
Joshua T Flowers 3a2a22905b
Add manual stock management section to product management experience (#35047)
* Add manual stock management section to product management experience

* Add changelog entry

* Add default value for stock status

* Fix up lint issues

* Handle PR feedback
2022-10-20 14:14:54 -07:00
Maikel David Pérez Gómez 114be56f63
Move product action buttons to header menu (#35214)
* Move product action buttons to header menu

* Fix unit tests

* Add comment suggestions
2022-10-20 17:15:44 -03:00
Thomas Roberts d0278f4801
Update WooCommerce Blocks package to 8.7.3 (#35219)
* Update WooCommerce Blocks package to 8.7.3

* Updated composer.lock

Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>
2022-10-20 14:34:59 -05:00