Gan Eng Chin
8b6aad4138
Refetch campaign types after installing a channel in CreateNewCampaignModal.
2023-03-09 22:51:12 +08:00
Gan Eng Chin
29d67a3a21
Refactor test data in CreateNewCampaignModal tests.
2023-03-09 22:31:51 +08:00
Gan Eng Chin
9f0326b398
Remove unneeded return in CreateNewCampaignModal.
...
This helps us save indentation and make the code few lines shorter.
2023-03-09 22:26:06 +08:00
Gan Eng Chin
e15305b7c3
Remove unneeded CardDivider in CreateNewCampaignModal.
...
The code is copied from the Channels component, but in CreateNewCampaignModal, we don't need to display the divider, so we can just remove the divider code.
2023-03-09 22:23:27 +08:00
Gan Eng Chin
c6dcee426b
Make it clear that title and classname cannot be overwritten by props.
2023-03-09 22:17:03 +08:00
Gan Eng Chin
f5bb8490ea
Rename open and setOpen to isModalOpen and setModalOpen in Campaigns.
2023-03-09 22:11:53 +08:00
Gan Eng Chin
e831e89997
Make the mocked modal clearer.
...
The previous text "Create a new campaign" can be a bit confusing with the other text "Create new campaign" in the test.
2023-03-09 22:09:24 +08:00
Gan Eng Chin
551db21e9b
Remove unneeded getByText in Campaigns test.
2023-03-09 22:05:17 +08:00
Gan Eng Chin
f19969dacb
Change NewCampaignTypes to CampaignTypes.
2023-03-09 21:52:11 +08:00
Gan Eng Chin
39ce470fe8
Specify dependency for useSelect in useNewCampaignTypes.
2023-03-09 21:43:54 +08:00
Gan Eng Chin
3ba492f32b
Move convert function out of useSelect in useNewCampaignTypes.
...
This is so that it doesn't become dependency in useSelect.
2023-03-09 21:42:59 +08:00
Gan Eng Chin
97ed1d2a7d
Fix array length rendering literal 0 in CreateNewCampaignModal.
2023-03-08 02:57:02 +08:00
Gan Eng Chin
e653a4ca15
Merge branch 'trunk' into feature/34909-marketing-create-campaign-modal
2023-03-04 01:04:59 +08:00
Gan Eng Chin
3e620c41c6
Add tests for CreateNewCampaignModal.
2023-03-04 01:02:46 +08:00
Joel Thiessen
36655cb1e4
Updating rest namespace for product post type to v3 ( #37028 )
2023-03-03 08:30:56 -08:00
Barry Hughes
6f3858e82d
Fix class name in ProductDownloadsServiceProvider ( #37052 )
2023-03-03 08:11:55 -08:00
Barry Hughes
b5e122283a
Remove incorrectly-located changelog file
...
(Alternative changelogger tool for community PRs was writing to the wrong location.)
2023-03-03 07:26:13 -08:00
Barry Hughes
4316a6629d
Add changelog file
2023-03-03 07:25:02 -08:00
Barry Hughes
beb39ef540
Add changelog file
2023-03-03 07:22:33 -08:00
Barry Hughes
194c632fc1
Changelog file added to the wrong location.
2023-03-03 07:22:08 -08:00
Barry Hughes
2d3c97d0b5
Add changelog file
2023-03-03 07:08:33 -08:00
rodelgc
46300131ff
Correct `UPDATE_WC` value in the "Smoke test daily" workflow ( #37049 )
...
* Correct UPDATE_WC value
* Add changelog
2023-03-03 13:58:21 +01:00
Albert Juhé Lluveras
46aa035e14
Fix missing padding in some buttons in TT2 with WP 5.9 and 6.0 ( #37018 )
...
* Add default button padding to TT2 stylesheet to fix some visual issues in WP 5.9 and 6.0
* Add changelog notice
2023-03-03 13:45:18 +01:00
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
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