Commit Graph

47175 Commits

Author SHA1 Message Date
Barry Hughes 097e2d3121
Correct type in @return tag (to string). 2022-03-01 16:35:15 -08:00
Brent Nef 40a1988f24 Add tests. 2022-03-01 17:45:13 -03:00
Brent Nef c01fcf389a Respect the $limit parameter (0) 2022-03-01 17:45:13 -03:00
RJ d2205a6faf Stop showing actioned inbox items (https://github.com/woocommerce/woocommerce-admin/pull/8394)
* Stop showing actioned inbox items

- revert of https://github.com/woocommerce/woocommerce-admin/pull/7983/

* Trigger rerun of CI
2022-03-01 21:08:29 +08:00
louwie17 b871cbf09b Fix/8251 woocommerce payments task list logic (https://github.com/woocommerce/woocommerce-admin/pull/8332)
* Allow the support of multiple task lists with overlapping tasks

* Add filter by task ids

* Revert getTaskListById call

* Fix notices

* Move prefix event to task and task list classes instead

* Fix track events and extended task list

* Fix php unit tests

* Remove the seperate task list classes as this was unnecessary.

* Fix tests

* Remove unneeded allowed-tasks

* Change onboarding task list redux store structure

* Add extra id for handling hidden param for experimental task lists

* Fix lint errors

* Fix forgotten change

* Add changelog
2022-03-01 08:34:18 -04:00
louwie17 212d1c6e96 Remove the use of preloaded countries (https://github.com/woocommerce/woocommerce-admin/pull/8380)
* Remove the use of preloaded countries and make use of country data store instead

* Fix shipping task

* Add changelog

* Fix lint errors
2022-03-01 08:33:41 -04:00
Adrian Duffell f43e4caf4b Fix view logic for Setup additional payment providers task (https://github.com/woocommerce/woocommerce-admin/pull/8391) 2022-03-01 17:06:20 +08:00
Christopher Allford 2c1885f69a
Merge pull request #31974 from woocommerce/add/repository-merge-tool
Created Repository Merge Tool
2022-02-28 20:38:04 -08:00
RJ f306cc2ba5 Enable Typescript checking on ./client folder (https://github.com/woocommerce/woocommerce-admin/pull/8372)
* Copied .tsconfig into ./client to enable ts checking

- Made sub-repos composite typescript packages where necessary

* Prevent tsc from transpiling ./client

 - we use webpack for transpiling so no need for this

* Added tsc resolution path for @automattic/explat-client

- Seems like there's a type export issue (?) with @automattic/explat-client and @automattic/explat-client-react-helpers
- adding the node_modules/@automattic/explat-client path in tsconfig seems to help TS resolve this using the source .ts files
- found answer here: https://github.com/microsoft/TypeScript/issues/42873
- should figure out what's actually wrong with the type exports and fix that there instead

* Removed mandatory checking from webpack

- removed this for now as it will block all development until all type inconsistencies are fixed
- for now, run the optional ts:check task either in console or vscode for highlighting type errors

* Added vscode tasks for typescript checking

* Patch @automattic/explat-client-react-helpers

- this changes the installed code in node_modules (post-installation) for @automattic/explat-client-react-helpers so that it exports the necessary type interfaces required by us
- attempted unsuccessfully to override type exports using declare module
- not too sure how to fix this internally by other means
- have to investigate what fixes to propose to @automattic/explat-client-react-helpers team

* changed tests in ./client to use ts-jest instead of babel-jest

- rewrote jest config to use ts-jest instead of babel-jest
- set ts errors to warnings instead so that tests don't fail on type errors
- created new tsconfig for ./packages/js-tests so that build and ts-check are separate, as js-tests need to be built for commonjs
2022-03-01 12:19:07 +08:00
barryhughes 2874a22fe2 Allow limited HTML when rendering failure messages (CSV import). 2022-02-28 19:34:19 -08:00
louwie17 1c6b18c05a Remove unused data endpoints param (https://github.com/woocommerce/woocommerce-admin/pull/8379)
* Remove unused data endpoints param

* Add changelog
2022-02-28 18:51:14 -04:00
Lucas Bustamante 31fae36caa Update XPath syntax 2022-02-28 17:41:00 -03:00
Lucas Bustamante c90e11ea3d Refactor merchant logout 2022-02-28 17:09:19 -03:00
Moon 3e672d7664 Redirect to the WC Pay onboarding when WC Pay is installed (https://github.com/woocommerce/woocommerce-admin/pull/8367)
* Redirect to the connect page when WC Pay is installed

* Add comment
2022-02-28 11:40:45 -08:00
Moon a2dfbffe89 Remove inbox_action_click event -- this is called from backend by triggerNoteAction (https://github.com/woocommerce/woocommerce-admin/pull/8376) 2022-02-28 11:40:35 -08:00
Christopher Allford 8bb027279a Addressed PR Feedback 2022-02-28 09:43:16 -08:00
Christopher Allford cd9aad9a3d Added Merge Command
This adds a command that is able to merge any
repository into the monorepo.
2022-02-28 09:43:16 -08:00
Christopher Allford ed77233fb4 Added monorepo-merge Tool Scaffolding
This contains the basic framework for our new `monorepo-merge`
command. The goal will be for this command to handle the heavy lifting
for merging repositories with full history. It will (ideally) bring any
plugin or package into the repository in a ready-to-use state.
2022-02-28 09:43:02 -08:00
Alejandro López Ariza 5af5be5100
Added new tests to wp-admin-order-edit.test.js for covering merchant management actions over downloadable products. (#31650)
* Added new tests to wp-admin-order-edit.test.js for covering merchant management actions over downloadable products.

* Updated changelogs from e2e-utils and e2e-core packages.

* - Fixed minor issue from wp-admin-order-edit.test.js when running tests in browser mode.
- Changed those tests so that products and orders are deleted individually after every test run.
- Added deleteOrder() and deleteProduct() functions to withRestApi.

Co-authored-by: rodelgc <rodel.calasagsag@automattic.com>
2022-02-28 15:24:33 +08:00
Lucas Bustamante d68b6d7777
Run @woocommerce/api tests in CI (#31931)
* Run @woocommerce/api tests in CI

* CR: Remove "paths-ignore"

* Trigger CI

* Remove description from yml

* Trigger CI

* Trigger CI

* Remove trigger CI
2022-02-28 12:04:47 +08:00
Moon 01e5cbdd7f Only run the version check for an admin request (https://github.com/woocommerce/woocommerce-admin/pull/8384) 2022-02-27 19:42:48 -08:00
jonathansadowski 1cc61de404
Merge pull request #31873 from woocommerce/add/release-code-freeze
Add github workflow to automatically enforce the code freeze.
2022-02-25 16:14:49 -06:00
Fernando 77fb10c53e OBW: fix copy on Business Details when "WooCommerce Shipping" is not listed (https://github.com/woocommerce/woocommerce-admin/pull/8324)
* Fix wc-shipping copy

* Fix method `createInstallExtensionOptions`

* Fix tests

* Add changelog

* Add WCTax logic

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-02-25 18:26:44 -03:00
Jonathan Sadowski ad201cde88 Improve messaging when milestone or release branch already exist 2022-02-25 15:02:15 -06:00
Jonathan Sadowski 439ae1f17b Update code-freeze script to base its decision on latest release 2022-02-25 12:22:07 -06:00
louwie17 84e6a1e317 Add missing dependency to onboarding package (https://github.com/woocommerce/woocommerce-admin/pull/8378)
* Add missing dependency

* Add changelog
2022-02-25 08:44:07 -04:00
louwie17 02d7973b55 Update WooCommerce Payment note action callback logic (https://github.com/woocommerce/woocommerce-admin/pull/8366)
* Update WooCommerce Payment note action callback logic

* Fix lint errors
2022-02-25 08:43:59 -04:00
Néstor Soriano d76dac08e6
Add syntax highlight to README for the code hacker 2022-02-25 11:38:27 +01:00
Nestor Soriano 32e01a21f2
Fix internal links in README files
After the WooCommerce code was moved to 'plugins/woocommerce' many of
the internal links in the README files (links to other README files
or to code files) were broken. This commit fixes that.
2022-02-25 11:27:58 +01:00
Tung Du 3b637f1e93
Fix: `shopper.emptyCart()` issue. (#31977)
* fix: shopper.emptyCart

* ensure emptyCart work with cart containing multiple products
2022-02-25 16:14:42 +08:00
Jaclyn Chen cb9e6b34df Fix hidden notes in `admin/notes` when the user is not in tasklist experiment (https://github.com/woocommerce/woocommerce-admin/pull/8328)
* Fix hidden notes from tasklist experiment.

* Add changelog.

* Use PR number instead of issue number in the changelog.
2022-02-25 08:09:49 +08:00
Claudio Sanches 7fdebe1214
Merge pull request #31973 from woocommerce/update/package
Update browserslist package
2022-02-24 19:02:18 -03:00
Christopher Allford aae02d6872
Added Triage Label to Enhancements 2022-02-24 10:31:07 -08:00
Vedanshu Jain e0af6c1050
Merge pull request #31779 from woocommerce/fix/31729-add-menu-page-arg
Use integers for menu page priority.
2022-02-24 20:10:01 +05:30
Nestor Soriano 0f5a395cb9
Add code comments about db updates on new WooCommerce installs.
The update functions in wc-update-functions.php run when WooCommerce
is updated from a previous version, but not when it's newly installed.
This commit adds a couple of comments explaining that.
2022-02-24 15:26:34 +01:00
Roy Ho 28ad530794
Merge pull request #31976 from woocommerce/update/woocommerce-admin-3.2.1
Bump woocommerce-admin version to 3.2.1
2022-02-24 06:03:29 -08:00
Ilyas Foo 48cbbfbe38 Bump woocommerce-admin to 3.2.1 2022-02-24 10:36:36 +08:00
Moon 5338ebf04a Make $customer_id public again (https://github.com/woocommerce/woocommerce-admin/pull/8371)
* Make $customer_id public -- see issue 8369. We have a backward compatibility issue
2022-02-23 16:31:41 -08:00
Claudio Sanches 3d4a8edf87 6.2.1 changelog 2022-02-23 19:03:50 -03:00
Jeff Stieler 291790c64d Refactor handle_upload() rather than change import_error() visibility. 2022-02-23 18:56:48 -03:00
Jeff Stieler c85f3b7e1d Add test case for tax importer. 2022-02-23 18:56:43 -03:00
Jeff Stieler 735d9f15a2 Add test case for product importer. 2022-02-23 18:56:37 -03:00
Jeff Stieler 654036850e Prevent path traversal outside ABSPATH in product and tax importers. 2022-02-23 18:56:31 -03:00
Claudio Sanches 4a87a9bfbb
Merge pull request from GHSA-6wvr-47ff-m546
Fixed permission check for reviews in v1 & v2 REST API
2022-02-23 18:54:33 -03:00
roykho c749bd3bd6
Update browserslist package 2022-02-23 12:10:00 -08:00
louwie17 e652b0b93f Fixes some minor process issues (https://github.com/woocommerce/woocommerce-admin/pull/8355)
* Additional general updates and improvements

* Fix php lint errors
2022-02-23 13:04:59 -04:00
Ron Rennick 8ef39e2269
Merge pull request #31909 from woocommerce/fix/31907
Exclude the project root when ran in GitHub CI
2022-02-23 11:34:29 -04:00
louwie17 ed2a1eaae2 Updated changelog with cherry picks (https://github.com/woocommerce/woocommerce-admin/pull/8347) 2022-02-23 08:59:49 -04:00
Daniele Scasciafratte 76c3ef7466 Fix Notice in RuleEvaluator (https://github.com/woocommerce/woocommerce-admin/pull/8184)
* Fix Notice in RuleEvaluator 

Ref: https://github.com/woocommerce/woocommerce-admin/issues/7825

* fix indentation

* fix lint
2022-02-22 20:48:15 -08:00
Chi-Hsuan Huang e8ce945d0e Implement MailChimp API request threshold for MailchimpScheduler (https://github.com/woocommerce/woocommerce-admin/pull/8342)
* Implement MailChimp API request threshold for MailchimpScheduler

Fix class-wc-tests-mailchimp-scheduler.php

Fix class-wc-tests-mailchimp-scheduler.php

* Add changelog

* Fix class-wc-tests-mailchimp-scheduler.php

* Fix class-wc-tests-mailchimp-scheduler.php
2022-02-23 09:37:00 +08:00