Commit Graph

7875 Commits

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

Register routes for each of the individual leaderboards.

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

* Add changelog entry

* Add purchase header

* Update logic around purchase products list strings

* Add purchase illustration

* Fix up task title tests

* Handle PR feedback

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

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

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

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

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

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

* Update e2e-core-tests changelog

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

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

* Remove unused wcAdminAssetUrl var

* Remove use of wcAdminAssetUrl

* Add changelog

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

* Add total payments volume rule processor

* Use start and end dates for total sales method

* Add method to get start and end dates from timeframe

* Update processor rule to use timeframes

* Fix up method calls

* Add tests for timeframes

* Add tests around getting total sales by date

* Add changelog entry

* Use revenue query instead of custom query for total sales

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

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

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

* Add changelog

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

* Add props to `product_update`

* Add changelog

* Add validation to description prop

* Add validation to purchase_note

* Add validation to short_description

* Removed debugger

* Fix `get_dimensions`

* Add validation to upsells

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

* Fix description tracking

* Fix `description_value`

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

* Add test

* Add changelog

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

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

* Fix invalidateResolution call that was misspelled
2022-06-01 14:15:09 -03:00
Joel Thiessen ddafa8e380
Tasks chaining side panel (#33124) 2022-06-01 10:10:20 -07:00
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