Commit Graph

51346 Commits

Author SHA1 Message Date
Joshua T Flowers 7734027b4a
Add product radio block and tax class to product blocks editor (#37529)
* Add product radio block

* Wrap tax class radio in collapsible block

* Add link to description and sanitize HTML

* Add changelog entry

* Fix up php lint errors

* Add changelog entry

* Fix linting errors

* Remove unused import
2023-04-05 10:13:05 -07:00
Fernando Marichal a5fe4232c7
Change variations dropdown visibility (#37558)
* Add default action with the name `Bulk actions`

* Attach event when dropdown changes

* Add changelog

* Remove `Go` button

* Fix e2e tests

* Fix styles

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-04-05 13:56:42 -03:00
Maikel David Pérez Gómez bb22fd5864
Prevent click event when buttons are aria-disabled (#37577)
* Prevent click event when buttons are aria-disabled

* Add changelog file
2023-04-05 12:55:22 -04:00
Vedanshu Jain 9e9060e95b
Do not attempt to cache orders during order creation (#37569) 2023-04-05 20:49:57 +05:30
Vedanshu Jain 54eb2a0c43
Add sort order for migration script. (#37545) 2023-04-05 11:43:13 +02:00
Ron Rennick d272495d08
update select all to checkbox in menu editor (#37562)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-04-05 11:06:10 +02:00
Vedanshu Jain 817458a433 Remove caching on order save, instead do it when order is fetched.
This allows all the hooks when getting an order to be executed and we cache the correct object.
2023-04-05 13:29:29 +05:30
Jorge A. Torres 1d6c98985e Add changelog 2023-04-04 16:56:32 -05:00
Jorge A. Torres 77e3cc5c77 Do not attempt to cache order during order creation (HPOS) 2023-04-04 16:56:29 -05:00
Maikel David Pérez Gómez f7572b4361
Move the Save draft and Preview buttons to the product editor header (#37461)
* Add preview button to the product editor header

* Publish the product on add or on save

* Add save draft button

* Save product changes before previewing it

* Add notice messages

* Fix linter errors

* Force the store page to be openned in a new tab after publishing the product

* Enable publish button when the status is not publish

* Add changelog files

* Fix some comment typos

* Address comment suggestions

* Move preview logic to its own component

* Move save draft logic to its own component

* Move publish logic to its own component
2023-04-04 11:30:39 -04:00
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