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
Gan Eng Chin
00a12db5bd
Add Campaigns card in Multichannel Marketing page ( #36735 )
2023-03-03 18:43:02 +08:00
Gan Eng Chin
15c57bf712
Fix and add tests for Campaigns card.
2023-03-03 03:25:00 +08:00
Gan Eng Chin
913f7176b2
Refetch registered channels after installing channel in Campaigns card.
2023-03-03 02:34:16 +08: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
Sam Seay
1834621d1a
Update the @woocommerce/eslint-plugin and fix bugs ( #36988 )
2023-03-02 11:36:38 +13: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
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
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
Gan Eng Chin
f420a0ed9e
Merge branch 'feature/34905-marketing-campaigns-card' into feature/34909-marketing-create-campaign-modal
...
Conflicts:
plugins/woocommerce-admin/client/marketing/components/RecommendedChannelsList.tsx
plugins/woocommerce-admin/client/marketing/overview-multichannel/Campaigns/Campaigns.scss
plugins/woocommerce-admin/client/marketing/overview-multichannel/Campaigns/Campaigns.tsx
plugins/woocommerce-admin/client/marketing/overview-multichannel/Channels/Channels.tsx
plugins/woocommerce-admin/client/marketing/overview-multichannel/Channels/RecommendedChannels.tsx
2023-02-27 23:46:30 +08:00
Gan Eng Chin
e57181b987
Add tests for Campaigns component.
2023-02-27 02:23:11 +08:00
Gan Eng Chin
3513ef51a1
Merge branch 'trunk' into feature/34905-marketing-campaigns-card
2023-02-25 00:39:37 +08:00
Gan Eng Chin
f62b44ae2f
Set numberOfRows for TablePlaceholder in Campaigns card.
2023-02-24 23:48:04 +08:00
Gan Eng Chin
f7a1ef2123
Code refactor with getTotalFromResponse in getCampaigns.
2023-02-24 23:45:10 +08:00
Gan Eng Chin
a4e11924fd
Change meta.total to optional in receiveCampaignsSuccess.
2023-02-24 23:44:47 +08:00
Gan Eng Chin
f5ba6d94ac
Remove unused fetchWithHeaders control.
2023-02-24 23:35:40 +08:00
louwie17
aec4dfd3bd
Update product editor package ( #36830 )
...
* Add missing dev packages to product-editor package
* Create components folder for organization
* Move product field, section and tab slots over to product-editor package
* Move use of product slot fills to product-editor package
* Sync dependencies
* Add changelogs
* Update README's and add constant for default values
* Update README's in product-editor package
2023-02-24 09:37:53 -04:00
Gan Eng Chin
a982b7be21
Error handling in getCampaigns.
2023-02-24 18:32:33 +08:00
Gan Eng Chin
92762ca9b0
Better pagination with TablePlaceholder in Campaigns card.
2023-02-24 17:09:42 +08:00
louwie17
2ef4f8a9da
Fix create wc extension script ( #36917 )
...
* Run create-extension for create-wc-extension script
* Add changelog
---------
Co-authored-by: Sam Seay <samueljseay@gmail.com>
2023-02-24 04:28:07 -04:00
Fernando Marichal
756fe32c04
Create spotlight on analytics revenue report ( #36653 )
...
* Add `RevenueReportDateTour` component
* Add changelog
* Fix styles
* Rename RevenueReportDateTour to ReportDateTour to use it in two different reports: Orders and Revenue
* Change default sort date to date_paid
# Conflicts:
# plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php
* Update changelog
* Assign date_column_name before calling parent constructor
* Remove date_type default value from configuration and show tour only if user didn't assign a value
---------
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
Co-authored-by: Nathan Schneider <nsschneider1@gmail.com>
2023-02-23 15:49:24 -03:00
Gan Eng Chin
cc5345db4e
Campaigns pagination UI logic.
2023-02-24 02:13:20 +08:00
Gan Eng Chin
60d815c582
wp.data for campaigns data pagination.
2023-02-24 02:10:37 +08:00
Gan Eng Chin
20ae504be0
Add controls with fetchWithHeaders.
2023-02-24 02:08:59 +08:00
Joshua T Flowers
87d79f15a3
Move product editor utils to product editor package ( #36730 )
...
* Move product editor utils to product editor package
* Add changelog entries
* Move remaining utils
* Move util import/exports to separate index file
2023-02-23 09:48:49 -08:00
Nathan Silveira
41eab0d669
Add additional global attributes and local attributes information when saving product attributes ( #36858 )
...
* Add additional global attributes and local attributes information when saving product attributes
* Log only local attributes
Add attribute name
Fix issue with attribute_value and names selectors
* Save name and slug for global attributes and global terms
2023-02-20 23:55:01 +01:00
RJ
d26dd4c772
Add: shipping plugins in shipping task based on location ( #36873 )
...
Co-authored-by: moon <moon.kyong@automattic.com>
2023-02-20 21:32:14 +08:00
Ilyas Foo
e03ed88410
Fix inconsistent colors products task icons ( #36889 )
...
* Remove colors overriding theme colors
* Changelog
2023-02-20 18:18:17 +08:00
Ilyas Foo
052bb39e8a
Temporary remove free trial terms from Avalara tax task ( #36888 )
...
* Remove free trial terms from Avalara tax task
* Changelog
2023-02-20 13:56:34 +08:00
Chi-Hsuan Huang
30409fa8c3
Update default payment gateway list ( #36550 )
...
* Remove Klarna payments from North America and remove Amazon pay from CA
* Update payment gateway list ordering priority
* Add changelog
* Sort gateways by recommendation_priority
* Fix DefaultPaymentGateways.php
Fix lint
Fix paypal
Fix comment
* Remove unneed comment
* Change eway priority to show after square
2023-02-20 09:02:57 +08:00
Nathan Silveira
2ad2b79ac6
Fix inconsistencies on Analytics > Orders table when using date_paid or date_completed ( #36876 )
...
* Fix inconsistencies on Analytics > Orders table when using date_paid or date_completed
* Fix sniff
* Fix unit test
2023-02-17 17:52:10 -03:00