Commit Graph

8564 Commits

Author SHA1 Message Date
Fernando Marichal d77f8fc5cd
Product creation experience: shortcut to add variation price (#34948)
* Add modal

* Add modal style

* Open modal

* Add validations

* Add button

* Add changelog

* Fix variations price setting

* Fix warning for variations without price

* Fix styles

* Change row actions

* Fix actions styles

* Fix error text

* Remove console.logs

* Add save after setting prices

* Modify modal copy

* Change modal button text

* Fix text

* Fix text

* Fix styles

* Fix button

* Fix code sniff errors

* Fix more code sniff errors

* Fix code sniff errors

* Fix comments

* Fix comment

* Fix lint

* Fix lint

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-11-02 09:31:52 -03:00
Chi-Hsuan Huang e60be03951
Fix invalid `wcadmin_install_plugin_error` event props (#35411)
* Fix invalid wcadmin_install_plugin_error props

* Add changelog

* Update docblock comments to fix lint

* Fix lint

* Update prop name
2022-11-02 15:55:41 +08:00
kkmuffme 84660ccf6f
Fix class name for class FirstDownlaodableProduct (#35383)
Spelling

Fix https://github.com/woocommerce/woocommerce/issues/35307
2022-11-02 10:21:50 +08:00
kkmuffme dc94b9b512
Fix missing use FQCN for WP_Error (#35305)
* add use WP_Error

phpdoc was not using FQCN for WP_Error, however use is preferred to FQCN anyway
Fix: https://github.com/woocommerce/woocommerce/issues/35304

* Revert "add use WP_Error"

This reverts commit ff62deb10020689f96722e10c5c86669a1454125.

* use FQCN in PHPDoc when using FQCN in code

* add changelog
2022-11-02 10:19:29 +08:00
Barry Hughes 2fcb28b5df
Add filter hook `handle_bulk_actions-woocommerce_page_wc-orders` (#35442)
Add filter hook `handle_bulk_actions-woocommerce_page_wc-orders` to the HPOS admin list table.

This is a duplicate of core WP hook `handle_bulk_actions-<SCREEN_ID>` and allows for custom bulk actions to be handled in the context of the admin list table for HPOS orders.
2022-11-01 15:36:11 -07:00
Joshua T Flowers c2473da79b
Remove insight first product and payment note (#35309)
* Remove InsightFirstProductAndPayment note

* Add changelog entry

* Remove obsolete note

* Fix yoda condition
2022-11-01 11:46:36 -07:00
nigeljamesstevenson c7282de4ee
update/a2p update shipping api-core-tests (#35332)
* update shipping api-core-tests

* merge in trunk to see if this resolves changelog issue

* comments updates
2022-11-01 08:04:20 -06:00
nigeljamesstevenson 9a7a75fdea
add/a2p product variations api-core-tests (#35355)
* add product variations api-core-tests

* add product variations api-core-tests

* comments updates
2022-11-01 07:55:29 -06:00
louwie17 ff2b06c9af
Add create attribute term modal (#35131)
* Add create attribute term modal

* Add back filter missed during rebase

* Add changelog

* Fix lint error

* Address some feedback from PR review

* Prevent first modal from closing if closing the second modal when clicking outside
2022-11-01 09:05:46 -03:00
jonathansadowski 24f6acdc9c
Remove change file for 35349 (#35443) 2022-10-31 17:46:29 -05:00
github-actions[bot] a7a7b5187f
Delete changelog files based on PR 35333 (#35439)
Delete changelog files for 35333

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-10-31 17:20:05 -05:00
github-actions[bot] f6f359e1cd
Delete changelog files based on PR 35402 (#35437)
Delete changelog files for 35402

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-10-31 17:18:44 -05:00
github-actions[bot] 1f0d4df8ed
Delete changelog files based on PR 35366 (#35435)
Delete changelog files for 35366

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-10-31 17:17:19 -05:00
github-actions[bot] 6b770820e9
Delete changelog files based on PR 35118 (#35433)
Delete changelog files for 35118

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-10-31 17:14:47 -05:00
github-actions[bot] 8bc69e755e
Delete changelog files based on PR 35428 (#35430)
Delete changelog files for 35428

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-10-31 17:09:20 -05:00
Joshua T Flowers e1ebabba29
Fix up rich text editor initial selection and add blocks (#35286)
* Fix double click toolbar behavior

* Fix initial block selection on editor load

* Add placeholder option to RichTextEditor

* Add image and video blocks

* Set toolbar height

* Allow inserter to be shown

* Allow media uploads in rich text editor

* Add changelog entries

* Fix media upload

* Check for existence of selected blocks before checking length

* Pass blocks to avoid race in detecting initially empty blocks
2022-10-31 14:36:54 -07:00
Joshua T Flowers 66370c823f
Add inventory advanced section (#35164)
* Add sold individually inventory option

* Add backorder purchase options

* Add margin around collapsible content areas

* Add changelog entry

* Add tests around inventory section

* Fix up checkbox props after rebase

* Check for disabled track quantity toggle

* Update manage stock test

* Fix nested radio control label margin
2022-10-31 14:36:33 -07:00
Barry Hughes 2355822ec5
Ensure the HPOS/COT order status correctly tracks the CPT order status (#35402)
Ensure the HPOS/COT order status correctly tracks the CPT order status (during manual order creation).

* Linting.
* Address coding standards (no need to prepare the query when there are no placeholders).
* Woops! Restore use of `$wpdb->prepare()`, add phpcs:ignore rule.
2022-10-31 14:12:14 -07:00
nigeljamesstevenson 1b2a94b030
add/a2p reports api-core-tests (#35388)
add reports api-core-tests
2022-10-31 14:01:21 -06:00
nigeljamesstevenson 613be5a990
add/a2p data api-core-tests (#35347)
* add data api-core-tests

* add newline to see if this resolves changelog issue

* add newline to see if this resolves changelog issue
2022-10-31 13:23:10 -06:00
jonathansadowski edb59aef4d
Update/blocks 8.7.5 (#35428)
* Update blocks to 8.7.5

* Add changelog file
2022-10-31 14:22:15 -05:00
Paul Sealock 19f0410bc1
PHPCS: Lint only changes (#35407)
Add `sirbrillig/phpcs-changed` to run PHPCS only on changes, not entire files
2022-11-01 07:53:01 +13:00
Néstor Soriano 11e22063ca
Exclude inactive plugins from the incompatible plugins view (#35333)
* Changes in the plugin-feature compatibility warnings:

- Show only active plugins in the "Incompatible with..." plugins view
- Show an empty page when the view is loaded and no Incompatible
  plugins are active (instead of listing all the existing plugins)

* Add changelog file
2022-10-31 17:11:06 +05:30
Vedanshu Jain 6c551b0cd6
Also support syncing for HPOS with stats table. (#35118)
* Also support syncing for HPOS with stats table.

* Add changelog.

* Fixup.

* More fixup.

* test commit by disabling importing admin test orders.

* Update get_items to work with HPOS.

* Modify tests to assert against invalid result.

* test commit for ci.

* Remove seperate test as its quite slow.

* Applied coding standards.

* Coding standards, part 2.
2022-10-31 14:33:18 +05:30
Vedanshu Jain 2c5d3d2acc
Check order type is set before returning to prevent notice. (#35349)
* Check order type is set before returning to prevent notice.

* Applied code standards.

* Remove type declaration since its not consistent with CPT datastore.

* Switch to a yoda condition (satisfy required linting check).

Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2022-10-31 14:26:28 +05:30
github-actions[bot] fa1ecf6e8b
Delete changelog files based on PR 35371 (#35400)
Delete changelog files for 35371

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-10-28 16:39:54 -05:00
louwie17 8740a8a970
Update shipping label banner add meta boxes function (#35212)
* Add check to see if we are on a shop_order page.

* Update deprecated function call

* Add changelog

* Fix yoda condition
2022-10-28 17:08:13 -03:00
github-actions[bot] 3123f82b7e
Delete changelog files based on PR 35306 (#35391)
Delete changelog files for 35306

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-10-28 11:04:50 -07:00
louwie17 6b6a33282a
Add product description title in old product editor (#35154)
* Add product description title to classic product editor

* Remove bottom margin as its already added by the parent element

* Add changelog

* Update css and name, also fix some lint errors

* Fix spacing
2022-10-28 14:18:10 -03:00
Barry Hughes d9f6ecaa87
Guard against cases where `get_current_screen()` is undefined. (#35371)
This may happen if code invokes the `all_plugins` filter during non-admin requests, for example.
2022-10-28 09:31:35 -07:00
Jorge A. Torres aaef7f7a65
[HPOS] Allow line breaks in order notes (admin-side) (#35366)
Allow line breaks in order notes (admin-side).

* Fix code violations
2022-10-28 09:28:32 -07:00
Peter Fabian 0f204dbb57
TT3 compatibility (#35306) 2022-10-28 18:01:40 +02:00
Vedanshu Jain ec9ef7458e
Remove address indexes from list of internal keys. (#35192)
* Override filter_meta_data method, since it should be a no-op anyway.

* Add changelog.

* Not include address indexes from filtered data.

* Applied coding standards.
2022-10-27 11:36:50 -07:00
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
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
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 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
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
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
nigeljamesstevenson 87942e776c
add payment gateway api-core-tests (#35279) 2022-10-24 08:26:18 -06: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
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
github-actions[bot] c50f69e229
Delete changelog files based on PR 35087 (#35230)
Delete changelog files for 35087

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-10-20 13:23:11 -05:00
github-actions[bot] 17cf0055b5
Delete changelog files based on PR 35207 (#35228)
Delete changelog files for 35207

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-10-20 13:19:39 -05:00
github-actions[bot] 23072411f3
Delete changelog files based on PR 35121 (#35226)
Delete changelog files for 35121

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-10-20 13:16:11 -05:00
github-actions[bot] 4831292bb5
Delete changelog files based on PR 35176 (#35224)
Delete changelog files for 35176

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-10-20 13:12:54 -05:00
github-actions[bot] dda264cc6d
Delete changelog files based on PR 35198 (#35222)
Delete changelog files for 35198

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-10-20 13:10:10 -05:00
Barry Hughes c2be5a6253
Add untrash order hook (COT/HPOS). (#35087) 2022-10-20 13:23:29 -03:00
Peter Fabian bf61c6bf19
Added default additional content to 'woocommerce_email_additional_content_' filter (#35195)
* Added default additional content to 'woocommerce_email_additional_content_' . $this->id filter

* Changelog.

Co-authored-by: Mattia Lerda <mattia.lerda@delitestudio.com>
2022-10-20 10:08:53 -03:00
Néstor Soriano cc0c4ef447
Improve the warnings about incompatibilites between plugins and features (#35198)
* Use AccessiblePrivateMethods in DataSynchronizer.

Also fix some code styling stuff.

* Introduce the woocommerce_feature_description_tip filter.

...and use it to display a warning for the COT feature
if there are orders pending sync.

* Display the plugin-feature incompatibility warning in all admin pages.

...except in the plugins list when we are already showing the
"You are viewing plugins with incompatibilities" page.

Also change the styling from warning to error.

* Add changelog file

* Revert accidental change.

Co-authored-by: Vedanshu Jain <vedanshu.jain.2012@gmail.com>
2022-10-20 15:34:37 +05:30
Vedanshu Jain 8848e4aa47
Check before getting order classname to see if it exists. (#35207) 2022-10-20 14:47:58 +05:30
Vedanshu Jain 80cbb9dcdc
Use correct datastore when backfilling orders. (#35176)
* Use correct datastore when backfilling orders.

* Fix some unit tests and simplify calls.
2022-10-20 13:22:22 +05:30
louwie17 5f2c656e6b
Add/34331 add attributes modal (#34999)
* Add initial add attribute modal

* Add async select control component and add attribute terms

* Make use of AsyncSelectControl for attributes

* Rearranged the add attribute form to make removing easier

* Make sure add button is disabled if fields are empty

* Remove the use of AsyncSelectControl for now

* Add disabled option and fix merge conflict

* Add attribute modal tests

* Remove unused trigger drag

* Add popover slot

* Small update to select control and fix multi selection in term field

* Add tests for attribute and attribute term fields

* Add changelogs

* Small fix after merge conflict

* Fix some styling and issue with select control when clearing item

* Fix lint error

* Fix up some styling issues after rebase

* Fix formatting, some styling issues, and address some PR feedback

* And confirmation dialog for closing the modal.
2022-10-19 16:28:29 -03:00
Vedanshu Jain 5b6ddf0b88
Update biling and shipping address indexes. (#35121)
* Update biling and shipping address indexes.

* Add changelog.

* Code standard fixes.

* Add unit test for search after update.

* PHPCS fixes.
2022-10-19 16:21:42 +05:30
Jonathan Lane a2076f59a5
Update PR template to provide guidance for testing (#34597)
* Update PR template to provide guidance for testing

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2022-10-19 14:00:09 +08:00
Joshua T Flowers c72e00d85c
Add Tooltip component and remove EnrichedLabel (#35024)
* Add experimental tooltip component

* Add tooltip stories

* Update EnrichedLabel component

* Remove EnrichedLabel

* Add changelog entries

* Fix up linting issues

* Handle PR feedback
2022-10-18 16:08:49 -07:00
nigeljamesstevenson bb42e7892a
api-core-tests add product reviews crud tests (#35163) 2022-10-18 16:33:11 -06:00
Maikel David Pérez Gómez c79af1acc5
Replace the trash can icon in the attribute list (#35133) 2022-10-18 16:05:01 -03:00
Maikel David Pérez Gómez a0b27a4966
Select the current new added shipping class (#35123)
* Select the current new added shipping class

* Extracting constants into the right file

* Add unit tests

* Use setValue instead onChange to select the shipping class of the product
2022-10-18 15:40:56 -03:00
Moon 4775defb1f
Update WooCommerce beta tester README (#35090)
* Update readme

* Add changelog

* Add Installation section

* Fix typo

* Update WC Admin Test Helper dev commands

* Move back Development section to README.md
2022-10-18 09:22:51 -07:00
Joshua T Flowers 3c6681054a
Add product management description (#34961)
* Add label prop to rich text editor

* Create feature class and enqueue styles

* Add description editor and parsing

* Fix up incorrect context for product data

* Add styling to rich text editors in product form

* Fix editor initialization on new product

* Add changelog entries

* Use trunk lock file

* Add component changelog entry

* Update lock file

* Register block store provider in tests

* Fix up phpcs errors in product feature file
2022-10-18 08:55:31 -07:00
Paulo Arromba 00368924df
Update WooCommerce Blocks package to 8.7.2 (#35101)
* Update WooCommerce Blocks package to 8.7.2

Co-authored-by: Niels Lange <info@nielslange.de>
2022-10-18 10:36:05 +01:00
Moon 13a5ba2f1d
Optimize query usage in the Onboarding tasks (#35065)
* Optimize is_complete() method

* Replaed WC_Product_Query with wp_count_posts, which has more optimized query

* Optimize TaskList::is_complete -- return early when false instead of running through all the tasks

* Cache is_complete() method for the tasks with db query

* Add changelog
2022-10-17 11:23:55 -07:00
jonathansadowski 8747ea2995
Remove latest stable version from README (#35056)
* Remove latest stable version from README

* Add change file
2022-10-14 15:22:27 -05:00
Moon 0f58f2efbd
Fix JS errors when the OBW business step is accessed directly via URL (#35045)
* Set default value for product types

* Add changelog
2022-10-14 11:43:36 -07:00
louwie17 c55c91d7e0
Add category field dropdown field (#34400)
* Add initial category field component with new typeahead

Move search logic to useCategorySearch hook

Add initial add new category logic

Add parent category field to add new category modal

Adding some debug changes

Update category control to make use of internal selectItem function of select control

Add changelogs

Update pagesize back to 100

Add placeholder

Empty placeholder

Fix input and icon sizes

Fix input underline

Add max height and scroll to category dropdown

Add sorting of category items

Auto open parents when traversing up the tree using arrow keys

Add several comments

Add some initial unit tests for the category field component

Add tests for useCategorySearch hook and fixed minor bug

Update styling and autoselect parent if child is selected

Fix styling issues for the select control dropdown inside a modal

Fix issue with creating new category with parent

Add function comment and fixed border styling

Prune out create new category logic

Fix minor css issue with border

Revert some of the select control changes and make use of the custom type

Fix up some styling changes

* Fix type conflict

* Revert change in state reducer

* Add cursor pointer

* Fix styling errors

* Fix broken category tests

* Fix merge conflict
2022-10-14 09:05:39 -03:00
Sam Seay 9b9abd1eae
Replace outdated readme examples of using pnpm (#35064) 2022-10-14 16:14:45 +13:00
github-actions[bot] 4055797bf0
Release: Remove 7.1 change files (#35080)
Delete changelog files from 7.1 release

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-10-13 13:57:26 -05:00
Kirtan Gajjar a5814f1bc7
Make qty input box visible when min_qty = max_qty (#34282)
Make the quantity input visible, even if the min and max allowed values are identical.

* Add changelog

* Update plugins/woocommerce/changelog/fix-GH-34280

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

* Update plugins/woocommerce/templates/global/quantity-input.php

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

* Fix `@since` tag

* Use a single readonly input (when quanity cannot be changed) instead of two inputs (hidden and disabled).

* Introduce consistent formatting when a product is sold individually and when the min/max is identical.

* Update `@version` tags to 7.1.0.

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2022-10-13 09:48:08 -07:00