Commit Graph

19299 Commits

Author SHA1 Message Date
Tom Cafferkey 853c57a604
Merge branch 'trunk' into update/auto-insert-mini-cart-into-tt2 2023-12-14 14:04:11 +00:00
Roy Ho 255f1ff919
Product gallery/legacy/transform (#42719)
* Product Image Gallery: Add transform to Product Gallery block

* Single Product Template: Transform to blocks with new Product Gallery block

* Ensure we first check for block existance

* Add changelog

* Add/delete changelog file
2023-12-14 05:47:48 -08:00
Luigi Teschio 9ff69b01cc
fix: CYS - fix path images patterns (#42705)
* fix: CYS - fix path images pattern

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-14 14:12:52 +01:00
github-actions a4d6537597 Add changefile(s) from automation for the following project(s): woocommerce 2023-12-14 13:03:44 +00:00
Ron Rennick 8292ff1cca Add InternalInjection sniff exceptions for blocks 2023-12-14 08:59:57 -04:00
nigeljamesstevenson 3ada74b56d Update Action Scheduler to 3.7.1 2023-12-14 12:56:05 +00:00
berislav grgičak 2964800f27
Add subscription install modal (#42009)
* Install modal

* Add connect button

* Small product card

* Add install functionality

* Add no subscription error

* Fix error notice loading

* Connect style

* Add success state

* Fix admin urls

* Add error message to failed install events

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-14 12:45:40 +01:00
Luigi Teschio 0903a53664
fix: CYS - update copy (#42703)
* fix: CYS - update copy

* not format style file

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

* add changelog

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-14 12:32:37 +01:00
github-actions d8132154ba Add changefile(s) from automation for the following project(s): woocommerce 2023-12-14 10:59:34 +00:00
tjcafferkey 30dab31b4c Enable Mini Cart auto-insertion for TT2 but exclude some header patterns 2023-12-14 10:48:55 +00:00
Seghir Nadir 2b54c8a61d
Performance: Bootstrap metrics tracking (#42005) 2023-12-14 10:45:15 +01:00
Alba Rincón 5187b2d1ef
Change the imageSizing to single in patterns (#42767)
* Change the imageSizing to single

Images need a higher resolution in patterns used for the CYS project in the assembler

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-14 10:26:17 +01:00
Riad Benguella 36c259a2a1 Performance: Bootstrap metrics tracking 2023-12-14 09:52:01 +01:00
Sam Seay 609f39b073
Fix the cp command for blocks so that the contents of build is copied into assets/client/blocks (#42807) 2023-12-13 21:32:24 -08:00
RJ 762c2ef924
add: easyship to shipping task for AU, NZ, SG, HK (#41852) 2023-12-14 11:13:08 +08:00
Christopher Allford e46d6bd207
Fixed `watch:build` Race Conditions (#42802)
There's currently a bug with `wireit` that makes the watch crash.
Swiching over to `nodemon` until that is resolved will
keep that from happening.
2023-12-13 18:25:16 -08:00
Paul Sealock 346664f348
Shipping Settings: Allow extensions to render description links (#41954) 2023-12-14 14:31:00 +13:00
Paul Sealock 4e98801e8f
Shipping Settings: Replace tables only for use in modals (#42795) 2023-12-14 14:02:58 +13:00
Jonathan Lane 8e2e7de7ce
Migrate Puppeteer test action from Blocks repo (#42733)
* Migrate Puppeteer test action from Blocks repo

* Update file path

* Use pnpm

* Use npm

* Updates based on feedback

* Comment out paths for testing

* Fix paths with working directory

* Use pnpm

* Fix missing pnpms

* npm instead

* Do use pnpm

* Update command

* Blocks wp-env config

* Update paths, config files

* Run test commands from blocks

* Config update

* Uncomment paths so that e2e checks only run on Blocks

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-12-13 16:01:34 -08:00
paul sealock 2b769f5088 use kses_post 2023-12-14 12:57:31 +13:00
github-actions f66a6fe44e Add changefile(s) from automation for the following project(s): woocommerce 2023-12-14 12:57:31 +13:00
paul sealock bcb5a393e6 inline wp_kses 2023-12-14 12:57:31 +13:00
paul sealock 28df5447d0 make height dynamic 2023-12-14 12:57:31 +13:00
paul sealock e8ca0c250c allow target attribute 2023-12-14 12:57:31 +13:00
paul sealock 812271fd85 use wp_kses to sanitize but allow links 2023-12-14 12:57:31 +13:00
Christopher Allford d0d49b49f5
Fix Component Project Changelog Checking (#42794) 2023-12-13 15:41:11 -08:00
Paul Sealock a232c32c8e
Shipping Settings: Add busy animation to Continue button (#42688) 2023-12-14 12:26:21 +13:00
github-actions f908d9bec5 Add changefile(s) from automation for the following project(s): woocommerce 2023-12-13 22:28:37 +00:00
github-actions 2b6f10311f Add changefile(s) from automation for the following project(s): @woocommerce/create-product-editor-block, woocommerce-blocks, woocommerce 2023-12-13 22:26:53 +00:00
github-actions 4bb43d87b9 Add changefile(s) from automation for the following project(s): woocommerce 2023-12-14 11:26:18 +13:00
paul sealock ba64a21f46 Add busy animation to Continue button 2023-12-14 11:23:33 +13:00
paul sealock 1b0fa5d04e remove whitespace for linter 2023-12-14 10:43:55 +13:00
Christopher Allford 2fa8f357f8
Fixed Blocks' `wp-env` Configuration (#42798)
* Fixed Blocks' `wp-env` Configuration

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-13 13:07:15 -08:00
github-actions 12dab59815 Add changefile(s) from automation for the following project(s): woocommerce 2023-12-13 20:46:10 +00:00
paul sealock 481c4eaaf5 Replace tables only for the modal 2023-12-14 09:39:05 +13:00
Christopher Allford e231be78f9
Fixed PHPUnit Tests Broken by Merge (#42731) 2023-12-13 12:38:59 -08:00
Mike Jolley db9be95f5d
Allow built in payment method descriptions to contain HTML when rendered on the block checkout (#42706) 2023-12-13 15:49:29 +00:00
Christopher Allford 8cf2f54ab8
Migrated Blocks' PR Assignment Workflow (#42782) 2023-12-13 07:30:15 -08:00
Mike Jolley 6dfcbbd525 Blocks changelog 2023-12-13 15:24:18 +00:00
Mike Jolley b6e3e32d7c changelog 2023-12-13 14:37:21 +00:00
Mike Jolley 2abd0422a8 Allow HTML in built in payment method descriptions 2023-12-13 14:37:21 +00:00
Tom Cafferkey 136bb741b0
Merge branch 'trunk' into update/auto-insert-mini-cart-into-tt3 2023-12-13 14:31:05 +00:00
github-actions 641fe4d590 Add changefile(s) from automation for the following project(s): woocommerce 2023-12-13 13:53:07 +00:00
tjcafferkey ce869a7430 Add TT3 theme to the list of allowed themes for Mini Cart auto-insertion 2023-12-13 13:31:05 +00:00
Niels Lange 31c9eed519
Fix ESLint issue 2023-12-13 17:06:38 +07:00
Niels Lange 040038a339
Add changelog entry 2023-12-13 16:46:23 +07:00
Niels Lange ca73ac42b6
Display update quantity notice on classic cart 2023-12-13 16:44:16 +07:00
Christopher Allford be290984b9
`setup-woocommerce-monorepo` Action in Highlight Changes Workflow (#42740) 2023-12-12 21:33:52 -08:00
Christopher Allford ec9b7852f9
Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
Jonathan Lane dd255a2820
Update daily test workflows post Blocks-merge (#42716)
* Update action for API tests

* Changelog

* Update e2e tests

* Rename WooCommerce Payments to WooPayments

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-12-12 14:50:18 -08:00
nigeljamesstevenson c50c0f1488 woorelease: Update stable tag to 8.4.0 2023-12-12 22:16:13 +00:00
Ron Rennick d1498d45f2
update woo-gutenberg-products-block text domain to woocommerce in src folder (#42718)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-12-12 14:13:15 -08:00
Ron Rennick 60b445510d
update woo-gutenberg-products-block text domain to woocommerce in patterns and templates folders (#42720)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-12-12 14:13:03 -08:00
Ron Rennick 4fddface47
update text domain in plugins/woocommerce-blocks (#42717)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-12-12 14:12:36 -08:00
Ron Rennick a2812bdb59
remove PHP related scripts from blocks package.json (#42722)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-12-12 13:46:53 -08:00
Paul Sealock 5b393e78c6
Shipping Settings: Add a back button to method configuration screen (#41958) 2023-12-13 10:02:50 +13:00
Christopher Allford 4c4e89bc98
Enhance Build Watching (#42712)
Similarly to `build:project`, a new `watch:build:project`
script will watch individual projects for changes. The
`watch:build` script has been updated so that it does
a deep watch in the same vein as `build`. We have also
hooked up tool-level watching for faster performance.
2023-12-12 12:43:48 -08:00
Ron Rennick 76b4f39116
remove woocommerce-blocks from text domain substitution (#42017)
* remove woocommerce-blocks from text domain substitution

* restore prior art commented out

* add internal-js-tests composer.json

* covert internal-js-tests/changelog to a folder

* update blocks composer.json

* fix path, add composer install to changelog script

* add woo-ai changelog

* add composer install to beta tester changelog script

* add composer.json to woocommerce-admin

* add changelog folder & file to woocommerce-admin

* add composer install to woocommerce changelog script

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-12-12 15:38:20 -04:00
Christopher Allford 4e89debd0c
Fix Jest Preset (#42707)
When using a preset we need to keep in mind that the transformation
paths are relative to the preset, not the consuming package. We get
around this by using `<rootDir>` in the transform paths. However,
doing this means fixing the root directory for all of the jest tests.
This keeps the tests working in the same way but lets us fix the
preset too.
2023-12-12 09:58:13 -08:00
Jonathan Lane 7692fa5430
Fix flaky tests, failures from Blocks merge (#41815)
* Clean up created pages and posts

* Move tax tests so that they run last

* Improve locators

* Changelog

* Improve locators

* Improve locator on heading

* Change assertions to look for alert text

* Change assertion to look for text

* Update locators

* Update locator

* Update alternate elements

* Specify first order amount

* Update locator

* Changelog

* Increase reliability of checkout test

* Update a few locators

* Remove .slice()

* Add some console output to checkout test

* Make command palette tests Mac-compatible

* Added update for why download test flaky

* Improvements to checkout tax tests

* Add changelog

* Assert on range of prices

* Improve the regex for matching the price

* Changelog

* Clean up locator

* Unskip analytics tests

* Remove logging statements

* Update variations selector

* Remove comment

* Fix disable block tests

* Remove skipped legacy coupon page test

* Account for multiple products in test

* Cleaned up some console.logs

* Added specificity to locator

* Better price parsing

* Fix cart block shipping test

* Fix syntax error

* Update Playwright, fix logic error

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-12-12 07:56:56 -08:00
Leif Singer 0a0351aa6a
Logging: Prevent fatal type error when submitting empty search (#41847) 2023-12-12 12:36:21 +01:00
Christopher Allford 1c635cda6f
Optimized `wireit` Fingerprinting File Inputs (#42684)
Having an explicit `"files"` definition will allow us to fingerprint
dependencies in `wireit` more granularly. This avoids problems
that can be caused by different source files and directories that
trigger a rebuild in a dependee before a dependent finishes.
2023-12-11 16:21:35 -08:00
Corey McKrill 44ab680fe1
Logging: Fix pagination and filtering on DB log list table (#41870)
Fixes some issues where pagination and filters were not persisting in the DB log list table view after running a bulk action. Also adds a way to customize the number of log entries shown per page.

Fixes #39359
2023-12-11 12:27:26 -08:00
Christopher Allford e718975963
Fixed WooCommerce Docs Build Errors (#42000) 2023-12-10 22:39:00 -08:00
Christopher Allford 05d398c8d3 Fixed Blocks CSS Linting 2023-12-10 14:11:32 -08:00
Christopher Allford 6360c38eb8 Fixed Failing PHPUnit Test 2023-12-10 13:26:17 -08:00
Christopher Allford ea6a39dbc1 Fixed Blocks PNPM `run` & Env Var Usage 2023-12-10 12:44:44 -08:00
Christopher Allford 245fbadc51 Added Missing Blocks Build Output 2023-12-10 12:32:29 -08:00
Christopher Allford e580d27afd Added Missing Block Dependencies 2023-12-10 12:24:20 -08:00
Christopher Allford a8fd8fafa5 Applied Linting Fixes 2023-12-09 23:32:45 -08:00
Christopher Allford 87b5ee54eb Removed Blocks PHP Linting 2023-12-09 22:41:21 -08:00
Christopher Allford dc5aa18f35 Wireit Added: `@woocommerce/block-library` 2023-12-09 22:35:11 -08:00
Christopher Allford 96af36bf1f Locked `wireit` Version 2023-12-09 21:56:12 -08:00
Christopher Allford 403e2919ee Merge branch 'trunk' into refactor/task-infrastructure 2023-12-09 21:51:43 -08:00
Christopher Allford 5ff9c477aa Updated Documentation 2023-12-09 21:42:59 -08:00
Christopher Allford 4c0cc805dc Removed Old Docs Links 2023-12-09 21:40:52 -08:00
Christopher Allford 6d57e59ad4 Corrected Blocks Readme 2023-12-09 21:39:19 -08:00
Christopher Allford b4fd0c3b7b Fixed Blocks INI File Path 2023-12-09 21:33:34 -08:00
Christopher Allford e34361695d Fixed Image Asset Paths 2023-12-09 21:26:49 -08:00
Christopher Allford cf357e809b Fixed Blocks Asset Constant Path 2023-12-09 21:20:21 -08:00
Christopher Allford 25d42b0c05 Fixed Blocks Asset Paths 2023-12-09 21:15:57 -08:00
Christopher Allford 386d0db969 Fixed Blocks Dependency Check
Since we've merged it into WooCommerce Core there's nothing for us
to bother checking it against.
2023-12-09 21:03:34 -08:00
Christopher Allford fa5f7046dd Fixed Blocks Plugin Paths 2023-12-09 21:02:46 -08:00
Christopher Allford 389828ad7e Fixed Blocks Autoloads 2023-12-09 20:42:32 -08:00
Christopher Allford 8b6036a30e Changed Blocks Build Output 2023-12-09 18:18:25 -08:00
Christopher Allford 0514069d7b Added Missing Blocks Dependencies 2023-12-09 18:14:26 -08:00
Christopher Allford d06cd2f729 Added Missing PHPUnit Dependencies 2023-12-09 16:18:17 -08:00
Christopher Allford d443e92f23 Renamed Shortcode Assets "Classic" 2023-12-09 15:37:13 -08:00
Christopher Allford 4d0cde4b4b Lock File Update 2023-12-09 15:35:55 -08:00
Christopher Allford d244662669 Synchronized Dependencies 2023-12-09 14:40:16 -08:00
Christopher Allford fa011a431b Removed Unnecessary `run` From `pnpm` 2023-12-09 14:36:22 -08:00
Christopher Allford e9484c33f4 Removed Unnecessary `run` Usage
Since `pnpm` defaults to `run` unless a built-in
command exists we don't really need to use `run`.
2023-12-09 14:31:56 -08:00
Christopher Allford 1e4d55b36a Updated Documentation 2023-12-09 14:30:29 -08:00
Christopher Allford 5200c2e97f Change Asset Build Outputs
Wireit doesn't allow us to have build outputs in a directory outside
of the package. We can get around this by having a build step in
WooCommerce that copies the files from the output directories.
2023-12-09 14:27:30 -08:00
Christopher Allford d015950e86 Wireit Dependencies Set 2023-12-09 14:24:51 -08:00
Christopher Allford 3d79d5f204 Removed Turbo References 2023-12-09 14:22:04 -08:00
Christopher Allford 92e3d5fefb Added Wireit Commands to WooCommerce
There's quite a bit of work needed in this file but
I'll come back to that later when I can review it all
in more detail.
2023-12-09 14:17:11 -08:00
Christopher Allford f9e6f3a3a4 Add Wireit: `@woocommerce/shortcode-assets` 2023-12-09 14:16:13 -08:00
Christopher Allford e729417335 Revised Test Command
We will never run all tests concurrently so this is better.
2023-12-09 14:14:47 -08:00
Christopher Allford 5a99b8e6a9 Add Wireit: `@woocommerce/admin-library` 2023-12-09 14:12:31 -08:00