Commit Graph

5031 Commits

Author SHA1 Message Date
Sam Seay 242bdb475d Migrate the Travis unit test suite to Github actions (https://github.com/woocommerce/woocommerce-admin/pull/6164)
Add a matrix of tests against WP and WC versions and migrate the lint and js test to separate jobs.
2021-02-01 15:24:11 +13:00
louwie17 467e54fded Update product template icon and copy (https://github.com/woocommerce/woocommerce-admin/pull/6177)
* Update product template task copy and icon, updated wordpress/icons

* Fix tests

* Fix css lint errors

* Make use of the re-usable Pill component from Woo
2021-01-29 17:23:02 -04:00
Fernando 1f368b73f8 Fixed panels check (https://github.com/woocommerce/woocommerce-admin/pull/6220)
This commit fixes the home screen panels check

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-01-29 11:23:02 -03:00
Fernando bc1f0699c2 Replaced method `woocommerce_get_page_id` with `wc_get_page_id` (https://github.com/woocommerce/woocommerce-admin/pull/6222)
This commit replaces method `woocommerce_get_page_id` with `wc_get_page_id` in Loader.php

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-01-29 09:44:38 -03:00
louwie17 d2ca866b26 Remove old debug code for connecting to Calypso / WordPress.com in help section (https://github.com/woocommerce/woocommerce-admin/pull/6097)
* Remove Calypso / WordPress.com help section, only shown in WP_Debug

* Add changelog

* Remove unused calypso tests actions
2021-01-28 13:32:06 -04:00
louwie17 78d62c858d Move inbox panel to left column, to increase user interaction (https://github.com/woocommerce/woocommerce-admin/pull/6122)
* Move inbox panel to left column, to increase user interaction

* Add changelog

* Fix and add test

* Remove old loading banner-block

* Remove unused css

* Fix test with new props
2021-01-28 09:33:36 -04:00
Hsing-Yu Flowers dda06be0bf Change siteUrl to shopUrl (https://github.com/woocommerce/woocommerce-admin/pull/6200)
* Add shop url

* Change siteUrl to shopUrl
2021-01-28 16:47:57 +10:00
Bruno Ribarić 5e5848bcd8 Remove redundant if statement in PHP Test Suite (https://github.com/woocommerce/woocommerce-admin/pull/6169) 2021-01-28 13:29:38 +08:00
Moon e02429dff3 Skip failing tests in WP 5.3 and 5.4 (https://github.com/woocommerce/woocommerce-admin/pull/6209)
* Skip failing tests in WP 5.3 and 5.4

* Add a reason for the skipping
2021-01-27 20:02:35 -08:00
Ilyas Foo e65dabdcb6 Add unit test for CES package (https://github.com/woocommerce/woocommerce-admin/pull/6196) 2021-01-28 11:35:38 +08:00
renovate[bot] 418bca7eaa Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/6170)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-28 14:52:28 +13:00
Moon ef20b35826 Normalize installed WC Admin version when comparing. (https://github.com/woocommerce/woocommerce-admin/pull/6205) 2021-01-27 15:58:06 -08:00
Fernando 7bf63fae05 Hide Inventory and Reviews panels if store setup task list is visible (https://github.com/woocommerce/woocommerce-admin/pull/6182)
* Fixed reviews and inventory panels visibility

This commit fixes the reviews and inventory panels visibility when setup task list is enabled

* Fixed tests

* Fixed control and small refactor

* Fixed useSelect

* Fixed multiple useSelect

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-01-27 18:40:27 -03:00
Hsing-Yu Flowers fc41022dd4 Return empty object if not in locale info (https://github.com/woocommerce/woocommerce-admin/pull/6188) 2021-01-28 09:38:46 +13:00
renovate[bot] 20b9b60dd2 Update dependency @woocommerce/e2e-environment to v0.2.0 (https://github.com/woocommerce/woocommerce-admin/pull/6193)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-28 08:42:58 +13:00
Fernando 2ab28c977f Extended task list refactor (https://github.com/woocommerce/woocommerce-admin/pull/6081)
* Fixed hiding core task list

This commit fixes the hiding of the core task list

* Added tests

* Added fix to readme.txt

* Fixed readme.txt

* Added new test

* Hooks were fixed

* Refactored task lists handling

This commit refactors a few things related to the task lists handling

* Added tests

* Fixed task lists handling

* Fixed tests

* Renamed 'taskListHidden' to 'taskListsHidden'

* Added taskListsHidden util

* Fix completed tasks tracking infinite loop

This commit fixes the completed tasks tracking infinite loop (for multiple extended tasks)

* Refactored update check

* Hide task list if there aren't any visible tasks

* Fixed comment

* Fixed typo

* Renamed example method

* Fixed example extension

* Added tab to the extension example

* Fixed extended task list enabling option

* Added more tests

* Added PHP tests

* Fixed some comments

* Removed utils.js file

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-01-27 15:40:02 -03:00
louwie17 4ad9c07d51 Add wait for mysql script to php unit entrypoint (https://github.com/woocommerce/woocommerce-admin/pull/6185)
* Add wait for mysql script to php unit entrypoint, also removing containers after run is finished.

* Add changelog
2021-01-27 14:35:12 -04:00
louwie17 b0126c36bf Delete all products before running tests (https://github.com/woocommerce/woocommerce-admin/pull/6178)
* Delete all products before running tests

* Delete products in tear down instead

* Only remove the color attribute, as other attitributes are necessary in other tests

* Make assertion more lenient, and remove all products deletion

* Fix lint errors

* Changed to check if imported is at-least 2 items
2021-01-27 13:57:58 -04:00
Renovate Bot c0d6ec7bfd Update dependency @testing-library/user-event to v12.6.2 2021-01-27 06:00:51 +00:00
Renovate Bot 982b2b9893 Pin dependency eslint-plugin-import to 2.22.1 2021-01-27 03:27:52 +00:00
Renovate Bot 5aea80061f Update dependency @octokit/graphql to v4.5.9 2021-01-27 02:03:02 +00:00
Paul Sealock 84222b568b Navigation: Change default location and add Product category items (https://github.com/woocommerce/woocommerce-admin/pull/6179)
* add product submenu items

* better check

* extesnions section

* use add_plugin_item

* htmlspecialchars_decode better

* Manually add product_brand taxonomy

* Determine if migrated items are a taxonomy or post_type. If they are, register them.

* add in_array check to register post types and taxonomies

* register a taxonomy or post_type, but not both
2021-01-27 13:05:55 +13:00
Sam Seay 053db8512c Turn on stalebot. (https://github.com/woocommerce/woocommerce-admin/pull/6154) 2021-01-27 00:01:14 +13:00
Darren Ethier 4210b6f0a8 Update @wordpress/eslint-plugin dependency to latest version. (https://github.com/woocommerce/woocommerce-admin/pull/5856)
* update @wordpress/eslint-plugin dependency to latest version

* local prettier config isn’t needed anymore because of fix in upstream package

* add jsdoc config to use typescript format for jsdocs

* update changelog

* update packages and include .prettierrc.js back in for code editor support of prettier

* add docs

* minor prettier fix in test file

* Convert all new eslint rules throwing errors to warnings temporarily to be handled in separate prs

* updated changelog

* fix package-lock.json

* prettier auto-fixes

* add prettier dependency at root

* sigh prettier is being finicky

* version bump

Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-01-26 13:24:28 +13:00
louwie17 74b3eccbc9 Add option to create product by template (https://github.com/woocommerce/woocommerce-admin/pull/5892)
* Initial product template modal

* Add custom product template for the new-post route

* Add test, and code for making use of the insert_post action

* Added ProductTemplates Datastore to create template with REST api

* Add back variation method, deleted by accident

* Move product from template endpoint to OnboardingTasks class

* Fix lint errors

* Added tracks and template hooks

* Rename product create permission check function, for less confusion

* Remove duplicate recommended option

* Fix stylelint errors

* PHP tests for the product_from_template endpoint

* Fix onboarding php unit tests

* Write tests for client product template options

* Refactored list component, to use it as a radio control list

* Fix lint errors

* REmove assertion as it fails on the ci

* Add changelog

* Updating tests to make sure all product attribute taxonomies are removed

* Add more specific assertions for importing sample products test

* Update the sample products test

* Deconstruct item object, from PR suggestion

* Fix PHP errors, by updating the createProductFromTemplate call
2021-01-25 12:52:42 -04:00
manjeet-wisetr 3a792f66d9 Update FilterPicker Component README.md (https://github.com/woocommerce/woocommerce-admin/pull/5928) 2021-01-25 11:21:57 -05:00
renovate[bot] 2d106bb0b3 Update dependency qs to v6.9.6 (https://github.com/woocommerce/woocommerce-admin/pull/6107)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-23 10:41:40 +13:00
Sam Seay aa9f08ab50 Don't lint the storybook wordpress folder. (https://github.com/woocommerce/woocommerce-admin/pull/6144) 2021-01-23 10:38:55 +13:00
Joshua T Flowers dfcca3385e Use settings tabs filter to get setting pages for nav (https://github.com/woocommerce/woocommerce-admin/pull/6116) 2021-01-22 14:54:34 -05:00
Sam Seay 592a4f2491 Make stale bot use 60 days for PRs and issues (https://github.com/woocommerce/woocommerce-admin/pull/6152) 2021-01-22 16:47:52 +13:00
Adrian Duffell fdb1a4c7e3 Update stale action to use ascending order (https://github.com/woocommerce/woocommerce-admin/pull/6151)
This ensures the oldest issues/PRs are processed first
2021-01-22 08:53:41 +08:00
Sam Seay 5799daafd7 Increase the max ops per run so we can see everything it will mark stale. (https://github.com/woocommerce/woocommerce-admin/pull/6149) 2021-01-22 13:31:12 +13:00
Sam Seay 52f00e6ceb Go to v3 of stale action. (https://github.com/woocommerce/woocommerce-admin/pull/6147) 2021-01-22 13:02:40 +13:00
Adrian Duffell f66da0a46c Update Jetpack Autoloader to 2.7.1 (https://github.com/woocommerce/woocommerce-admin/pull/6146) 2021-01-22 07:18:10 +08:00
Moon d5d57097e4 Update/inconsistent button look in OBW (https://github.com/woocommerce/woocommerce-admin/pull/6112)
* Set isBusy for the continue button on Store Details

* Set isBusy for the continue button on Industry

* Set isBusy for the continue button on Product Types
2021-01-21 14:53:47 -08:00
Joel Thiessen c6cd12560a Adding history listener to fold navigation on mobile when navigating (https://github.com/woocommerce/woocommerce-admin/pull/6102) 2021-01-21 12:13:09 -08:00
louwie17 298419d1ab Update payment task styling, to match old format (https://github.com/woocommerce/woocommerce-admin/pull/6140) 2021-01-21 16:06:58 -04:00
Fernando f6fce948dc Fixed empty string filtering (https://github.com/woocommerce/woocommerce-admin/pull/6139)
This commit fixes the empty string filtering in OBW

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-01-21 16:59:47 -03:00
Tomek Wytrębowicz f012bbb7ca Render SummaryNumber delta precisely. (https://github.com/woocommerce/woocommerce-admin/pull/5926)
Previously only a given delta was rendered as an integer. Now it renders the number with a given precision.
Fixes woocommerce/woocommerce-admin#5925.

Co-authored-by: Rebecca Scott <me@becdetat.com>
2021-01-21 19:06:07 +01:00
Sam Seay ea2b01f65a Add a stale check to PRs and issues (as a dry run for now). (https://github.com/woocommerce/woocommerce-admin/pull/6082) 2021-01-21 21:21:54 +13:00
Moon b80b65bd46 Add a new note a day after adding the first product (https://github.com/woocommerce/woocommerce-admin/pull/6032)
* Add a new note a day after adding the first product
* Do not add note if store has been active for more than 14 days
2021-01-20 22:11:53 -08:00
Renovate Bot 9fb8750c9f Update dependency autoprefixer to v10.2.3 2021-01-21 05:05:18 +00:00
Renovate Bot cd7f751b92 Update dependency husky to v4.3.8 2021-01-21 04:55:42 +00:00
Sam Seay 7041c3b2d3 Add the "Getting started in Ecommerce" inbox note (https://github.com/woocommerce/woocommerce-admin/pull/6086) 2021-01-21 16:13:23 +13:00
renovate[bot] abc0f48d60 Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/6084)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-21 15:47:14 +13:00
Adrian Duffell e506e6c9bf Bump minimum supported PHP version to 7.0 (https://github.com/woocommerce/woocommerce-admin/pull/6046) 2021-01-21 09:11:30 +08:00
Joel Thiessen ecf3e61cbd Fix fatal error on homescreen when clicking add products task (https://github.com/woocommerce/woocommerce-admin/pull/6117) 2021-01-20 16:31:34 -08:00
Joshua T Flowers 828ffc8a1a Fix WooCommerce mobile menu for new navigation (https://github.com/woocommerce/woocommerce-admin/pull/6096)
* Show the first WooCommerce item in WP menu on mobile

* Hide excluded menu items from WooCommerce wp menu
2021-01-20 19:26:54 -05:00
Joshua T Flowers c98e3ca343 Disable features on tracking opt out (https://github.com/woocommerce/woocommerce-admin/pull/6075)
* Separate features into Features class

* Fix Loader references

* Move option to TOGGLE_OPTION_NAME constant

* Disable features on tracking opt out

* Remove errant classes

* Create array of beta features in Features class

* Update method names for exists and enabled

* Only load enabled features client-side
2021-01-20 19:26:40 -05:00
Moon 716982adee Make sure current_page has path index (https://github.com/woocommerce/woocommerce-admin/pull/6114) 2021-01-20 16:22:33 -08:00