Commit Graph

6487 Commits

Author SHA1 Message Date
Christopher Allford d2d8d78be1 Moved WCA Packages
This commit moves all of the packages in
`plugins/woocommerce-admin/packages` to their
new home in `packages/js`.
2022-03-18 14:25:26 -07:00
Christopher Allford efb270ef27 Remove Husky from WooCommerce Admin 2022-03-18 14:07:30 -07:00
Christopher Allford dbf004023e Fixed PNPM Lockfile 2022-03-18 14:04:13 -07:00
Christopher Allford 3077c3752b Merge remote-tracking branch 'woocommerce/woocommerce-admin/main' into merge/woocommerce-admin 2022-03-18 13:56:18 -07:00
Christopher Allford da6ad73d18 Add workflow to block merges to main
With the migration of the feature plugin into the `woocommerce/woocommerce` repository, we're going to use this workflow to block content from being merged into `main`.
2022-03-18 13:13:49 -07:00
louwie17 4bff4d1302 Fix php notice when selecting paid theme (https://github.com/woocommerce/woocommerce-admin/pull/8493)
* Add initial E2E tests for purchase task

* Update paid theme logic to remove PHP warning and keep the correct price

* Fix php unit tests

* Address some PR feedback

* Add changelog

* Include the purchase task e2e test

* Disable test

* Delete purchase E2E test file
2022-03-18 16:05:38 -03:00
Viktor Szépe c45cb7a398 Merge remote-tracking branch 'wc/trunk' into patch-6 2022-03-18 17:42:35 +00:00
Christopher Allford d67041f0a7 Updated Composer to v2 2022-03-18 09:56:28 -07:00
Christopher Allford efbc635e32 Added Beta Tester Plugin To Nx
This commit adds the project file and makes the
necessary changes to the workspace to support
the new plugin.
2022-03-18 09:46:10 -07:00
Christopher Allford 7be60a5b52 Merge remote-tracking branch 'woocommerce/woocommerce-beta-tester/trunk' into merge/woocommerce-beta-tester 2022-03-18 09:42:18 -07:00
Chi-Hsuan Huang c05605fddf Update linting, testing, `@types/*` dependencies (https://github.com/woocommerce/woocommerce-admin/pull/8475)
* Update husky from 4 to 7

* Update @types/jest from 26 to 27

* Update lint-staged from 10 to 12

* Update babel-jest from 26 to 27

* Update @typescript-eslint/eslint-plugin from 4 to 5

* Update @typescript-eslint/parser from 4 to 5

* Update chalk from 4 to 5

* Update concurrently from 5 to 7

* Update stylelint from 9 to 14 and stylelint-config-wordpress from 13 to 17

* Update @wordpress/prettier-config from 0.4 to 1.1

* Update eslint from 7 to 8, @wordpress/eslint-plugin from 8 to 10, eslint-plugin-testing-library to 5

* Fix lint errors after updating eslint-plugin-testing-library

* Fix style lint

* Rename .stylelintrc.json -> stylelint.config.js & add todo comment

Fix stylelint.config.js

* Remove @wordpress/e2e-test-utils

* Add changelogs for eslint-plugin

* Update storybook/preview.js since addDecorator has been deprecated

Remove parameters

* Import directly from @storybook/addon-docs

* Migrate some stories to use @storybook/addon-controls

Add a comment for @storybook/addon-knobs

* Update changelogs

* Update preview.js to fix lint warning

* Update pnpm-lock.yaml

* Fix eslint layout errors (https://github.com/woocommerce/woocommerce-admin/pull/8484)
2022-03-18 19:45:14 +08:00
RJ d9714b55c3 Update webpack 4 to webpack 5 (https://github.com/woocommerce/woocommerce-admin/pull/8476)
* updated webpack to 5

* fix dependency extraction config

* port unminify.js to webpack 5

* updated packages webpack version

* changelogs

* Updated @wordpress/custom-templated-path-webpack-plugin

- also removed Terser from package.json

* Upgraded storybook config to webpack 5
2022-03-18 18:59:05 +08:00
Chi-Hsuan Huang 8277860a19 Fix wc-admin-php-test-suite Dockerfile (https://github.com/woocommerce/woocommerce-admin/pull/8492) 2022-03-18 18:48:44 +08:00
Peter Fabian 9ffaf34c23
Merge pull request #31609 from woocommerce/update/product-block-templates-meta-box
Allow relevant block templates to be listed in the Edit Product view
2022-03-18 11:13:11 +01:00
Peter Fabian 59b941b239 Added approval feature for downloadable files 2022-03-18 10:26:32 +01:00
Peter Fabian 6e9ed9a83a Cast limit to int in all branches. 2022-03-18 10:10:08 +01:00
Peter Fabian c4b965e543 Fix error messages for order endpoints. 2022-03-18 10:04:09 +01:00
Chi-Hsuan Huang 89e7d145f4 Fix `next_week_start` logic (https://github.com/woocommerce/woocommerce-admin/pull/8468)
* Fix next_week_start logic

* Add changelog

* Update function docs for definitions of week end and week start
2022-03-18 12:18:16 +08:00
Moon a7645fa07d Allow CLI environments to run the install routines (https://github.com/woocommerce/woocommerce-admin/pull/8488) 2022-03-17 20:17:25 -07:00
Chi-Hsuan Huang 4de940111c Remove `is_primary` column from the `wp_wc_admin_notes` table (https://github.com/woocommerce/woocommerce-admin/pull/8474)
* Remove is_primary column from the wc_admin_notes table

* Add changelog
2022-03-18 09:17:35 +08:00
Chi-Hsuan Huang 0a75b1b657 Refactor the `onFilterChange` method in the `AdvancedFilters` component (https://github.com/woocommerce/woocommerce-admin/pull/8459)
* Refactor the onFilterChange method in the AdvancedFilters component to use object params

* Fix advanced-filters/stories currency undefined error

* Add changelog

* Update changelog
2022-03-18 09:16:32 +08:00
Barry Hughes d2966e0fca
Merge pull request #32081 from johnregan3/31824-add-order-id-to-error
Include order ID in the error log message
2022-03-17 15:12:16 -07:00
Christopher Allford b63091bee0
Merge pull request #32075 from woocommerce/update/woocommerce-blocks-7.2.0
Update WooCommerce Blocks package to 7.2.0
2022-03-17 15:11:53 -07:00
Joshua T Flowers 611903ef5d Separate onboarding concerns into separate classes (https://github.com/woocommerce/woocommerce-admin/pull/8280)
* Separate onboarding concerns into separate classes

* Fix up onboarding product types

* Fix up references to profile data option

* Fix up call to allowed themes

* Move onboarding features to internal namespace

* Remove old onboarding redirect

* Fix failing tests

* Add changelog entry

* Move inernal classes to the new src-internal folder

* Fix lint error

* Add deprecated class for Onboarding

* Add empty construct method

* Remove some of the unnecessary static functions and make sure OnboardingTasks still gets initialized

* Fix missed changes during rebase

* Fix tests

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2022-03-17 17:10:43 -03:00
9ete b662d2b450 fix/30156: prevent 'Search' field from overflowing container on the 'Downloadable product permissions' widget when in the sidebar on the admin order detail page 2022-03-17 13:42:08 -05:00
Jorge A. Torres f32b9c813b
Merge pull request #31940 from pcarrier/pcarrier/whatismyipaddress
class-wc-geolocation.php: drop bot.whatismyaddress.com, introduce tnedi.me
2022-03-17 11:38:51 -05:00
Peter Fabian 9c48710497
Merge pull request #32067 from woocommerce/add/primary-key-to-product-attributes-lookup-table
Add a primary key to the product attributes lookup table.
2022-03-17 17:17:43 +01:00
John Regan 9994291d33
31824 Add translator note
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2022-03-17 08:11:20 -05:00
Tomek Wytrębowicz ae89e6ae20 Suppress `lint:js` warnings in CI and GitHub PRs (https://github.com/woocommerce/woocommerce-admin/pull/8020)
- Add returned type annotations to `packages/admin-e2e-tests/src/elements/*.ts` and `packages/admin-e2e-tests/src/*.ts`.
- Remove unused vars from `packages/admin-e2e-tests/src/*.ts`.
- Simplify `unknown` type union.

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-03-17 12:13:37 +01:00
Néstor Soriano 04a96f0c5b
Merge pull request #32076 from woocommerce/fix/31244-paypal-admin-js
Minify updated PayPal admin JS.
2022-03-17 10:57:05 +01:00
Chi-Hsuan Huang 6d139e063d Fix industry tab not clickable after going back (https://github.com/woocommerce/woocommerce-admin/pull/8469)
* Fix industry tab not clickable after going back

* Add changelog

* Add e2e test for testing industry tab going back

* Add changelog

* Add navigate to fix the test
2022-03-17 17:39:50 +08:00
Nestor Soriano ad55634ea5
Add error logging to DataRegenerator::create_table_primary_index 2022-03-17 09:31:26 +01:00
renovate[bot] 8e6d8c829e Update dependency @automattic/explat-client-react-helpers to ^0.0.4 (https://github.com/woocommerce/woocommerce-admin/pull/8471)
* Update dependency @automattic/explat-client-react-helpers to ^0.0.4

* Reverted patch for building @automattic/explat-client-react-helpers

* Updated pnpm-lock.yaml

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: rjchow <me@rjchow.com>
2022-03-17 11:15:12 +08:00
Moon 2ea4d92c30 Translate dates in NewSalesRecord note (https://github.com/woocommerce/woocommerce-admin/pull/8426)
* Translate dates

* Add changelog

* Add test

* Fix broken tests
2022-03-16 14:03:43 -07:00
louwie17 b2e83899b3 Add/8269 rest api docs (https://github.com/woocommerce/woocommerce-admin/pull/8429)
* Internalize all WooCommerce Admin main API controllers

* Internalize all report and report stat controllers

* Make function public and label as internal to fix PHP unit tests

* Add changelog
2022-03-16 14:46:48 -03:00
Tam Mullen 76deb8b6a1
Include link to e2e boilerplate in e2e Readme 2022-03-16 15:43:49 +00:00
John Regan 53473a6aa5 31824 Remove test code 2022-03-16 09:21:20 -05:00
John Regan 05427269db Merge branch 'trunk' into 31824-add-order-id-to-error 2022-03-16 09:19:33 -05:00
John Regan 8dbc76ef2b fix/31824 - Initial commit 2022-03-16 09:19:18 -05:00
Nestor Soriano fc4a71d9b8
Don't use ADD PRIMARY KEY IF NOT EXISTS as it's not supported by MySQL
Instead, manually check if the key exists and create it if not.
2022-03-16 13:18:22 +01:00
renovate[bot] 3f3f25f4b7 Update dependency mariadb to v10.8.2 (https://github.com/woocommerce/woocommerce-admin/pull/8473)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-16 11:15:01 +08:00
Chi-Hsuan Huang a9fe13e80b Add capability for ExPlat integration to authenticate WPCOM users (https://github.com/woocommerce/woocommerce-admin/pull/8428)
* Add @wordpress/api-fetch to explat/package.json

* Export auth exPlat utils

* Support request assignment as wpcom user

* Add experiments proxy api for js

* Update error response

* Add changelog

* Update pnpm-lock.yaml

* Change error type

* Update explat/README.md

* Update includes/class-experimental-abtest.php

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

* Fix get explat /assignments

* Fix url & add comment to assignment.ts

* Fix cors issue

* Fix php test

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-03-16 11:03:10 +08:00
Renovate Bot 84a7c24599 Update dependency jest-environment-jsdom to ~27.5.0 2022-03-16 02:58:10 +00:00
Shohei Tanaka 8ba55cd021 Escape processing missing
It was escaped in other email templates, but not here.
2022-03-15 17:19:30 -05:00
Jorge A. Torres ca7bedd249
Merge pull request #31987 from woocommerce/fix/internal-links-in-readmes
Fix internal links in README files
2022-03-15 15:38:46 -05:00
Jacob Sewell 463394f3db Create lookup_notes method to bypass woocommerce_note_where_clauses filter. (https://github.com/woocommerce/woocommerce-admin/pull/8387)
* Add args_to_where_clauses() and lookup_notes() methods to Admin\Notes\DataStore.
For use by internal code to bypass woocommerce_note_where_clauses filter.

* Changelog for 8385/8387.

* Add some linter whitelist notation to preexisting warnings in class-wc-test-notes-data-store.

* Add unit tests for the differences between lookup_notes() and get_notes().

* Minor text fix in changelog for 8385/8387.

* Better explanation in pagination tests in test_lookup_notes_versus_get_notes().

* All Notes created by WC_Tests_Notes_Data_Store should have source and name values.

* Add tearDown method to WC_Tests_Notes_Data_Store to delete test-created Notes.
2022-03-15 14:24:09 -05:00
barryhughes 72e00f9f99 Minify updated PayPal admin JS. 2022-03-15 11:09:24 -07:00
louwie17 f37af20b5f New task list version 1 (https://github.com/woocommerce/woocommerce-admin/pull/8457)
* Allow for easy task component switch

* Add past tense feature addition with cross out

* Add visible option for task lists and make use of new feature config

* Fix lint errors

* Fix lint errors

* Fix css lint

* Fix js unit tests

* Address PR feedback

* Add js tests for task list changes

* Add php tests for updated logic

* Add changelog

* Update copy

* Make snooze test a little more robust
2022-03-15 14:40:22 -03:00
Nestor Soriano eb94672f76
Delete the (now redundant) product_or_parent_id_term_id index
in the product attributes lookup table.
2022-03-15 17:03:51 +01:00
Nestor Soriano 904ec4343c
Fix misc links in READMEs and GitHub templates. 2022-03-15 16:01:12 +01:00