Commit Graph

51336 Commits

Author SHA1 Message Date
Nathan Silveira 6291d10112
Use SelectTree component in Category field (#37479)
* Migrate category field to TreeSelect

* Rename and refactor some props due to changes in SelectTree that were introduced afterwards

* add Changelog

* Rename type to a better name

* Add tests to select-tree and remove tests from category-field

* Restore ts change that broke build

* Run linter

* Fix broken tests

* Update test

* Import from wordpress instead of react
2023-04-04 09:28:19 -03:00
Barry Hughes 32c766c5f8
Prevent duplicate alias in orders query SQL (#37560) 2023-04-03 14:13:19 -07:00
jonathansadowski ac343d08d3
Add info about changelog tool to contributor guide (#37556)
* Add info about changelog tool to contributor guide

* Update .github/CONTRIBUTING.md

Co-authored-by: Leif Singer <leif@automattic.com>

---------

Co-authored-by: Leif Singer <leif@automattic.com>
2023-04-03 13:57:27 -05:00
Jorge A. Torres 2cd5cdcc8c Add changelog 2023-04-03 13:56:27 -05:00
Jorge A. Torres 35bbb0c920 Re-use aliases from OrdersTableQuery for field queries 2023-04-03 13:55:38 -05:00
Jorge A. Torres b156651243 Use backticks for JOIN on OrdersTableQuery 2023-04-03 13:55:30 -05:00
William Staley 213b3252fa
Updating core pull request template (#37555)
Streamlining the pull request template by removing checkboxes
2023-04-03 11:51:23 -05:00
Barry Hughes bcfbfbd6d2
Thank you page (/checkout/order-received): payment gateway title formatting (#37481) 2023-04-03 09:47:14 -07:00
Barry Hughes 174d9075d9
Revert "Replace $.ajax() calls with browser-native window.fetch() calls." (#37463) 2023-04-03 09:46:49 -07:00
Ron Rennick cb7f34de44
Restore reviews (comments) to the product editor (#37457) 2023-04-03 13:02:01 -03:00
barryhughes 3a1fc77442 Simply; just use `wp_kses_post()`. 2023-04-03 07:50:59 -07:00
Ilyas Foo 502279dff1
Remove inbox notes exceeding characters warning (#37392)
* Removed inbox notes warning

* Changelog

* Removed dompurify dependency from data package

* Remove dompurify types
2023-04-03 19:13:36 +08:00
Sam Seay 418ae6a86c
Add a changelog entry. 2023-04-03 14:17:32 +08:00
Sam Seay 5528c762f1
Add RC draft post command, make some minor improvements to beta post command (#37288) 2023-04-03 15:19:39 +12:00
Fernando Marichal d625f72e2b
New empty state for variations (#37411)
* Add variations empty state

# Conflicts:
#	plugins/woocommerce/client/legacy/css/admin.scss
#	plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-variations.php

* Fix styles

* Add changelog

* Fix html

* Fix js

* Show and hide select and button

* Fix e2e tests

# Conflicts:
#	plugins/woocommerce/tests/e2e-pw/tests/merchant/create-variable-product.spec.js

* Fix lint

* Fix hidden style

* Fix js for hidden elements

* Fix lint

* Transform `load_variations` into a promise

* Fix e2e test

* Fix tests

* Remove comment

* Fix styles

* Fix comment

* Remove async

* Remove async

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-03-31 16:40:16 -03:00
Maikel David Pérez Gómez 6df1cef307
Add Sale price and list price blocks to pricing tab with pricing section (#37513)
* Add pricing section to the pricing tab

* Add changelog file

* Fix php linter errors
2023-03-31 14:47:31 -03:00
Joshua T Flowers 85080f642b
Add block related assets entry points to product editor build (#37318)
* Add editorStyle properties to blocks

* Rename style.scss files to editor.scss

* Get block entry points for block related assets

* Copy block assets to core assets build folder

* Remove unusable dependency

* Add changelog entries

* Fix up RTL style builds for block assets

* Update copy-webpack-plugin dependency and lock file

* Fix up lock file after rebase

* Fix order of webpack rtl stylesheet builds to prevent additional stylsheets

* Fix up lock file after rebase

* Fix tsconfig
2023-03-31 10:36:40 -07:00
Chi-Hsuan Huang e553759ab6
Fix `FormContext` type error in client/tasks/fills/steps/location.tsx (#37532)
* Fix FormContext type error

* Add changelog
2023-03-31 18:43:16 +08:00
Nathan Silveira deb1cde448
Add listener to parent to avoid event being overwritten when DOM is replaced (#37431) 2023-03-30 16:41:20 -03:00
Moon 658034f64e
Migrate steps/location to TS (#37257)
* Migrate steps location to TS

* Add description for ts-expect-error
2023-03-30 12:07:58 -07:00
Joshua T Flowers 681391a50a
Add product images block to product editor (#37455)
* Add images block to the product editor

* Allow html in section block descriptions

* Add changelog entry

* Add client changelog entry

* Remove SVG related changes

* Fix up lock file after rebase

* Remove unused import

* Fix up php lint errors

* Move sanitize function to utils folder
2023-03-30 11:22:07 -07:00
Ilyas Foo d3229b97cb
Update mobile app modal image resolution (#37506)
* Update image

* Changelog
2023-03-30 23:36:12 +08:00
Nima Karimi afc2344f47
Remove the MCM feature flag on update to WooCommerce 7.7 (#37454)
* Remove the MCM feature flag on update to WooCommerce 7.7

This feature flag is no longer needed because the new marketing page will be the default on version 7.7 (pe2C5g-Ft-p2#comment-582).

* Remove the marketing overview welcome option
2023-03-30 16:13:57 +03:00
Chi-Hsuan Huang be9f09f217
Fix missing result prop in `wcadmin_install_plugin_error` track (#37466)
* Fix missing result prop in install_plugin_error track

* Add changelog
2023-03-30 09:51:44 +08:00
Chi-Hsuan Huang 51af048c28
Update payment gateway recommendation priority (#37442)
* Update payment gateway recommendation priority

* Reformat

* Fix lint

* Add changelog
2023-03-30 09:15:17 +08:00
Chi-Hsuan Huang 6f5b7fd359
Fix rest api filter to allow any strings in replacement (#37468)
* Fix beta tester api filter replacement value

* Add changelog

* Fix lint

* Add doc comments
2023-03-30 09:13:09 +08:00
Barry Hughes 6c1ebf3c7a
Improve search query performance by avoiding LEFT JOIN on orders_meta table. (#36688) 2023-03-29 11:29:04 -07:00
github-actions[bot] 5b234b92e1
Delete changelog files based on PR 37492 (#37494)
Delete changelog files for 37492

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-03-29 16:12:06 +02:00
github-actions[bot] 9892f7af28
Delete changelog files based on PR 37477 (#37489)
Delete changelog files for 37477

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-03-29 16:11:24 +02:00
Gan Eng Chin 5094cc6742
Code refactor: Simplify boolean expression before `&&` in Marketing page (#37452) 2023-03-29 21:15:01 +08:00
Gan Eng Chin a57ec7818e
Code refactor: Move marketing components into coupons directory (#37444) 2023-03-29 21:13:04 +08:00
Gan Eng Chin b2629c03db
Make Multichannel Marketing the default new UI for Marketing page (#37430) 2023-03-29 21:09:23 +08:00
Albert Juhé Lluveras 2c0004a78d
Update WooCommerce Blocks package to 9.8.4 (#37492) 2023-03-29 14:59:28 +02:00
Gan Eng Chin f814f09cab
Edit changelog.
To mention removing classic Marketing page and unused code.
2023-03-29 19:09:54 +08:00
Gan Eng Chin 34bd123448
Remove unused button-style mixins. 2023-03-29 19:06:40 +08:00
Gan Eng Chin b51d32e6b7
Remove unused woocommerce_marketing_overview_welcome_hidden option.
See https://github.com/woocommerce/woocommerce/pull/37430#discussion_r1150002880.
2023-03-29 19:00:20 +08:00
Vedanshu Jain 6d4c579477 Merge branch 'trunk' into perf/count_orders 2023-03-29 16:00:53 +05:30
Vedanshu Jain 934084fb95
Add partial verification support for HPOS CLI (#37446) 2023-03-29 16:00:39 +05:30
Albert Juhé Lluveras b5aaa1f996
Update WooCommerce Blocks package to 9.8.3 (#37477) 2023-03-29 11:57:58 +02:00
Chi-Hsuan Huang 19a119f0a8
Upstream changes from experimental-select-control back to @woocommerce/components (#36521)
* Add scrollIntoViewOnOpen and position props to menu

* Add ability to customize active item style

* Add menu toggle button

* Add changelog

* Fix changelog

* Rename toggle button classname

* Change default menu position

* Update toggle button story

* Add default value to getToggleButtonProps
2023-03-29 17:18:43 +08:00
Vedanshu Jain 792bf6fc85 Merge branch 'trunk' into hpos/end-at-support 2023-03-29 13:24:02 +05:30
Niels Lange 96a1e9cd7b
Update extend-cart-checkout-block dependency (#37191) 2023-03-29 09:39:46 +07:00
smallfishes 1f714e8ade
fixed bug where adjust_download_permissions was being scheduled on va… (#34828)
* fixed bug where adjust_download_permissions was being scheduled on variable products without downloadable variations

* check if  is null per code review comment and issue 35918 on GitHub

* clean up changelog file

* Trigger checks

* Fix DownloadPermissionsAdjuster tests

---------

Co-authored-by: smallfishes <mike@smallfishanalytics.com>
Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2023-03-28 17:24:02 -05:00
Joshua T Flowers 49cde4cad6
Content lock all blocks in the product editor (#37382)
* Lock all blocks in the product editor to content only

* Add changelog entry

* Add content role to summary field to allow editing

* Remove unused BlockControls
2023-03-28 15:18:00 -07:00
barryhughes 59c977e5e9 Bump template version. 2023-03-28 13:19:57 -07:00
barryhughes 021ea1b9fd Changelog. 2023-03-28 12:53:29 -07:00
barryhughes 17c4952e72 Use consistent strategy for sanitizing the payment gateway title.
Elsewhere, in relation to payment gateway titles, we use the HtmlSanitizer utility to remove dangerous HTML but allow a safe subset. We should also apply that here, for consistency.
2023-03-28 12:50:58 -07:00
Christopher Allford 2f4f0bea54
Added Build File Caching (#37459)
Since these files can impact the build, we need to make sure to use
them as part of the cache key.
2023-03-28 12:48:20 -07:00
Matt Sherman 30ea6cfc71
Show spotlight when switching to variable product type (#37413)
* Show variable product tour
* Only show tour when product type is changed to variable
* Only show tour if it hasn't been shown before
* Add variable_product_tour_shown to UserPreferences type
* Store whether tour has been shown in user preferences
* Record Tracks events
* Add docblock for woocommerce_admin_get_user_data_fields filter
* Add test for tour
2023-03-28 13:49:40 -04:00
Matt Sherman eab7750208
Move product-editor CES-related components and utilities (#37131)
* Update package.json and lock file
* Move ProductMVPFeedbackModal to @woocommerce/product-editor
* Move ProductMVPFeedbackModalContainer to @woocommerce/product-editor
* Move ProductMVPCESFooter and useProductMVPCESFooter to @woocommerce/product-editor
* FIx mock of __experimentalUseProductMVPCESFooter in test
2023-03-28 13:38:08 -04:00