Commit Graph

55138 Commits

Author SHA1 Message Date
Damián Suárez 5ecedbd1ca fix importing Tab block in tests 2023-11-30 08:15:06 -03:00
Damián Suárez 2cdf4971f3 Merge branch 'trunk' into update/rename-edit-fn-names 2023-11-28 11:35:12 -03:00
Damián Suárez cf9f629c1f
[Product Block Editor]: remove unused block attributes (#41674) 2023-11-28 11:32:47 -03:00
Damián Suárez ead60a2049 Merge branch 'trunk' into update/rename-edit-fn-names 2023-11-28 11:00:03 -03:00
Leif Singer f408296b79
Email the site admin when a payment gateway is enabled (#41645) 2023-11-28 14:29:34 +01:00
Damián Suárez 12b9c4d8bc TabBlockEdit 2023-11-28 09:42:54 -03:00
Damián Suárez 30a3869cfe changelog 2023-11-28 09:42:54 -03:00
Damián Suárez e9fa11d062 rename edit fn of the Descrption block 2023-11-28 09:42:54 -03:00
Damián Suárez 1ad4cac81c rename edit fn of Tab block 2023-11-28 09:42:54 -03:00
Damián Suárez db3496d268 change function name of section block edit 2023-11-28 09:42:54 -03:00
Leif Singer 2a12fea81d simplify conditional 2023-11-28 13:04:09 +01:00
Leif Singer 7f839980ec add admin email address before removing duplicates 2023-11-28 13:02:49 +01:00
Albert Juhé Lluveras a0715be413
Add several WooCommerce-related commands to the Command Palette (#41605)
* add simple initial integration with Command Palette

* Add WooCommerce commands

* Add e2e tests

* Fixes

* Add changefile(s) from automation for the following project(s): woocommerce

* Avoid using page.waitForLoadState() in Command Palette tests

* Make Settings and Analytics commands dynamic

* Decode entities to make sure characters are displayed correctly in the command palette

* Move decodeEntities() into registerCommandWithTracking()

---------

Co-authored-by: Darren Ethier <darren@roughsmootheng.in>
Co-authored-by: github-actions <github-actions@github.com>
2023-11-28 12:26:30 +01:00
github-actions[bot] 7ccbd6fd0e
Prepare Packages for Release (#41657)
Automated change: Prep @woocommerce/csv-export for release.

Co-authored-by: anu-rock <anu-rock@users.noreply.github.com>
Co-authored-by: Anurag Bhandari <anurag@automattic.com>
2023-11-28 20:47:14 +13:00
louwie17 2088e3d99a
Package release prep - product editor (#41720)
Package release prep
2023-11-27 17:34:19 -04:00
Alejandro López Ariza c9b478ce7d
Add new workflow to ping Slack every time a certain team is assigned as PR reviewer or tagged in a PR comment. (#41067)
* Add new workflow to ping Slack every time a certain team is assigned as PR reviewer or tagged in a PR comment.

* Fix workflow after getting feedback from review.

* Fix test-assistant-pr-review workflow so that it also triggers on PR review comments.

* Remove the pull_request trigger from test-assistant-pr-review.yml as it was added only to improve testability.
2023-11-27 21:39:32 +01:00
louwie17 68e0a6404a
Remove invaild react-hooks dev dependency (#41712)
* Remove invaild react-hooks dev dependency

* Add changelog
2023-11-27 16:14:47 -04:00
louwie17 2b60fd5e83
Prepare block templates package for release (#41707) 2023-11-27 14:09:54 -04:00
Damián Suárez 7254836adf changelog 2023-11-27 14:18:46 -03:00
Damián Suárez d453188ae4 remove... 2023-11-27 14:17:59 -03:00
Damián Suárez eac3470d74 changelog 2023-11-27 14:17:59 -03:00
Damián Suárez 5e35d42fed remove unused templateLock block attrs 2023-11-27 14:17:59 -03:00
louwie17 8397478c61
Package release preperation for product-editor package (#41706) 2023-11-27 11:45:43 -04:00
louwie17 d7a67783a4
Release/package expression evaluation (#41708)
* Automated change: Prep @woocommerce/expression-evaluation --initial-release for release.

* Update pnpm-lock.yaml

Revert pnpm-lock changes

* Add gitkeep to changelog directory

---------

Co-authored-by: louwie17 <louwie17@users.noreply.github.com>
2023-11-27 11:45:13 -04:00
Leif Singer 5aa6f29b85 fix typo 2023-11-27 16:09:14 +01:00
Leif Singer 5469dd3f01 ensure the WC_Payment_Gateways instance we're testing is isolated from the other unit tests 2023-11-27 16:09:14 +01:00
Leif Singer d64603764a extend test setup 2023-11-27 16:09:14 +01:00
Leif Singer 21ad8d547f move the test to the proper file 2023-11-27 16:09:14 +01:00
Leif Singer 3850a07a2c add a test that ensures the email and log message get generated 2023-11-27 16:09:14 +01:00
Leif Singer 5a3ba9a0cb appease the linter 2023-11-27 16:09:14 +01:00
Leif Singer d638cc44a9 tweak email subject 2023-11-27 16:09:14 +01:00
Leif Singer 488084d7ce use the gateway ID to make gateway_settings_url a direct link to the enabled gateway's settings page 2023-11-27 16:09:14 +01:00
Leif Singer d6f1adb4cf pass the gateway instance into the wc_payment_gateway_enabled_notification_email_addresses hook 2023-11-27 16:09:14 +01:00
Leif Singer ee04b60a83 pass the whole gateway instance into notify_admin_payment_gateway_enabled 2023-11-27 16:09:14 +01:00
Leif Singer e3c2c79389 make on_payment_gateways_initialized private 2023-11-27 16:09:14 +01:00
Leif Singer bbdbb026ea pass WC_Payment_Gateways instance to wc_payment_gateways_initialized hook 2023-11-27 16:09:14 +01:00
Leif Singer 665a6ce721 once more, appease the linter 2023-11-27 16:09:14 +01:00
Leif Singer 86fa398d5a allow adding email addresses to the notification via a filter 2023-11-27 16:09:14 +01:00
Leif Singer e23839294f guard against unset array key 2023-11-27 16:09:14 +01:00
Leif Singer 26b664f29f add logging 2023-11-27 16:09:14 +01:00
Leif Singer 20cd022334 document all the things 2023-11-27 16:09:14 +01:00
Leif Singer 3cd4b5078c appease the linter 2023-11-27 16:09:14 +01:00
Leif Singer 6b12ffb5f5 use AccessiblePrivateMethods, a single callback for both added and updated options, and subscribe to gateway-specific hooks 2023-11-27 16:09:14 +01:00
Leif Singer 7254e99ec8 move things into the WC_Payment_Gateways class 2023-11-27 16:09:14 +01:00
Leif Singer a0304bedef ensure gateway title is set 2023-11-27 16:09:14 +01:00
Leif Singer d1fc46e658 cover both update_option and add_option 2023-11-27 16:09:14 +01:00
Leif Singer 7faf9b9f3b indent assignments correctly 2023-11-27 16:09:14 +01:00
Leif Singer 71ec30268a use proper sprintf for placeholders 2023-11-27 16:09:14 +01:00
Leif Singer 247bf534e3 optimize the checks a bit 2023-11-27 16:09:14 +01:00
Leif Singer 82f1bddaa5 add changelog file 2023-11-27 16:09:14 +01:00