Commit Graph

50490 Commits

Author SHA1 Message Date
Gan Eng Chin 9963fd07ab
Display description and button based on channel setup status in Channels card. 2022-12-13 23:23:13 +08:00
Gan Eng Chin f713c01f56
Add more properties into InstalledChannel type. 2022-12-13 23:22:27 +08:00
Gan Eng Chin e6e6dc19ef
Display issue status in Channels card. 2022-12-13 22:47:16 +08:00
Jorge A. Torres 4f692a51d2
[HPOS] Improve handling of "visible" statuses in orders list (#35370) 2022-12-13 15:39:05 +01:00
Gan Eng Chin 437ebb20a8
Display sync status in Channels card. 2022-12-13 21:36:09 +08:00
Gan Eng Chin 02ce7cccc5
Modify PluginCardBody to accept className, and change description type. 2022-12-13 21:35:01 +08:00
Fernando Marichal e4f6c468cb
Automatically show attributes in Variations (#35807)
* Automatically show attributes in Variations

# Conflicts:
#	plugins/woocommerce/client/legacy/js/admin/meta-boxes-product.js

* Add changelog

* Use `attribute_taxonomy` instead of `wc-attribute-search`.

# Conflicts:
#	plugins/woocommerce/client/legacy/js/admin/meta-boxes-product.js

* Rename `add-attribute-used-for-variations`

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-12-13 08:03:45 -03:00
Moon 131183597f
Fix RegExp used to filter the country list dropdown on the store details step (#35942)
* Add custom regexp for the country dropdown search

* Add changelog
2022-12-12 18:48:22 -08:00
github-actions[bot] 7f000f453c
Delete changelog files based on PR 35767 (#35812)
Delete changelog files for 35767

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-12-12 18:25:59 -06:00
github-actions[bot] 5f9fb16d66
Delete changelog files based on PR 35866 (#35870)
Delete changelog files for 35866

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-12-12 18:25:47 -06:00
github-actions[bot] 317e2dc164
Delete changelog files based on PR 35805 (#35879)
Delete changelog files for 35805

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-12-12 18:25:33 -06:00
Nico Mollet f4032654a3
Product import: Remove line breaks in keys (#35880)
* Product import: Remove line breaks in keys

Remove line breaks in keys, to avoid mismatch mapping of keys.

* Fix syntax

* PHPCS

* Changelog.

Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2022-12-12 16:21:13 -08:00
Luigi Teschio 6fe4afad14
Move CSS about notice outside of .woocommerce class scope (#35912) 2022-12-12 16:17:35 -08:00
github-actions[bot] 97784693ab
Delete changelog files based on PR 35669 (#35945)
Delete changelog files for 35669

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-12-12 17:54:51 -06:00
Sam Seay 7224c76053
Add a set_output function to script that uses the new GITHUB_OUTPUT (#35894) 2022-12-13 10:27:42 +13:00
Sam Seay 3cc47d245d
Allow use of pathspecs to limit the scope of generating a diff in Code Analyzer (#35925) 2022-12-13 10:22:13 +13:00
louwie17 613e58c061
CES exit prompt for product editing screens (#35728)
* Add exit page tracker logic and implement it for product pages

* Add changelog

* Fix lint errors and add comments

* Add ces_location prop

* Add mock to fix broken test

* Add CES exit page survey tests

* Fix a bug with React pages redirects and update actions

* Fix test

* Fix lint

* Add default inside location prop

* Remove exit prefix within action

* Address PR feedback and make sure its not triggered on save

* Update copy of exit feedback notice

* Add changelog

* Update name of param

* Fix lint error

* Use hasFinishedResolution vs isResolved in customerEffortScoreTracks
2022-12-12 09:56:28 -04:00
louwie17 d406eeb299
Fix react chunk build warnings (#35930)
* Reorganize imports to fix build warnings and remove overlapping css import

* Add changelog

* Update changelog
2022-12-12 09:43:34 -04:00
Vedanshu Jain 7187c8dff0
Split CALC_FOUND_ROW query into seperate count query for better performance (#35468)
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2022-12-12 09:09:44 +01:00
James Allan e66d335542
Make set_order_props_from_data() protected rather than private (#35829)
* Make set_order_props_from_data() protected

This enables 3rd parties that extend the order datastore and need to set their own data. For example, Subscriptions

* Add changelog entry

* return set_order_props_from_data to private visibility

* Make init_order_record and get_order_data_for_ids protected

Following feedback here: https://github.com/woocommerce/woocommerce/pull/35829#issuecomment-1340528244

* Update changelog entry

Co-authored-by: mattallan <matt.allan@automattic.com>
2022-12-12 12:53:31 +05:30
Sam Seay dedbf7b492
Migrate uses of ::set-output in code-analyzer to setOutput. (#35895)
* Migrate uses of ::set-output to setOutput.
2022-12-12 19:41:00 +13:00
Gan Eng Chin 36cdf7fed5
Add changelog. 2022-12-10 02:41:24 +08:00
Gan Eng Chin be621df8da
Add more data for testing. 2022-12-10 02:29:58 +08:00
Gan Eng Chin a9010ffd68
Add InstalledChannelCardBody to Channels. 2022-12-10 02:29:58 +08:00
Gan Eng Chin 92112e27a1
Add InstalledChannel type. 2022-12-10 02:29:58 +08:00
Gan Eng Chin 7852448a7a
Use SmartPluginCardBody in Channels component. 2022-12-10 02:29:58 +08:00
Gan Eng Chin 5da2385d41
Add SmartPluginCardBody component. 2022-12-10 02:29:58 +08:00
Gan Eng Chin 542b26e346
Move and rename type Plugin to RecommendedPlugin. 2022-12-10 02:29:58 +08:00
Gan Eng Chin 0229354da0
Rename file Plugin to InstalledPlugin. 2022-12-10 02:29:58 +08:00
Gan Eng Chin 56dbf53a35
Rename type Plugin to InstalledPlugin. 2022-12-10 02:29:57 +08:00
Gan Eng Chin 5cd1d0fe3f
Add CardHeaderDescription in Channels card. 2022-12-10 02:29:57 +08:00
Gan Eng Chin 995fb7e02d
Code refactor with CardHeaderTitle component.
This component will be used in other components later.
2022-12-10 02:29:57 +08:00
Gan Eng Chin a8c8be7c26
Use CenteredSpinner in Channels. 2022-12-10 02:29:57 +08:00
Gan Eng Chin 5216643465
Code refactor with CenteredSpinner. 2022-12-10 02:29:57 +08:00
Gan Eng Chin dc7a233cb1
Add Channels card into Marketing page. 2022-12-10 02:29:57 +08:00
Néstor Soriano 2cd799e76a
Add a states migrator helper method and migrate states for New Zealand and Ukraine (#35669) 2022-12-09 09:20:33 +01:00
Melebius 02fec371f4
Fix payment instruction location in on-hold email (#31880) (#31886)
* Fix payment instruction location in on-hold email
* Update template version tags.
* Changelog.
* Update version tag to 7.3.0.
* Update version tag to 7.3.0.

Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2022-12-08 09:17:50 -08:00
Néstor Soriano 0b4811d83e
Make HPOS feature and "Delete custom order tables" tool work nicely together (#35357)
* Make linter happy by (very painfully) introducing Yoda conditions.

* Change how the COT related tools work combined with the COT feature.

- Enabling the feature will now automatically create the tables
  if they don't exist already.
- In fact, enabling the feature is now the only way to create the tables.
- The "Delete tables" tool will be shown as disabled in the feature
  is enabled.

* Add changelog file

* Fix code sniffer issues
2022-12-08 07:12:16 -08:00
jonathansadowski be73733be4
Update stable tag and readme for 7.1.1 (#35883)
* Update changelog.txt

* Update stable tag in readme.txt
2022-12-08 08:31:15 -06:00
Peter Fabian fc4e28b33e
array_key_exists shall not be called on non array (#35598) 2022-12-08 09:40:12 +01:00
Barry Hughes 084abd9908
[HPOS] Avoid error noise during plugin activation (#35820)
Do not try to query for orders by type, if no order types are registered.

If DataSynchronizer::get_current_orders_pending_sync_count() is called very early in the request then order types may not yet have been registered. This can for example happen during plugin activation/installation.
2022-12-07 11:59:07 -08:00
Maikel David Pérez Gómez 788b3ef59b
Add async filtering support to the select-control component (#35839)
* Add async filtering support to the select-control component

* Apply comment suggestions

* Apply more comment suggestions
2022-12-07 14:24:32 -03:00
Luigi Teschio 0a039a1f13
Update WooCommerce blocks package to 8.9.2 (#35805) 2022-12-07 17:01:27 +01:00
Nathan Silveira 493faac544
Add help tip for Product Image and Product Gallery meta boxes (#35834)
* Add help tip to Product galery meta box

* Changelog

* Remove admin_post_thumbnail_html filter from product screen

* Add jQuery to append a tooltip after 'Set product image'

* Add dynamic upload size

* Add guard in case setPostThumbnail doesn't exist
Refactor jQuery code for simplicity

* Run phpcbf

* Fix php linting

* Run lint again

* Make both tooltips with jQuery
Refactor DOM manipulation code
Remove PHP implementation

* Change span tabIndex to 0 to allow focus on screen readers

* Move code to meta-boxes-product

* Add descriptive comment on jQuery code that adds tooltips
2022-12-07 11:38:30 -03:00
Chi-Hsuan Huang 1fbe5d330d
Add @babel/plugin-proposal-class-properties to run storybook (#35867)
* Add @babel/plugin-proposal-class-properties to run storybook

* Add @babel/plugin-proposal-class-properties to webpack config and remove storybook env from babel config

* Add changelog
2022-12-07 22:26:02 +08:00
Adrian Duffell 0b3a0516d0
Fix installation error in Onboarding Wizard when plugin generates unexpected output (#35866)
* Update plugin activation check

This is refactored to test the plugin state instead of checking the API call result.

This is because WordPress can return an error despite the plugin activating correctly. The `unexpected_output` error, in one such case, when WordPress detects stray output upon activation. To workaround this, the plugin is checked for its active status directly.

* Add tests

* Add changelog

* Fix lint issues
2022-12-07 17:31:37 +08:00
Joshua T Flowers c5bb9a6879
Add product variations data store (#35838)
* Add product variations data store

* Add changelog entry

* Fix up lint errors

* Export product variation type
2022-12-06 13:17:49 -08:00
Sam Seay ef746eae1e
WC Beta Tester - Don't run WC code if WC is not installed (#35742)
* Always check if wc_get_logger is available before calling it.
* Guard against other WooCommerce specific code.
2022-12-07 07:18:52 +13:00
Paul Sealock d45d7dd64b
Add WooCommerce Extension environment scaffold (#35755) 2022-12-07 07:16:40 +13:00
Chi-Hsuan Huang 2a56407ba1
Migrate `@woocommerce/components/search` to TS (#35724)
* Migrate search component to TS

* Add @types/prop-types to @woocommerce/components

* Update search types

* Add changelog

* Update pnpm-lock.yaml

* Update ts doc comments
2022-12-06 13:21:10 +08:00