Commit Graph

50968 Commits

Author SHA1 Message Date
Viktor Szépe 7ec2ad68be
Fix class name in ProductDownloadsServiceProvider 2023-03-03 13:43:06 +01:00
Gan Eng Chin 00a12db5bd
Add Campaigns card in Multichannel Marketing page (#36735) 2023-03-03 18:43:02 +08:00
Marco Almeida 987b4feb24
Add params and docblocks to the new hooks
Add params and docblocks to the new proposed hooks woocommerce_widget_layered_nav_filters_start and woocommerce_widget_layered_nav_filters_end
2023-03-03 10:13:13 +00:00
Corey McKrill ceeb5a8f4a
Add changelog file 2023-03-02 16:04:30 -08:00
Corey McKrill 1fde589c9f
Orders: Update date modified on refund
Ensures that when a refund is processed successfully for an order,
the date_modified field for the order is updated to match the creation
date of the refund.

Refs #28969
2023-03-02 16:00:27 -08:00
Sam Seay 21c4edf4e2
Remove the post-checkout hook it was causing too much friction. (#37024) 2023-03-03 12:43:18 +13:00
Maikel David Pérez Gómez 7dd379773b
Add a11y support for the tree-control (#36459)
* Add tree-control expand/collapse on click the expander button or by a custom logic

* Upgrade WP components dependency to v19.8.5 to support indeterminate checkbox control

* Add styles to fit the disign

* Add tree-control expand/collapse on click the expander button or by a custom logic

* Add a11y landmarks

* Add keyboard interactions

* Add changelog file

* Fix linter errors

* Resolving rebase conflicts

* Add comment suggestions
2023-03-02 17:26:41 -03:00
Gan Eng Chin 15c57bf712
Fix and add tests for Campaigns card. 2023-03-03 03:25:00 +08:00
Gan Eng Chin 34ebedd7f6
Add changelog. 2023-03-03 03:01:55 +08:00
Gan Eng Chin 913f7176b2
Refetch registered channels after installing channel in Campaigns card. 2023-03-03 02:34:16 +08:00
Ron Rennick 3cee72119a
Prevent possible warning in `COTMigrationUtil::get_post_or_object_meta()` (#37026) 2023-03-02 14:05:24 -04:00
Gan Eng Chin ec15697d44
Load campaign types in Campaigns card. 2023-03-03 01:08:21 +08:00
Gan Eng Chin e13112875b
Move useNewCampaignTypes to shared hooks directory. 2023-03-03 01:05:14 +08:00
Gan Eng Chin 51a5a18448
Simplify receiveCampaignTypes. 2023-03-03 00:54:21 +08:00
Gan Eng Chin 8132addd18
Simplify wp.data for receiveCampaignTypes. 2023-03-03 00:24:51 +08:00
Gan Eng Chin 2443bfd7a0
Merge branch 'feature/34905-marketing-campaigns-card' into feature/34909-marketing-create-campaign-modal
Conflicts:
	plugins/woocommerce-admin/client/marketing/data-multichannel/action-types.ts
	plugins/woocommerce-admin/client/marketing/data-multichannel/actions.ts
	plugins/woocommerce-admin/client/marketing/data-multichannel/resolvers.ts
2023-03-03 00:11:35 +08:00
Saad Tarhi dfc1535786
Add support for the Cart & Checkout in WooCommerce's declare compatibility feature (#36426) 2023-03-02 16:51:30 +01:00
Saad Tarhi e6bee7b785 Apply disable UI filter to experimental features too
This change disable UI for both experimental and mature features

Previously we applied this filter to mature ones only
2023-03-02 10:39:33 +01:00
Sam Seay 1834621d1a
Update the @woocommerce/eslint-plugin and fix bugs (#36988) 2023-03-02 11:36:38 +13:00
Jorge A. Torres 7c7611856b Add changelog 2023-03-01 18:44:55 -03:00
Jorge A. Torres 77c87bc516 Check that $post->ID exists before using in COTMigrationUtil::get_post_or_object_meta() 2023-03-01 18:44:26 -03:00
github-actions[bot] d77ef0f799
Update changelog.txt from release 7.4.1 (#37008)
* Prep trunk post release 7.4.1

* Update changelog.txt

---------

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com>
2023-03-01 15:19:34 -06:00
Moon d339a777e1
Update/use theme color for completed task strikethrough (#37001)
* Use theme color for completed task strikethrough

* Add changelog

* Fix style
2023-03-01 11:54:21 -08:00
Gan Eng Chin c0364ad0ab
Remove unused error property in CampaignsState. 2023-03-02 03:16:29 +08:00
Gan Eng Chin 4b87f0a4ed
Add JSDOC. 2023-03-02 03:15:38 +08:00
Gan Eng Chin 9feaf55a60
Simplify receive campaigns success and error. 2023-03-02 03:02:14 +08:00
Gan Eng Chin 5af90c5e77
Add JSDOC for getTotalFromResponse. 2023-03-02 01:16:51 +08:00
Gan Eng Chin b83888577a
Fix getTotalFromResponse treating total 0 as undefined.
If total is 0, then the function should return 0, not undefined.
2023-03-02 01:13:42 +08:00
Gan Eng Chin 8e9f344478
Test code refactor with createTestCampaign. 2023-03-02 00:59:22 +08:00
Maikel David Pérez Gómez e61211406f
Add hightlighter to the tree control (#36480)
* Add tree-control expand/collapse on click the expander button or by a custom logic

* Add stories

* Upgrade WP components dependency to v19.8.5 to support indeterminate checkbox control

* Add styles to fit the disign

* Add type definitions

* Add custom hook to manage highlight

* Add hightlighter to the tree control

* Add stories

* Add changelog file

* Fix rebase conflicts

* Add comment suggestions
2023-03-01 13:52:23 -03:00
Justin Palmer f0c2df54f5
Add marketplace suggestions + multichannel marketing info to WC Tracker 2023-03-01 17:00:17 +01:00
Fernando Marichal 25497c4faa
Add existing global attribute layout (#36944)
* Changed `has_local_attributes`

* Add new layout

* Add attribute layout

* Add changelog

* Create method `toggle_add_global_attribute_layout`

* Add global attribute layout

* Fix button in mobile

* Remove commented code

* Change changelog

* Fix typo

* Fix style

* Fix buttons visibility

* Fix div visibility

* Fix buttons visibility

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-03-01 11:56:49 -03:00
Nathan Silveira 2e33922e35
Change Variations form shown in Variations tab when there are no variations created (#36957)
* Show add attribute in Variations tab

* Create new ajax function to create attributes and variations at the same time

* Partial commit for review

* Rename action and reload attributes and variations screen after submitting action

* block/unblock UI when loading

* Change labels

* Remove unneeded output_variations function

* Changelog

* Extract duplicated code to html-product-attribute-inner

* Handle sniff issues

* Fix PHPCS issues

* Refactor class-wc-ajax to reuse code

* Fix phpcs issues

* Fix more sniff issues

* Handle code review suggestions

* Switch back to var

* Switch to snake case

* Use var instead of const
2023-03-01 09:12:30 -03:00
louwie17 93af1c73e9
Update tree select control (#36932)
* Export tree select control and add 3 additional props

* Update storyboook

* Add unit tests for new props

* Fix duplicate parent selection
2023-03-01 03:54:53 -04:00
Chi-Hsuan Huang 4b1bcad3ba
Fix blank screen is displayed during OBW when using WP5.9 (#36903) 2023-03-01 09:42:11 +08:00
Sam Seay 48cd5917ed
Fix a minor bug in code analyzer and improve logging for when no changes exist (#36915) 2023-03-01 12:34:19 +13:00
jonathansadowski bd6586a378
Update the stable tag to 7.4.1 (#37009)
* Update the stable tag to 7.4.1

* Create change file
2023-02-28 16:56:32 -06:00
Jorge A. Torres d1f1f91409
[36257 redux] Add `menu_order` sorting option to products widget (#37002)
* Update class-wc-widget-products.php

Option for default sorting by menu order

* Fix PHPCS issues

* Add changelog

---------

Co-authored-by: 2GOOD <2GOOD@users.noreply.github.com>
2023-02-28 16:00:43 -03:00
HILAYTRIVEDI 91b9aef4db
fix/#34200-need-to-add-space-between-author-image-and-meta (#34994)
* fix/#34200-need-to-add-space-between-author-image-and-meta

* Log added

* Log added

* fix/#34200-need-to-add-space-between-author-image-and-meta

* Remove unnecessary changelog file

* Reword changelog

* Further adjust CSS to match Comments table

* Add missing <br> to match other comments tables

* Reindent some CSS lines

---------

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2023-02-28 15:12:58 -03:00
Maikel David Pérez Gómez 7d0669dcb1
Add selection to the tree control (#36435)
* Create tree-control component

* Remove items from treeItemProps

* Add tree-control expand/collapse on click the expander button or by a custom logic

* Add stories

* Add the type definitions

* Add use selection hook

* Upgrade WP components dependency to v19.8.5 to support indeterminate checkbox control

* Add selection logic to the tree control

* Create stories

* Add changelog file

* Fix linter error

* Add styles to fit the disign

* Highlight selected item when it's a single selection tree

* Rebasing from trunk

* Add comment suggestions

* Fix unit test errors due to a new version of @wordpress/compose related to the ResizeObserve feat
2023-02-28 15:10:12 -03:00
Joel Thiessen 6a345ac7eb
Moving currencyContext to currency package and updating references (#36959) 2023-02-28 08:55:49 -08:00
Saad Tarhi 6b099f917b
Bump WooCommerce blocks package to 9.6.3 (#36992) 2023-02-28 12:13:20 +01:00
Saad Tarhi ac47d1892e Add changelog 2023-02-28 07:46:25 +01:00
Saad Tarhi 42d75e5529 Run "composer update woocommerce/woocommerce-blocks" 2023-02-28 07:44:18 +01:00
Saad Tarhi 3992e25d7a Bump Woo Blocks version to 9.6.3 2023-02-28 07:43:48 +01:00
Paul Sealock da1dce8f19
Package Release: handle initial release case (#36922) 2023-02-28 09:36:38 +13:00
Corey McKrill 2700a44463
Fix: can't apply or remove a coupon whose code is "0". (#36924)
Fixes a bug that allowed to create a coupon with code "0" but prevented if from being actually used. With the fix a coupon with code "0" can be used as any other coupon.

Also adds two new methods to the StringUtil class: `is_null_or_empty` and `is_null_or_whitespace`.

Closes #35210.
2023-02-27 12:17:34 -08:00
Gan Eng Chin d111370d1e
Make UI work with wp.data new campaign types. 2023-02-28 00:51:34 +08:00
Gan Eng Chin 9526608fbc
wp.data for getting new campaign types. 2023-02-28 00:45:47 +08:00
Gan Eng Chin 418e4fba02
Fix build error after merging. 2023-02-27 23:49:50 +08:00