Commit Graph

9030 Commits

Author SHA1 Message Date
Paul Sealock c70e9e1333 Update wp-scripts 2022-06-07 15:33:20 +12:00
Paul Sealock 6ded9053b6 Move admin tester folders to root 2022-06-07 15:18:37 +12:00
Paul Sealock 54c847abb6 Copy git ignores to beta-tester 2022-06-07 15:14:21 +12:00
Paul Sealock dd712f4911 Copy eslint ignores to beta-tester 2022-06-07 15:13:14 +12:00
Paul Sealock bedd27a2eb Declare and install beta-tester dependencies 2022-06-07 15:10:36 +12:00
Paul Sealock 87005ff9ba Move beta tester temp files to Beta Tester plugin 2022-06-07 14:53:01 +12: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
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
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
Chi-Hsuan Huang cad762197b
Add "built by Woo" label to Pinterest (#33270)
* Set is_built_by_wc to true for pinterest

* Add changelog
2022-05-31 16:46:36 +08:00
Chi-Hsuan Huang 822b4538ad
Update Tax task title (#33269)
Update the tax task title to "Set up tax rates"
2022-05-31 16:45:33 +08:00
Viktor Szépe 983a6cab96
Update required WP version (#33246)
See https://github.com/woocommerce/woocommerce/blob/trunk/plugins/woocommerce/composer.json#L17
2022-05-30 16:12:59 -05:00
Luigi Teschio 9a4f1d93e4
Add check for post_types key #33179 (#33180)
Add check for post_types key
2022-05-30 11:30:45 -07:00
louwie17 61d9d0043f
Add initial tracking for categories, tags, and attribute product pages (#33118)
* Add initial tracking for categories, tracks, and attribute product pages

* Update list action tracks that add new items without page refresh

* Add changelog

* Add extra category tracks

* Rename constant for add a new tag button

* Remove unneeded props from track
2022-05-30 13:14:25 -03:00
louwie17 574e00b6d5
Add/32676 category and tag tracks within products screen (#33121)
* Add logs for the attributes and tags on the product page

* Only trigger attributes_add on product screen when user hits save

* Add extra props to attribute add track

* Add tags delete track and fix count of tags add track

* Update use of wp_localize_script
2022-05-30 10:06:34 -03:00
RJ b051ed88db
Update react-router-dom to v6 for woocommerce-admin (#33156) 2022-05-30 14:51:33 +08:00
erikdemarco d6f2848d8c
Add new filter to product archive description (#31958)
Add new filter to product archive description
2022-05-27 13:31:13 -07:00
Ninos Ego c821ebdc0a
Fixed: Don't show placeholder on transparent product thumbnails (#30959)
Fixed: Don't show placeholder on transparent product thumbnails
2022-05-27 13:26:39 -07:00
jonathansadowski e5bd98dc36
Remove changelog files for PRs cherry-picked into 6.6-RC1 (#33244) 2022-05-27 15:23:40 -05:00
Ian Forrest 13f4e1572a
Add role="presentation" to table within add-to-cart form. (#33123)
Add table role="presentation" for an accessibility enhancement.
2022-05-27 12:58:38 -07:00
Ilyas Foo b85dca4308
Fix unresponsive clicks on product task card elements (#33235)
* Fix clicking on borders for product task card elements

* Changelog
2022-05-27 13:04:17 -05:00
Fernando cb2c09fad7
Fix completed card button (#33238)
* Fix completed card button

* Update sectioned task list to use onboarding data store

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
2022-05-27 12:41:16 -04:00
RJ 0f0b2d5064
Cleanup and fix translation path changes (#33226)
Cleanup translation path changes

- removed temporary codepath since translation paths have been updated
2022-05-27 16:57:43 +08:00
Ilyas Foo 368d8ac4fc
TimeInterval test fix expected 5 weeks instead of 6 (#33227)
* Fix expected 5 weeks instead of 6

* Changelog
2022-05-27 15:08:40 +08:00
Néstor Soriano 64c6803640
Improve unit testing infrastructure (#33140)
* Add infrastructure for mocking globals in unit tests.

- 'get_global' method in LegacyProxy, MockableLegacyProxy and WC().
- 'register_global_mocks' method in MockableLegacyProxy.
- 'register_legacy_proxy_global_mocks' method in WC_Unit_Test_Case.

* Add the DynamicDecorator class, and unit tests for it.

* Add the StringUtil::contains method

* Add unit tests for error logging on PostsToOrdersMigrationController

* Update README file to mention improvements in unit testing infrastructure

- Mention the mechanism to mock globals using the LegacyProxy
- Mention the code hacker and the DynamicDecorator

* Add changelog file
2022-05-27 11:43:31 +05:30
Ilyas Foo ca4e3606b1
Fix dashboard and analytics crashing (#33206)
* Set timezone before calling get_weekstartend and after to preserve original timezone

* Add test for timezone check

* Update calculation to be timezone agnostic and add tests

* Changelog
2022-05-27 10:08:46 +08:00
Chi-Hsuan Huang 4a6c6e739c
Update woocommerce-admin `test:watch` command (#33202)
* Update woocommerce-admin test:watch command

Only watch admin ./client folder

* Add changelog
2022-05-27 10:08:34 +08:00
Matt Harrison 3ac62945c1
Allow filtering of cookie flags, which enables setting of samesite (#33219)
Allow filtering of cookie flags, which enables setting of `samesite`.

* Break out filter so the same filter can be used for any version of PHP.
* Add docblocks and other linting fixes; add changelog.

Props: David Anderson <DavidAnderson684@users.noreply.github.com>
2022-05-26 16:40:16 -07:00
Kathy 8edc32c7fb
Cleanup twentytwenty notice styles. Closes #29529. (#33182)
Cleanup twentytwenty notice notices. Closes #29529.

* Increase width of border for notices
* Make notice buttons black to provide sufficient contrast
* Add changelog.
2022-05-26 16:15:49 -07:00
Joshua T Flowers e4824b9660
Add tracks to new product and edit product screens (#33120)
* Move product list tracks to seperate file

* Change product list tracks to TS

* Check init of tracks on client-side

* Add new product tracks

* Add product screen tracks

* Add product edit tracks

* Localize product screen variable

* Add changelog entry

* Handle PR feedback

* Track date changes on edit
2022-05-26 16:56:22 -04:00
Joshua T Flowers 2294082869
Fix report days calculation to account for DST (#33036)
* Fix report days calculation to account for DST

* Add tests around month with DST

* Update tests to use EST timezone
2022-05-26 16:55:54 -04:00
jonathansadowski bf02f377e6
Prepare trunk for 6.7 (#33215)
* Prepare trunk for 6.7

* Update composer.json and package.json for 6.7
2022-05-26 15:49:37 -05:00
jonathansadowski 0c619cbafe
Remove empty changelog file for updating minimum wp version (#33213) 2022-05-26 15:02:39 -05:00
Paul Sealock 37905dd178
Analyzer CLI: Add Database scanning (#33084) 2022-05-27 07:52:39 +12:00
jonathansadowski 66633dfe1a
Remove changelog files for cherry-picked PRs #32940 and #33171 (#33209) 2022-05-26 12:25:22 -05:00
jonathansadowski cd520c0e53
Update minimum wp version in woocommerce.php (#33194)
* Update minimum wp version

* Add changelog file for minimum wp version update

* Update required WP version in readme.txt
2022-05-26 08:39:24 -05:00
Chi-Hsuan Huang 13fe9b4970
Merge pull request #32644 from woocommerce/update/reports-datastore-date-column
Replace the date_created column name with a class property in the analytics DataStore
2022-05-26 09:24:15 +08:00
Jonathan Lane f70afccec9
Merge pull request #33139 from woocommerce/e2e/rep-playwright-feature-flag
Run Playwright tests behind feature flag
2022-05-25 14:55:23 -07:00
“Chris 58abc685cb Add changelog 2022-05-25 16:36:22 +03:00
Christos Lilitsas d057225e07
Add default value to `db_datetime_format` for back compatibility
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2022-05-25 16:26:20 +03:00
louwie17 ddb3239a1c
Merge pull request #33163 from woocommerce/fix/leaderboard-menu-styling
Fix the styling of the frame in the Leaderboard section of Analytics.
2022-05-25 10:14:32 -03:00
AnnaMag 165d3b659a Add changelog 2022-05-25 14:16:20 +02:00
Chi-Hsuan Huang 0240a29eb6
Merge pull request #33168 from woocommerce/dev/migrate-woo-data-options-to-ts
Migrate `@woocommerce/data` options store to TS
2022-05-25 13:20:07 +08:00
Jonathan Sadowski 4ece2489db Add changelog entry for update of Action Scheduler to 3.4.1 2022-05-24 15:48:02 -05:00
Jonathan Sadowski 7fbb8ba1d9 Update Action Scheduler to 3.4.1 2022-05-24 15:42:14 -05:00
Joel Thiessen 5f56ecb9b0
Suppressing warnings for malformed metadata in product template downloads #32971 #32971 2022-05-24 11:12:02 -07:00
jonathansadowski 22375b34f4
Merge pull request #32940 from woocommerce/update/woocommerce-blocks-7.6.0
Update WooCommerce Blocks package to 7.6.0
2022-05-24 09:25:51 -05:00
Chi-Hsuan Huang 4d9e07bbd4 Add changelogs 2022-05-24 21:41:36 +08:00
Chi-Hsuan Huang 55dfa78ebb Fix type errors in ./client after migrating options store to TS 2022-05-24 21:41:36 +08:00
Peter Fabian 59f6ffa027
Merge pull request #33130 from woocommerce/add/schema-output
Add script to get db schema from CLI
2022-05-24 15:20:56 +02:00
Joshua T Flowers 97eecfdcc4
Use term ID to query category IDs in analytics (#33164)
* Use term ID to query category IDs in analytics

* Add changelog entry
2022-05-24 09:10:58 -04:00
Chi-Hsuan Huang 773ab10c61 Add translator domain to texts 2022-05-24 17:24:54 +08:00
Chi-Hsuan Huang 1b8e90b529 Remove unnecessary completion time track 2022-05-24 17:09:53 +08:00
Chi-Hsuan Huang 8ff2c334d7 Fix missing translation domain 2022-05-24 16:56:16 +08:00
Chi-Hsuan Huang 3613ccb23e Add changelog 2022-05-24 15:43:29 +08:00
Chi-Hsuan Huang e2cc91dd60 Add confirmation dialog before loading the sample products 2022-05-24 15:43:27 +08:00
Chi-Hsuan Huang 86553fbe1f Add load sample product confirm modal 2022-05-24 15:00:17 +08:00
Ilyas Foo 78f96109da
Fix PHP notice when `woocommerce_admin_disabled` filter is used (#33154)
* Add array key check

* Changelog
2022-05-24 12:14:28 +08:00
Paul Sealock 3b51144011 add wc- namespace 2022-05-24 14:22:03 +12:00
AnnaMag af7f738704 Fix the styling of the frame in the Leaderboard section of Analytics. 2022-05-23 17:30:47 +02:00
Chi-Hsuan Huang c83dedd849
Merge pull request #33153 from woocommerce/dev/33132-migrate-woo-onboarding-to-ts
Migrate `@woocmmerce/onboarding` to TS
2022-05-23 18:33:00 +08:00
Néstor Soriano 484e790d99
Merge pull request #32864 from woocommerce/add/32385-cot-admin-list-table
Admin list table [COT]
2022-05-23 12:05:52 +02:00
Néstor Soriano 7c9eddf251
Merge pull request #26965 from RiLaRos/master
Update add precision function when pass empty string parameter
2022-05-23 09:13:49 +02:00
Chi-Hsuan Huang 637ea244ea Add changelog 2022-05-23 13:28:31 +08:00
Chi-Hsuan Huang 485d858fc3 Remove onboarding task @ts-expect-error and fix related type errors 2022-05-23 13:27:11 +08:00
Jonathan Sadowski d2eefc4467 Remove pending 6.6 changelog files 2022-05-20 13:58:09 -05:00
barryhughes c9ebffda40 Improve menu integration (classic as well as the new WC Admin nav feature). 2022-05-20 13:52:40 +00:00
barryhughes 715544f811 Resolve conflicts. 2022-05-20 13:51:41 +00:00
barryhughes b30bd2a85a Tighten baseline order query to only fetch regular orders (not refunds). 2022-05-20 13:44:50 +00:00
barryhughes 9f58514350 Add changelog. 2022-05-20 13:44:50 +00:00
barryhughes e1c771337f Add enhanced (Marketplace-ready) 'no results' view. 2022-05-20 13:44:50 +00:00
barryhughes 6dde512e79 Do not remove WC Admin nav from existing CPT admin list table. 2022-05-20 13:44:50 +00:00
barryhughes 1aa6265544 Tidy. 2022-05-20 13:44:50 +00:00
barryhughes 0ecffb416f Tweak logic responsible for registering COT admin list table. 2022-05-20 13:44:50 +00:00
barryhughes 8b30cf2639 Connect new list table with WC Admin nav. 2022-05-20 13:44:50 +00:00
barryhughes e27b89a7e8 Align column names with original WP List Table (for better back-compat). 2022-05-20 13:44:50 +00:00
barryhughes 77197d3f85 Retain state when filtering. 2022-05-20 13:44:49 +00:00
barryhughes aaefb3b5d5 Per existing order admin list, hide various columns by default. 2022-05-20 13:44:49 +00:00
barryhughes a954aae826 Utilize existing CSS, class-names, JS. 2022-05-20 13:44:49 +00:00
barryhughes 11c2e0c061 Table pagination. 2022-05-20 13:44:49 +00:00
barryhughes 0eabe18b79 Add (dates, customers) filters. 2022-05-20 13:44:49 +00:00
barryhughes 8d44bfb9eb Add bulk actions dropdown. 2022-05-20 13:44:49 +00:00
barryhughes bde166db3d Add table views. 2022-05-20 13:44:49 +00:00
barryhughes e07b0a3b10 Address and reduce code duplication across list table implementations. 2022-05-20 13:44:49 +00:00
barryhughes f95834f095 Create a baseline admin list table implementation that is data-store agnostic. 2022-05-20 13:44:49 +00:00
vedanshujain e3d0de1065 Removed unused import. 2022-05-20 16:36:56 +05:30
vedanshujain ef03e5e0dd Add changelog. 2022-05-20 16:34:51 +05:30
vedanshujain b9f1a05c85 Add methods and fixes that were removed due to merge conflicts. 2022-05-20 15:42:38 +05:30
vedanshujain 781f97242d Remove back-compat support for _date_paid and _date_complete as it conflicts with verify data logic. 2022-05-20 15:41:02 +05:30
Rodel 4da670cc82 Add patch changelog to ignore e2e changes 2022-05-20 16:16:55 +08:00
Rodel 32604a0acc Update html output folder location 2022-05-20 16:02:43 +08:00
Rodel 3a6a546daa Update base url in playwright config 2022-05-20 15:58:54 +08:00
Néstor Soriano 4f76d76d1f
Add changelog file. 2022-05-20 09:55:58 +02:00
Rodel 381c5507da Add allure-playwright config 2022-05-20 15:33:42 +08:00
Rodel 7b66d06c91 Checkout e2e folder from add/playwright-e2e branch 2022-05-20 15:30:28 +08:00
Rodel f79c684c4b Install allure-playwright dependency 2022-05-20 15:26:48 +08:00
Rodel 0429f2abfc Install @woocommerce/woocommerce-rest-api dependency 2022-05-20 15:26:19 +08:00
Rodel 29afe4971e Install playwright dependency 2022-05-20 15:24:46 +08:00
Rodel 86d604756c Checkout .eslintrc.js from add/playwright-e2e 2022-05-20 15:16:50 +08:00
Nestor Soriano 59a6a54891
Add changelog file for #33034 2022-05-20 09:09:14 +02:00
Rodel 99796df9d4 Ignore Allure directories globally 2022-05-20 15:08:01 +08:00
Vedanshu Jain c771121459
Merge pull request #33034 from woocommerce/add/logging_for_posts_to_cot_migration
[COT] Log errors during the posts to orders table migrations
2022-05-20 12:32:00 +05:30
Paul Sealock 71252cac9b changelog 2022-05-20 14:16:06 +12:00
Moon 0b35ad678d
Merge pull request #33027 from woocommerce/update/update-history-package
Update history package to the latest 5.3.0 version
2022-05-19 18:27:12 -07:00
Paul Sealock 7cfdbe4922 add get-schema 2022-05-20 11:48:27 +12:00
Joel T 9e62fb58b8 Updating references to old album-1 image 2022-05-19 16:05:23 -07:00
Paul Sealock 373ad382b5
Analyzer CLI: Refactor main file (#33081) 2022-05-20 10:02:40 +12:00
moon 29fcbfaf68 Fix the failing test 2022-05-19 15:02:04 -07:00
Barry Hughes e62a338826
Merge pull request #31417 from woocommerce/fix/add_filter_to_wc_create_refund
Introduce a filter to control whether an order is partially refunded in `wc_create_refund`
2022-05-19 12:18:11 -07:00
barryhughes 277e3635ab Update @version to 6.7.0. 2022-05-19 18:36:29 +00:00
Jorge A. Torres f64dc181fd
Merge pull request #32953 from Pross/patch-1
Make sure variable is set in `system_status` endpoint.
2022-05-19 17:43:56 +01:00
Sonhui 1376f8acda
Hide post code for Belize, and make state optional (#32731) 2022-05-19 16:01:24 +01:00
“Chris d569cf463a Add docblock 2022-05-19 17:41:09 +03:00
Jorge A. Torres d2d8efa7fc
Merge pull request #32857 from woocommerce/cot/backfill
Implement backfill for update posts records from COT
2022-05-19 15:00:15 +01:00
Adrian Duffell d1fdc2aecc
Update Icon for TikTok for WooCommerce extension (#33112)
* Add tiktok onboarding icon

* Change tiktok extension icon to normal logo

* Remove tiktok for business icon

* Add changelog
2022-05-19 20:00:35 +08:00
Nestor Soriano 71e0fd92d6
Move the base table migration classes outside CustomOrderTable directory
These classes are generic and don't depend on the custom orders table
functionality, so they are moved from src/Database/Migrations/CustomOrderTable
to just src/Database/Migrations.
2022-05-19 10:26:59 +02:00
Nestor Soriano 469c5a1aea
Change references to "orders" to "entities" in generic table migrators 2022-05-19 09:48:04 +02:00
Nestor Soriano c4b498d13f
Remove the MigrationErrorLogger class as it's not used. 2022-05-19 09:43:41 +02:00
Nestor Soriano 9e42028c98
Add changelog file 2022-05-19 09:20:10 +02:00
Nestor Soriano dbbef8ff8a
Move the DatabaseUtil class to the proper directory
The class is in the Automattic\WooCommerce\Internal\Utilities namespace,
but it was wrongly placed in the src/Utilities directory. It has been
moved to usr/Internal/Utilities without changing the namespace, thus
no code changes are required.
2022-05-19 09:12:51 +02:00
Vedanshu Jain 5ab229d217
Merge pull request #32957 from woocommerce/add/experiment-subscriptions-admin-menu-1 2022-05-19 08:32:15 +05:30
James Allan 3cecb3d72c Introduce susbcriptions menu item slug constant 2022-05-19 11:14:32 +10:00
James Allan 3aa2294968 Use date created and status order filter for order eligiblity check
Using these two order properties instead of the paid_date field is more performance friendly
as both fields are in the wp-posts table - not in the post_meta table.

ref: 71e9657e52 (r875545984)
2022-05-19 10:42:53 +10:00
Chris Aprea 98e23a8156 Only add the inline script if the store is eligible for the experiment 2022-05-19 10:11:27 +10:00
Moon 9b7bf2cf16
Merge pull request #32974 from woocommerce/update/32410-deprecated-wca-classes-have-wca-versions
Use the core version for the @deprecated tags in WCA
2022-05-18 16:11:10 -07:00
Barry Hughes 2b6097535b
Merge pull request #33091 from DavidAnderson684/patch-8
Check results of calling WP_Filesystem()
2022-05-18 15:07:43 -07:00
barryhughes a642db3d41 Add changelog. 2022-05-18 21:38:34 +00:00
David Anderson dbd3c71ee8
Update plugins/woocommerce/includes/integrations/maxmind-geolocation/class-wc-integration-maxmind-geolocation.php
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2022-05-18 21:22:13 +00:00
barryhughes a1279e67c6 Switch to cast to coerce values into floats. 2022-05-18 20:43:38 +00:00
Barry Hughes 1ce91eb70f
Merge pull request #33078 from woocommerce/add/pay-for-order-express-checkout-action
Adding the action to the Pay for Order shortcode
2022-05-18 11:46:35 -07:00
Radoslav Georgiev 303e7e27a1 Adding available_gateways to the filter 2022-05-18 20:57:00 +03:00
Radoslav Georgiev 1c813ea3fb Adding a docblock to the order button filter as well 2022-05-18 18:16:25 +03:00
Radoslav Georgiev f73cbb6671 Adding a @since to the docblock comment. 2022-05-18 18:05:27 +03:00
David Anderson 01b248c8df
Check results of calling WP_Filesystem() 2022-05-18 10:36:48 +00:00
Ilyas Foo 045b9e6cf3
Fix nested link in products import task (#33088)
* Fix nested links by using onClick event instead

* Changelog
2022-05-18 17:57:25 +08:00
vedanshujain 7ff0ba8061 Applied coding standards. 2022-05-18 13:24:42 +05:30
RJ f637dd2bb7
Add: temporary workaround to add experiment metadata for task_view (#33052)
rigged a workaround to let products task report its experimental assignment
2022-05-18 15:24:48 +08:00
RJ 31922c1da9
Merge pull request #33083 from woocommerce/fix/broken-events-tracking-assignment-to-const
fix: broken event tracking due to assignment to const
2022-05-18 11:16:02 +08:00
Chi-Hsuan Huang 9a15f68f3f
Merge pull request #33068 from woocommerce/update/33062-subscriptions-product-type-only-in-the-us
Update add product task to only show "subscriptions" product type for stores in the US
2022-05-18 11:12:52 +08:00
RJChow b8bd4bb5ca fix: broken event tracking due to assignment to const 2022-05-18 10:28:27 +08:00
Chi-Hsuan Huang 3ba19b3ab5 Add changelog 2022-05-18 10:21:49 +08:00
Chi-Hsuan Huang 1a87301894 Fix payment settings banner tos link 2022-05-18 10:21:29 +08:00
Chi-Hsuan Huang c551477248 Hide subscription product type when store country is unknown 2022-05-18 10:18:57 +08:00
Chi-Hsuan Huang 103afc0c6d Add changelog 2022-05-18 10:15:45 +08:00
Chi-Hsuan Huang 017d8c2a80 Update product task to only show subscription product type for merchants in the US 2022-05-18 10:15:44 +08:00
Chi-Hsuan Huang 657e40ed98 Convert getProductTypes method to use object param 2022-05-18 10:15:17 +08:00
Chi-Hsuan Huang c8146d6c5d
Merge pull request #33071 from woocommerce/fix/33055-skip-payment-welcome-screen-for-wcpay-setup
Skip payment welcome screen for WCPay banner experiment
2022-05-18 10:07:00 +08:00
Chi-Hsuan Huang dc9b545a30
Merge pull request #33058 from woocommerce/add/view-more-product-type-track
Add view more product type click event track for the add product task
2022-05-18 09:51:49 +08:00
Chi-Hsuan Huang 29fe251bb1
Merge pull request #33030 from woocommerce/update/system-status-report
Report the status of admin items in SSR
2022-05-18 09:50:27 +08:00
James Allan 71e9657e52 Fix typo 2022-05-18 11:21:41 +10:00
James Allan 91669281ec Rename component class names with BEM standard names 2022-05-18 10:56:06 +10:00
Chris Aprea 0cd63cf130 Only register the the subscriptions page if tracking is allowed 2022-05-18 09:21:39 +10:00
Moon d066266fbf
Merge pull request #33023 from woocommerce/update/33022-update-explat-with-examples
Update ExPlat with more examples
2022-05-17 16:20:09 -07:00
louwie17 e822a4a7f4
Merge pull request #32538 from woocommerce/feature/32158_complete_task_list_card_with_feedback
Feature/32158 complete task list card with feedback
2022-05-17 17:39:14 -03:00
Radoslav Georgiev 2ae5d90088 Adding the changelog entry 2022-05-17 20:32:04 +03:00
Lourens Schep 23d64d0bc2 Rename showCustomerEffortScore prop 2022-05-17 14:25:06 -03:00
Radoslav Georgiev 3cb59ebc8f Adding the action to the Pay for Order shortcode 2022-05-17 20:24:24 +03:00
Joshua T Flowers 07b02fb858
Add filtered tracks properties to client-side tracks (#32690)
* Add filtered tracks properties to client-side tracks

* Add changelog entry

* Fix up tracks errors

* Update vars to const
2022-05-17 13:12:52 -04:00
Joshua T Flowers 0702433531
Add tracks to products list page (#32949)
* Add tracks to products list page

* Remove duplicate tracks

* Add changelog entry

* Check for fields before getting values

* Add bulk actions cancel button

* Check for element before binding event listener

* Check for search input before getting value
2022-05-17 11:52:44 -04:00
vedanshujain 2ca4b42846 Modify tests to skip reading meta_ids 2022-05-17 20:12:47 +05:30
vedanshujain ad30c61463 Multiple fixes for reading order data.
Some meta items cause issues when testing, such as having trailing zeros. This commit fixes, along with adding compatibility with WC < 2.6.
2022-05-17 20:10:40 +05:30
Lourens Schep 5494f4970d Renamed some of the variables to remove some ambiguity 2022-05-17 09:59:11 -03:00
Vedanshu Jain 58eaa73d39
Merge pull request #33051 from woocommerce/pr/32980
From PR 32980, Update IN PIN Code
2022-05-17 17:28:35 +05:30
vedanshujain 37a41423fe Add changelog. 2022-05-17 16:48:03 +05:30
vedanshujain 253e8424ea Add backfill method to support update post and postmeta data. 2022-05-17 16:47:59 +05:30
vedanshujain 22f81c9693 Add test for backfill from COT to wp_post and wp_postmeta. 2022-05-17 16:47:17 +05:30
Chi-Hsuan Huang 27ed682980 Add changelog 2022-05-17 17:40:59 +08:00
Chi-Hsuan Huang d4af17d3a3 Skip payment welcome screen for wc pay banner experiment 2022-05-17 17:40:59 +08:00
RJ b524b82816
Merge pull request #33047 from woocommerce/fix/wrap-import-products-under-experiment
Wrap product task import around experiment
2022-05-17 14:57:29 +08:00
vedanshujain ea1594bab9 Add changelog. 2022-05-17 11:40:49 +05:30
Chi-Hsuan Huang 902dcf3369 Check if woocommerce_admin_install_timestamp > 0 for SSR & remove extra space 2022-05-17 14:07:39 +08:00
Chi-Hsuan Huang 9bddfbb84e Add changelog 2022-05-17 13:58:33 +08:00
Chi-Hsuan Huang c4c1cc4da7 Add admin items to system status report 2022-05-17 13:58:33 +08:00
vedanshujain 2ad4a54e10 Merge branch 'trunk' into pr/32743 2022-05-17 11:26:38 +05:30
Chi-Hsuan Huang 9ff7f887d1 Add changelog 2022-05-17 13:06:55 +08:00
Chi-Hsuan Huang 2520781c7e Add tasklist_view_more_product_types_click track event for add product task 2022-05-17 13:06:55 +08:00
Moon c6d198723f
Merge pull request #33066 from woocommerce/update/33056-update-the-wcpay-description
Redirect users to the WC Pay connect page if the WC Pay is already installed
2022-05-16 20:17:29 -07:00
Chris Aprea 0afc9dd2de Merge branch 'trunk' into add/experiment-subscriptions-admin-menu-1 2022-05-17 13:12:21 +10:00
moon 285047fde8 Update the description and make the button to redirect the users to the WC Pay connect page when the WC Pay is already installed 2022-05-16 15:37:38 -07:00
moon 362e98489a Set icon width to 51px 2022-05-16 14:00:43 -07:00
Roy Ho 02ef6c534e
Merge pull request #33037 from woocommerce/prep/post-6.5.1
Update changelog to reflect 6.5.1 release
2022-05-16 12:49:30 -07:00
Tam Mullen e8740f8b73
Merge pull request #33044 from woocommerce/update/k6-merch-wc-home-assert
Updated assertion for k6 merchant wc home request
2022-05-16 17:50:52 +01:00
Vedanshu Jain 7c537b342c
Merge pull request #32577 from davefx/patch-14
Avoid exception when serializing context
2022-05-16 19:54:36 +05:30
Lourens Schep d1bf5c5719 Address the majority of the PR feedback 2022-05-16 10:03:46 -03:00
Chris Aprea 1fa3060697
Merge pull request #32958 from woocommerce/add/experiment-subscriptions-admin-menu-experiment-framework
Add experiment functionality to the WooCommerce → Subscriptions page
2022-05-16 22:31:22 +10:00
vedanshujain f830968c04 Add changelog. 2022-05-16 17:17:33 +05:30
vedanshujain 1eba660503 Merge branch 'trunk' into pr/32577 2022-05-16 17:06:22 +05:30
Néstor Soriano 4b0d5550ed
Merge branch 'trunk' into add/logging_for_posts_to_cot_migration 2022-05-16 12:53:13 +02:00
Vedanshu Jain 7c37c9187a
Merge pull request #32925 from woocommerce/issue/32843
Add `_recorded_sales` meta to COT
2022-05-16 16:04:14 +05:30
Nestor Soriano 33791e4fcd
Fix: MetaToMetaTableMigrator attempting to migrate empty datasets
That caused an invalid SQL query to throw an error.
2022-05-16 12:27:58 +02:00
rodelgc 6cda659980
Publish API test reports to GitHub Pages
- Added workflow to publish API tests
2022-05-16 17:59:40 +08:00
Chi-Hsuan Huang 03ba7bc794
Merge branch 'trunk' into add/32859-fashion-sample-products 2022-05-16 17:18:26 +08:00
Chi-Hsuan Huang 697eb185b1
Merge pull request #33049 from woocommerce/update/enable-feature-flags-for-product-task
Enable feature flags for add product task
2022-05-16 16:38:01 +08:00
Vedanshu Jain b8e2de8520
Merge pull request #32938 from woocommerce/cot/32917
Add CLI support to run migrations.
2022-05-16 12:34:15 +05:30
vedanshujain d5aa1a11ec Add changelog. 2022-05-16 12:24:06 +05:30
Chi-Hsuan Huang 213b987981 Update fashion sample product file 2022-05-16 14:53:46 +08:00
Roxanne S 05c1dade0c Update IN PIN Code
This fixes https://github.com/woocommerce/woocommerce/issues/32965
2022-05-16 12:21:40 +05:30
Chi-Hsuan Huang 71dabded8a Enable experimental-fashion-sample-products feature 2022-05-16 12:28:43 +08:00
Ilyas Foo 40a1eb5a01 Move out logic to be reusable 2022-05-16 12:00:09 +08:00
Chi-Hsuan Huang f5e4f1ade6 Add changelog 2022-05-16 11:40:28 +08:00
Chi-Hsuan Huang 88068a4cd0 Enable feature flags for add product task 2022-05-16 11:39:46 +08:00
Ilyas Foo 68c7de6c5e
Fix janky product task items on hover (#33043)
* Fix hover border size

* Changelog
2022-05-16 11:32:37 +08:00
Ilyas Foo 120029e078 Changelog 2022-05-16 10:59:46 +08:00
Moon 1ef9b2d2ba
Merge pull request #32850 from woocommerce/add/32778-tiktok-marketing-task
Add TikTok marketing task
2022-05-15 19:55:57 -07:00
Ilyas Foo ebec562699 Wrap product task import around experiment 2022-05-16 10:49:49 +08:00
Tam Mullen dff5d18c4c Updated assertion for admin.php?page=wc-admin k6 performance request 2022-05-15 22:13:52 +01:00
Tam Mullen cd0a491094 Updated assertion value for admin.php?page=wc-admin k6 performance request 2022-05-15 13:18:16 +01:00
moon fded54dd81 Revert back google ad image 2022-05-13 15:44:11 -07:00
Barry Hughes c08585ab69
Update fix-products-api-method-visibility
No changelog needed (place explanation in comment field)
2022-05-13 15:36:04 -07:00
moon 7d1c1b7894 Add . 2022-05-13 15:34:35 -07:00
moon b85f0b0aa7 Add Changelog 2022-05-13 15:33:47 -07:00
moon 3431c73046 Add tiktok marketing task to the default free extensions list 2022-05-13 15:26:00 -07:00
Corey McKrill 6229dfcb59
Add changelog 2022-05-13 15:24:42 -07:00
Corey McKrill 634c96d29c
Products API: revert get_objects method to `protected`
In 029257b I inadvertently changed the visibility of the get_objects
method to public. There is no need for its visibility to differ from
the parent class, and it ended up causing fatal errors for other classes
that are extending WC_REST_Products_Controller. This simply changes
the visibility back to protected.
2022-05-13 15:09:41 -07:00
roykho 1e7466ade3
Add changelog entry 2022-05-13 12:05:37 -07:00
roykho 9f41cf7609
Update changelog to reflect 6.5.1 release 2022-05-13 11:56:55 -07:00
Nestor Soriano 500db3cdba
Log all db errors and exceptions in the posts to orders migrators.
To achieve this:

- A new class is added, TableMigrator, containing basic in-memory
  error storage methods, and auxiliary db_query and db_get_result
  methods.
- MetaToCustomTableMigrator and MetaToMetaTableMigrator classes
  now extend TableMigrator and use these db_* methods.
- process_migration_batch_for_ids is now a method in TableMigrator,
  it just calls the abstract process_migration_batch_for_ids_core,
  catches exceptions, and returns an array of errors.
- PostsToOrdersMigrationController now logs all the errors returned
  by process_migration_batch_for_ids in all the migrator classes.
- New utility method: ArrayUtil::to_ranges_string
2022-05-13 16:29:55 +02:00
Nestor Soriano 087e8ecacf
Fix issues in error handling in the MetaToCustomTableMigrator class
There were some inconsistencies, such as trying to treat an error
array as a string, or accessing to a non-existing column from a
dataset retrieved from the db on error.
2022-05-13 16:25:03 +02:00
Nestor Soriano d0e3035cc8
Adjust visibility of methods in the orders table migrator classes.
Many methods were public/protected when they could be protected/private
instead. All methods are adjusted to the minimum visibility required
for the current implementation to work.

Also minor adjustments for phpcs, such as "ignore" comments.
2022-05-13 16:16:04 +02:00
Lourens Schep 780fbffc68 Fix merge conflict type issue 2022-05-13 10:29:21 -03:00
Lourens Schep 03cb7e5a42 Fix completed image display in two column layout 2022-05-13 10:29:21 -03:00
Lourens Schep fe1e814a41 Fix customer effort types and add timeout to thank you message 2022-05-13 10:29:21 -03:00
Lourens Schep b441a84d9d Keep score displayed if user cancels out of CES Modal 2022-05-13 10:29:21 -03:00
Lourens Schep 45dfda2b65 Move CES show logic to the back end, so there is no loading delay 2022-05-13 10:29:21 -03:00
Lourens Schep 4b27f831f7 Add CES submission 2022-05-13 10:29:21 -03:00
Lourens Schep 7aa37d609f Added new completed header and customer feedback component 2022-05-13 10:29:20 -03:00
vedanshujain 07977131e1 Address PR feedback - function name for readability, indentation etc. 2022-05-13 16:37:34 +05:30
vedanshujain 7b0564a44e Add support to migrate meta tables. 2022-05-13 16:37:34 +05:30
Vedanshu Jain ac4367f7ef Correct formatting for comment.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2022-05-13 16:37:33 +05:30
vedanshujain 07f9d2cd2a Rename count to count_unmigrated for better readability. 2022-05-13 16:37:33 +05:30
vedanshujain 71cc54522d Applied PR feedback. 2022-05-13 16:37:33 +05:30
vedanshujain ea29eb8c49 Increase batch size to 500 for faster processing. 2022-05-13 16:37:33 +05:30
vedanshujain 1722793c80 Add testing instructions link. 2022-05-13 16:37:33 +05:30
vedanshujain 05dae81030 Removed unused export. 2022-05-13 16:37:33 +05:30
vedanshujain 75f5528445 Addressed feedback comments. 2022-05-13 16:37:33 +05:30
vedanshujain 99a76bf7d4 Add verify command in CLI to verify migrated orders. 2022-05-13 16:37:33 +05:30
vedanshujain d2e6689407 More defensive checks for date_epoch data type. 2022-05-13 16:37:33 +05:30
vedanshujain 8c148e7e4b Use `+` to preserve order ID index. 2022-05-13 16:37:33 +05:30
vedanshujain 3578b02b0c Add function to verify migrate orders for COT migration. 2022-05-13 16:37:33 +05:30
vedanshujain 8876ddd5ca Add verification support to custom table migrators. 2022-05-13 16:37:33 +05:30
vedanshujain 31e5e08330 Add changelog. 2022-05-13 16:37:33 +05:30
vedanshujain 1750590822 Add CLI support to run migrations. 2022-05-13 16:37:33 +05:30
Ilyas Foo 1b0ee6f5da
Remove WCAdmin deactivation note (#33028)
* Add wc-admin-deactivate-plugin to list of obselete notes

* Changelog
2022-05-13 13:59:19 +08:00
RJ 2c5f47a91d
Merge pull request #32944 from woocommerce/add/tracks-experimental-products
Add tracks for experimental products page
2022-05-13 12:41:48 +08:00
Chi-Hsuan Huang 55884d841e Add changelog 2022-05-13 12:10:00 +08:00
Chi-Hsuan Huang 3d55bfb2be Add fashion sample products for product task 2022-05-13 12:10:00 +08:00
Chi-Hsuan Huang 12e3a2f27d Add a feature flag for fasion sample products 2022-05-13 12:10:00 +08:00
Chi-Hsuan Huang eb5ef8dfc6
Merge pull request #32973 from woocommerce/fix/32956-notice-on-empty-product-page
Fix notice on empty product page
2022-05-13 10:33:28 +08:00
moon 8adcae1072 Remove @types/history -- it is part of history 5.3.0 2022-05-12 18:34:13 -07:00
moon e40f73a555 Add changelog 2022-05-12 18:32:06 -07:00
moon aa7853edbd Update history package to the latest 5.3.0 version 2022-05-12 18:28:43 -07:00
RJChow f3cc00ff8b changelogs 2022-05-13 06:20:11 +08:00
RJChow 05cd1c30de Added tracks events to experimental products pages 2022-05-13 06:16:28 +08:00
roykho 7b0e30d852
Add changelog entry 2022-05-12 14:58:49 -07:00
roykho d69eeba36e
Bumping WP tested up to version to 6.0 2022-05-12 14:55:15 -07:00
moon f3035c65c7 Add changelog 2022-05-12 14:39:37 -07:00
moon aaf9282277 Add Experimental_Abtest usage 2022-05-12 14:34:41 -07:00
moon daeebfc622 Add comment for the hook 2022-05-12 14:17:05 -07:00
moon bf4d777704 Add changelog 2022-05-12 14:10:00 -07:00
Joel Thiessen cb8076966e
Adding badge to legacy admin menu to indicate remaining onboarding tasks 2022-05-12 12:29:45 -07:00
louwie17 f05d8959c9
Merge pull request #32981 from woocommerce/fix/32962_multisite_disable
Make sure we also disable WooCommerce Admin on a multi site
2022-05-12 15:59:16 -03:00
Lourens Schep efc11d7fe2 Add changelog 2022-05-12 13:31:19 -03:00
Peter Fabian d88d01a982
Merge pull request #32919 from YordanSoares/fix-broken-urls-unicode
Fix broken URLs of recommendations from Unicode
2022-05-12 15:21:52 +02:00
Lourens Schep 7d23a2b7c8 Make sure we also disable WooCommerce Admin on a multi site 2022-05-12 10:06:25 -03:00
Chi-Hsuan Huang 4992899d84
Merge pull request #32975 from woocommerce/fix/32959-product-task-text-shown-before-accordion-is-expanded
Fix product task text shown before accordion is expanded on stack layout
2022-05-12 15:26:04 +08:00
Chi-Hsuan Huang 8440400f3c Set fixed width for experimental product layout 2022-05-12 14:08:03 +08:00
Chris Aprea 3e1d7ac99b Copy changes and remove console log 2022-05-12 14:46:06 +10:00
Chris Aprea c6836e270e Hardcode experiment name. 2022-05-12 13:11:42 +10:00
Ilyas Foo 713198f5ed Renames to increase clarity 2022-05-12 10:41:15 +08:00
Ilyas Foo f7263c60ff Changelogs 2022-05-12 10:41:15 +08:00
Ilyas Foo 481b1e8566 Add backend experiment logic 2022-05-12 10:41:15 +08:00
Ilyas Foo 16c36e1f7d Import hook from onboarding 2022-05-12 10:41:15 +08:00
moon 14ff4f63ee Add changelog 2022-05-11 19:12:35 -07:00
moon 7c06b4325b Use the core version for the @deprecated tags 2022-05-11 19:11:16 -07:00
Chi-Hsuan Huang 5453737747 Fix product task text shown before accordion is expanded on stack layout 2022-05-12 09:56:53 +08:00
Chi-Hsuan Huang 1ccacd95ab Add changelog 2022-05-12 09:24:37 +08:00
Chi-Hsuan Huang 03731c64d5 Fix notice on emptry product page 2022-05-12 09:24:08 +08:00
Chris Aprea 022c60f9e5 Tidy up experiment code and conditional rendering for the onboarding steps component. 2022-05-12 10:32:54 +10:00
Joel T 8e04383fb0 Enabling reminder bar for both experiments and control 2022-05-11 16:18:51 -07:00
Joel T 27cecd9b83 Hiding badge when remaining tasks is now zero 2022-05-11 16:18:51 -07:00
Joel T 29e521dca0 Reworking condition to allow reminder badge with corret list for all experiment states and control 2022-05-11 16:18:51 -07:00
Joel T 46d6e6dd3e Updating badge for tasks that complete with no page refresh 2022-05-11 16:18:50 -07:00
Joel T 3b28616640 Altering badge logic to function based on experiments instead of feature flag 2022-05-11 16:18:50 -07:00
Joel T 6693e9fba8 Correcting spacing manually since autoformatter isn't working 2022-05-11 16:18:50 -07:00
Joel T cd2b9732dd Adding changelog 2022-05-11 16:18:50 -07:00
Joel T 3a443234ea Adding basic support for tasks badge to woo navigation 2022-05-11 16:18:50 -07:00
Joel T 18e0af4c29 Adding badge to legacy menu for onboarding tasks remaining 2022-05-11 16:18:50 -07:00
Joel T 697278b69c Updating changelog 2022-05-11 16:14:26 -07:00
Joel T 9cd5a05237 Adding changelog 2022-05-11 16:11:56 -07:00
Joel T 2ac65955a3 Supressing warnings originating from metadata functions 2022-05-11 15:59:49 -07:00
Jorge A. Torres 82e6e31903
Merge pull request #32968 from woocommerce/fix/download_dir_table_key
Fix/download dir table key
2022-05-11 18:25:56 -03:00
louwie17 ed2adee551
Merge pull request #32966 from woocommerce/fix/32962_fatal_error_wc_admin_conflict
Add FeaturePlugin facade under the Admin namespace to avoid conflict WCA conflict
2022-05-11 17:57:12 -03:00
barryhughes d3bf32a147 Prefer get_var() over get_col(). 2022-05-11 20:12:20 +00:00
Moon 9720874f50
Merge pull request #32954 from woocommerce/update/32883-update-react-dates-dependency
Update react-dates to 21.8.0
2022-05-11 12:49:16 -07:00
Lourens Schep ce292870c3 Add changelog 2022-05-11 16:41:58 -03:00
barryhughes 44bb55452a Update install versions test :-/ 2022-05-11 19:28:41 +00:00
barryhughes 0d1da4e8bf 6.5.1 update routine for approved download directories. 2022-05-11 18:32:55 +00:00
Lourens Schep 4a2a94eb8c Add FeaturePlugin facade under the Admin namespace to avoid conflict WCA conflict 2022-05-11 14:54:02 -03:00
barryhughes f994ba1839 Apply max size to URL col in download directories table. 2022-05-11 17:07:32 +00:00
Jorge A. Torres 4ef86419da Add changelog entry 2022-05-11 11:42:35 -03:00
Jorge A. Torres 992f936fae Check for `recorded_sales` op data in COT migration tests 2022-05-11 11:42:35 -03:00
Chris Aprea aa8835bfce Merge branch 'trunk' into add/experiment-subscriptions-admin-menu-1 2022-05-11 17:04:29 +10:00
Chris Aprea f66a8c5b0f Add basic experiment functionality. 2022-05-11 15:37:14 +10:00
Ilyas Foo 016a23f202
Merge pull request #32941 from woocommerce/dev/32635-implement-product-task-experiment
Add ExPlat call for product task experiment
2022-05-11 13:03:27 +08:00
James Allan 5eb81985e4 Add changelog 2022-05-11 12:11:32 +10:00
Chi-Hsuan Huang edbfd5bf93
Merge pull request #32937 from woocommerce/update/convert-woo-tracks-to-ts
Convert `@woocommerce/tracks` to TS
2022-05-11 09:57:27 +08:00
James Allan 077d68eecd Remove unused maestro card SVG file 2022-05-11 11:57:08 +10:00
Chi-Hsuan Huang 79814ccccf
Merge pull request #32936 from woocommerce/update/memoize-one
Remove `memoize-one` from woo admin & update it to ^6.0.0 for woo components
2022-05-11 09:55:40 +08:00
Chi-Hsuan Huang 63c9cb3e09
Merge pull request #32932 from woocommerce/update/task-completion-time
Update import product task to record completion time in time frame format
2022-05-11 09:55:25 +08:00
moon 15ecfd9b16 Update react-dates to 21.8.0 2022-05-10 18:12:32 -07:00
Eric Jinks c924fbd54b
Merge pull request #32867 from woocommerce/add/experiment-subscriptions-admin-menu-eligibility
Prevent rendering the WooCommerce > Subscriptions menu item for WooCommerce stores that are ineligible for the experiment.
2022-05-11 10:01:29 +10:00
Chris Aprea 4336b3a390 Add the wccore_subscriptions_empty_state_get_started_error tracking event. 2022-05-11 09:05:35 +10:00
Simon Prosser 8e754070f3
Make sure variable is actually set
themes_api() may return unexpected results see https://wordpress.org/support/topic/php-warnings-flooding-log-undefined-property-class-wc-admin-status-php for example.
2022-05-10 23:53:19 +01:00
Roy Ho ba6f193958
Merge pull request #32899 from woocommerce/fix/json-formatting
Standardize JSON Formatting
2022-05-10 14:17:40 -07:00
Christopher Allford ec2e90540e Added Changelogs 2022-05-10 13:31:13 -07:00
Christopher Allford 37ad4c5a70 Converted Spaces To Tabs In JSON
Since we almost universally use tabs instead
of spaces, this commit replaces all of the spaces
with tabs in various JSON files across the monorepo.
2022-05-10 13:31:01 -07:00
roykho 9668071503
Bump readme.txt version to latest 2022-05-10 13:30:29 -07:00
roykho 56a88d3771
Prep trunk post 6.5 release 2022-05-10 13:01:47 -07:00
Moon d3ef624ab9
Merge pull request #32928 from woocommerce/update/32911-remove-explat-calls-for-headercard-exp
Remove ExPlat calls for woocommerce_tasklist_progression_headercard experiments
2022-05-10 11:12:25 -07:00
jonathansadowski 4c707a27d6
Merge pull request #32943 from woocommerce/update/bash-zip
Update commands to use Nx
2022-05-10 10:54:11 -05:00
roykho d870ff09ac
Add changelog entry 2022-05-10 08:27:01 -07:00
Josh Betz f3edbcad36
Merge pull request #32823 from woocommerce/update/api/system-status-performance
System Status performance improvements
2022-05-10 09:17:09 -05:00
roykho 0bcc96a415
Update commands to use Nx 2022-05-10 06:37:57 -07:00
Ilyas Foo 367db18bc4 Rename function 2022-05-10 20:57:11 +08:00
Alejandro López Ariza 56c8962722
Merge pull request #32606 from woocommerce/performance/merchant-view-coupons
Added new performance test to view coupons as merchant.
2022-05-10 14:37:12 +02:00
Ilyas Foo 71e0d3d27d Changelog 2022-05-10 18:42:07 +08:00
Ilyas Foo 933fe9f449 Add tests 2022-05-10 18:21:52 +08:00
Thomas Roberts 5ca74b6ff0
Bump WooCommerce blocks package version and update locks 2022-05-10 11:05:49 +01:00
Alex López eb60957a20 Added changelogger file without actual entry to the changelog. 2022-05-10 11:51:23 +02:00
Ilyas Foo 826029ca7b Add ExPlat call for product task experiment 2022-05-10 16:58:02 +08:00
Chi-Hsuan Huang cd3abebeb0 Add changelogs 2022-05-10 15:29:10 +08:00
Chi-Hsuan Huang 93725ece0f Remove woo tracks type declaration from woo admin 2022-05-10 15:29:10 +08:00
Chi-Hsuan Huang 4f1e7af7c7 Add changelogs 2022-05-10 14:29:45 +08:00
Chi-Hsuan Huang 43af801d46 Remove memoize-one from wca & update it to ^6.0.0 for woo components 2022-05-10 14:17:03 +08:00
Chi-Hsuan Huang 4cc033bc12 Add tests for getTimeFrame 2022-05-10 14:02:07 +08:00
James Allan 692cdd3607 Redirect to the create subscription product step after installing WC Payments
This is a temporary measure to be enable testing the full flow whilst we
work on setting up the experiment.
2022-05-10 15:50:47 +10:00
Chris Aprea fc55f14fdd Add the wccore_subscriptions_empty_state_view tracking event. 2022-05-10 15:43:47 +10:00
RJChow 67cf1e109b added task_view tracks prop for experimental_products 2022-05-10 12:52:00 +08:00
Chi-Hsuan Huang 879ccdb14f
Merge pull request #32923 from woocommerce/update/32451-wcpay-task-display-logic
Change wcpay task display logic
2022-05-10 10:07:06 +08:00
Chris Aprea c421733dec Add @ts-expect-error comment to avoid build error. 2022-05-10 11:11:07 +10:00
Chi-Hsuan Huang 7d75919e25 Add changelog 2022-05-10 08:59:10 +08:00
Chi-Hsuan Huang 2b46085ff7 Update to record completion time in time frame format 2022-05-10 08:58:23 +08:00
moon d78c8334b9 Disable experiment test 2022-05-09 17:30:21 -07:00
Eric Jinks ffc64e9f7d
Use wc formatting functions for transient booleans 2022-05-10 10:26:36 +10:00
Chi-Hsuan Huang c4c2d160ff
Merge pull request #32914 from woocommerce/add/32811-import-prdocuts-tracks
Add tracks for experimental import products task
2022-05-10 08:14:40 +08:00
Eric Jinks ef25a3180c
Fix store sale eligibility comments to correct intent 2022-05-10 10:00:06 +10:00
Chris Aprea 68142596bb Merge branch 'add/experiment-subscriptions-admin-menu-1' into add/experiment-subscriptions-admin-menu-eligibility
# Conflicts:
#	plugins/woocommerce/src/Internal/Admin/WcPaySubscriptionsPage.php
2022-05-10 09:47:17 +10:00
Eric Jinks 1aa88a9cb7
Change recent sales eligibility transient string to yes/no 2022-05-10 06:45:27 +10:00
louwie17 bd5c1e739e
Merge pull request #32926 from woocommerce/fix/32896_two_tasklists
Fix duplicate task list shown in some occurrences
2022-05-09 16:24:00 -03:00
Eric Jinks ae954f3cc5
Store recent sales eligibility transient as string 2022-05-10 04:02:10 +10:00
Lourens Schep 99eb80d811 Remove unused string condition 2022-05-09 14:36:51 -03:00
moon 7fd05ed0d6 Add @since tags 2022-05-09 10:33:55 -07:00
moon cecf63ca5b Add changelog 2022-05-09 10:16:53 -07:00
moon db87fc59b9 Remove ExPlat API calls from the backend 2022-05-09 10:08:11 -07:00
moon 2aa8088197 Remove ExPlat API calls from the frontend 2022-05-09 10:01:11 -07:00
Jorge A. Torres 086f318299 Add `recorded_sales` to COT schema and migration 2022-05-09 10:23:23 -05:00
Vedanshu Jain 53a6202d68
Merge pull request #32817 from woocommerce/cot/effectively_sync_posts_to_cot
[COT] Effectively synchronize orders from the posts table to the custom orders table
2022-05-09 20:32:38 +05:30
Lourens Schep 65da6a8562 Add changelog 2022-05-09 11:31:03 -03:00
Lourens Schep fb62e3392a Fix duplicate task list shown 2022-05-09 11:17:37 -03:00
Nestor Soriano dcb2f45904
Increase orders sync default batch size to 250 2022-05-09 16:03:56 +02:00
Nestor Soriano 997395e971
Changes in COT handling to ease testing:
- The woocommerce_custom_orders_table_enabled option can now be manually
  altered even if there are orders out of sync
- Saving settings will always restart the sync process, even if one
  is already in progress
- Add the woocommerce_orders_cot_and_posts_sync_step_size filter
2022-05-09 11:01:08 +02:00
Vedanshu Jain 1e090c3c3c
Merge pull request #32828 from woocommerce/fix/32016-shipping-zones-loop
Allow removal of all zone regions from a shipping zone
2022-05-09 14:25:39 +05:30
Chi-Hsuan Huang da535437e7 Add changelog 2022-05-09 16:32:34 +08:00
Chi-Hsuan Huang b75ba577c0 Update wcpay task display logic 2022-05-09 16:32:01 +08:00
Yordan Soares 1e67304e80 Fix the broken URLs of recommendations from Unicode (Countries, States, and Currency names) 2022-05-09 03:04:56 -04:00
Chris Aprea 0601a75e1c Fix enqueue_scripts logic. 2022-05-09 16:06:33 +10:00
Chris Aprea ce2385d0d3 Change the badge wording to "new". 2022-05-09 15:58:35 +10:00
James Allan b45d095e2d Use updateOptions from @woocommerce/data OPTIONS_STORE_NAME to set wp options instead of using apiFetch 2022-05-09 15:10:17 +10:00
James Allan 59478e391c Reorder and self close the No thanks buttons 2022-05-09 14:56:59 +10:00
Chi-Hsuan Huang c0c55ed9fa Add changelog 2022-05-09 12:44:38 +08:00
Chi-Hsuan Huang 87f5431a5d Add track events for experimental import products 2022-05-09 12:43:10 +08:00
Chi-Hsuan Huang 4aa1bead31 Add use-record-completion-time.ts for task event 2022-05-09 12:40:55 +08:00
James Allan 738b3764e5 Add a dismiss ("No thanks") button to the wcpay susbcriptions welcome page 2022-05-09 14:24:01 +10:00
Eric Jinks 3d68850d78
Cache recent sales eligibility to reduce excessive DB queries 2022-05-09 13:08:36 +10:00
Eric Jinks 48ead02176
Fix recent sales query to allow orders without completed status 2022-05-09 10:58:16 +10:00
Chris Aprea f34fcab040 Fix font weight. 2022-05-09 10:55:04 +10:00
Chris Aprea b223ed27f6 Fix typo. 2022-05-09 10:47:06 +10:00
Eric Jinks dbe0f5fc54
Add xa-woocommerce-subscriptions to plugin eligibility check
Co-authored-by: James Allan <james.allan@automattic.com>
2022-05-09 08:17:12 +10:00
Roy Ho 54a42a8388
Merge pull request #32901 from woocommerce/fix/woocommerce-admin-build
Remove Unnecessary React Admin Build
2022-05-06 15:42:55 -07:00
Christopher Allford 9e34796bd0 Added Changelog 2022-05-06 15:04:42 -07:00
Christopher Allford 3f5c3b2039 Added Changelog 2022-05-06 15:00:00 -07:00
Christopher Allford 0519045d20 Added Missing Dependencies
Some kind of branch switching related mishap it seems.
2022-05-06 14:58:33 -07:00
Josh Betz a1cb8fe8fc lint 2022-05-06 14:49:25 -05:00
Josh Betz 01fc3018d0 Clear the theme cache for any plugin update
The cached theme data has some properties that depend on WooCommerce.
This could also extend to extensions. Since we don't have a reliable way
to know if a given plugin is a WooCommerce extension, any plugin update
should flush the cache.
2022-05-06 14:49:25 -05:00
Josh Betz 43579aeac9 Expire theme cache in case a theme is updated outside WordPress
If someone updates their theme outside of the WordPress update process
(by manipulating files directly) the cache won't be invalidated. To deal
with that, we're setting the TTL here to 1hr.
2022-05-06 14:49:25 -05:00
Josh Betz 5dc5b467a8 Clear the theme cache if woocommerce is updated 2022-05-06 14:49:25 -05:00
Josh Betz 747278a85c changelog 2022-05-06 14:49:25 -05:00
Josh Betz b6b5b8f33b Extract top-level property
Using _fields, we can specify a sub-property like environment.version.
In that case, we need to extract the top-level property so we known
which function to run.
2022-05-06 14:49:25 -05:00
Josh Betz 30f41c96e8 phpcs 2022-05-06 14:49:25 -05:00
Josh Betz fe3b71c011 API: System Status: Cache theme info
Generating theme info involves reading the theme files from disk and
parsing them.

In testing, caching this data in a transient improves performance by
600ms. Since themes changes relatively infrequently, the cache hit rate
should be quite high.

We're registering the cache clean function in Server.php because
rest_api_init is too late.
2022-05-06 14:49:25 -05:00
Josh Betz 66c21a5e8b API: System Status: Only load necessary data
The system status endpoint supports the global `_fields` query parameter
for limiting which fields are returned. That is, if you send a request
with a query string of `?_fields=environment`, only the environment
property will be returned. However, we still calculate every property.

This change ensure that we only gather the data that is necessary for
the response. Since some of this data can be somewhat slow (like reading
from the disk in the case of get_theme_info), this could have a pretty
nice performance benefit in some cases.
2022-05-06 14:49:25 -05:00
Christopher Allford 74f44dd04c Removed Unnecessary Rebuilds
Nx already handles the building of dependencies.
This commit removes the unnecessary build
calls from WooCommerce's "build" script.
2022-05-06 12:26:27 -07:00
Christopher Allford 31d7249080 Removed "prebuild" Script
PNPM does not execute "pre" and "post"
scripts for user-defined scripts. This removes
the "prebuild" from the React Admin's build.
2022-05-06 12:16:57 -07:00
Christopher Allford dc6bd75984 Fixed Beta Tester Uglification
PNPM does not run "pre" and "post" scripts
for user-defined scripts. This commit
removed the "preuglify" script from the
beta tester plugin so that it builds correctly.
2022-05-06 12:11:51 -07:00
Corey McKrill 245dd98b45
Orders API: Add response fields for some order states (#32888)
Adds the following fields to the order response object for both v2 and v3 of the WC REST API:

* is_editable
* needs_payment
* needs_processing

Some order states (different than statuses) are determined by complex logic involving other order properties, and/or they are filterable by extensions. These states are difficult to calculate in a client app whose only data source is the REST API, and thus they are best calculated on the server and added as separate properties to the API response object.
2022-05-06 11:06:33 -07:00
Barry Hughes 8000a9b0ef
Merge pull request #32893 from woocommerce/fix/product_attributes_lookup_table_update
Fix: product attributes lookup table not being updated on WooCommerce update and on REST API batch requests
2022-05-06 09:58:10 -07:00
Nestor Soriano 37e9be5e87
Add changelog file 2022-05-06 11:06:39 +02:00
Nestor Soriano ff76f898f7
Fix: product attributes lookup table not updating on REST API batch requests
When the "products/batch" endpoint is used to create or update products,
the product attributes lookup table wasn't being updated as it's the
case of the single product endpoints.
2022-05-06 10:20:38 +02:00
Nestor Soriano 3d77547d77
Fix: product attributes lookup table not filled on WooCommerce update
When WooCommerce was updated from an version older than 6.2,
and before the user hit the "Update database" button, the product
attributes lookup table usage was activated but it was still empty.
This caused the search to not work, and the product filtering widget
to not appear.
2022-05-06 10:14:50 +02:00
Chi-Hsuan Huang 211e0f9a24
Merge pull request #32891 from woocommerce/fix/32863-get-option-deprecated-notices
Fix `get_options` function deprecation notice in WC 6.5 RC
2022-05-06 16:00:57 +08:00
Chi-Hsuan Huang 72cf343cda
Merge pull request #32866 from woocommerce/fix/32761-exp2-task-no-padding
Fix no padding between the task section and things to do next in experiment 2
2022-05-06 14:28:46 +08:00
Chi-Hsuan Huang 6d0b794fc7 Replace margin-bottom 16px with $gap for experiment 2 2022-05-06 12:44:43 +08:00
Chi-Hsuan Huang 1ea12c31b6 Add changelog 2022-05-06 11:26:14 +08:00
Chi-Hsuan Huang c76e97d527 Add woocommerce_task_list_reminder_bar_hidden to woocommerce permissions to fix deprecation notice 2022-05-06 11:19:01 +08:00
Eric Jinks d77f000e6e
Add subscriptio to plugin eligibility check 2022-05-06 13:08:54 +10:00
Eric Jinks 8beed46c33
Add sumosubscriptions to plugin eligibility check 2022-05-06 12:57:53 +10:00
Chi-Hsuan Huang ce253ca390
Merge pull request #32815 from woocommerce/add/32412-load-sample-products
Add load sample products for experimental product task
2022-05-06 09:23:26 +08:00
Chi-Hsuan Huang ac87972fc0
Merge pull request #32870 from woocommerce/update/center-view-more-button
Center view more/less button for add product task
2022-05-06 09:22:12 +08:00
Roy Ho 30846cb8b4
Update woocommerce sniffs to latest 0.1.3 (#32886) 2022-05-06 12:48:46 +12:00
Jorge A. Torres dda417ccd2 Add sanitization of color settings to OptionSanitizer 2022-05-05 13:05:32 -05:00
Jorge A. Torres d94b7af9dc Add OptionSanitizer class for sanitization of settings 2022-05-05 13:05:32 -05:00
Vedanshu Jain 79c953c2f2
Merge pull request #32115 from mcliwanow/add/12397-tracking-params-wccom-from-subscriptions
Subscriptions - add tracking params to WCCOM URLs
2022-05-05 14:31:50 +05:30
Chris Aprea c92bc4b357 Merge branch 'add/experiment-subscriptions-admin-menu-1' into add/experiment-subscriptions-admin-new-design 2022-05-05 16:01:35 +10:00
Chris Aprea 77cc1f61de Merge branch 'add/experiment-subscriptions-admin-menu' into add/experiment-subscriptions-admin-menu-1 2022-05-05 16:00:50 +10:00
Chris Aprea 7add4dca88 Implement the new subscriptions page design 2022-05-05 15:04:27 +10:00
Eric Jinks 0eb8d95bfb
Reduce recent sales query scope to improve performance 2022-05-05 10:59:04 +10:00
Eric Jinks e36c5d3b8f
Change plugin eligibility to check for installed plugins 2022-05-05 10:37:48 +10:00
Alex López b62a935869 Merge remote-tracking branch 'origin/trunk' into performance/merchant-view-coupons 2022-05-04 16:55:15 +02:00
Vedanshu Jain e74a106fe8
Merge pull request #32747 from crstauf/patch-1
Fix `is_page()` and `is_singular()` called incorrectly
2022-05-04 19:06:11 +05:30
Eric Jinks b32a8f49a9
Fix store base location eligibility check to limit to USA 2022-05-04 21:57:10 +10:00
vedanshujain 8cba910dec Add changelog. 2022-05-04 16:41:26 +05:30
Chi-Hsuan Huang 9eb38bcd37 Add changelog 2022-05-04 17:28:19 +08:00
Chi-Hsuan Huang 7e3a259cc5 Center experimental products view more button 2022-05-04 17:27:41 +08:00
Chi-Hsuan Huang e3e6dbd720 Add changelog 2022-05-04 16:51:59 +08:00
Chi-Hsuan Huang 2e58f8c352 Add an empty woocommerce-admin.php for backward compatibility 2022-05-04 16:51:59 +08:00
Eric Jinks f9fd51e81c
Fix recent sales query, restrict to completed orders 2022-05-04 16:52:46 +10:00
Chi-Hsuan Huang 8c5bf0988b Add changelog 2022-05-04 12:08:53 +08:00
Chi-Hsuan Huang b28a2d7ba7 Fix no padding between the last task section and Things to do next in experiment 2 2022-05-04 11:57:43 +08:00
Chi-Hsuan Huang a4bd70c28e Add changelog 2022-05-04 10:42:25 +08:00
Chi-Hsuan Huang 7e4126bc9f Update experimental-import-products to load sample products 2022-05-04 10:42:25 +08:00
Chi-Hsuan Huang cf9d2ed3b7 Update sample_products.csv to only contain 9 products 2022-05-04 10:42:20 +08:00
Chi-Hsuan Huang f25383fc15 Add test for stack 2022-05-04 10:15:03 +08:00
Chi-Hsuan Huang 95a319b36d Add tests for load sample products 2022-05-04 10:15:03 +08:00
Chi-Hsuan Huang be50584b67 Update load onboarding sample product link 2022-05-04 10:15:03 +08:00
Chi-Hsuan Huang 5476f4c80f Add onboarding load sample products notice 2022-05-04 10:15:03 +08:00
Chi-Hsuan Huang 570d6dad71 Update experimental-products to load sample products 2022-05-04 10:15:03 +08:00
Chi-Hsuan Huang 4221c32fa4 Add type for wp.components.ui 2022-05-04 10:15:03 +08:00
Chi-Hsuan Huang e37bc5e18f Add load sample product hook & modal component 2022-05-04 10:15:03 +08:00
Chi-Hsuan Huang 5063dc3640 Update admin webpack config to resolve wp.components.ui 2022-05-04 10:15:03 +08:00
Moon 4a6c3300aa
Merge pull request #32835 from woocommerce/add/32788-add-experimental-import-products-task-followup
Add experimental import products task
2022-05-03 19:13:26 -07:00
Paul Sealock 6553de469b
Test Failures: Check WP version 5.9 before adding mini_cart_block to WC Tracker (#32862) 2022-05-04 14:09:21 +12:00
moon 8219510fc5 Style update 2022-05-03 18:57:23 -07:00
James Allan 49f5f788bb Replace translation domains from woocommerce-payments to woocommerce 2022-05-04 11:15:56 +10:00
Chi-Hsuan Huang afe6e84ab0
Merge pull request #32855 from woocommerce/update/32716-explat-api-requests
Add safeguards to ensure ExPlat API requests are valid
2022-05-04 09:02:10 +08:00
Eric Jinks bfa9721dda
Add store activation date eligibility criteria 2022-05-04 10:00:01 +10:00
moon 0a75c8d6be Adjust text color 2022-05-03 15:55:15 -07:00
moon d0b500a3f4 Import Stacks before CardList to fix the order error 2022-05-03 15:55:02 -07:00
moon 84fe952ba8 Add link to the card 2022-05-03 15:54:18 -07:00
Christopher Allford 790d085f12
Merge pull request #32657 from woocommerce/refactor/standardize-postinstall
Utilize `post install` Script for Composer
2022-05-03 10:21:33 -07:00
Chi-Hsuan Huang f1d911d680 Add changelog 2022-05-03 17:01:07 +08:00
Chi-Hsuan Huang 6c8ee08f19 Add a safeguard for ExPlat assignment requests to make sure a user either has an anon_id defined and not empty 2022-05-03 17:01:07 +08:00
Néstor Soriano 4c9097d639
Merge pull request #32777 from woocommerce/add/track_mini_cart_block
Add Mini Cart Block Tracking
2022-05-03 09:07:47 +02:00
James Allan b15cfd3a2d Reword the error message to be more action -> outcome structure 2022-05-03 16:47:14 +10:00
James Allan 6b7fd14c09 Direct the user to the wp.org wcpayments page for a more direct install path 2022-05-03 16:18:46 +10:00
Eric Jinks 0947b40b8d
Add method to check WcPaySubscriptionsPage eligibility 2022-05-03 15:32:32 +10:00
James Allan a1aff10f5f Display an error message when WC Payments fails to install 2022-05-03 14:10:18 +10:00
Adrian Duffell b35413d2ba Add changelog entry 2022-05-03 07:40:21 +08:00
Adrian Duffell a67c547b8e Update path to email template for analytics report
The path was recently changed with the merge of the Admin feature plugin into Core.
2022-05-03 07:40:21 +08:00
Christopher Allford 9a22c62505 Added Changelogs 2022-05-02 12:55:48 -07:00
Christopher Allford 21eee1ab14 Added Changelog 2022-05-02 12:55:48 -07:00
Christopher Allford 000f14be4a Fixed Tabs 2022-05-02 12:55:48 -07:00
Christopher Allford bd0ff96960 Fixed WooCommerce Beta Tester PHPUnit
Like Core's `composer.json`, we need to override
the platform in order to get a consistent version
for dependencies out of Composer.
2022-05-02 12:55:48 -07:00
Christopher Allford 8862efb570 Run `composer install` On `pnpm install`
This commit adds a `postinstall` script for
the WooCommerce and WooCommerce Beta
Tester plugins. This makes it easier to get
started since `pnpm install` will ensure all
dependencies in every project are ready.
2022-05-02 12:55:48 -07:00
Corey McKrill 1d52eef313
REST: Add product image URL to order line items (#32710)
Add a new property to the line item schema, `image` that contains `id` and `src` properties for the full size of the main product image.

Fixes #27364
2022-05-02 10:50:30 -07:00
Christopher Allford 3994c9ac4f
Added `version` to `composer.json`
In order for the Jetpack Autoloader to consistently
apply a version to class files, we will define it in our
plugin's `composer.json` file.
2022-05-02 09:48:54 -07:00
Jorge A. Torres c1dcab5725 Properly escape tax class filter in legacy v3 REST API /taxes endpoint 2022-05-02 08:22:50 -05:00
Néstor Soriano fbd38e5a90
Merge pull request #32746 from YordanSoares/use-price-decimal-separator-for-product-weight-and-dimensions
Use the price decimal separator to format product weight and dimensions
2022-05-02 12:04:26 +02:00
Luigi 4597c47f63 create BlocksUtil file - refactor 2022-05-02 11:26:34 +02:00
Néstor Soriano 69dc8fe777
Add changelog file 2022-05-02 11:15:19 +02:00
Néstor Soriano 4908d29fb1
Merge pull request #32749 from mostafasoufi/trunk
Add support select2 for log_file dropdown
2022-05-02 11:04:03 +02:00
Néstor Soriano c50de996fa
Add changelog file 2022-05-02 11:01:27 +02:00
moon d61668cb5e Add changelog 2022-04-29 16:08:40 -07:00
moon bc634512af Remove unnecessary style 2022-04-29 16:01:05 -07:00
moon 4ee252b549 Style fix 2022-04-29 15:53:45 -07:00
moon 0958641c85 Update svg fill 2022-04-29 15:53:07 -07:00
moon 0c3a142e89 Convert svg to react component 2022-04-29 15:51:46 -07:00
Fernando c60884ef20
Merge pull request #32786 from woocommerce/fix/32720_progress-header-title
Fix progress header title
2022-04-29 18:56:53 -03:00
moon 422018eb78 Refactor useProductTypeListItems to accept product types 2022-04-29 14:42:04 -07:00
Fernando Marichal 23c829efea Fix sectioned task list 2022-04-29 16:31:26 -03:00
louwie17 c0711feacb
Merge pull request #32805 from woocommerce/fix/32802_update_copy_and_illustrations
Update illustrations and copy of task list experiment 1
2022-04-29 15:11:27 -03:00
Fernando Marichal b8a8e9d272 Add changelog 2022-04-29 13:34:19 -03:00
Fernando Marichal 6a9bb8ab49 Fix default title 2022-04-29 13:34:02 -03:00
louwie17 f918f341b9
Merge pull request #32824 from woocommerce/add/32762
Adding legal messaging and fixing click behavior on task list experiment
2022-04-29 13:31:42 -03:00
Fernando Marichal 06dd122939 Fix progress header title 2022-04-29 12:40:01 -03:00
Joel T d0d2de10bf Fixing typescript error 2022-04-29 11:14:42 -03:00
Joel T d58b436265 Removing excess content in wcpay task on experiment 2022-04-29 11:14:42 -03:00
Joel T a42047607a Adding changelog 2022-04-29 11:14:42 -03:00
Joel T a7f457c488 Fixing test 2022-04-29 11:14:42 -03:00
Joel T 98838fe8b4 Adding slotfill support to task experiment one, fixing odd behavior around link clicks 2022-04-29 11:14:42 -03:00
Lourens Schep fbdc08eb36 Some minor changes to tasks height for each task list to match design 2022-04-29 11:11:30 -03:00
Lourens Schep 711e0ce449 Remove unused illustrations 2022-04-29 10:12:09 -03:00
Roy Ho ad0d71dcff
Merge pull request #32795 from woocommerce/fix/standardize-lint-woocommerce-plugin
Standardize linting: plugins
2022-04-29 06:01:37 -07:00
Lourens Schep b56e38c492 Add changelog 2022-04-29 09:52:50 -03:00
Lourens Schep 77765285e8 Update illustrations and copy of task list experiment 1, with minor css updates 2022-04-29 09:52:50 -03:00
Nestor Soriano e7a4ff2daa
Add changelog file 2022-04-29 13:24:29 +02:00
Nestor Soriano 57b1bd2340
Improve the readability of classes in Database\Migrations\CustomOrderTable
- Add meaningful docblock comments for the classes
- Add type ints for parameters and return values in all mehtods
2022-04-29 10:41:17 +02:00
Nestor Soriano d9fb2e3231
Remove 'WP' class name prefixes in Database\Migrations\CustomOrderTable 2022-04-29 10:15:04 +02:00
Chris Aprea 0942a8b169 Enqueue an inline script. 2022-04-29 15:05:15 +10:00
Chris Aprea 7b36d7fee4 Merge branch 'add/experiment-subscriptions-admin-menu-2' into add/experiment-subscriptions-admin-menu-1 2022-04-29 14:14:06 +10:00
moon 9cf2993975 Fix error with the items type 2022-04-28 20:45:49 -07:00
moon a441ff189b Add stacks 2022-04-28 20:39:09 -07:00
moon b03149a29c Align the stacks button center 2022-04-28 20:39:08 -07:00
moon b109eba8c7 Adjust styles and add initial stacks functionality 2022-04-28 20:38:31 -07:00
moon de836d1f79 Add Learn More link 2022-04-28 20:38:31 -07:00
moon 14cff0a001 Allow JSX.Element in content 2022-04-28 20:38:31 -07:00
Chi-Hsuan Huang 60334e3c55
Merge pull request #32801 from woocommerce/add/32634-add-products-task
Add experimental add product for task list
2022-04-29 11:35:53 +08:00
Ilyas Foo 8b9870b1d0
Merge pull request #32697 from woocommerce/add/wc-payment-gateways-banner
Added feature for payment gateways banner
2022-04-29 10:57:59 +08:00
Ilyas Foo 959ba869c1
Merge pull request #32814 from woocommerce/fix/32797-wca-fatal
Fix WCA fatal with bail conditions for WCA execution paths
2022-04-29 10:50:38 +08:00
Chi-Hsuan Huang 345a2ed60c Update experimental product stack layout style 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 0d9d463d46 Update experimental-products default surfaced product types 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 76777d2981 Refactor experimental-products functions 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 2542594652 Add changelog 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 6205c0208f Update card name & check support product types 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang e6d3ed3c3c Add loading sample product card 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang a4a62353fd Add external_product.csv for experimental product task 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 2dd0ef0029 Add grouped_product.csv for experimental product task 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 48c89b2266 Add card view 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 6248683042 Add tests for experimental add product task 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang cbfc393c6a Add use-create-product-by-type & use-product-types-list-items hooks 2022-04-29 10:46:54 +08:00
Chi-Hsuan Huang 5f233898bf Implement functionalities of experimental products 2022-04-29 10:46:54 +08:00
Ilyas Foo cb731d465a Merge remote-tracking branch 'origin/trunk' into add/wc-payment-gateways-banner 2022-04-29 10:15:21 +08:00
Moon 938cd88ff6
Merge pull request #32820 from woocommerce/fix/fix-ts-build-errors
Fix TS build errors in admin
2022-04-28 19:09:59 -07:00
Ilyas Foo fc74c42fe0
Merge branch 'trunk' into add/wc-payment-gateways-banner 2022-04-29 09:11:20 +08:00
Jorge A. Torres 4c32881b65 Add changelog entry 2022-04-28 15:05:14 -07:00
moon dc00aff77e Run dev after clean command 2022-04-28 14:28:01 -07:00
moon 082f55bee1 Run clean before running build commands 2022-04-28 13:42:06 -07:00
Jorge A. Torres 3f87e28977 Make sure empty region lists are passed to the backend when editing a shipping zone 2022-04-28 12:52:12 -07:00
Josh Betz 870ea59738
Merge pull request #32046 from woocommerce/api/28508-search-including-sku
Enable searching for products by SKU
2022-04-28 13:50:42 -05:00
Nestor Soriano 98078fbc19
Refactor the WPPostToCOTMigrator class
- Rename to PostsToOrdersMigrationController (same for tests class)
- Rename process_next_migration_batch method to migrate_orders
- Rename process_single to migrate_order
- Remove batch and checkpoint related methods
  (batch management is performed by DataSynchronizer class)
- Adjust unit tests
2022-04-28 17:16:19 +02:00
Nestor Soriano 3b98fb7eef
Actually sync orders from posts to custom orders table when needed.
This commit connects the logic of the DataSyncrhonizer class with
the actual posts to COT synchronization implemented in the
WPPostToCOTMigrator class, so orders are actually syncrhonized
using scheduled actions.

Additionally, a synchronization process is triggered whenever an order
is created or modified, using the woocommerce_after_order_object_save
hook.
2022-04-28 15:33:43 +02:00
Nestor Soriano 7a0892422d
Rename DataSynchronizer::start_synchronizing_pending_orders
It's now maybe_start_synchronizing_pending_orders. Also, the method
now contains all the logic needed to decide if a synchronization
needs to actually be started.
2022-04-28 15:31:17 +02:00
Nestor Soriano ad5ec38d96
Fix: AUTO_FLIP_AUTHORITATIVE_TABLE_ROLES_OPTION logic was reversed
This constant contains the name of the setting that is used to
determine if the roles of the custom orders table and the posts table
(authoritative and backup) are reversed once synchronization of
orders between both tables finishes. The logic was mistakenly
implemented backwards.

Also, as part of the fix the constant is moved to the
CustomOrdersTableController class.
2022-04-28 15:25:55 +02:00
Fernando 5bda7ca396
Merge pull request #32739 from woocommerce/add/32156_preview-store-button
Add Preview store button to Home screen
2022-04-28 08:35:31 -03:00
Chi-Hsuan Huang 843a59c0c4
Merge pull request #32735 from woocommerce/update/woo-data-types
Update `@woocommerce/data` & admin client type definitions
2022-04-28 18:03:14 +08:00
Ilyas Foo 297e21038c Lint 2022-04-28 17:29:39 +08:00
Ilyas Foo 83be522465
Update plugins/woocommerce/src/Internal/Admin/FeaturePlugin.php 2022-04-28 17:25:22 +08:00
Peter Fabian 1fcea9e0da
Merge pull request #32776 from woocommerce/fix/download-file-warnings
Updating an existing downloadable file to a bad path should trigger an admin notice
2022-04-28 10:52:16 +02:00
Ilyas Foo 60e341ad17
Merge pull request #32800 from woocommerce/dev/32719-remove-wc-admin-set-up-additional-payment-types-note
Remove `wc-admin-set-up-additional-payment-types` inbox note
2022-04-28 16:05:04 +08:00
Vedanshu Jain 610af05393
Merge pull request #29688 from woocommerce/fix/tax_data_rounded_on_save
Remove rounding of taxes displayed in items meta table
2022-04-28 12:36:04 +05:30
Ilyas Foo c66550da1f Merge remote-tracking branch 'origin/trunk' into dev/32719-remove-wc-admin-set-up-additional-payment-types-note 2022-04-28 14:44:57 +08:00
Ilyas Foo 4dec2483fc Added comment and remove old function 2022-04-28 14:37:19 +08:00
Ilyas Foo 89722dfafc Remove deprecated warning and make use of safe define 2022-04-28 14:37:13 +08:00
Adrian Duffell 8a3ae1399b Merge branch 'trunk' into add/wc-payment-gateways-banner 2022-04-28 14:29:17 +08:00
Ilyas Foo bc7830b670 Changelog 2022-04-28 12:51:53 +08:00
Ilyas Foo bb05a6fc85 Added bail codes for WCA execution paths 2022-04-28 12:19:17 +08:00
Ilyas Foo ff4d735238 Merge remote-tracking branch 'origin/trunk' into dev/32575-add-generic-fallback-image-payments-task 2022-04-28 11:56:58 +08:00
Chi-Hsuan Huang 0389bc7cc3
Merge pull request #32779 from woocommerce/add/product-stack
Add experimental product stack component
2022-04-28 09:47:31 +08:00
Paul Sealock f4fab80b18 changelog 2022-04-28 11:31:37 +12:00
Paul Sealock b06b34dd31 beta tester fix scripts 2022-04-28 11:04:20 +12:00
Paul Sealock 4275eb002b admin fix scripts 2022-04-28 11:04:20 +12:00
Paul Sealock bfbad3a4dc Fixup eslintrc.js 2022-04-28 11:04:12 +12:00
Paul Sealock 6100df9a04
Storybook: Move code to `tools/` (#32729) 2022-04-28 09:54:54 +12:00
Corey McKrill ea504f09b5
phpcs cleanup 2022-04-27 14:33:34 -07:00
roykho 0feaf3a9de
Put exit clause on makepot script 2022-04-27 12:33:37 -07:00
Claudio Sanches ca02a49bff
Merge pull request #32804 from woocommerce/fix/e2e-tests
Fix/e2e tests
2022-04-27 14:57:16 -03:00
barryhughes 6e5d4acc22 Revise testdox 2022-04-27 10:24:30 -07:00
barryhughes 16dbf4607e Break test into smaller more atomic tests. 2022-04-27 10:21:09 -07:00
roykho b2ad3aab61
Use the proper composer command for running scripts 2022-04-27 10:09:06 -07:00
roykho cf783aca58
Move makepot to build-zip bash script 2022-04-27 09:45:51 -07:00
Jonathan Lane 31d4b8f7e7
Merge branch 'trunk' into fix/27902 2022-04-27 09:28:17 -07:00
roykho 216317c557
Test updating makepot script command 2022-04-27 09:27:36 -07:00
Vedanshu Jain 1c72457215
Merge pull request #32771 from woocommerce/fix/32754-inactive-downloads
Protect against inappropriate use of saved download links
2022-04-27 21:36:37 +05:30
roykho 2798add11d
Add changelog 2022-04-27 08:56:14 -07:00
roykho cc1fef5bcb
Try different port for K6 tests 2022-04-27 08:38:45 -07:00
Corey McKrill d2c7e665f4 Remove outdated code comment 2022-04-27 09:47:08 -05:00
Corey McKrill 2c6bf681d2 Add changelog file 2022-04-27 09:47:08 -05:00
Corey McKrill eedac60985 Update tests 2022-04-27 09:47:08 -05:00
Corey McKrill 7807c70549 Don't combine content and SKU search
We decided the performance hit was too great. So with this, you can
still use both the search and search_sku parameters at the same time
if you want, but the query will use `AND` so that there must be a
partial match from both fields rather than either field. To just search
SKUs, all that you need is the search_sku parameter.
2022-04-27 09:47:08 -05:00
Corey McKrill b480d1362d Ensure where clause gets nested correctly when terms are the same 2022-04-27 09:47:08 -05:00
Corey McKrill 029257be30 Refactor to use search_sku parameter
Instead of overloading the default search parameter.

This actually added a bit of complexity because it introduced the
possibility that a request could have both search and search_sku
parameters, and they might not be the same value.

I decided to handle the two cases differently: if both search strings
match, the assumption is that we're looking for a string in either the
content *or* the SKU field. However, if the the search strings are
different, the assumption is that we're looking for products with a
particular string in the content *and* a separate particular string
in the SKU.

New unit tests for this are still pending.
2022-04-27 09:47:08 -05:00
Jaclyn Chen 49743f5167 Add a new parameter `search_includes_sku` so that SKU search isn't included by default. 2022-04-27 09:47:08 -05:00
Jaclyn Chen 532c580081 Include sku partial match for products search. 2022-04-27 09:47:08 -05:00
barryhughes 72d196f398 Log if headers cannot be sent during a download error event. 2022-04-27 07:46:21 -07:00
vedanshujain 8629fcd929 Add changelog. 2022-04-27 20:07:20 +05:30
James Allan 2ae7eda512 Remove tax rounding of taxes displayed in items meta table 2022-04-27 19:46:15 +05:30
roykho 8d911cff6f
Remove makepot from build 2022-04-27 06:58:08 -07:00
roykho e5bdd3fcd3
Refactor workflows to remove action-build step 2022-04-27 06:40:37 -07:00
tjcafferkey 5db9c600b5 Add changelog file 2022-04-27 13:43:59 +01:00
tjcafferkey abe3d60361 Update woo-blocks to 7.4.3 2022-04-27 13:33:04 +01:00
Peter Fabian 68234755d9
Merge pull request #32685 from woocommerce/fix/32028-settings-method-exists-fatal
Address possible type error during install on PHP 8.x
2022-04-27 13:49:04 +02:00
Chi-Hsuan Huang b938eb88f9 Update icons 2022-04-27 18:32:20 +08:00
Luigi 98a91cd132 move logic to utils file 2022-04-27 12:11:27 +02:00
Ilyas Foo 5187a2d4bd Changelog 2022-04-27 15:36:00 +08:00
Chi-Hsuan Huang 026a902fc1 Add changelog 2022-04-27 15:22:17 +08:00
Chi-Hsuan Huang 7eff6afd82 Add initial experimental-products component to show product stack component 2022-04-27 15:22:17 +08:00
Chi-Hsuan Huang d4dbf2f1a3 Add product stack component 2022-04-27 15:22:17 +08:00
Ilyas Foo 5ca93ef00f Remove note references 2022-04-27 14:56:15 +08:00
vedanshujain b0748973a4 Add changelog. 2022-04-27 11:47:25 +05:30
vedanshujain 19d230af63 Merge latvian formatting test with other tests for DRY. 2022-04-27 11:40:51 +05:30
Saggre 46ae32161c Remove duplicate tests 2022-04-27 11:37:09 +05:30
Saggre 004bfeabf5 Restore legacy tests 2022-04-27 11:36:43 +05:30
Saggre fab094dcbe Add wc_format_postcode tests for IE and PT postcodes 2022-04-27 11:35:50 +05:30
Saggre 80e8157c12 Move tests to new tests dir 2022-04-27 11:35:50 +05:30
Saggre ec82f8865c Restore legacy tests 2022-04-27 11:35:50 +05:30
Saggre 3081fa593f Add wc_format_postcode tests to new test directory 2022-04-27 11:35:50 +05:30
Saggre 5991311a33 Add wc_format_postcode tests for IE and PT postcodes 2022-04-27 11:35:50 +05:30
Saggre 474494dcab Add LV postcode formatting and tests 2022-04-27 11:35:50 +05:30
Moon 33cca70beb
Merge pull request #32789 from woocommerce/add/32788-add-experimental-import-products-task
Add experimental import products task feature flag & experimental-import-products component
2022-04-26 21:07:26 -07:00
moon 3b654321b1 Remove unnecessary style 2022-04-26 20:14:47 -07:00
James Allan f9eb025abd Reorder the WC menu items to place subscriptions after orders 2022-04-27 12:54:24 +10:00
James Allan 2b9c926b35 Hide the notifications badge when admin have viewed the WCPay Subscriptions page 2022-04-27 11:41:31 +10:00
moon 671ce7291c Add changelog 2022-04-26 18:28:53 -07:00
Chris Aprea 49e754b962 Add tracking on button click. 2022-04-27 10:18:11 +10:00
Claudio Sanches d880da05e4
Merge pull request #32756 from woocommerce/fix/hook_removal_from_32460
Re-introduce woocommerce_product_csv_importer_check_import_file_path as deprecated
2022-04-26 18:23:26 -03:00
moon 3d68bdbded Add CardList component 2022-04-26 14:15:11 -07:00
Fernando Marichal 93b9c48a85 Fix link url 2022-04-26 17:17:45 -03:00
moon 7c32432bf1 Add feature flag experimental-import-products-task and base component 2022-04-26 13:03:30 -07:00
Luigi 650fe593a1 add changelog 2022-04-26 11:23:44 +02:00
Luigi d4c540c561 Add Mini Cart Block Tracking 2022-04-26 11:08:54 +02:00
barryhughes 8beaf2d987 Updating an existing downloadable file to a bad path should trigger a warning notice. 2022-04-26 01:21:04 -07:00
Chi-Hsuan Huang 5618603c1a Add changelog 2022-04-26 13:43:13 +08:00
Chi-Hsuan Huang 255872e4a3 Update react admin tasks/fills to render experimental-products when the feature flag is on 2022-04-26 13:40:13 +08:00
Chris Aprea a289b1146d Install WCPay on button click. 2022-04-26 15:37:32 +10:00
Chi-Hsuan Huang d1d441c824 Update wcAdminFeatures type 2022-04-26 13:26:41 +08:00
Chi-Hsuan Huang 53e0df3c35 Add experimental-products-task feature flag 2022-04-26 13:26:19 +08:00
Chris Aprea 56ac948371 Added placeholder content. 2022-04-26 15:22:01 +10:00
Ilyas Foo af2349c685 Changelog 2022-04-26 12:16:10 +08:00
Ilyas Foo 9eba4b93de Add fallback image 2022-04-26 12:10:26 +08:00
Chi-Hsuan Huang 11f321a334 Add isWcPaySupported util function for payments 2022-04-26 11:14:05 +08:00
Chi-Hsuan Huang 3ee2fcaeac Use getAdminLink to format WC_PAY_SETUP_URL 2022-04-26 10:55:44 +08:00
Ilyas Foo 2398fdf772 Change experiment name to dynamic 2022-04-26 10:47:01 +08:00
Ilyas Foo 0c5676d28b
Merge pull request #32752 from woocommerce/fix/32751-remove-wcpay-in-core-experiment-request
Remove WCPay in core experiment request
2022-04-26 09:35:55 +08:00
Chi-Hsuan Huang d0e31f9949 Add is_visible to Extension type 2022-04-26 09:34:52 +08:00
barryhughes fbb96048a2 Clean-up. 2022-04-25 17:39:13 -07:00
barryhughes a96c364bb5 Resolve issue with tests (headers already sent by test suite bootstrapper). 2022-04-25 17:36:03 -07:00
barryhughes bb41311ccf PHPCS fixes. 2022-04-25 16:16:14 -07:00
barryhughes 99f85a55d5 Protect against use of download links, where the directory is no longer approved. 2022-04-25 15:58:55 -07:00
Paul Sealock e70b75cf81
Update `create-extension` to work in monorepo context (#32514)
* Update create-wc-extension to work in monorepo context

* update lock file
2022-04-26 08:51:35 +12:00
Barry Hughes 004b007199
Merge pull request #32540 from woocommerce/fix/errors-flash-messaging
Reduce risk of prematurely dropping meta box error messages
2022-04-25 12:32:38 -07:00
Barry Hughes 288855d468
Merge pull request #32744 from woocommerce/fix/650-update-routines
Change Approved Directory update routine
2022-04-25 12:26:14 -07:00
Jorge A. Torres 9bfb108ab7
Merge pull request #32640 from woocommerce/cot/meta_migrations
Add meta table to meta table migration and enable it for WP postmeta table to order meta table.
2022-04-25 16:12:44 -03:00
louwie17 cfb3ff63d1
Merge pull request #32759 from woocommerce/fix/32745_task_list_experiment_1_tracks
Fix eventPrefix for new task list - experiment 1
2022-04-25 14:45:40 -03:00
Jacob Sewell 072f7d8942
Merge pull request #32614 from woocommerce/fix/sanitize-notes-order-by
Fix: sanitize notes order and orderby arguments
2022-04-25 12:13:18 -05:00
Alex López 67112a2534 Revert gitignore and changelog. 2022-04-25 16:24:08 +02:00
Lourens Schep 9872ec153b Add test case for eventPrefix 2022-04-25 10:57:36 -03:00
Lourens Schep 906b92fdbf Add changelog 2022-04-25 10:53:00 -03:00
Lourens Schep 1acbcd64c5 Fix eventPrefix for two column task list 2022-04-25 10:44:29 -03:00
Nestor Soriano 23fa1bc447
Add changelog entry file 2022-04-25 10:59:36 +02:00
Nestor Soriano 991722ba6f
Re-introduce woocommerce_product_csv_importer_check_import_file_path
The hook was inadvertendlty removed in PR #32460.
Reintroducing it as a deprecated hook in favor of
woocommerce_csv_importer_check_import_file_path.
2022-04-25 10:49:15 +02:00
Chi-Hsuan Huang 0d5a0050d8 Add changelogs 2022-04-25 15:17:35 +08:00
Chi-Hsuan Huang 678e893f60 Fix react admin ./client types after updating @woocommerce/data types 2022-04-25 15:17:28 +08:00
Chi-Hsuan Huang d94c1dc7bd Remove unnecessary wpDataselect & WCDataSelector types from react client 2022-04-25 14:17:28 +08:00
Ilyas Foo 1adbc1bdf8 Changelog 2022-04-25 11:34:25 +08:00
Ilyas Foo ce938857a0 Remove hook that calls for registering welcome page 2022-04-25 11:32:22 +08:00
Mostafa Soufi 6e871a1386
Add support select2 for log_file dropdown 2022-04-24 23:34:10 +03:00
Caleb Stauffer 03c710221f
fix variable name 2022-04-23 15:59:48 -04:00
Caleb Stauffer c785c29cd1
confirm query set before evaluating condition
fixes #30646
2022-04-23 15:59:04 -04:00
Yordan Soares d394572378 Use the price decimal separator to format product weight and dimensions 2022-04-22 20:55:19 -04:00
barryhughes 664212b9df Fix test. 2022-04-22 14:45:20 -07:00
barryhughes d951b218f2 Ensure necessary hooks are initialized before triggering sync. 2022-04-22 14:03:38 -07:00
barryhughes a8b68785ca Change Approved Directory update routine (pin to 6.5, prev was 6.4). 2022-04-22 09:45:37 -07:00
helgatheviking 4b59bcd681 Optionally switch the category search selects to return category IDs. Closes #32741. 2022-04-22 10:18:39 -06:00
Lourens Schep f379462885 Add changelog 2022-04-22 12:24:49 -03:00
Lourens Schep d5401cee3c Fix track format 2022-04-22 12:15:22 -03:00
Lourens Schep 6ab9a9ae2c Add task list slot fill support in the sectioned task list 2022-04-22 12:04:51 -03:00
louwie17 f5ec1856c4
Merge pull request #32726 from woocommerce/add/32161
Add tracks to task list reminder bar
2022-04-22 11:00:45 -03:00
Fernando Marichal 3601109ac1 Fix test text 2022-04-22 10:53:46 -03:00
Fernando ee5d38d49c
Merge pull request #32704 from woocommerce/fix/task-list-style-conflict
Fix setup task list style conflict
2022-04-22 10:34:50 -03:00
Fernando Marichal 88bcc8d3e6 Add changelog 2022-04-22 10:31:16 -03:00
Fernando Marichal 6fb0881d7b Add test 2022-04-22 10:09:32 -03:00
Fernando Marichal 015c48c6ab Add preview store button 2022-04-22 10:08:35 -03:00
vedanshujain ebd4b8a676 Add changelog. 2022-04-22 15:46:34 +05:30
vedanshujain 5d18e52d4f Remove temporary table hooks since they need to be referenced multiple times. 2022-04-22 15:45:47 +05:30
vedanshujain 57f66ffa7a Add test for read method in custom order table data store. 2022-04-22 15:45:47 +05:30
vedanshujain 6b23370edb Implement read method in custom order table datastore. 2022-04-22 15:45:47 +05:30
vedanshujain 2abac5a5a7 Merge branch 'cot/32663' into cot/meta_migrations 2022-04-22 15:44:45 +05:30
vedanshujain b060e1b1f0 Dont use `list` format for php compatibility. 2022-04-22 14:28:55 +05:30
vedanshujain fa77484d59 Enable test back. 2022-04-22 14:28:30 +05:30
vedanshujain 39283ddc88 Applied coding standards. 2022-04-22 14:24:56 +05:30
vedanshujain e71f949edb Add changelog. 2022-04-22 14:24:56 +05:30
vedanshujain e042218135 Applied coding standards. 2022-04-22 14:24:56 +05:30
vedanshujain 773508d638 Applied coding standards. 2022-04-22 14:24:56 +05:30
vedanshujain c3de418298 Add value clause for better testing. 2022-04-22 14:24:56 +05:30
vedanshujain 1348215cfe Fixups for duplicate meta entries. 2022-04-22 14:24:56 +05:30
vedanshujain cc512927a7 Add support for multi-value migrations. 2022-04-22 14:24:56 +05:30
vedanshujain 91ca235889 Refactor meta migrator to follow pattern in meta to custom migrator. 2022-04-22 14:24:56 +05:30
vedanshujain 594385690a Add tests to check for duplicated meta records. 2022-04-22 14:24:55 +05:30
vedanshujain 594d63f0fb Add test for migrations. 2022-04-22 14:24:55 +05:30
vedanshujain af2b7dd972 Add source table name to prevent ambigious column names. 2022-04-22 14:24:55 +05:30
vedanshujain 21923f8630 Enable meta migrations. 2022-04-22 14:24:55 +05:30
Chi-Hsuan Huang 2ff94f5388 Fix history type error 2022-04-22 16:47:31 +08:00
Chi-Hsuan Huang 4ade171fd1
Merge pull request #32712 from woocommerce/fix/admin-remaining-task-types
Fix remaining typescript type errors in react admin
2022-04-22 15:31:06 +08:00
Chi-Hsuan Huang a6927c1621
Merge pull request #32698 from woocommerce/fix/admin-task-types
Fix typescript type errors in react admin `./client/tasks/task` & `./client/tasks/tests`
2022-04-22 14:48:51 +08:00
Chris Aprea b6bc8d5c95 Add plumbing to render the "Subscription" admin menu item and page. 2022-04-22 16:11:24 +10:00
David Marín 15aec9e0fa Serializing error message to avoid problems with log parser 2022-04-22 06:19:52 +02:00
David Marín eac68cdf50 Avoid exception when serializing context
Fixes #32576
2022-04-22 06:17:17 +02:00
jonathansadowski 90c3147dee
Merge pull request #32689 from woocommerce/fix/core-build-scripts
Build Scripts: Make build and build:zip more intuitive
2022-04-21 16:50:07 -05:00
Joshua Flowers 835b1e73a1 Add tracks to task list reminder bar 2022-04-21 12:01:56 -07:00
Joel Thiessen e488cb4095
Merge pull request #32723 from woocommerce/fix/32705
Fixing blank screen when Store Details task clicked on sectioned task list.
2022-04-21 11:32:10 -07:00
Josh Betz d0878cc3b6
Merge pull request #32686 from woocommerce/add/wctracker/dropins
Add dropins to WC Tracker data
2022-04-21 13:28:01 -05:00
Roy Ho 507c2cc5bf
Merge pull request #32724 from woocommerce/update/trunk-6.6
Prepare trunk for 6.6
2022-04-21 11:11:45 -07:00
Jorge A. Torres fa50906e3e
Merge pull request #32687 from woocommerce/fix/29705-tests-install
Add pre-req checks to tests suite installation script.
2022-04-21 14:24:51 -03:00
Joel Thiessen 6f4bb7050d
Merge pull request #32528 from woocommerce/update/32508_pnpx_deprecated
Updating all instances of now-deprecated `pnpx` to `pnpm dlx`
2022-04-21 10:16:31 -07:00
Claudio Sanches c8d9be5bae Prepare trunk for 6.6 2022-04-21 13:52:32 -03:00
Joel T 24c55d6284 Adding changelog 2022-04-21 09:39:21 -07:00
Joel T 1ad61780fe Adding support for actionUrl to sectioned task list 2022-04-21 09:35:01 -07:00
Néstor Soriano 22b86726ea
Merge pull request #32610 from woocommerce/fix/32600-vietnam
Display but do not require Street Address 2 for Vietnam.
2022-04-21 17:03:42 +02:00
Claudio Sanches d2a81d8807
Merge pull request #32711 from woocommerce/fix/beta-tester-build-scripts
Standardize builds steps for WooCommerce Beta Tester
2022-04-21 11:50:53 -03:00
Nestor Soriano 74b7f111ed
Fix indentation in one line of WC_Countries::get_country_locale 2022-04-21 16:20:48 +02:00
vedanshujain fd0d3e05dd Applied PR feedback. 2022-04-21 16:37:13 +05:30
Vedanshu Jain 773d1e5f20
Merge pull request #32706 from woocommerce/remove-post_id-from-orders-table
Remove post_id column from orders table, use placeholder entries to find out of sync orders
2022-04-21 16:29:08 +05:30
Nestor Soriano 137ccbe7d1
Add changelog file 2022-04-21 10:42:49 +02:00
Nestor Soriano a16a4deee7
Temporarily skip all the tests in WPPostToCOTMigratorTest
These tests fail because the code that migrates orders is still
not adapted to the removal of the post_id column in the orders table.
2022-04-21 10:24:15 +02:00
Nestor Soriano 87172da204
Add visibility modifiers to constants in DataSyncrhonizer. 2022-04-21 09:42:52 +02:00
Nestor Soriano 72db69f678
Adjust the queries for finding out of sync orders.
Change the queries from relying on the now removed orders.post_id
column to relying on the existence of placeholder records
in the posts table.
2022-04-21 09:42:52 +02:00
Nestor Soriano 2301903a31
Register the new shop_order_placehold post type.
This post type will be used for placeholder entries for orders
that are created in the orders table when orders->posts sync is off
(placeholder entries are created to reserve a proper order id)
2022-04-21 09:42:52 +02:00
Nestor Soriano ad57fcf89a
Remove the post_id column from the orders table.
Note: column is just removed from the schema. No migration is added
to remove the column on existing instances, since the feature is
still in early stages of development.
2022-04-21 09:42:40 +02:00
RJChow 6151f4021c Revert "Changed e2e payment settings page detection"
This reverts commit 1a7c40316e.
2022-04-21 14:08:32 +08:00
RJChow c796406a40 fixed phpunit tests 2022-04-21 13:51:29 +08:00
Chi-Hsuan Huang 0308873d79 Turn on ForkTsCheckerWebpackPlugin in react admin 2022-04-21 13:18:24 +08:00
Chi-Hsuan Huang 841692d14d Add changelogs 2022-04-21 13:16:54 +08:00
Chi-Hsuan Huang 66deb864ab Fix reamining type errors 2022-04-21 13:10:56 +08:00
Chi-Hsuan Huang 71e9073c0b Fix remaining task type errors 2022-04-21 12:44:19 +08:00
RJChow bbb1af478b changelogs 2022-04-21 11:29:58 +08:00
RJChow 73634d63d8 cleanup 2022-04-21 11:29:28 +08:00
RJChow 60885707f1 types and lint 2022-04-21 11:29:28 +08:00
RJChow 07a20ce378 added conditions for rendering 2022-04-21 11:29:28 +08:00
RJChow aaf5c9ff5a Refactored and added new payment icons 2022-04-21 11:29:28 +08:00
RJChow 9a95dc028f implement slotfill 2022-04-21 11:29:28 +08:00
RJChow feb1f42949 design banner 2022-04-21 11:29:28 +08:00
RJChow 9905a882b2 insert react 2022-04-21 11:29:28 +08:00
RJChow ab3a015850 add slotfill mount point 2022-04-21 11:29:28 +08:00
Chi-Hsuan Huang 8aca258df8 Fix header utils 2022-04-21 11:07:25 +08:00
Chi-Hsuan Huang 4747d9af14 Add changelog 2022-04-21 09:04:32 +08:00
Chi-Hsuan Huang c5c1cf438a Fix task types 2022-04-21 09:04:32 +08:00
Chi-Hsuan Huang 1a0c940bdd Convert admin ./client/header/utils to TS 2022-04-21 09:04:32 +08:00
Chi-Hsuan Huang 22575242e9
Merge pull request #32695 from woocommerce/fix/admin-two-column-tasks-types
Fix typescript type errors in react admin `./client/two-column/tasks`
2022-04-21 08:57:08 +08:00
Paul Sealock 03beccc5f2 add build to project.json 2022-04-21 11:47:49 +12:00
Paul Sealock 1be4162466 add changelogger and changelog entry 2022-04-21 11:39:41 +12:00
Paul Sealock dab7e60971 Standardize Beta Tester build scripts 2022-04-21 11:17:59 +12:00
Moon 3f84e6e833
Merge pull request #32688 from woocommerce/fix/fix-client-shipping-typescript-errors
Fix typescript type errors in react admin ./client/shipping
2022-04-20 14:16:33 -07:00
Fernando f2eb0602bb
Merge pull request #32630 from woocommerce/fix/32149_mark_marketing_task_as_complete
Mark marketing task as complete when an extension is installed
2022-04-20 18:07:55 -03:00
Josh Betz 665bb46d53 Changelog 2022-04-20 10:25:13 -05:00
Fernando Marichal 48a3724d08 Fix installed extensions check 2022-04-20 11:57:02 -03:00
Fernando Marichal 43b120bce7 Add changelogs 2022-04-20 11:14:15 -03:00
Fernando Marichal 5dbc394784 Fix task list style conflict 2022-04-20 10:12:08 -03:00
vedanshujain 0198fb736c Add changelog file. 2022-04-20 18:10:19 +05:30
vedanshujain f8a8fd08ba Adjust migration to make cot.id === post.id. 2022-04-20 18:05:10 +05:30
vedanshujain db4bf85ecf Refactor utility method to common file so it can be reused. 2022-04-20 17:30:07 +05:30
Chi-Hsuan Huang 754455460c Fix two columns tasks 2022-04-20 16:24:58 +08:00
Chi-Hsuan Huang de5bf080e1 Add changelogs 2022-04-20 16:12:15 +08:00
Chi-Hsuan Huang eb90be2050 Fix two-column-tasks type errors 2022-04-20 16:12:12 +08:00
Ilyas Foo 62de7bae9c
Merge pull request #32662 from woocommerce/update/refactor-and-improve-tests-payments-task
Refactor and improve tests payments task
2022-04-20 10:38:28 +08:00
Chi-Hsuan Huang 42c578ed22
Merge branch 'trunk' into fix/admin-payment-type 2022-04-20 10:07:53 +08:00
Paul Sealock a2312bc547 Revert "move changelog.txt"
This reverts commit c458b13fde.
2022-04-20 12:40:25 +12:00
Paul Sealock c458b13fde move changelog.txt 2022-04-20 12:14:11 +12:00
Claudio Sanches a4fc48e110
Merge pull request #32651 from woocommerce/update/add-6.4.1-content
Updated `trunk` With WooCommerce 6.4.1 Content
2022-04-19 21:08:06 -03:00
Paul Sealock 79c17ad3cc changelog 2022-04-20 11:40:28 +12:00
Paul Sealock 01ed9e2c9b Make core build scripts more intuitive. 'build' only builds and 'build:zip' builds and creates a zip. This now makes 'build:core' redundant. 2022-04-20 08:26:04 +12:00
moon efb0285502 Add changelog 2022-04-19 10:54:39 -07:00
moon 08d3dc1a52 Fix type errors 2022-04-19 10:45:10 -07:00
barryhughes 42d369ecde Add pre-req checks to tests suite installation script. 2022-04-19 10:38:57 -07:00
Josh Betz 8e131e91f7 Add dropins to WC Tracker data
Knowing which dropins are active will give us some idea about the
capabilities of the hosting environment, like whether they have
an external object cache, load balanced databases (like HyperDB),
or multisite.
2022-04-19 12:25:42 -05:00
Moon e6503e60cb
Merge pull request #32678 from woocommerce/fix/wp-admin-scripts-type
Fix typescript type errors in react admin `./client/wp-admin-scripts`
2022-04-19 09:08:11 -07:00
Jorge A. Torres 41ae67f7b9 Add changelog 2022-04-19 11:23:12 -03:00
Jorge A. Torres fd57c5409a Prevent possible fatal error during install 2022-04-19 11:22:04 -03:00
Ilyas Foo e8d4591c24 Add changelog 2022-04-19 18:08:12 +08:00
Chi-Hsuan Huang 7514c2edce Fix error type 2022-04-19 17:07:55 +08:00
Chi-Hsuan Huang 98e3dd2192 Add changelogs 2022-04-19 16:41:03 +08:00
Chi-Hsuan Huang f861dc4602 Fix woo admin payments & payment-weclome types 2022-04-19 16:31:15 +08:00
moon 32db78a76f Remove PluginsStoreActions 2022-04-18 21:59:04 -07:00
Chi-Hsuan Huang 85324ea2cf
Merge pull request #32615 from woocommerce/update/admin-tsconfig-config
Update TS config to have an isolated TS environment for woo admin
2022-04-19 11:31:49 +08:00
Barry Hughes 463c985b6e
Merge pull request #32049 from froger-me/trunk
Fix issue #31477
2022-04-18 12:18:31 -07:00
Fernando Marichal 7d15dbc01b Add changelog 2022-04-18 15:09:24 -03:00
moon 4bd3764299 Add changelog 2022-04-18 10:47:32 -07:00
moon 05c04c8679 Fix type errors 2022-04-18 10:42:08 -07:00
barryhughes c510e63ede Add changelog. 2022-04-18 10:12:04 -07:00
Fernando Marichal 9c81d2c0d9 Refactor marketing task check 2022-04-18 12:58:17 -03:00
Ilyas Foo a3a43c9476 Lint 2022-04-18 22:04:25 +08:00
Alex López a7114c7619 Updated changelog. 2022-04-18 12:48:59 +02:00
vedanshujain b0c78b995b Applied coding standards. 2022-04-18 15:41:06 +05:30
vedanshujain 467506074b Add changelog. 2022-04-18 14:37:53 +05:30
vedanshujain f6427edd04 Applied coding standards. 2022-04-18 14:32:42 +05:30
vedanshujain 492490c7f3 Applied coding standards. 2022-04-18 14:29:52 +05:30
Alex López 027ba298f4 Merge remote-tracking branch 'origin/trunk' into performance/merchant-view-coupons 2022-04-18 10:33:45 +02:00
Ilyas Foo e8778a5f2b Merge remote-tracking branch 'origin/trunk' into update/refactor-and-improve-tests-payments-task 2022-04-18 08:09:41 +08:00
Alexandre Froger 5e55130b30
Fix issue #31477 - implement suggested changes 2022-04-16 11:27:12 +08:00
Alexandre Froger 989dbd3122
Revert previous commit changes
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2022-04-16 11:21:50 +08:00
Christopher Allford 07901f3cca Updated Stable Tag To 6.4.1 2022-04-15 13:58:41 -07:00
Claudio Sanches 8c0d4baf3d Empty next changelog 2022-04-15 17:10:45 -03:00
Claudio Sanches 42589dcc33 Update changelog 2022-04-15 17:09:37 -03:00
Claudio Sanches eb6b7d2b0e Update changelogs 2022-04-15 17:09:30 -03:00
“Chris 7ed7ad2fde Introduce date_column_name in reports datastore 2022-04-15 18:06:32 +03:00
Claudio Sanches 450b2483f8
Merge pull request #32627 from woocommerce/update/woocommerce-blocks-7.4.0
Update WooCommerce blocks package to 7.4.1
2022-04-15 10:47:18 -03:00
Ilyas Foo 89b7415297 Refactor and add unit tests 2022-04-15 18:42:07 +08:00
vedanshujain 0a7ff525d6 Add value clause for better testing. 2022-04-15 15:43:45 +05:30
vedanshujain 309a005ee8 Fixups for duplicate meta entries. 2022-04-15 15:42:08 +05:30
vedanshujain aec1344d03 Add support for multi-value migrations. 2022-04-15 15:07:01 +05:30
Chi-Hsuan Huang 0c554fddad Add @wp/plugins, data, compose types dev deps to woo admin
Add their type definitions and remove them from index.d.ts declare module
2022-04-15 17:08:31 +08:00
Chi-Hsuan Huang a5786a060b Declare svg module for client typing 2022-04-15 17:08:31 +08:00
Chi-Hsuan Huang 1a81adc9ca Add changelog
Update changelog
2022-04-15 17:08:30 +08:00
Chi-Hsuan Huang fb420020d3 Declare TS module for non-ts imports 2022-04-15 17:04:53 +08:00
Chi-Hsuan Huang e66b78b892 Add @types/testing-library__jest-dom to fix client ts errors 2022-04-15 17:04:53 +08:00
Chi-Hsuan Huang 82f7d98cf5
Merge pull request #32621 from woocommerce/remove/admin-test-folder
Remove woocommerce-admin/tests
2022-04-15 16:46:56 +08:00
Chi-Hsuan Huang ec16b29b4f Disable ForkTsCheckerWebpackPlugin in admin webpack 2022-04-15 13:50:58 +08:00
Chi-Hsuan Huang 01276d492e Add changelogs 2022-04-15 13:50:18 +08:00
Chi-Hsuan Huang 4cb893dda9 Update admin tsconfig to isolated from other projects 2022-04-15 13:50:18 +08:00
Chi-Hsuan Huang 60c8c05028 Move admin typings to ./client/typings 2022-04-15 13:50:17 +08:00
Chi-Hsuan Huang f6282eefdc
Merge branch 'trunk' into update/webpack-config 2022-04-15 13:48:20 +08:00
Chi-Hsuan Huang 0557171445
Merge pull request #32578 from woocommerce/dev/32466-docs-webpack-config
Document Admin’s webpack config
2022-04-15 13:47:32 +08:00
Chi-Hsuan Huang ac95d54669 Add more comments to admin webpacks config & simplify the logic 2022-04-15 12:08:59 +08:00
Chi-Hsuan Huang 3ead227cdc
Merge branch 'trunk' into update/admin-docs 2022-04-15 11:53:08 +08:00
Alexandre Froger 962332f3f1 Fix issue #31477
data.coupon_code undefined in checkout.js
2022-04-14 13:47:26 -07:00
Joel Thiessen 35440c9b56
Supressing tasks reminder bar on products screen and addressing translation issue #32526 2022-04-14 12:06:20 -07:00
Fernando Marichal 2d3450fa66 Mark marketing task as complete when an extension is installed 2022-04-14 15:39:50 -03:00
Josh Betz daa25e93cb
Merge pull request #32613 from woocommerce/fix/exclude-drafts-in-reports
Reports: Don't include auto-draft orders in reports
2022-04-14 12:56:33 -05:00
Nadir Seghir 5040a10d01 update to wc blocks to 7.4.1 2022-04-14 17:59:02 +01:00
Claudio Sanches 99bf4afd26 Added changelog entry 2022-04-14 13:27:08 -03:00
Joshua T Flowers 3561b87f83
Track when task list sections are closed (#32625)
* Track when task list sections are closed

* Add tracks for when task list section is opened
2022-04-14 12:21:56 -04:00
Saad Tarhi d56f00e832 Update WooCommerce blocks package to 7.4.0 2022-04-14 15:30:31 +00:00
Fernando 4b7eb80d3f
Merge pull request #32626 from woocommerce/fix/32141_remove_pinterest_extension_from_obw
Remove Pinterest extension from OBW
2022-04-14 12:30:12 -03:00
Josh Betz de086a684e Add changelog 2022-04-14 10:13:19 -05:00
Josh Betz f384581e67 Reports: Don't include auto-draft orders in reports
We use auto-draft in the the API
(https://github.com/woocommerce/woocommerce/pull/31290) and to some
extent in wp-admin. These orders should not impact reporting.

Fixes https://github.com/woocommerce/woocommerce-ios/issues/6626
2022-04-14 10:08:53 -05:00
Fernando Marichal ab319ad9ef Add changelog 2022-04-14 11:50:03 -03:00
Jorge A. Torres f3865ca543
Merge pull request #32623 from woocommerce/revert-31779-fix/31729-add-menu-page-arg
Revert "Use integers for menu page priority."
2022-04-14 11:47:43 -03:00
Fernando Marichal 1998203b6e Remove Pinterest extension from OBW 2022-04-14 11:36:53 -03:00
louwie17 19e57a4377
Merge pull request #32624 from woocommerce/update/minor_tasklist_changes
Update minor tasklist changes
2022-04-14 11:21:17 -03:00
Joshua T Flowers 26a27650a3
Add check for tasklist layout experiment (#32593)
* Add check for tasklist layout experiment

* Remove task list setup feature flags

* Remove errant config file

* Add negative check for experiment 1 in experiment 2
2022-04-14 10:19:27 -04:00
Lourens Schep 3c69e4f2b0 Remove unused dependency 2022-04-14 10:47:53 -03:00
vedanshujain 821ee8dc58 Adds changelog 2022-04-14 18:33:37 +05:30
Lourens Schep d59fa94d2f Add sectioned task list loading placeholder component 2022-04-14 09:48:53 -03:00
Vedanshu Jain 1b52d6d76d
Revert "Use integers for menu page priority." 2022-04-14 18:14:35 +05:30
Lourens Schep 93438c395d Update progressive header to just show welcome to blog title once completed 2022-04-14 08:51:47 -03:00
Chi-Hsuan Huang c546e9e6e7 Update payment method links to extension > payment section 2022-04-14 19:01:35 +08:00
Chi-Hsuan Huang aae79959de Add changelog 2022-04-14 19:01:16 +08:00
Chi-Hsuan Huang 08466d8de1 Update payment method link to the internal Extensions Marketplace 2022-04-14 19:01:14 +08:00
Ilyas Foo 5bd497b384
Merge pull request #32605 from woocommerce/update/32132-payment-logic-in-task-and-settings
Update payment gateway logic in payment task
2022-04-14 18:36:44 +08:00
Chi-Hsuan Huang 83e6e39ad8
Merge pull request #32622 from woocommerce/remove/admin-feature-plugin-env
Pass `WC_ADMIN_PHASE=core` to build commands & Remove "plugin" env
2022-04-14 17:55:22 +08:00
Chi-Hsuan Huang 5a74e9cba6 Add WC_ADMIN_PHASE=core to build:feature-config 2022-04-14 17:25:29 +08:00
Chi-Hsuan Huang 075be718e9 Add changelog 2022-04-14 17:23:50 +08:00
Chi-Hsuan Huang b936e3243f Update feature-flags.md 2022-04-14 17:15:12 +08:00
Chi-Hsuan Huang 30a2fc18d6 Pass WC_ADMIN_PHASE=core to build commands 2022-04-14 17:13:23 +08:00
Ilyas Foo 3668ea36c5 Small refactor to consolidate logic 2022-04-14 17:09:10 +08:00
Ilyas Foo e6458fafe0 Standardize image path 2022-04-14 17:08:13 +08:00
RJ 8f42179cee
Merge pull request #32603 from woocommerce/fix/broken-i18n-from-wca-merge
Added temporary path fixes to fix broken i18n due to path changes
2022-04-14 17:03:53 +08:00
Chi-Hsuan Huang c813c3bc5f Remove "plugin" environment from admin feature plugin 2022-04-14 16:40:35 +08:00
Chi-Hsuan Huang 7f55756ffe Add changelog 2022-04-14 16:24:31 +08:00
Chi-Hsuan Huang 20736a5280 Remove docsify-cli and releated files 2022-04-14 13:50:29 +08:00
Chi-Hsuan Huang dfa51ac747 Update docs 2022-04-14 13:50:27 +08:00
Chi-Hsuan Huang 96a5a7b75d Remove building ./docs storybook 2022-04-14 13:49:51 +08:00
Chi-Hsuan Huang ed8885f0b7 Fix admin extensions webpack config 2022-04-14 13:49:51 +08:00
Chi-Hsuan Huang 0ed8911875 Update admin docs README.md 2022-04-14 13:49:51 +08:00
Chi-Hsuan Huang a97df494e5 Update woocommerce-admin README.md 2022-04-14 13:49:51 +08:00
Chi-Hsuan Huang 616d318203
Merge pull request #32602 from woocommerce/fix/client-dashboard-type
Fix typescript annotations in react admin `./client/dashboard`
2022-04-14 13:48:16 +08:00
Chi-Hsuan Huang 272394ae9b
Merge pull request #32599 from woocommerce/update/remove-admin-github-folder
Remove woocommerce-admin .github folder
2022-04-14 13:40:38 +08:00
Chi-Hsuan Huang 863316ade7
Merge pull request #32518 from woocommerce/update/32516-woocommerce-admin-links
Update woocommerce-admin links to point to woocommerce repo
2022-04-14 13:40:25 +08:00
RJChow fdd9b1bbb8 Added type guard for locale and unit tests for isAddressFieldRequired 2022-04-14 12:53:45 +08:00
Chi-Hsuan Huang b69a923695 Update admin's webpack config
- Remove unnessary settings
- Refactor config to make it easier to read
2022-04-14 12:10:10 +08:00
Chi-Hsuan Huang adda46cc7b Document Admin’s webpack config 2022-04-14 12:09:00 +08:00
Chi-Hsuan Huang afc8217bcc Remove woocommerce-admin/tests 2022-04-14 11:48:52 +08:00
Ilyas Foo 1a129a2354 Change recommended ribbon to Pill 2022-04-14 10:52:12 +08:00
Ilyas Foo 6f8cb2b536 Merge remote-tracking branch 'origin/trunk' into update/32132-payment-logic-in-task-and-settings 2022-04-14 09:48:39 +08:00
Ilyas Foo 54ea7c9cbe Revert previous image attribute to preserve old images and new icons are replace with new attribute 2022-04-14 09:45:27 +08:00
Moon daee87d145
Merge pull request #32591 from woocommerce/update/32522-remove-deactivation-hooks-from-wca
Update WCA deactivation hook to use WC_PLUGIN_FILE
2022-04-13 18:41:33 -07:00
Ilyas Foo adbc101312 Update logic to only show additional gateways when other is installed and wcpay isnt eligible 2022-04-14 08:39:55 +08:00
Ilyas Foo 39c57c802f Fix tests 2022-04-14 08:38:42 +08:00
Ilyas Foo c81d749781 Fix cases when gateway is disabled but has been set up 2022-04-14 08:37:53 +08:00
Ilyas Foo 197c613f07 Add changelog 2022-04-14 08:12:19 +08:00
moon f514c81074 Fix broken tests 2022-04-13 17:11:44 -07:00
Ilyas Foo e7ce043e94 Update gateway countries 2022-04-14 07:58:56 +08:00
moon 09a85d9cb4 Remove wc_admin_update_140_change_deactivate_plugin_note_type -- no longer needed 2022-04-13 16:53:33 -07:00
Barry Hughes a761cb8ebc
Merge pull request #31012 from RatulHasan/fix/unsupported_operand_types
Fix/unsupported operand types
2022-04-13 16:38:43 -07:00
moon c80aba8450 Remove install.php 2022-04-13 16:33:16 -07:00
moon 1a978411eb Add phpcs ignore rules 2022-04-13 16:32:57 -07:00
moon 73a6292755 Remove wc_admin_update_140_change_deactivate_plugin_note_type callback 2022-04-13 16:32:52 -07:00
moon ffdd8cb34a Add changelog 2022-04-13 16:32:10 -07:00
moon 24cdec7bd2 Ignore PascalCase format error 2022-04-13 16:32:10 -07:00
moon 1d290fe21b Remove use of DeactivatePlugin -- this note is no longer needed since WCA is now embeded into the core 2022-04-13 16:32:08 -07:00
moon 1375f000f6 Use WC_PLUGIN_FILE to hook deactivation -- WC_ADMIN_PLUGIN_FILE is no longer available. 2022-04-13 16:30:40 -07:00
Moon cfa828d70d
Merge pull request #32513 from woocommerce/update/32176-merge-wca-install-logic-to-core
Merge WCA install routines to the core
2022-04-13 16:29:39 -07:00
Joel T 0ec373734f Replacing condition depending on pageTitle due to translation issues 2022-04-13 16:24:55 -07:00
Jacob Sewell 6ad7729fb3 Changelog for 32614. 2022-04-13 15:41:44 -05:00
Jacob Sewell bc700e3735 Add unit tests for get_notes and lookup_notes order and orderby sanitization. 2022-04-13 15:35:23 -05:00
Jacob Sewell 5ebfa3e536 Sanitize order and orderby args for get_notes() and lookup_notes(). 2022-04-13 15:18:14 -05:00
Joel T 932571c839 Adding changelog 2022-04-13 13:08:13 -07:00
Joel T bc9ce569b0 Adding Products screens to those that will not show tasks reminder bar 2022-04-13 13:08:13 -07:00
barryhughes f593a2435c Use a cast to float instead of ternary. 2022-04-13 12:56:33 -07:00
ratulhasan 12719616d9 empty check 2022-04-13 12:46:12 -07:00
ratulhasan 3b4168dcbc Fix Uncaught TypeError: Unsupported operand types: string * float 2022-04-13 12:46:12 -07:00
ratulhasan 59adcb26b8 Fix Uncaught TypeError: Unsupported operand types: string * float 2022-04-13 12:46:12 -07:00
Joel Thiessen 9901b1e931
Updating deasync package to resolve build issue in linux #32510 2022-04-13 12:38:45 -07:00
Joel Thiessen 0a0c6b45cf
Merge branch 'trunk' into update/32508_pnpx_deprecated 2022-04-13 12:35:29 -07:00
Joel T 40c6ae32ff Changing dlx to exec for grunt package 2022-04-13 12:31:36 -07:00
Joel T 3b3fb00d04 Updating changelog 2022-04-13 12:01:51 -07:00
Lourens Schep f15e38f55e Fix minor css issues with complete task list item 2022-04-13 16:01:31 -03:00
Josh Betz dc095300c2
Merge pull request #32571 from woocommerce/fix/32539/order-autodraft-validation
Normalize auto-draft as a status in the abstract order class
2022-04-13 13:07:55 -05:00
Fernando 16424423bd
Merge branch 'trunk' into add/32157_tests_to_disable_welcome_modals 2022-04-13 14:33:27 -03:00
Jacob Sewell 80fec7c677
Merge pull request #32574 from woocommerce/add/32573-context-arg-for-get-notes
Add context param for get_notes and related methods
2022-04-13 12:22:19 -05:00
louwie17 212198b3c4
Merge pull request #32302 from woocommerce/feature/32164_new_task_list_version_2
Add sectioned task list component
2022-04-13 13:56:27 -03:00
barryhughes 8d840c4ea0 Display but do not require Street Address 2 for Vietnam. 2022-04-13 09:20:47 -07:00
RJ fe1c83de1e
Merge pull request #32559 from woocommerce/fix/wca-webpack-unminify
Changed unminify plugin to hook into step before optimization
2022-04-13 23:37:21 +08:00
Lourens Schep 60e288c849 Update illustrations and fix potential update delay 2022-04-13 12:15:05 -03:00
Lourens Schep 0c91a56f1f Address minor PR feedback and UI issues 2022-04-13 11:20:26 -03:00
moon 818a1dcff7 Make is_installing private 2022-04-13 06:46:02 -07:00
moon b37421fb98 Do not call unnecessary create_tables() -- tables should be ready by the time we call the method 2022-04-13 06:43:06 -07:00
Ilyas Foo dae3396854 Add affirm, amazon pay, afterpay 2022-04-13 21:40:45 +08:00
Ilyas Foo f1d8cbe15c Add support for external links for payment gateways 2022-04-13 21:39:44 +08:00
RJChow 072d9b8a14 Added changelog 2022-04-13 21:22:28 +08:00
berislav grgičak 615a5d8442
Merge pull request #32534 from bgrgicak/remove/32444-featured-request-user-agent-headers
Remove featured request user agent headers
2022-04-13 15:19:06 +02:00
Lourens Schep 52922c9219 Add changelogs 2022-04-13 09:58:09 -03:00
Lourens Schep 3bb9c18a2d Update hover color 2022-04-13 09:58:09 -03:00
Lourens Schep 387dc777e6 Fix PHP I18n domain issues 2022-04-13 09:58:09 -03:00
Lourens Schep 56cb47e059 Fix css lint errors 2022-04-13 09:58:09 -03:00
Lourens Schep 7547901e7d Update number of task list badge and adjust styling 2022-04-13 09:58:09 -03:00
Lourens Schep dfa342f400 Update unchecked checkbox border for task list 2022-04-13 09:58:09 -03:00
Lourens Schep 954be3997d Realign header image 2022-04-13 09:58:09 -03:00
Lourens Schep fd30323288 Fix section title and list alignment 2022-04-13 09:58:09 -03:00
Lourens Schep 7bdaea6195 Add progress header to sectioned task list and made some additional little changes 2022-04-13 09:58:09 -03:00
Lourens Schep df0acb9286 Add changelog 2022-04-13 09:58:09 -03:00
Lourens Schep dd8380820b Updated image urls 2022-04-13 09:58:09 -03:00
Lourens Schep 68efbafcb5 Add sectioned task list component 2022-04-13 09:58:09 -03:00
Ilyas Foo ed0fd071f0 Update category lists 2022-04-13 20:42:25 +08:00
RJChow 380d54114d Added some temporary path fixes to fix broken i18n due to path changes 2022-04-13 20:19:38 +08:00
Ilyas Foo 202f9df078 Fix tests 2022-04-13 19:12:25 +08:00
Néstor Soriano 1a77d7849e
Merge pull request #32062 from woocommerce/cot/implement-non-migrated-data-query
Implement queries for non-synchronized orders, and revamp COT related settings
2022-04-13 12:24:23 +02:00
Chi-Hsuan Huang c829aacfc7 Fix typescript annotations in react admin ./dashboard 2022-04-13 16:57:58 +08:00
Ilyas Foo 9dcd761c2a Add gateway categories for stripe, paypal, square, klarna payments, eway 2022-04-13 15:46:48 +08:00
Ilyas Foo b7159dbfc9 Add test 2022-04-13 15:43:07 +08:00
Néstor Soriano 544795e70a
Merge pull request #32569 from woocommerce/fix/downloadable-file-data
Product downloads → Support a concept of active/inactive files.
2022-04-13 09:17:03 +02:00
Ilyas Foo 7bebe192e9 Update logic to show only additional category when applicable 2022-04-13 15:13:15 +08:00
Chi-Hsuan Huang 4760b10cc8 Remove admin .github folder 2022-04-13 14:40:27 +08:00
Ilyas Foo 31bcf06ac8
Merge pull request #32467 from woocommerce/dev/32131-ui-changes-additional-payment-section
UI changes for set up payments task
2022-04-13 12:52:46 +08:00
Chi-Hsuan Huang e627fb344e
Merge pull request #32582 from woocommerce/fix/admin-clean-cmd
Fix `pnpm nx clean woocommerce-admin` command
2022-04-13 12:36:36 +08:00
Christopher Allford 372ad23cc8 Updated Version & Stable Tag 2022-04-12 15:37:58 -07:00
Christopher Allford 42838bc2da Added 6.4.0 Changelog 2022-04-12 15:36:24 -07:00
Corey McKrill 667d2a0be1
Add changelog file 2022-04-12 14:15:21 -07:00
Jacob Sewell 4b9c44ebb3 Docblock linter fixes. 2022-04-12 15:46:17 -05:00
Fernando 0a3359d1ac
Merge pull request #32527 from woocommerce/add/32141_pinterest_extension_to_obw
Add Pinterest extension to onboarding wizard and marketing task
2022-04-12 15:58:48 -03:00
moon 2f21b3592e Add test for migrate_options 2022-04-12 11:12:19 -07:00
moon 529f43e769 Add install tests 2022-04-12 10:50:40 -07:00
moon 29a5d0a0db Remove redundant action -- woocommerce_updated and woocommerce_updated_existing are redundant 2022-04-12 10:21:15 -07:00
Fernando Marichal b85648a117 Fix fallback images URL 2022-04-12 14:08:04 -03:00
Alex López 44d7443d7c Added new performance test to view coupons as merchant. 2022-04-12 17:55:47 +02:00
Fernando Marichal 97fca30b39 Fix fallback text 2022-04-12 12:07:10 -03:00
Barry Hughes 84392cfbf6
Merge pull request #32589 from woocommerce/issue-31347
Enable "Save changes" for variations on the admin when a textfield receives input
2022-04-12 08:05:47 -07:00
barryhughes 9f025db18a Adjust changelog entry. 2022-04-12 08:05:00 -07:00
louwie17 c10a9cfd63
Merge pull request #32507 from woocommerce/fix/32128_experiment_1_ui_issues
Fix experiment 1 UI issues
2022-04-12 11:27:30 -03:00
Fernando Marichal e219a19229 Renamed `testAdminHomescreenWelcomeModal` 2022-04-12 10:38:27 -03:00
Fernando Marichal d6c216fc74 Remove `welcome-modal.test.js 2022-04-12 10:37:49 -03:00
Jorge A. Torres 566076de9b Add changelog 2022-04-12 10:23:12 -03:00
Jorge A. Torres d4d70acfd1 Enable “Save changes” in the admin variations form when textfields change 2022-04-12 09:50:01 -03:00
Fernando Marichal 17ae456868 Fix text domain 2022-04-12 09:33:57 -03:00
Moon bb9bc378cf
Merge pull request #32447 from woocommerce/update/32130-ui-changes-to-the-recommended-payment-options
UI changes to the recommended payment options
2022-04-12 05:30:18 -07:00
Fernando Marichal db7b1ba035 Add Pinterest to help panel 2022-04-12 09:26:54 -03:00
vedanshujain c9c930cfcb Refactor meta migrator to follow pattern in meta to custom migrator. 2022-04-12 16:41:58 +05:30
Néstor Soriano 2bdabff4e0
Merge pull request #32317 from ovidiul/31314-add-parse-file-path-filter
Adding parse_file_path filters to support remote file systems
2022-04-12 12:47:15 +02:00
vedanshujain f7bd637845 Add tests to check for duplicated meta records. 2022-04-12 15:32:30 +05:30
vedanshujain f063d40c95 Add test for migrations. 2022-04-12 15:22:39 +05:30
vedanshujain 19b3f1a7d1 Add source table name to prevent ambigious column names. 2022-04-12 15:22:20 +05:30
vedanshujain 7cd7e0538f Enable meta migrations. 2022-04-12 15:21:46 +05:30
Néstor Soriano 29a08dc515
Add changelog file for #32317. 2022-04-12 11:38:59 +02:00
Néstor Soriano 6155bb4094
Merge pull request #32460 from AlexTech01/patch-2
Change is_file_valid_csv to wc_is_file_valid_csv
2022-04-12 11:27:10 +02:00
Ovidiu Liuta 9c65d3bbdc
phpcs fixes 2022-04-12 12:24:12 +03:00
Ovidiu Liuta 4624ab7dde
adding filter comments 2022-04-12 11:33:12 +03:00
Néstor Soriano e13c30cfc4
Add changelog file for #32460. 2022-04-12 10:32:56 +02:00
Chi-Hsuan Huang 13720a663e Fix admin clean command 2022-04-12 15:47:03 +08:00
Ilyas Foo 0b2df9a956 Fix text domain, standardize component conditional, remove unnecessary comment 2022-04-12 10:52:11 +08:00
Jacob Sewell e1db7ab0f2 Changelog for 32573/32574. 2022-04-11 21:17:59 -05:00
Ilyas Foo 7cca9642f4 Remove enabled section 2022-04-12 10:09:07 +08:00
Jacob Sewell e83631983a Add unit tests for new context param in Notes\DataStore::get_notes(). 2022-04-11 21:09:04 -05:00
Jacob Sewell 0ae4f8e484 Add context param to Notes\DataStore::get_notes() and associated methods/filters. 2022-04-11 21:08:26 -05:00
Ilyas Foo e2da686c31 Add eway 2022-04-12 09:49:23 +08:00
Chi-Hsuan Huang 0dcea11bf0
Merge pull request #32531 from Saggre/fix/table-card-docs
Fix TableCard component docs
2022-04-12 08:59:43 +08:00
Corey McKrill ac1ad607b4
Normalize auto-draft as a status in the abstract order class
Ensures that an existing order with auto-draft status won't be
interpreted as pending when determining if the status has changed.

This also fixes an unrelated phpcs formatting error in order to pass the
precommit checks.

Fixes #32539
2022-04-11 16:29:43 -07:00
barryhughes 49b3a328ce PHPCS/formatting fixes; restore inadvertently removed test. 2022-04-11 15:51:55 -07:00
barryhughes 10b8eef1f2 Add changelog. 2022-04-11 15:44:10 -07:00
barryhughes 4729ae1f01 Product downloads → support a concept of active/inactive files. 2022-04-11 14:59:56 -07:00
moon 3c8043885d Add changelog 2022-04-11 10:33:25 -07:00
Jorge A. Torres e9e382adf8
Merge pull request #32034 from woocommerce/cot/31766
Add migration to move orders from wp_posts to custom tables
2022-04-11 14:30:02 -03:00
moon 2bc077e0c9 Clear the note hook directly 2022-04-11 10:26:55 -07:00
moon f2159c4bc2 Fix broken tests 2022-04-11 10:26:55 -07:00
moon 75c7359b27 Import missing namespace 2022-04-11 10:26:55 -07:00
moon 27bf0e5c96 Add WCA clean up code to uninstall.php 2022-04-11 10:26:55 -07:00
moon 1ca12a8784 Update delete_obsolete_notes to use $wpdb directly to delete the notes -- note store is not available when the plugin is activated via CLI 2022-04-11 10:26:55 -07:00
moon ae6a658578 Add replacements for the deprecated actions 2022-04-11 10:26:55 -07:00
moon 2d56be4966 Remove plugin-version test -- we no longer have woocommerce-admin.php 2022-04-11 10:26:55 -07:00
moon 9e90b3be89 Fix styling 2022-04-11 10:26:55 -07:00
moon 5376bd03ce Add WCA uninstall routines 2022-04-11 10:26:55 -07:00
moon 474cff5db6 Remove unnecessary variable 2022-04-11 10:26:55 -07:00
moon 52de6e872b Add tests for the install class 2022-04-11 10:26:55 -07:00
moon 5af9e1f066 Fix failing test 2022-04-11 10:26:55 -07:00
moon 03d3ffe1f9 Delete WCA install completely 2022-04-11 10:26:55 -07:00
moon c17cbb5dbd Remove WCA Install class references 2022-04-11 10:26:55 -07:00
moon 3c1ce9c613 Make create_tables public -- this is needed from WCA classes 2022-04-11 10:26:55 -07:00
moon 70ff5ad3ae Move delete_obsolete_notes to the core 2022-04-11 10:26:55 -07:00
moon 0dae9d450e Move migrate_options to core 2022-04-11 10:26:55 -07:00
moon 9a038a4bd2 Move create_tables to the core 2022-04-11 10:26:55 -07:00
moon dbe913ea0e Move create_cron_jobs to the core 2022-04-11 10:26:55 -07:00
moon 05200a99fb Move $db_updates to the core 2022-04-11 10:26:55 -07:00
moon f974b15f28 Use the new actions 2022-04-11 10:26:55 -07:00
moon 940fcd3157 Remove unnecessary calls 2022-04-11 10:26:55 -07:00
moon 224985adfb Update WCA db update logic -- uses the same logic as the core 2022-04-11 10:26:55 -07:00
moon 663aa3cc72 Add is_installing for backward compatibility 2022-04-11 10:26:55 -07:00
moon f3396df6c0 Add woocommerce_admin_version for backward compatibility 2022-04-11 10:26:55 -07:00
moon abbe855668 Migrate install method to the core
* Moved woocommerce_admin_updated, woocommerce_admin_newly_installed, woocommerce_admin_updated_existing actions to the core -- they are deprecated now

* Added woocommerce_updated, woocommerce_newly_installed, and woocommerce_updated_existing actions
2022-04-11 10:26:55 -07:00
moon f8944a8f54 Remove install from the WCA install
* Moved woocommerce_admin_install_timestamp option and woocommerce_admin_installed action to the core
2022-04-11 10:26:55 -07:00
moon f4af74aa61 Call maybe_update_db_version from the core install 2022-04-11 10:26:55 -07:00
moon eabbab9832 Stop calling maybe_update_db_version 2022-04-11 10:26:55 -07:00
moon 60ce353c0d Call delete_obsolete_notes from the core install 2022-04-11 10:26:55 -07:00
moon 80d5d7fc43 Call create_cron_jobs from the core install. I also renamed create_events to create_cron_jobs to match the function name used in the core 2022-04-11 10:26:55 -07:00
moon eb5e56e374 Call WCA create_tables from the core install 2022-04-11 10:26:55 -07:00
moon 1a86750d06 Call migrate_options from the core install 2022-04-11 10:26:55 -07:00
moon f4a191031c Migrate wpmu_drop_tables logic to core 2022-04-11 10:26:55 -07:00
moon fc7adc283d Add changelog 2022-04-11 10:08:14 -07:00
moon becc53d645 Make sure paymentGatewaySuggestions is defined 2022-04-11 09:55:18 -07:00
Claudio Sanches 03cb8d9d2e
Merge pull request #32537 from woocommerce/fix/ascii-uasort
Fix ASCII Sorting in Different Locales
2022-04-11 12:30:41 -03:00
barryhughes ac446e851f Satisfy linter action and use trailing comma in multi-line array. 2022-04-11 08:16:21 -07:00
moon edb8b69dc4 Use wc.tracks.recordEvent if available 2022-04-11 07:35:41 -07:00
moon 869a3baf3c Remove wcadmin prefix 2022-04-11 07:34:07 -07:00
moon ff2eb6f98d Record wcadmin_settings_payments_recommendations_other_options event with available payment methods 2022-04-11 07:34:07 -07:00
moon 4fe8cf2f71 Add id to the link 2022-04-11 07:34:07 -07:00
moon 51782d8228 Remove unused namespace import 2022-04-11 07:34:07 -07:00
moon 06f66ba20c Removed the filter and moved the link logic due to security reason 2022-04-11 07:34:07 -07:00
moon 08e5883246 Add other payment methods link when the store is in WC Payments eligible country 2022-04-11 07:34:07 -07:00
moon 721ff37095 Support woocommerce_payment_gateways_setting_additional_rows filter to allow adding additional table rows 2022-04-11 07:34:07 -07:00
moon 5b31f5acf4 Do not show payment recommendations if store owner is in a country where WC Payment is supported 2022-04-11 07:34:07 -07:00
Barry Hughes 521ad5f34c
Merge pull request #32027 from woocommerce/update/filter-out-product-variation-line-item-meta
Filter out product variation line_item meta
2022-04-11 07:08:46 -07:00
barryhughes 1d0c35d226 Changelog. 2022-04-11 07:00:46 -07:00
barryhughes 0acf54ab25 Reduce risk of prematurely dropping meta box error messages. 2022-04-11 07:00:46 -07:00
RJChow 464bcb7783 Changed unminify plugin to hook into step before optimization 2022-04-11 21:54:48 +08:00
vedanshujain 63ae96a2b6 Add changelog. 2022-04-11 19:21:58 +05:30
vedanshujain b14b34abf8 Typos and DataBase -> Database. 2022-04-11 19:21:58 +05:30
vedanshujain 891a9439a1 Applied coding standards. 2022-04-11 19:21:58 +05:30
vedanshujain c06d8dd80a Applied coding standards. 2022-04-11 19:21:57 +05:30
vedanshujain 909a57e784 Applied coding standards. 2022-04-11 19:21:57 +05:30
vedanshujain c5df64ca57 Add errors to log. 2022-04-11 19:21:56 +05:30
vedanshujain bb10c88b8f Minor fixes in bulk migration logic. 2022-04-11 19:21:56 +05:30
vedanshujain 81f918af87 Force type to try to fix CI. 2022-04-11 19:21:56 +05:30
vedanshujain b403fa0cf0 Remove incorrectly added file. 2022-04-11 19:21:55 +05:30
vedanshujain d7434ce3a7 Force type to try to fix CI. 2022-04-11 19:21:55 +05:30
vedanshujain 8e4287d19b Applied coding standards. 2022-04-11 19:21:55 +05:30
vedanshujain f8d5746a2d Applied coding standards 2022-04-11 19:21:54 +05:30
vedanshujain 5b3e9f78d2 Applied coding standards. 2022-04-11 19:21:54 +05:30
vedanshujain 2270bfbe9d Applied coding standards + minor fixups. 2022-04-11 19:21:53 +05:30
vedanshujain a220e4f2ea Change parent class reference to try to fix CI. 2022-04-11 19:21:53 +05:30
vedanshujain d5b164622f Applied coding standards. 2022-04-11 19:21:53 +05:30
vedanshujain 02376e6ec5 Add return statement to try to fix CI. 2022-04-11 19:21:52 +05:30
vedanshujain eff7569dfc Add unit tests for handling duplicates. 2022-04-11 19:21:52 +05:30
vedanshujain 78e0e6cb78 Refactor migrator config into dedicated files. 2022-04-11 19:21:52 +05:30
vedanshujain 56ee0b2f4a Add update support along with inser. 2022-04-11 19:21:51 +05:30
vedanshujain 9a178b7704 Add unit test for order data migration. 2022-04-11 19:21:51 +05:30
vedanshujain 3ed9943474 Also add migration config for transaction_id column. 2022-04-11 19:21:50 +05:30
vedanshujain 7186c80c5e Reuse function instead of hardcoding for consistency. 2022-04-11 19:21:50 +05:30
vedanshujain a4c83de142 Add dependency injection class. 2022-04-11 19:21:50 +05:30
vedanshujain 2802162be5 Add meta table and typo fix. 2022-04-11 19:21:49 +05:30
vedanshujain 169bd4fd4f Fix incorrect column mapping bugs. 2022-04-11 19:21:49 +05:30
vedanshujain ee76fbc17c Modify to migrate by IDs to reduce responsibilities of generate migrator classes. 2022-04-11 19:21:49 +05:30
vedanshujain 8724429382 Refactor to use new config format. 2022-04-11 19:21:48 +05:30
vedanshujain 7836066008 Refactor config format to be more clear. 2022-04-11 19:21:48 +05:30
vedanshujain 48356c213f Refactor config format to be more clear. 2022-04-11 19:21:47 +05:30
vedanshujain 5d6eaff099 Applied coding standards. 2022-04-11 19:21:47 +05:30
vedanshujain 7bb25779aa Add config for migration meta data table as well. 2022-04-11 19:21:47 +05:30
vedanshujain 6b70afc731 Refactor to use migration helper for better re-usability. 2022-04-11 19:21:46 +05:30
vedanshujain aa00d7af68 Add defination of order meta data table.
Made table name methods static so that they can be reused.
2022-04-11 19:21:46 +05:30
vedanshujain ee834e2cf1 Applied coding standards. 2022-04-11 19:21:46 +05:30
vedanshujain c44cc40d21 Add utility class for migrating metadata. 2022-04-11 19:21:45 +05:30
vedanshujain cb280829cc Add a migration helper class to refactor common utility methods. 2022-04-11 19:21:45 +05:30
vedanshujain 786561d6fd Add migrations for operational data table. 2022-04-11 19:21:45 +05:30
vedanshujain 6cc34e8616 Add support for migrating shipping addresses. 2022-04-11 19:21:44 +05:30
vedanshujain 32d1162a01 Add migration support for billing address. 2022-04-11 19:21:44 +05:30
vedanshujain 17b1623071 Add support for select clause in column name. 2022-04-11 19:21:43 +05:30
vedanshujain bdff010018 Add class WPPostToCOTMigrator 2022-04-11 19:21:43 +05:30
vedanshujain 25f39a6e42 Add generic meta to custom table migrator class, to be used in meta to custom table migrations. 2022-04-11 19:21:42 +05:30
vedanshujain d58bbc112f Add error logger class for custom table migration. 2022-04-11 19:21:42 +05:30
barryhughes 7065f678b7 Add changelog. 2022-04-11 06:20:09 -07:00
Lourens Schep 8eb03eba46 Remove commented out code 2022-04-11 10:19:30 -03:00
Lourens Schep 5251aa6e97 Fix lint issue 2022-04-11 10:18:17 -03:00
Lourens Schep c3b1352f90 Make sure activity header does not show when displaying task list with progressive header 2022-04-11 10:18:14 -03:00
barryhughes 263bd5776e Correct text-domain. 2022-04-11 06:16:52 -07:00
Lourens Schep 10e9c6c5f9 Fix experiment UI issues 2022-04-11 10:16:44 -03:00
louwie17 f6b7ddb0db
Merge pull request #32493 from woocommerce/fix/32140_wcpay_completion_task
Track completion of non visible tasks as well
2022-04-11 09:09:38 -03:00
Joshua T Flowers 700633957c
Update progress header bar styles in task list (#32498)
* Update progress header bar styles in task list

* Remove units on margin

* Add changelog entry
2022-04-11 08:08:28 -04:00
Néstor Soriano 106e2c582c
Merge pull request #32449 from woocommerce/fix/protocol-agnostic-urls
Support protocol-less URLs from the URL util.
2022-04-11 12:05:45 +02:00
Ilyas Foo 9906b2126e Merge remote-tracking branch 'origin/trunk' into dev/32131-ui-changes-additional-payment-section 2022-04-11 16:38:51 +08:00
Néstor Soriano d56c79605c
Merge pull request #32427 from leskam/patch-2
correct form redirect after save account details
2022-04-11 10:26:36 +02:00
Nestor Soriano 21ecb88c4c
Fix PHPCS issues in URLTests.php 2022-04-11 10:22:13 +02:00
Ilyas Foo 812a11e31b Add changelog 2022-04-11 16:21:48 +08:00
Ilyas Foo 1f77200e70 Add missing track prop 2022-04-11 15:57:26 +08:00
Néstor Soriano adfdeabc6c
Add a couple of missing spaces (code formatting). 2022-04-11 09:40:48 +02:00
Ilyas Foo c8b6bd91e0 Update payment gateway logos 2022-04-11 14:24:08 +08:00
Ilyas Foo 90c61e4bad Revert WCPay suggestion UI changes 2022-04-11 11:55:05 +08:00
Ilyas Foo 829b4c4480 Merge remote-tracking branch 'origin/trunk' into dev/32131-ui-changes-additional-payment-section 2022-04-11 09:42:23 +08:00
Josh Betz 4449a669c8 Add order_item_display_meta description 2022-04-08 15:31:03 -05:00
Fernando Marichal 35a2eb1f9f Move test to `complete-onboarding-wizard` 2022-04-08 16:10:43 -03:00
barryhughes 6dcb796a89 No changelog required (but let's satisfy the linter). 2022-04-08 11:51:18 -07:00
barryhughes bc11e57e14 Support protocol-less URLs from the URL util. 2022-04-08 11:35:27 -07:00
Christopher Allford da5dc21acc Replaced Accent Removal
The current `iconv` based implementation does not
seem to work in all environments. This replaces it
with WordPress' native `remove_accents` function.
2022-04-08 11:32:14 -07:00
Fernando Marichal ecbd854105 Add changelog 2022-04-08 15:07:37 -03:00
Fernando Marichal 9e905ea713 Add Pinterest logo 2022-04-08 14:03:55 -03:00
Bero 11239494ef Fix Code sniff errors 2022-04-08 15:07:51 +02:00
Bero f08edf3f4b Add changelog 2022-04-08 15:07:47 +02:00
Bero 0ccf740ef6 Remove 'WooCommerce Addons Page' user-agent 2022-04-08 15:07:42 +02:00
louwie17 f7937593e9
Merge pull request #32473 from woocommerce/feature/32164_new_task_list_loading_placeholder
New task list loading placeholder for experiment 1
2022-04-08 09:55:45 -03:00
Fernando Marichal 49aff7e3dc Add changelog 2022-04-08 09:17:49 -03:00
Fernando Marichal b6611fb7c1 Add e2e tests 2022-04-08 09:12:49 -03:00
Fernando 61e0a51854
Merge pull request #32506 from woocommerce/fix/hidden_wcpay_task
WCPayments task is not visible after installing the plugin
2022-04-08 09:05:21 -03:00
Chi-Hsuan Huang d914efc8ba
Merge pull request #32487 from woocommerce/dev/32417-clean-up-wc-admin-package-json
Clean up `woocommerce-admin` package.json
2022-04-08 17:13:03 +08:00
Sakri Koskimies b6310900de Fix TableCard component docs 2022-04-08 11:21:53 +03:00
Sakri Koskimies b2effe67c9 Fix phpdoc return type for WC_Order_Refund::get_reason 2022-04-08 10:48:12 +03:00
Chi-Hsuan Huang 2e09cd824e Add changelog 2022-04-08 12:48:14 +08:00
Chi-Hsuan Huang f3e460f055 Remove i18 commands and their dependencies
i18 routines have been handled inside plugins/woocommerce.
2022-04-08 12:45:34 +08:00
Chi-Hsuan Huang 870d523455 Reorder woocommerce admin package.json scripts 2022-04-08 12:38:17 +08:00
Chi-Hsuan Huang a649fe6ae2 Remove no needed commands and fields in package.json 2022-04-08 12:36:26 +08:00
Chi-Hsuan Huang ba17630dca
Merge pull request #32515 from woocommerce/update/32296-wordpress-dependencies
Update @wordpress/* dependencies
2022-04-08 10:08:48 +08:00
Chi-Hsuan Huang dc243bd34c
Merge pull request #32411 from woocommerce/fix/32399-husky
Fix husky git hooks
2022-04-08 10:08:27 +08:00
Joel T cdc7901982 Adding changelog 2022-04-07 17:52:36 -07:00
Joel T 1c162a14d2 Updating all instances of pnpx to pnpm dlx/exec 2022-04-07 17:52:05 -07:00
Fernando Marichal 63f33b86de Add free extensions list fallback 2022-04-07 18:07:47 -03:00
Fernando Marichal 3159bde895 Add Pinterest to free extensions list 2022-04-07 18:07:00 -03:00
Joel T fcf389d921 Adding changelog 2022-04-07 13:08:36 -07:00
Lourens Schep 473d63d043 Remove can_view condition on tracking completion 2022-04-07 16:58:21 -03:00
Christopher Allford 1e3a3d8af5
Merge pull request #32500 from woocommerce/fix/feature-config-file-location
Move feature flag config files to Woocommerce plugin
2022-04-07 12:49:03 -07:00
Jorge A. Torres 7710f07e20 Add changelog entry 2022-04-07 11:03:01 -03:00
Jorge A. Torres aed64b15e4 Fix code style issue. 2022-04-07 11:01:25 -03:00
Jorge A. Torres 3087cae672 Add changelog entry 2022-04-07 11:01:25 -03:00
tjcafferkey 54b9a29db3 Track theme version 2022-04-07 11:01:25 -03:00
tjcafferkey 864f348865 Switch TextDomain for Name when tracking block themes 2022-04-07 11:01:24 -03:00
Tom Cafferkey ab769ebe2c Add block theme property to get_theme_info() in class-wc-tracker class 2022-04-07 11:01:24 -03:00
Tom Cafferkey 9108b8dbf8 Update comments 2022-04-07 11:01:24 -03:00
Tom Cafferkey 50b1d60729 Remove woocommerce event prefix because its autoprefixed with wcadmin_ 2022-04-07 11:01:24 -03:00
Tom Cafferkey aff9255061 Update event name and option name 2022-04-07 11:01:24 -03:00
Tom Cafferkey e5ac9e4ae6 Track initial sites theme 2022-04-07 11:01:24 -03:00
Tom Cafferkey 1c01cc1605 Add tracking for theme activation so that we can track active block themes in WooCommerce 2022-04-07 11:01:24 -03:00
louwie17 e767d9f220
Merge pull request #32496 from woocommerce/fix/wcpay_task
Fix WooCommerce Payments task not showing up in some supported countries
2022-04-07 10:54:24 -03:00
Chi-Hsuan Huang c4033b14de Remove unnecessary --working-dir arg from woocommerce php lint-staged command 2022-04-07 17:21:37 +08:00
Chi-Hsuan Huang 3fc88f0a71 Update links of woocommerce-admin to https://github.com/woocommerce/woocommerce 2022-04-07 17:02:43 +08:00
Chi-Hsuan Huang 82da8cd196
Merge pull request #32490 from woocommerce/fix/32136-onboarding-product-notice-appeared-too-early
Fix continue setup prompt for adding first product appeared too early
2022-04-07 16:01:31 +08:00
Chi-Hsuan Huang 826d9ad59f
Merge pull request #32489 from woocommerce/update/simpliy-init-routine
Simplify the WooCommerce Admin init routine
2022-04-07 16:01:16 +08:00
Chi-Hsuan Huang 3443387045 Update @wordpress/icons from ^6.3.0 to ^8.1.0 2022-04-07 14:24:19 +08:00
Chi-Hsuan Huang 317dd7c9e9 Update @wordpress/base-styles from ^3.6.0 to ^4.3.0 2022-04-07 14:21:33 +08:00
Chi-Hsuan Huang c60db1215e Update @wordpress/hooks from ^2.12.3 to ^3.5.0 2022-04-07 14:18:13 +08:00
Chi-Hsuan Huang 70359c8d11 Update @wordpress/a11y from ^2.15.3 to ^3.5.0 2022-04-07 14:16:46 +08:00
Chi-Hsuan Huang e947d9e198
Merge pull request #32488 from woocommerce/fix/32478-create-wc-ext
Downgrade `chalk` from 5 to 4
2022-04-07 14:06:10 +08:00
Ilyas Foo 9880718325 Merge remote-tracking branch 'origin/trunk' into dev/32131-ui-changes-additional-payment-section 2022-04-07 11:25:10 +08:00
Chi-Hsuan Huang ce1bc10ea3 Add changelog 2022-04-07 10:44:04 +08:00
Paul Sealock 4180780cf9 create feature config as part of core build 2022-04-07 11:00:36 +12:00
Paul Sealock 9eff273f01 add appropriate slash 2022-04-07 10:13:01 +12:00
Barry Hughes 3aee92ebec
Merge pull request #32362 from woocommerce/fix/download-shortcode-handling
Support shortcode-based downloadable files (as used by S3 Downloads extension)
2022-04-06 14:22:18 -07:00
Joel T 2f53fbca04 Updating deasync package to resolve build issue 2022-04-06 13:50:24 -07:00
Lourens Schep 43d279ec84 Move require_once below use statements 2022-04-06 16:36:39 -03:00
Lourens Schep 30c7586f36 Update comment 2022-04-06 16:12:56 -03:00
Peter Fabian 4128ad6611
Merge pull request #32363 from woocommerce/fix/a8c181-documentation-todo-items
Update documentation links.
2022-04-06 20:28:08 +02:00
Fernando Marichal fd1bca3540 Add changelog 2022-04-06 14:07:55 -03:00
Fernando Marichal fcc7143207 Add alreadyActivatedExtensions to persisted business extensions 2022-04-06 14:01:36 -03:00
Jorge A. Torres 6fb8afbfdc
Merge pull request #32424 from woocommerce/fix/30102-dirty-pages
Don't trigger beforeunload notice inappropriately.
2022-04-06 11:21:30 -03:00
Ilyas Foo f82b5d78f1 Fix css and test 2022-04-06 21:31:50 +08:00
Lourens Schep d93731dc57 Fix lint errors 2022-04-06 10:17:24 -03:00
Lourens Schep 1cd3511061 Add changelog 2022-04-06 10:12:01 -03:00
Lourens Schep 4ad2f4ceed Make use of PaymentGatewaySuggestions logic in WooCommerce Payments task 2022-04-06 10:12:01 -03:00
Lourens Schep b660f58c1c Add changelog 2022-04-06 10:10:20 -03:00
Lourens Schep 828e34a974 Address PR feedback and fix PHP unit tests 2022-04-06 10:08:22 -03:00
Lourens Schep a7ec024471 Remove test condition 2022-04-06 09:46:55 -03:00
Lourens Schep a13f15624a Make sure we also track completion of non visible tasks and fix parent id in WooCommercePayments task 2022-04-06 09:46:55 -03:00
louwie17 7d76d4a1a6
Merge pull request #32494 from woocommerce/fix/32154_payment_gateway_spec_warning
Fix PHP warning of missing default value in spec
2022-04-06 09:18:22 -03:00
Chi-Hsuan Huang 2b1f54b09d Set up lint-staged configuration for each package 2022-04-06 17:31:32 +08:00
Chi-Hsuan Huang 01edee8d90 Remove lint-staged.config.js 2022-04-06 17:31:32 +08:00
Chi-Hsuan Huang 14a2f9a8d8 Remove git:update-hooks from woocommerce/project.json 2022-04-06 17:31:32 +08:00
Chi-Hsuan Huang a4ece1b7b9 Remove husky lint-staged from plugins/* 2022-04-06 17:31:32 +08:00
Chi-Hsuan Huang ae44908f33 Move .husky to root path
Add .husky
2022-04-06 17:31:32 +08:00
Ilyas Foo ffdf1e6c02 More adjustments 2022-04-06 16:25:33 +08:00
Ilyas Foo 3050cacc39 Minor adjustments 2022-04-06 16:25:33 +08:00
Ilyas Foo 1980fac6fd Revamp WCPay suggestion in payments task 2022-04-06 16:25:32 +08:00
Ilyas Foo c596222069 Refactor tests 2022-04-06 16:25:32 +08:00
Ilyas Foo 5ff23bf103 Add tracks and small refactor to toggle 2022-04-06 16:25:32 +08:00
Ilyas Foo 0f554436da Broke wcpay task to different sections, added toggle component, added other payment methods toggle 2022-04-06 16:25:32 +08:00
Ilyas Foo a3bd1e5109 Add see more button 2022-04-06 16:25:32 +08:00
Ilyas Foo fb89df5f2c Rename set up button to get started 2022-04-06 16:25:32 +08:00
Ilyas Foo fd4a4a5604 Add is_offline flag and split payment sections 2022-04-06 16:25:31 +08:00
Paul Sealock a154c26ea4 fix legacy tests path 2022-04-06 16:01:36 +12:00
Paul Sealock 0b2e922338 changelog 2022-04-06 15:48:24 +12:00
Paul Sealock ab673dd14b Call Core's script from root level 2022-04-06 15:27:37 +12:00
Paul Sealock 659bf2d43c add additional script to core 2022-04-06 15:25:18 +12:00
Chi-Hsuan Huang 73ba1fc4b2 Add changelog 2022-04-06 11:06:53 +08:00
Chi-Hsuan Huang 8da48065fd Remove de-activation logic when the Core version is not met 2022-04-06 10:28:40 +08:00
Chi-Hsuan Huang 0c366289e0 Remove woocommerce-admin.php from tests 2022-04-06 10:27:53 +08:00
Chi-Hsuan Huang bf91c3cca0 Change mainFile in Gruntfile.js 2022-04-06 10:27:53 +08:00
Chi-Hsuan Huang 9969f60fd3 Remove uninstall.php & woocommerce-admin.php 2022-04-06 10:27:53 +08:00
Paul Sealock 407b225133 Move feature flag config files to Woocommerce plugin to support unit test execution in the wp-env environment. 2022-04-06 14:12:24 +12:00
Barry Hughes 73409592b7
Merge pull request #31185 from sicelo/rename
Rename Swaziland to Eswatini
2022-04-05 13:37:54 -07:00
Barry Hughes dfbc71974b
Merge pull request #32350 from woocommerce/fix/relative-directory-handling
Enhance directory traversal handling/resolution.
2022-04-05 11:24:49 -07:00
Jorge A. Torres 394a9fa490
Merge pull request #30320 from erikdemarco/patch-2
Add new hooks to order-tracking form
2022-04-05 15:10:39 -03:00