Commit Graph

51950 Commits

Author SHA1 Message Date
Gan Eng Chin 4e38969ce7
Use one illustration instead of two in IntroductionBanner. 2023-03-20 18:07:30 +08:00
Vedanshu Jain c3bec0c827
Run all unit tests in HPOS context (#36650) 2023-03-20 15:19:01 +05:30
Gan Eng Chin 7dd7994e01
Make scrollIntoView center on the "Add channels" button. 2023-03-20 17:46:54 +08:00
Gan Eng Chin 29299903c3
Make shouldShowCampaigns boolean type. 2023-03-20 17:23:20 +08:00
RJ a959b589f6
fix: added skydropx slug back to shipping partners list (#37286) 2023-03-20 16:48:44 +08:00
Moon 1aa899ae91
Add shipping partner suggestions api (#37155)
* Add wp-json/wc-admin/shipping-partner-suggestions API endpoint

* lint fix

* lint fix

* Update plugins/woocommerce/src/Admin/API/ShippingPartnerSuggestions.php

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Update plugins/woocommerce/src/Admin/Features/ShippingPartnerSuggestions/ShippingPartnerSuggestions.php

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Change row to column and column to row -- I put them incorrectly

* Fix force_default_suggestions description

* Chagne row to colmun and column to row

* Override is_visible value after evaluation

* Lint fix

* Lint fix

* Correct asset path

---------

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2023-03-19 22:37:24 -07:00
Moon e8a00edaef
Visual tweaks for shipping task partners (#37229)
* Visual tweaks for 2 partners layout

* Add spacing between banner image and list

* Add changelog

* Add spacing between banner image and list

* Align buttons at the bottom

* Lint fix
2023-03-19 21:33:10 -07:00
Chi-Hsuan Huang 7b10baff00
Add tracks for plugin installation and activation (#37261)
* Add @woocommerce/tracks to @woocommerce/data dependencies

* Add tracks for plugin actions and handle plugin error properly

* Add changelog

* Add doc

* Update doc
2023-03-20 10:38:30 +08:00
Gan Eng Chin 5455abcabb
Use useImperativeHandle instead of exposing button ref in Channels. 2023-03-20 01:00:19 +08:00
Gan Eng Chin 75c11a681d
Simplify CSS to have less hardcoded width value. 2023-03-20 00:11:32 +08:00
Gan Eng Chin 38370cc544
Remove unneeded CSS. 2023-03-19 23:34:17 +08:00
Gan Eng Chin ddd287cc4c
Show Campaigns card when banner is dismissed or campaigns total is truthy. 2023-03-19 23:30:21 +08:00
Gan Eng Chin 11683be1a8
Set default parameter values for useCampaigns. 2023-03-19 23:17:22 +08:00
Gan Eng Chin 458c16bad9
Move useCampaigns to shared hooks directory. 2023-03-19 22:54:55 +08:00
Gan Eng Chin c6a95ae9bf
Rename callback props in IntroductionBanner to make them clearer. 2023-03-19 21:10:22 +08:00
Gan Eng Chin 6b75b5db38
Rename variables to make them clearer. 2023-03-19 20:58:54 +08:00
Gan Eng Chin 155211d77a
Remove unneeded Icon component. 2023-03-19 20:56:00 +08:00
Gan Eng Chin 65523e36dd
Fix spacing for close button in IntroductionBanner. 2023-03-19 20:54:34 +08:00
Gan Eng Chin 1b65be0a53
Fix useSelect dependency in useIntroductionBanner. 2023-03-19 20:50:37 +08:00
Gan Eng Chin 99c6ebff15
Remove the use of isOptionsUpdating in useIntroductionBanner.
isOptionsUpdating will return true for any option update, not just our option here. This causes issue as shown in demo video in https://github.com/woocommerce/woocommerce/pull/37110#discussion_r1130531104.

We can just depend on getOption. When we update an option, it will be updated immediately in wp.data store before making API request to update the option in database (see c5564a15c1/packages/js/data/src/options/actions.ts (L44)).
2023-03-19 20:38:20 +08:00
Gan Eng Chin 162d790a7a
Update option name and value to make it more indicative. 2023-03-19 20:16:04 +08:00
Gan Eng Chin 49253425b2
Specify dependency for useSelect in useIntroductionBanner.
Co-authored-by: Eason <eason.su.tw@gmail.com>
2023-03-19 20:12:09 +08:00
Gan Eng Chin 7cc8e065f9
Merge branch 'trunk' into feature/34904-marketing-introduction-banner 2023-03-19 20:09:23 +08:00
Gan Eng Chin f45e43b990
Add changelog. 2023-03-19 18:06:44 +08:00
Gan Eng Chin e20b9d1ac9
Filter out marketing channels in useRecommendedPlugins. 2023-03-19 18:06:39 +08:00
Gan Eng Chin 8c151984ad
Filter installed plugins against marketing channels in useInstalledPlugins. 2023-03-19 18:06:34 +08:00
Gan Eng Chin 555116f3df
Fix broken tests for CreateNewCampaignModal.
The tests had errors because useInstalledPlugins is added into the component and it is not mocked in the tests.
2023-03-19 17:59:35 +08:00
rodelgc 65c698a386 Remove unnecessary dash 2023-03-18 08:37:39 +08:00
rodelgc a80f65cc11 Add run number 2023-03-18 08:36:22 +08:00
rodelgc 874faf8d4e Use single function to do s3 upload 2023-03-18 08:35:03 +08:00
rodelgc 45071f2f03 Simplify upload scripts 2023-03-18 08:29:56 +08:00
rodelgc 2110d011ae More accurate step name 2023-03-18 08:02:43 +08:00
rodelgc 96b27622bb Enclose in double quotes 2023-03-18 07:27:48 +08:00
Michael Pretty 2e3057052f fix lint issues 2023-03-17 15:27:28 -04:00
Matt Sherman c5564a15c1
Filter Variations report variation attributes correctly (#37223)
* FIx Variations report
* Fix Orders report
* Remove ability to pass table into get_attribute_subqueries since it should always be the same table we join on
2023-03-17 14:05:51 -04:00
louwie17 345ad58919
Add product pricing block (#37211)
* Adding initial pricing block

* Have price block render in form

* Make sure price is loaded correctly and fix template rendering

* Make pricing block abstract and add list and sale price to template

* Add changelogs

* Revert changes in wc/data package

* Fix lint issues

* Fix type error

* Add styling

* Fix styling lint issues

* Revert config change missed in rebase

* Make use of base control help text for field info

* Allow additional callbacks for onFocus and onKeyUp
2023-03-17 14:03:10 -03:00
Gan Eng Chin ffc36d808c
Add changelog. 2023-03-18 00:52:04 +08:00
Gan Eng Chin 1aaa26e07d
Reload installed extensions data after installing recommended channels.
This is because the channel may not have registered itself as a marketing channel and it should show up in the Installed extensions card.
2023-03-18 00:47:54 +08:00
Michael Pretty 00bf0760be Update changelog 2023-03-17 12:29:50 -04:00
Michael Pretty bd0da16eab Replace information_schema queries in wc-update-functions.php with create table searches
Partially fixes #37276
2023-03-17 12:21:21 -04:00
Maikel David Pérez Gómez e370f25c0c
Add a product header component to the blocks interface (#37152)
* Add button and saving logic

* Add comment suggestions

* Add changelog files

* Add comment suggestions

* Set header title to product name if the name field is dirty otherwise the default title value

* Navigate to EditProductPage after creating the product succesfully

* Add get-header-title util and expose edited product name from useSelect
2023-03-17 13:21:15 -03:00
github-actions[bot] 14675be4f0
Delete changelog files based on PR 36871 (#37297)
Delete changelog files for 36871

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-03-17 10:14:18 -05:00
github-actions[bot] a4c9e471b2
Delete changelog files based on PR 37277 (#37294)
Delete changelog files for 37277

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-03-17 10:11:46 -05:00
Gan Eng Chin 8070f65ec7
Make sure expression before `&&` is always boolean in React rendering in marketing page (#37227) 2023-03-17 22:56:35 +08:00
Gan Eng Chin aa15311e8b
Disable React Fast Refresh completely in webpack when running `start` command (#37289) 2023-03-17 22:22:50 +08:00
Matt Sherman ffc5b911ee
Bypass scheduled actions for customer updates (#37265)
* Bypass scheduler for customer update

* Handle case when wc_last_active user meta doesn't exist at all

* Bypass scheduler for wc_last_active customer update

* Bypass scheduler for delete_user and remove_user_from_blog

* Bypass scheduler for woocommerce_privacy_remove_order_personal_data

* Bypass scheduler for woocommerce_new_customer

* Remove obsolete test for last_active_update sync

* Remove assertions for pending wc-admin_import_customers
2023-03-17 10:11:06 -04:00
rodelgc ad8d2f9b44 More readable artifact names 2023-03-17 20:31:10 +08:00
Barry Hughes b13e56e08f
Also delete when order type is placehoder, since it was created by HPOS. (#37287) 2023-03-17 05:16:46 -07:00
rodelgc 9503868d71 Set environment descriptions 2023-03-17 20:16:01 +08:00
Chi-Hsuan Huang 9ea8b630ee
Remove cart2cart option from product task (#37285)
* Remove cart2cart option from add product task

* Remove cart2cart link test

* Add changelog

* Fix unit test

* Fix lint
2023-03-17 20:15:31 +08:00