Commit Graph

48962 Commits

Author SHA1 Message Date
Adp5067 4c164c3247
Make the option 'woocommerce_tracker_ua' load on demand. (#33274) 2022-06-10 08:55:10 +02:00
Paul Sealock 16a478eeb2
Extend cart checkout block package: Prep for publish (#33355) 2022-06-10 15:25:17 +12:00
Chi-Hsuan Huang 558e5e322e
Fix continue button is enabled when email is null in setup wizard (#33362)
* Fix continue button is enabled even when email is null in setup wizard

* Add changelog
2022-06-10 10:35:11 +08:00
Paul Sealock 7fcba06a62
Analyzer CLI: Allow commit hashes for comparisons (#33356) 2022-06-10 10:31:39 +12:00
Christopher Allford b7931409f2
Migrate From Nx to Turborepo (#33079)
This replaces all `nx` commands with `turbo` commands and removes Nx from the repository. All of the `project.json` files have been removed and any commands that broke with Turborepo have been adjusted.
2022-06-09 14:40:07 -07:00
Chi-Hsuan Huang a3d42be6b0
Fix setup wizard click button loading state (#33358)
* Fix setup wizard usage button loading state

* Add e2e tests for usage button loading state
2022-06-09 17:30:06 +08:00
Sakri Koskimies e80312eef0
Change attribute slug length requirement and add wc_create_attribute tests (#31795)
* Allow for 28-character attribute slugs
* Add wc_create_attribute tests
2022-06-09 10:51:38 +02:00
Ilyas Foo e3744709c7
Wrap product spotlight tour under ExPlat logic (#33361)
* Add experiment wrap

* Changelog

* Move experiment check to bottom to minimize explat calls
2022-06-09 16:21:28 +08:00
Néstor Soriano fe267f355e
Add a new ArrayUtil::select method (#33347)
This new method is syntactic sugar for array_map. It scans an array
of arrays and/or objects and selects one value from each using
an array key name, an object method, or an object property.
2022-06-09 08:40:40 +02:00
Néstor Soriano e822b97619
[COT] Add database transactions support for data synchronization (#33255)
* Add optional usage of database transactions for orders sync.

Includes a new setting in Advanced - Custom data stores to enable
or disable transactions usage and to select the transaction
isolation level.

* Improve the selection of data to be updated when syncing orders.

The SQL query that chooses records to be migrated to core tables
now explicitly excludes unchanged records based on the column mappings.

Also when syncing meta tables with single meta values, records for
which the value hasn't changed are now excluded from the update.

* Fix MetaToCustomTableMigrator to work with order addresses table.

* Add unit tests for db transactions on PostsToOrdersMigrationController

Also add the DynamicDecorator::call_original_method method
2022-06-09 08:39:56 +02:00
Chi-Hsuan Huang 04a763d389
Add product page spotlight tour (#33268)
* Add product-tour admin script

* Update class-wc-admin-pointers.php to show experimental product tour

* Remove unnecessary window.onload

* Replace add new button with Enable guided mode button for product editing

* Show tour when tutorial query = true

* Add logic to show new tour only when a user select the physical product template

* Update product tour last step button text

* Add auto-scroll effect

* Fix i18n text

* Use bottom-start placement and align the arrow to the left

* Update pnpm-lock.yaml

* Update product tour effects

* Add changelog

* Add doc comments & check for tour-kit

* Add focus elements to product tour and wait initial element for tour showup

* Use spotlight query param to toggle new product tour feature

* Update wait seconds

* Update border style for product description & short description when editor is focused

* Add experimental-product-tour feature flag

* Refactor product-tour and support html editor focus style

Co-authored-by: moon <moon.kyong@automattic.com>
2022-06-09 13:02:40 +08:00
Chi-Hsuan Huang 6858195510
Update webpack.config.js to ensure we use styles from build-style (#33357)
* Update webpack.config.js to ensure we use styles from build-style

* Add changelog
2022-06-09 10:45:36 +08:00
Paul Sealock c3fd7134cc
Analyzer: Turn on comments for database changes (#33224) 2022-06-09 09:25:49 +12:00
jonathansadowski 21e6eea3cc
Update ActionScheduler to 3.4.2 (#33351) 2022-06-08 14:23:57 -05:00
Chi-Hsuan Huang 5db5c8b110
Add tour kit component (#33229)
* Add tour-kit component

* Add @types/wordpress__viewport to @woocommerce/components devDeps

* Add tour-kit README.md

* Add primaryButtonText option to tour kit step meta

* Add changelog

* Remove unneeded style import

* Set position and z-index style for tour-kit

* Add disable primary button feature for tour kit

* Export TourKitTypes

* Update style-build config for @automattic/* packages

* Add @automattic/* deps for components

* Ignore fs in webpack.config.js

* Update tour-kit stories

* Add tour-kit tests

* Update tour-kit README.md

* Update tour-kit types

* Update webpack.config.js

* Update style.scss

* Add auto focus feature

* Update type doc
2022-06-08 17:16:31 +08:00
Paul Sealock be15a35038
Analyzer CLI: Add other schemas to scan (#33220)
* Add schema

* update to new filepath

* test

* Revert "test"

This reverts commit d05a731a46.

* remove unused import

* add products and orders scanning

* escape slashes

* save

* save

* save

* test

* save

* save

* better descriptions

* moar tests

* Revert "moar tests"

This reverts commit ad552db45b.

* remove test

* better doc blocks

* check port first

* stop wp-env after operation is done

* remove ProductAttributesLookup
2022-06-08 15:11:55 +12:00
Chi-Hsuan Huang 62313708aa
Add `tasklist_cancel_load_sample_products_click` event track for product task (#33327)
* Add tasklist_cancel_load_sample_products_click event track for product task

* Add changelog
2022-06-08 09:39:14 +08:00
jonathansadowski 7eb22eabde
Update code freeze script exit code on failure (#33340)
Update code freeze exit code
2022-06-07 18:13:18 -05:00
Néstor Soriano 6aa4b5cdae
Fix: error when creating products via REST API v1 (#33334)
* Fix root namespace indicator in parameter

For LookupDataStore::on_product_created_or_updated_via_rest_api.
This was preventing the v1 REST API endpoint for batch insert of
products from working.

Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2022-06-07 10:51:17 -07:00
jonathansadowski eba6df8299
Fix warning on WC Pay subscriptions page with unset submenu item (#33339)
* Fix warning on WC Pay subscriptions page with unset submenu item

* Add isset check before iterating over submenu in task list
2022-06-07 12:50:34 -05:00
jonathansadowski 77703fd7f2
Update changelogger validation to only affect PRs against trunk (#33214)
* Update changelogger validation to only affect PRs against trunk

* Fix syntax error in changelog workflow
2022-06-07 11:11:42 -05:00
Jorge A. Torres c3f7687feb
Add charset collation to COT database schema (#33210) 2022-06-07 16:45:00 +02:00
Chi-Hsuan Huang a2813267eb
Fix script version parameter for async chunks (#33332)
* Fix webpack script version parameter for JS chunks
* Fix webpack script version parameter for CSS chunks
2022-06-07 21:35:04 +08:00
Joshua T Flowers 17d9e8072d
Add create product actions in products data store (#33278)
* Add create product actions in products data store

* Add changelog entry

* Yield to actions in generator

* Add mutable properties type
2022-06-07 09:23:27 -04:00
Barry Hughes 1bca9327ac
Fixes for the WP CLI Updater (#33264)
* After running db update callbacks, update the `woocommerce_db_version` option.
* Remove dead code.
* Add tests for `wp wc update`.
2022-06-07 13:20:28 +02:00
Josh Betz f04e0761a6
Add individual analytics leaderboard endpoints (#33185)
Add individual analytics leaderboard endpoints

Register routes for each of the individual leaderboards.

These leaderboards can be pretty expensive to generate. If you only need
to data from one of them, it can be a pretty significant performance
boost to avoid generating all the leaderboards.
2022-06-06 07:48:30 -05:00
Joshua T Flowers 12625ae615
Add purchase task to experimental task lists (#33178)
* Add purchase task to experimental task lists

* Add changelog entry

* Add purchase header

* Update logic around purchase products list strings

* Add purchase illustration

* Fix up task title tests

* Handle PR feedback

* Fix theme title in purchase task
2022-06-06 07:58:34 -04:00
Deiva Magalhaes c4e068be3b
Product review page in WooCommerce Core (#32763)
Introduce a dedicated admin screen for better management of product reviews.

Co-authored-by: Fulvio Notarstefano <unfulvio@godaddy.com>
Co-authored-by: Adriano Castro <72993300+acastro1-godaddy@users.noreply.github.com>
Co-authored-by: Adriano Castro <adrianostanley@gmail.com>
Co-authored-by: Adriano Castro <acastro1@godaddy.com>
Co-authored-by: Ashley Gibson <agibson@godaddy.com>
Co-authored-by: Ashley Gibson <99189195+agibson-godaddy@users.noreply.github.com>
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2022-06-05 10:45:28 -07:00
Christopher Allford bb320a935a
Removed `@woocommerce/notices` Internal Prefix (#33283)
Since we're exposing the package in some form,
we cannot rename it since that would break backwards
compatibility.  This commit changes it back.
2022-06-03 16:05:26 -07:00
Moon 5a71268a1d
Remove WCA installation merge test (#33303)
* Remove unnecessary test

* Add changelog
2022-06-03 14:57:57 -07:00
jonathansadowski 35b58245af
Remove changelog file for cherry-picked PRs #33180 and #33300 (#33299)
* Remove changelog file for cherry-picked PR #33180

* Remove changelog file for cherry-picked PR #33300
2022-06-03 11:14:41 -05:00
Joep Schuurkes 7e54b8aea0
Add e2e tests to check shipping costs consistency in cart and checkout (#33208)
* Add e2e tests to check consistency in shipping costs for cart and checkout pages

Goal of these tests it to check if the cart and checkout pages are
consistent in calculuating shipping costs. Three tests added:
- shipping available to country with states
- shipping available to country without states
- no shipping available (fails, see issue #33205)

Reason to add these tests is PR #25916, which reverted PR #25128,
because the original PR worked for the cart page, but not for the
checkout page.

* Update e2e-core-tests changelog

* Skip failing e2e-core-test
2022-06-03 10:01:04 -06:00
Albert Juhé Lluveras 2b85008ae5
Fix broken design of Single Product template in block themes when product had no reviews or additional info (#33308)
Fix broken design of Single Product template in block themes when product had no reviews or additional info
2022-06-03 08:37:30 -07:00
Joshua T Flowers 21f7cea2b6
Add woo install timestamp to server experimental assignment requests (#33300)
* Add woo install timestamp to server experimental assignment requests

* Add changelog entry
2022-06-03 08:25:10 -04:00
Moon 29ddd17e68
Deprecate wcAdminAssetUrl and WC_ADMIN_IMAGES_FOLDER_URL (#33290)
* Fix incorrect URL for the wcAdminAssetUrl and deprecate both wcAdminAssetUrl and WC_ADMIN_IMAGES_FOLDER_URL

* Remove unused wcAdminAssetUrl var

* Remove use of wcAdminAssetUrl

* Add changelog

* Ignore hook PHPCS error -- they are pre-existing
2022-06-02 15:01:37 -07:00
Barry Hughes ea365f9f1a
Bump version number. (#33296) 2022-06-02 14:06:11 -05:00
Joshua T Flowers bec9e92b32
Add total payments volume rule processor for inbox notifications (#33192)
* Add method to get total sales for a timeframe

* Add total payments volume rule processor

* Use start and end dates for total sales method

* Add method to get start and end dates from timeframe

* Update processor rule to use timeframes

* Fix up method calls

* Add tests for timeframes

* Add tests around getting total sales by date

* Add changelog entry

* Use revenue query instead of custom query for total sales

* Update since tag on hook
2022-06-02 08:38:06 -04:00
Tung Du 7de6d18b2e
Fix: Twenty Twenty-Two integration (#32840)
* fix: Twenty Twenty-Two integration

* fix the width for checkout page. remove unnecessary account page width style

* add changelog entry
2022-06-02 11:04:27 +01:00
Chi-Hsuan Huang 5d076cc7d4
Fix obw free extension rules for the marketing task with php 8 (#33291)
* Fix obw free extensions api for marketing task with php8

* Add changelog

* Fix wcpay cbd rule
2022-06-02 13:13:44 +08:00
Hugo Derre c0619dc597
Add : "name" and "id" attributes of input html tags can now be different in wc-admin-settings (#32728)
Support specifying settings fields where the name and IDs can be different.
2022-06-01 15:16:23 -07:00
Fernando be041e0d38
Add/edit products: add new Tracks props (#33177)
* Add props to `product_add_publish

* Add props to `product_update`

* Add changelog

* Add validation to description prop

* Add validation to purchase_note

* Add validation to short_description

* Removed debugger

* Fix `get_dimensions`

* Add validation to upsells

* Changed `cross-sells` and `upsells` checks

* Fix description tracking

* Fix `description_value`

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-06-01 14:44:18 -03:00
louwie17 e02bdd98a0
Remove order/product count from wcSettings (#33064)
* Remove orderCount and publishedProductCount setting and make use of data stores

* Add test

* Add changelog

* Make use of orders data store instead of items data store

* Add users param to reports customers API params to allow filtering by user_id

* Fix invalidateResolution call that was misspelled
2022-06-01 14:15:09 -03:00
Joel Thiessen ddafa8e380
Tasks chaining side panel (#33124) 2022-06-01 10:10:20 -07:00
Alejandro López Ariza ea25e2c5b2
Added new tests to cover editing product variations in the Product Edit page. (#32722) 2022-06-01 09:36:44 -06:00
Roy Ho deed99313a
Remove unused contributors script (#33239)
* Remove unused contributors script

* Add changelog entry
2022-06-01 05:43:54 -07:00
Christopher Allford 112b9ac67a
Prefixed Private JS Packages (#33218)
In order to ease the identification of private packages within the monorepo, this adds an `internal-` prefix to all of the current private packages. This makes it immediately clear when reviewing `packages/js` what is and isn't a private package.
2022-05-31 15:42:00 -07:00
rodelgc 541abd9178
REP: Post daily smoke test report on Slack (#33203)
* Separate job for api test

* Remove unnecessary comment

* Use ubuntu 20.04 in job "publish-test-report"

* Simplify syntax in "if" condition

* Temporarily add push trigger for testing

* Temporarily disable running jest e2e tests for testing

* Remove unnecessary OR operator

* try: disable certain jobs for testing

* try: run 'hello' api test for testing

* Implement timeout override in API tests

* Allow workflow to override timeout of api tests

* Correct parsing of timeout override

* try: temporarily disable e2e job

* try: make api test verbose for troubleshooting

* try: temporarily disable some install steps for testing

* Correct smoke test env vars

* try: run all api tests

* Re-enable install-build steps

* Correct smoke test env var values

* Temporarily disable running all e2e tests after WC upgrade

* Remove unnecessary flag for daily smoke test runs

* Use different workflow for publishing daily smoke test report

* Use env vars instead of github expressions in accessing job outputs

* Correct multiline syntax

* Correct api_artifact input value

* Take only the first line of commit message

* Correct passing of input value

* Re-enable jobs before submitting for review

* Separate job for api test

* Remove unnecessary comment

* Use ubuntu 20.04 in job "publish-test-report"

* Simplify syntax in "if" condition

* Temporarily add push trigger for testing

* Temporarily disable running jest e2e tests for testing

* Remove unnecessary OR operator

* try: disable certain jobs for testing

* try: run 'hello' api test for testing

* Implement timeout override in API tests

* Allow workflow to override timeout of api tests

* Correct parsing of timeout override

* try: temporarily disable e2e job

* try: make api test verbose for troubleshooting

* try: temporarily disable some install steps for testing

* Correct smoke test env vars

* try: run all api tests

* Re-enable install-build steps

* Correct smoke test env var values

* Temporarily disable running all e2e tests after WC upgrade

* Remove unnecessary flag for daily smoke test runs

* Use different workflow for publishing daily smoke test report

* Use env vars instead of github expressions in accessing job outputs

* Correct multiline syntax

* Correct api_artifact input value

* Take only the first line of commit message

* Correct passing of input value

* Re-enable jobs before submitting for review

* Add push trigger for final testing

* Re-enable e2e tests, remove push trigger before merge

* Fix spacing

* Correct slack channel id
2022-05-31 12:57:04 -06:00
louwie17 c0999d4cf8
Add inbox WP admin link support for remote inbox notifications (#33237)
* Add support for admin url in remote inbox notifications

* Add unit tests for the spec runner action url

* Add changelog
2022-05-31 13:32:13 -03:00
Joshua T Flowers 7590663f3b
Remove the navigation nudge note (#33241)
* Remove the navigation nudge note

* Add changelog entry
2022-05-31 12:09:40 -04:00
Roy Ho b0914e5531
Increase timeout limits for workflows (#33272) 2022-05-31 07:58:54 -07:00