Commit Graph

50313 Commits

Author SHA1 Message Date
Paul Sealock 7229b65bc9
Changelogger: Fix PHPCS violations (#33664) 2022-07-07 08:54:48 +12:00
Jonathan Lane 0cebdf5277
Convert e2e tests to Playwright (#33462)
* Final updates for Playwright

* Update config

* Add uuid dependency

* Increase retries to 2

* Update selectors on shipping page

* Use baseURL instead of hard-coded URL for API

* Clarify comment

* Use baseURL instead of hard-coded URL

* Check to see if an order was created before attempting to delete it

* Add changelog

* Turn on Playwright tests in GitHub

* Increase timeout for CI execution

* Update configuration options (minor edit)

* Fix for checkout flaky test

* Parse orderId from URL

* Check for substring

* Streamline email tests

* Remove .only

* Only clear email logs of messages for test

* Get orderId from page element

* Fix for test not waiting for reset

* Add in second wait for Performance section

* Change significance from minor to patch

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2022-07-06 14:28:00 -06:00
rodelgc aed4763414
Post test result summary in workflow run and in PR comment using github-actions[bot] (#33675)
* Temporarily toggle Playwright feature flag on

* Add job for test summary

* Add dummy run command

* Debug object contents

* Test getting json from prev step output

* Try toJSON()

* Test access to keys

* Try using context

* Use separate file

* Debug steps

* Try dummy job summary

* Minor job rename

* Add script for preparing job summary

* Fix context syntax error

* Correct artifact path

* List contents of artifacts folder

* inspect API summary contents

* inspect apisummary

* Remove dummy step for listing artifacts folder contents

* Parse number to string

* Correct SHA

* Try printing job summary on next step

* Create PR comment

* Minor step rename to test PR comment update

* Add another line break

* Test for puppeteer tests

* Test full Playwright test run

* Test full Puppeteer e2e run

* Fix spacing inconsistency

* Specify other test result categories in PPTR run

* Rename script file

* Minor refactor and documentation on script file

* Minor addition to script documentation
2022-07-06 11:17:51 -06:00
louwie17 49859c8f84
Fix product variation tooltip (#33741)
* Make sure the default form value tooltip is initialiazed when adding the first variation

* Update copy of default form value tooltip in variations

* Add changelog

* Fix auto formatting

* Add pointer events: none to tooltip to prevent flickering
2022-07-06 13:54:11 -03:00
Joshua T Flowers 67d9ba3b19
Add CRUD data store typing (#33680)
* Rename and export selectors for easier typing

* Add CRUD action and selector type mapping

* Add product attribute types

* Separate getItem to provide correct return type

* Rename config to type

* Add generator return types
2022-07-06 12:04:16 -04:00
Ilyas Foo 8d281241a9
Add tracks for shipping smart defaults (#33748)
* Change review shipping task id to 'review-shipping'

* Add click track for shipping-recommendation task from the settings page

* Changelog

* Add test

* Add more specific test param
2022-07-06 20:00:08 +08:00
Moon 74fd45ec16
Add payment icons right next to the Discover other payments link (#33744)
* Add pyament icons

* Add changelog

* Text and logo changes when wc pay is installed and setup

* Use PaymentSuggestions to query plugins

* Make sure image_72x72 exists

* Remove unused namespaces

* Remove stripe2 image -- no longer needed

* Make sure recommended payment is not already active

* Check plugins field to filter out active plugins
2022-07-06 03:24:01 -07:00
Chi-Hsuan Huang b274831334
Update wcpay suggestion UI in payment task (#33717)
* Add WCPayBanner & WCPayBenefits

* Update payment setting & welcome screen to use components from woo onboarding

* Update wcpay suggestion UI in payment task

* Add changelog

* Add WCPayBannerImageCut image and update wcpay banner style

* Update packages/js/onboarding/src/components/WCPayBanner/WCPayBanner.scss

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Set .woocommerce-recommended-payments-banner__image_container display: flex

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-07-06 14:20:11 +08:00
Moon 9b175c64d9
Make store location and rates steps clickable (#33661)
* Make store location and rates clickable

* Add changelog

* Make store_location_completed camelCase

* Fix onCompleteStep logic

* Update plugins/woocommerce-admin/client/tasks/fills/shipping/index.js

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2022-07-05 19:13:57 -07:00
Moon 7c723583cb
Add tests for react admin translations (#33510)
* Add switch-language endpoint

* Add translation tests for PHP, react client, and component

* Fix component test

* Add Changelog

* Add Changelog
2022-07-05 17:16:15 -07:00
Christopher Allford 0a2588f6c4
Fixed WooCommerce Beta Tester Zip Build (#33728) 2022-07-06 11:28:56 +12:00
Miguel Pérez Pellicer bdb057c1ad
Add Tree Select Control Component (#33384)
* Add Tree Select Control Component

* Tweak test and code

* Fix Story path

* Restore .at

* Changelog

* Fix prettier error

* Update packages/js/components/src/tree-select-control/README.md

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Update packages/js/components/src/tree-select-control/tags.js

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Add comment regarding filter length

* Replace translate domain

* Document handleKeydown

* Refactor option object check

* Remove redundant check for disabled state

* Refactor tags & documentation

* Replace wrong domain for translations

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2022-07-06 10:07:50 +12:00
Joel Thiessen 57869a2ab7
Fixing activity panel does not appear after navigating to OBW and back (#33722) 2022-07-05 10:02:46 -07:00
Fernando f9f42ce3c2
Rename event prop from `cross-sell` to `cross_sell` (#33704)
* Rename event prop from `cross-sell` to `cross_sell`

* Added validation to `WC_Tracks_Event::validate_and_sanitize`

* Remove extra tab

* Remove `error_log

* Fix WP_Error message

* Add changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-07-05 10:38:29 -03:00
Chi-Hsuan Huang 97f3e2d609
Fix untranslated texts on payment setting page (#33718)
Fix untranslated string in payment setting page
2022-07-05 13:28:31 +08:00
RJ b7ffa1c3d2
Add: Intro tooltips for shipping smart defaults (#33688)
add: intro tooltips for shipping smart defaults

- removed php code for setting 'reviewed' option as it was being set on page load and thus always evaluated to true before the user sees it
- added intro tooltips
2022-07-05 13:02:52 +08:00
Noonan Web Group Limited 538403306c
Update wp-background-process.php to use wp_convert_hr_to_bytes() (#30908)
Update wp-background-process.php to use wp_convert_hr_to_bytes()

Currently the code is typecasting the memory limit to an int. This assumes that the memory limit is in MB, so if you set your memory limit to 4G this will return 4194304 bytes (4.19304 MB.) Instead, we should use the native WordPress function `wp_convert_hr_to_bytes` to handle the conversion into bytes correctly.
2022-07-04 19:23:52 -07:00
Luigi Pulcini 9cecce207a
Add exporter instance parameter to `woocommerce_product_export_row_data` filter (#33390)
Added exporter instance parameter

* added filter docblock and changelog entry
* Tweak changelog, tweak hook version number

Co-authored-by: Luigi Pulcini <luigi@barn2.com>
Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2022-07-04 19:22:13 -07:00
Chi-Hsuan Huang e471d7ce71
Update store details task action url (#33671)
* Update StoreDetails task action url to navigate to the setting page

* Add changelog

* Update complete logic of StoreDetails task

* Update store details unit tests for new task completion logic
2022-07-05 10:10:36 +08:00
Chi-Hsuan Huang da38571824
Fix wrong link and copy in payment setting page (#33716)
* Fix wrong link and copy in payment setting page

* Add changelog
2022-07-05 10:10:09 +08:00
Chi-Hsuan Huang 20b266743e
Fix wrong link in setup payments screen (#33715)
* Fix wrong link in Set up payments screen

* Add changelog
2022-07-05 09:00:12 +08:00
Luigi Pulcini 63dd5eda6f
Added mechanism to customize data before AJAX requests in `meta-boxes-order.js` (#33563)
Added `triggerHandler` before each ajax request.

* Added namespace to event name
* Linting.

Co-authored-by: Luigi Pulcini <luigi@barn2.com>
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2022-07-04 17:09:13 -07:00
Jorge A. Torres bddb6621ee
[COT] Implement order bulk actions (#33687)
Introduce `Admin\Orders\PageController` to manage admin pages for orders

* Change orders menu registration & initialization to use `Admin\Orders\PageController`
* Implement bulk actions in orders ListTable
* Unnecessary import
* Make PHPCS happy
* Add changelog
* Address feedback
2022-07-04 16:57:01 -07:00
Joel Thiessen 6c13fdf0ce
Making product image meta box more prominent as a default (#33707) 2022-07-04 11:55:18 -07:00
Chi-Hsuan Huang 4707dcbec0
Fix wrong copy in the payments settings for a country that WCPay is not supported (#33665)
* Fix wrong copy in payment recommendations

* Add changelog
2022-07-04 16:58:10 +08:00
Moon 76f9a1fc57
Fix export functionality on Analytic pages (#33709)
* Import correct controls

* Add changelog

* Add changelog
2022-07-04 12:55:39 +08:00
Moon 6a8f124022
Fix Uncaught DOMException on WooCommerce -> Extensions page. (#33711)
* Add .commerce to wrap selector

* Add changelog

* More specific selector

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-07-04 12:41:32 +08:00
Ilyas Foo dea22904e0
Fix marketing task completion logic (#33676)
* Add marketing action task on clicking Manage

* Revert marketing completion after installing any marketing plugin

* Changelog
2022-07-01 14:28:45 -07:00
Corey McKrill d15770132b
Revert "Update method for getting Reports API cache version number" (#33706)
This reverts commit bccc80366d.

When we merged this PR, we thought the Woo mobile apps would have enough time to implement some corresponding changes on their side. That turned out not to be the case. Without the ability to force a refresh of the analytics cache, this PR causes the apps to have a greater risk of showing users stale analytics data that they can’t immediately update.
2022-07-01 12:28:30 -07:00
Joshua T Flowers 97f337ad8d
Add CRUD data store delete (#33596)
* Add delete actions

* Update CRUD actions in readme

* Allow IDs to be numbers or strings

* Update tests

* Update selectors to use IdType
2022-07-01 14:04:17 -04:00
Chi-Hsuan Huang f1ce6ec30c
Update WCPay to include a mention of in-person payments for Canada (#33669)
* Update wcpay to include a mention of in-person payments for Canada

* Add changelog
2022-07-01 13:51:54 +08:00
Moon f8e8b6ff04
Style fix for the print shipping banner close modal (#33587)
* Style fix for the close modal

* Add changelog
2022-06-30 14:05:00 -07:00
Paul Sealock a2b6b9bd2d
Analyzer: Fix regex to handle multiple changes in a single file (#33651) 2022-07-01 07:12:34 +12:00
Paul Sealock eb223038f6
Prepare Script: Fix failure on only comment changelog entries (#33668) 2022-07-01 07:10:43 +12:00
Matthew Hodge 6cb6fd02df
Added a filter to set fopen mode for streams that dont support a+ (#33652)
Added a filter to set fopen mode for streams that dont support a+

Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2022-06-30 10:34:02 -07:00
AnnaMag 3fc11126a4
Include Tracks indicator property for block editor on product update. (#33321)
* Include Tracks property indicating block editor on product update.

* Add changelog

* In a block editor the Update button does not have the selector.

* Remove - from Tracks even property.

* Refine a condition of a non-empty object.

* Incorporate feedback: add callback for rendering the Update button.

* Add recent feedback- jQuery way of handling post render execution.

* Remove `console.log

* Fix `product_update` event recording

* Removed `hasRecordedEvent` and fixed `description validation

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-06-30 11:48:21 +02:00
Chi-Hsuan Huang 41ecb1ed6f
Fix wrong copy in the payments task on the Home Task list (#33663)
* Fix wrong copy in the payments task on the Home Task list

* Add changelog
2022-06-30 15:23:03 +08:00
Ilyas Foo d6ccaa67de
Shipping recommendation task set location step manual navigation (#33667)
* Adds capability for store location step to be manually navigated

* Add test

* Changelog
2022-06-30 14:45:52 +08:00
Chi-Hsuan Huang 2dc3d87e1c
Payment task: fix wrong copy in the accordion link (#33662)
* Fix wrong copy in the accordion link for payment task

* Add changelog
2022-06-30 12:20:23 +08:00
Tam Mullen def11b77d9
Update daily smoke test to add k6 smoke tests (#33658)
* Add k6 test scenario to the daily smoke test action.

* Add blank patch changelog for daily smoke update
2022-06-29 16:01:37 -06:00
Paul Sealock 23c7046df0
Changelogger: Fix JS package epilogues (#33645) 2022-06-30 08:09:46 +12:00
Jorge A. Torres a80e0fe203
[COT] Implement create() method in COT datastore (#33341) 2022-06-29 08:54:29 -03:00
RJ 04bef970ef
Dev: allow unused destructured variables in lint rules (#33548)
Allow unused destructured variables in lint rules

- there were exceptions to the rule being added everywhere and it seems to be a reasonable allowance
2022-06-29 16:56:31 +08:00
Moon feb3ab0581
Update shipping logic when OBW is skipped (#33630)
* Update shipping task fields when shipping smart default feature is enabled.

* Always display the shipping task regardless of having a physical product

* Updated text copy for the fields

* Do not display the step description if it is not the current step

* Added a banner for the shipping printing step

Remove description if the it is not the current step

* Add changelog

* Fix namespace conflict after the rebase

* Re-use wcs banner from the experimental shipping recommendation

* Delete ShippingLabelPrinting -- replaced by wcs banner from experimental-shipping-recommendation

* Add TOS link

* Remove ShippingPrintLabel styles -- no longer needed

* Minor refactor

* Move description set logic to getSteps()

* Use map to override step fields

* Remove unnecessary feature check

* Remove description in the map func

* Render ShipStation banner if plugins includes woocommerce-shipstation-integration
2022-06-29 00:40:42 -07:00
Chi-Hsuan Huang 88a66e6983
Update review shipping options task complete logic (#33650)
* Update review shipping options task complete logic

* Add changelog
2022-06-29 15:34:09 +08:00
Chi-Hsuan Huang 2e167ca088
Fix borken react admin commands (#33649)
* Fix admin build:packages and test:packages

* Add changelog
2022-06-29 13:02:56 +08:00
Ilyas Foo 1daa1c07fe
Add tests for shipping recommendation task (#33633)
* Move redirect function to utils to easily mock

* Add test

* Changelog
2022-06-29 11:24:25 +08:00
Paul Sealock f20d109164
Release JS Packages: Execute script from GH Action (#33614) 2022-06-29 13:41:43 +12:00
nigeljamesstevenson 00f4e9fa73
Update README.md to reference the correct port no. Change from 8084 to 8086 (#33635)
Update README.md to reference the correct port no.
2022-06-28 15:55:43 -06:00
Christopher Allford 2e87b32034
Removed WooCommerce 6.7 Changelog Files (#33643)
Removed Changelog Files
2022-06-28 13:22:18 -07:00