Commit Graph

7199 Commits

Author SHA1 Message Date
moon edb8b69dc4 Use wc.tracks.recordEvent if available 2022-04-11 07:35:41 -07:00
moon 869a3baf3c Remove wcadmin prefix 2022-04-11 07:34:07 -07:00
moon ff2eb6f98d Record wcadmin_settings_payments_recommendations_other_options event with available payment methods 2022-04-11 07:34:07 -07:00
moon 4fe8cf2f71 Add id to the link 2022-04-11 07:34:07 -07:00
moon 51782d8228 Remove unused namespace import 2022-04-11 07:34:07 -07:00
moon 06f66ba20c Removed the filter and moved the link logic due to security reason 2022-04-11 07:34:07 -07:00
moon 08e5883246 Add other payment methods link when the store is in WC Payments eligible country 2022-04-11 07:34:07 -07:00
moon 721ff37095 Support woocommerce_payment_gateways_setting_additional_rows filter to allow adding additional table rows 2022-04-11 07:34:07 -07:00
moon 5b31f5acf4 Do not show payment recommendations if store owner is in a country where WC Payment is supported 2022-04-11 07:34:07 -07:00
Barry Hughes 521ad5f34c
Merge pull request #32027 from woocommerce/update/filter-out-product-variation-line-item-meta
Filter out product variation line_item meta
2022-04-11 07:08:46 -07:00
barryhughes 1d0c35d226 Changelog. 2022-04-11 07:00:46 -07:00
barryhughes 0acf54ab25 Reduce risk of prematurely dropping meta box error messages. 2022-04-11 07:00:46 -07:00
RJChow 464bcb7783 Changed unminify plugin to hook into step before optimization 2022-04-11 21:54:48 +08:00
vedanshujain 63ae96a2b6 Add changelog. 2022-04-11 19:21:58 +05:30
vedanshujain b14b34abf8 Typos and DataBase -> Database. 2022-04-11 19:21:58 +05:30
vedanshujain 891a9439a1 Applied coding standards. 2022-04-11 19:21:58 +05:30
vedanshujain c06d8dd80a Applied coding standards. 2022-04-11 19:21:57 +05:30
vedanshujain 909a57e784 Applied coding standards. 2022-04-11 19:21:57 +05:30
vedanshujain c5df64ca57 Add errors to log. 2022-04-11 19:21:56 +05:30
vedanshujain bb10c88b8f Minor fixes in bulk migration logic. 2022-04-11 19:21:56 +05:30
vedanshujain 81f918af87 Force type to try to fix CI. 2022-04-11 19:21:56 +05:30
vedanshujain b403fa0cf0 Remove incorrectly added file. 2022-04-11 19:21:55 +05:30
vedanshujain d7434ce3a7 Force type to try to fix CI. 2022-04-11 19:21:55 +05:30
vedanshujain 8e4287d19b Applied coding standards. 2022-04-11 19:21:55 +05:30
vedanshujain f8d5746a2d Applied coding standards 2022-04-11 19:21:54 +05:30
vedanshujain 5b3e9f78d2 Applied coding standards. 2022-04-11 19:21:54 +05:30
vedanshujain 2270bfbe9d Applied coding standards + minor fixups. 2022-04-11 19:21:53 +05:30
vedanshujain a220e4f2ea Change parent class reference to try to fix CI. 2022-04-11 19:21:53 +05:30
vedanshujain d5b164622f Applied coding standards. 2022-04-11 19:21:53 +05:30
vedanshujain 02376e6ec5 Add return statement to try to fix CI. 2022-04-11 19:21:52 +05:30
vedanshujain eff7569dfc Add unit tests for handling duplicates. 2022-04-11 19:21:52 +05:30
vedanshujain 78e0e6cb78 Refactor migrator config into dedicated files. 2022-04-11 19:21:52 +05:30
vedanshujain 56ee0b2f4a Add update support along with inser. 2022-04-11 19:21:51 +05:30
vedanshujain 9a178b7704 Add unit test for order data migration. 2022-04-11 19:21:51 +05:30
vedanshujain 3ed9943474 Also add migration config for transaction_id column. 2022-04-11 19:21:50 +05:30
vedanshujain 7186c80c5e Reuse function instead of hardcoding for consistency. 2022-04-11 19:21:50 +05:30
vedanshujain a4c83de142 Add dependency injection class. 2022-04-11 19:21:50 +05:30
vedanshujain 2802162be5 Add meta table and typo fix. 2022-04-11 19:21:49 +05:30
vedanshujain 169bd4fd4f Fix incorrect column mapping bugs. 2022-04-11 19:21:49 +05:30
vedanshujain ee76fbc17c Modify to migrate by IDs to reduce responsibilities of generate migrator classes. 2022-04-11 19:21:49 +05:30
vedanshujain 8724429382 Refactor to use new config format. 2022-04-11 19:21:48 +05:30
vedanshujain 7836066008 Refactor config format to be more clear. 2022-04-11 19:21:48 +05:30
vedanshujain 48356c213f Refactor config format to be more clear. 2022-04-11 19:21:47 +05:30
vedanshujain 5d6eaff099 Applied coding standards. 2022-04-11 19:21:47 +05:30
vedanshujain 7bb25779aa Add config for migration meta data table as well. 2022-04-11 19:21:47 +05:30
vedanshujain 6b70afc731 Refactor to use migration helper for better re-usability. 2022-04-11 19:21:46 +05:30
vedanshujain aa00d7af68 Add defination of order meta data table.
Made table name methods static so that they can be reused.
2022-04-11 19:21:46 +05:30
vedanshujain ee834e2cf1 Applied coding standards. 2022-04-11 19:21:46 +05:30
vedanshujain c44cc40d21 Add utility class for migrating metadata. 2022-04-11 19:21:45 +05:30
vedanshujain cb280829cc Add a migration helper class to refactor common utility methods. 2022-04-11 19:21:45 +05:30
vedanshujain 786561d6fd Add migrations for operational data table. 2022-04-11 19:21:45 +05:30
vedanshujain 6cc34e8616 Add support for migrating shipping addresses. 2022-04-11 19:21:44 +05:30
vedanshujain 32d1162a01 Add migration support for billing address. 2022-04-11 19:21:44 +05:30
vedanshujain 17b1623071 Add support for select clause in column name. 2022-04-11 19:21:43 +05:30
vedanshujain bdff010018 Add class WPPostToCOTMigrator 2022-04-11 19:21:43 +05:30
vedanshujain 25f39a6e42 Add generic meta to custom table migrator class, to be used in meta to custom table migrations. 2022-04-11 19:21:42 +05:30
vedanshujain d58bbc112f Add error logger class for custom table migration. 2022-04-11 19:21:42 +05:30
barryhughes 7065f678b7 Add changelog. 2022-04-11 06:20:09 -07:00
Lourens Schep 8eb03eba46 Remove commented out code 2022-04-11 10:19:30 -03:00
Lourens Schep 5251aa6e97 Fix lint issue 2022-04-11 10:18:17 -03:00
Lourens Schep c3b1352f90 Make sure activity header does not show when displaying task list with progressive header 2022-04-11 10:18:14 -03:00
barryhughes 263bd5776e Correct text-domain. 2022-04-11 06:16:52 -07:00
Lourens Schep 10e9c6c5f9 Fix experiment UI issues 2022-04-11 10:16:44 -03:00
louwie17 f6b7ddb0db
Merge pull request #32493 from woocommerce/fix/32140_wcpay_completion_task
Track completion of non visible tasks as well
2022-04-11 09:09:38 -03:00
Joshua T Flowers 700633957c
Update progress header bar styles in task list (#32498)
* Update progress header bar styles in task list

* Remove units on margin

* Add changelog entry
2022-04-11 08:08:28 -04:00
Néstor Soriano 106e2c582c
Merge pull request #32449 from woocommerce/fix/protocol-agnostic-urls
Support protocol-less URLs from the URL util.
2022-04-11 12:05:45 +02:00
Ilyas Foo 9906b2126e Merge remote-tracking branch 'origin/trunk' into dev/32131-ui-changes-additional-payment-section 2022-04-11 16:38:51 +08:00
Néstor Soriano d56c79605c
Merge pull request #32427 from leskam/patch-2
correct form redirect after save account details
2022-04-11 10:26:36 +02:00
Nestor Soriano 21ecb88c4c
Fix PHPCS issues in URLTests.php 2022-04-11 10:22:13 +02:00
Ilyas Foo 812a11e31b Add changelog 2022-04-11 16:21:48 +08:00
Ilyas Foo 1f77200e70 Add missing track prop 2022-04-11 15:57:26 +08:00
Néstor Soriano adfdeabc6c
Add a couple of missing spaces (code formatting). 2022-04-11 09:40:48 +02:00
Ilyas Foo c8b6bd91e0 Update payment gateway logos 2022-04-11 14:24:08 +08:00
Ilyas Foo 90c61e4bad Revert WCPay suggestion UI changes 2022-04-11 11:55:05 +08:00
Ilyas Foo 829b4c4480 Merge remote-tracking branch 'origin/trunk' into dev/32131-ui-changes-additional-payment-section 2022-04-11 09:42:23 +08:00
Josh Betz 4449a669c8 Add order_item_display_meta description 2022-04-08 15:31:03 -05:00
Fernando Marichal 35a2eb1f9f Move test to `complete-onboarding-wizard` 2022-04-08 16:10:43 -03:00
barryhughes 6dcb796a89 No changelog required (but let's satisfy the linter). 2022-04-08 11:51:18 -07:00
barryhughes bc11e57e14 Support protocol-less URLs from the URL util. 2022-04-08 11:35:27 -07:00
Christopher Allford da5dc21acc Replaced Accent Removal
The current `iconv` based implementation does not
seem to work in all environments. This replaces it
with WordPress' native `remove_accents` function.
2022-04-08 11:32:14 -07:00
Fernando Marichal ecbd854105 Add changelog 2022-04-08 15:07:37 -03:00
Fernando Marichal 9e905ea713 Add Pinterest logo 2022-04-08 14:03:55 -03:00
Bero 11239494ef Fix Code sniff errors 2022-04-08 15:07:51 +02:00
Bero f08edf3f4b Add changelog 2022-04-08 15:07:47 +02:00
Bero 0ccf740ef6 Remove 'WooCommerce Addons Page' user-agent 2022-04-08 15:07:42 +02:00
louwie17 f7937593e9
Merge pull request #32473 from woocommerce/feature/32164_new_task_list_loading_placeholder
New task list loading placeholder for experiment 1
2022-04-08 09:55:45 -03:00
Fernando Marichal 49aff7e3dc Add changelog 2022-04-08 09:17:49 -03:00
Fernando Marichal b6611fb7c1 Add e2e tests 2022-04-08 09:12:49 -03:00
Fernando 61e0a51854
Merge pull request #32506 from woocommerce/fix/hidden_wcpay_task
WCPayments task is not visible after installing the plugin
2022-04-08 09:05:21 -03:00
Chi-Hsuan Huang d914efc8ba
Merge pull request #32487 from woocommerce/dev/32417-clean-up-wc-admin-package-json
Clean up `woocommerce-admin` package.json
2022-04-08 17:13:03 +08:00
Sakri Koskimies b6310900de Fix TableCard component docs 2022-04-08 11:21:53 +03:00
Sakri Koskimies b2effe67c9 Fix phpdoc return type for WC_Order_Refund::get_reason 2022-04-08 10:48:12 +03:00
Chi-Hsuan Huang 2e09cd824e Add changelog 2022-04-08 12:48:14 +08:00
Chi-Hsuan Huang f3e460f055 Remove i18 commands and their dependencies
i18 routines have been handled inside plugins/woocommerce.
2022-04-08 12:45:34 +08:00
Chi-Hsuan Huang 870d523455 Reorder woocommerce admin package.json scripts 2022-04-08 12:38:17 +08:00
Chi-Hsuan Huang a649fe6ae2 Remove no needed commands and fields in package.json 2022-04-08 12:36:26 +08:00
Chi-Hsuan Huang ba17630dca
Merge pull request #32515 from woocommerce/update/32296-wordpress-dependencies
Update @wordpress/* dependencies
2022-04-08 10:08:48 +08:00
Chi-Hsuan Huang dc243bd34c
Merge pull request #32411 from woocommerce/fix/32399-husky
Fix husky git hooks
2022-04-08 10:08:27 +08:00
Joel T cdc7901982 Adding changelog 2022-04-07 17:52:36 -07:00
Joel T 1c162a14d2 Updating all instances of pnpx to pnpm dlx/exec 2022-04-07 17:52:05 -07:00
Fernando Marichal 63f33b86de Add free extensions list fallback 2022-04-07 18:07:47 -03:00
Fernando Marichal 3159bde895 Add Pinterest to free extensions list 2022-04-07 18:07:00 -03:00
Joel T fcf389d921 Adding changelog 2022-04-07 13:08:36 -07:00
Lourens Schep 473d63d043 Remove can_view condition on tracking completion 2022-04-07 16:58:21 -03:00
Christopher Allford 1e3a3d8af5
Merge pull request #32500 from woocommerce/fix/feature-config-file-location
Move feature flag config files to Woocommerce plugin
2022-04-07 12:49:03 -07:00
Jorge A. Torres 7710f07e20 Add changelog entry 2022-04-07 11:03:01 -03:00
Jorge A. Torres aed64b15e4 Fix code style issue. 2022-04-07 11:01:25 -03:00
Jorge A. Torres 3087cae672 Add changelog entry 2022-04-07 11:01:25 -03:00
tjcafferkey 54b9a29db3 Track theme version 2022-04-07 11:01:25 -03:00
tjcafferkey 864f348865 Switch TextDomain for Name when tracking block themes 2022-04-07 11:01:24 -03:00
Tom Cafferkey ab769ebe2c Add block theme property to get_theme_info() in class-wc-tracker class 2022-04-07 11:01:24 -03:00
Tom Cafferkey 9108b8dbf8 Update comments 2022-04-07 11:01:24 -03:00
Tom Cafferkey 50b1d60729 Remove woocommerce event prefix because its autoprefixed with wcadmin_ 2022-04-07 11:01:24 -03:00
Tom Cafferkey aff9255061 Update event name and option name 2022-04-07 11:01:24 -03:00
Tom Cafferkey e5ac9e4ae6 Track initial sites theme 2022-04-07 11:01:24 -03:00
Tom Cafferkey 1c01cc1605 Add tracking for theme activation so that we can track active block themes in WooCommerce 2022-04-07 11:01:24 -03:00
louwie17 e767d9f220
Merge pull request #32496 from woocommerce/fix/wcpay_task
Fix WooCommerce Payments task not showing up in some supported countries
2022-04-07 10:54:24 -03:00
Chi-Hsuan Huang c4033b14de Remove unnecessary --working-dir arg from woocommerce php lint-staged command 2022-04-07 17:21:37 +08:00
Chi-Hsuan Huang 3fc88f0a71 Update links of woocommerce-admin to https://github.com/woocommerce/woocommerce 2022-04-07 17:02:43 +08:00
Chi-Hsuan Huang 82da8cd196
Merge pull request #32490 from woocommerce/fix/32136-onboarding-product-notice-appeared-too-early
Fix continue setup prompt for adding first product appeared too early
2022-04-07 16:01:31 +08:00
Chi-Hsuan Huang 826d9ad59f
Merge pull request #32489 from woocommerce/update/simpliy-init-routine
Simplify the WooCommerce Admin init routine
2022-04-07 16:01:16 +08:00
Chi-Hsuan Huang 3443387045 Update @wordpress/icons from ^6.3.0 to ^8.1.0 2022-04-07 14:24:19 +08:00
Chi-Hsuan Huang 317dd7c9e9 Update @wordpress/base-styles from ^3.6.0 to ^4.3.0 2022-04-07 14:21:33 +08:00
Chi-Hsuan Huang c60db1215e Update @wordpress/hooks from ^2.12.3 to ^3.5.0 2022-04-07 14:18:13 +08:00
Chi-Hsuan Huang 70359c8d11 Update @wordpress/a11y from ^2.15.3 to ^3.5.0 2022-04-07 14:16:46 +08:00
Chi-Hsuan Huang e947d9e198
Merge pull request #32488 from woocommerce/fix/32478-create-wc-ext
Downgrade `chalk` from 5 to 4
2022-04-07 14:06:10 +08:00
Ilyas Foo 9880718325 Merge remote-tracking branch 'origin/trunk' into dev/32131-ui-changes-additional-payment-section 2022-04-07 11:25:10 +08:00
Chi-Hsuan Huang ce1bc10ea3 Add changelog 2022-04-07 10:44:04 +08:00
Paul Sealock 4180780cf9 create feature config as part of core build 2022-04-07 11:00:36 +12:00
Paul Sealock 9eff273f01 add appropriate slash 2022-04-07 10:13:01 +12:00
Barry Hughes 3aee92ebec
Merge pull request #32362 from woocommerce/fix/download-shortcode-handling
Support shortcode-based downloadable files (as used by S3 Downloads extension)
2022-04-06 14:22:18 -07:00
Joel T 2f53fbca04 Updating deasync package to resolve build issue 2022-04-06 13:50:24 -07:00
Lourens Schep 43d279ec84 Move require_once below use statements 2022-04-06 16:36:39 -03:00
Lourens Schep 30c7586f36 Update comment 2022-04-06 16:12:56 -03:00
Peter Fabian 4128ad6611
Merge pull request #32363 from woocommerce/fix/a8c181-documentation-todo-items
Update documentation links.
2022-04-06 20:28:08 +02:00
Fernando Marichal fd1bca3540 Add changelog 2022-04-06 14:07:55 -03:00
Fernando Marichal fcc7143207 Add alreadyActivatedExtensions to persisted business extensions 2022-04-06 14:01:36 -03:00
Jorge A. Torres 6fb8afbfdc
Merge pull request #32424 from woocommerce/fix/30102-dirty-pages
Don't trigger beforeunload notice inappropriately.
2022-04-06 11:21:30 -03:00
Ilyas Foo f82b5d78f1 Fix css and test 2022-04-06 21:31:50 +08:00
Lourens Schep d93731dc57 Fix lint errors 2022-04-06 10:17:24 -03:00
Lourens Schep 1cd3511061 Add changelog 2022-04-06 10:12:01 -03:00
Lourens Schep 4ad2f4ceed Make use of PaymentGatewaySuggestions logic in WooCommerce Payments task 2022-04-06 10:12:01 -03:00
Lourens Schep b660f58c1c Add changelog 2022-04-06 10:10:20 -03:00
Lourens Schep 828e34a974 Address PR feedback and fix PHP unit tests 2022-04-06 10:08:22 -03:00
Lourens Schep a7ec024471 Remove test condition 2022-04-06 09:46:55 -03:00
Lourens Schep a13f15624a Make sure we also track completion of non visible tasks and fix parent id in WooCommercePayments task 2022-04-06 09:46:55 -03:00
louwie17 7d76d4a1a6
Merge pull request #32494 from woocommerce/fix/32154_payment_gateway_spec_warning
Fix PHP warning of missing default value in spec
2022-04-06 09:18:22 -03:00
Chi-Hsuan Huang 2b1f54b09d Set up lint-staged configuration for each package 2022-04-06 17:31:32 +08:00
Chi-Hsuan Huang 01edee8d90 Remove lint-staged.config.js 2022-04-06 17:31:32 +08:00
Chi-Hsuan Huang 14a2f9a8d8 Remove git:update-hooks from woocommerce/project.json 2022-04-06 17:31:32 +08:00
Chi-Hsuan Huang a4ece1b7b9 Remove husky lint-staged from plugins/* 2022-04-06 17:31:32 +08:00
Chi-Hsuan Huang ae44908f33 Move .husky to root path
Add .husky
2022-04-06 17:31:32 +08:00
Ilyas Foo ffdf1e6c02 More adjustments 2022-04-06 16:25:33 +08:00
Ilyas Foo 3050cacc39 Minor adjustments 2022-04-06 16:25:33 +08:00
Ilyas Foo 1980fac6fd Revamp WCPay suggestion in payments task 2022-04-06 16:25:32 +08:00
Ilyas Foo c596222069 Refactor tests 2022-04-06 16:25:32 +08:00
Ilyas Foo 5ff23bf103 Add tracks and small refactor to toggle 2022-04-06 16:25:32 +08:00
Ilyas Foo 0f554436da Broke wcpay task to different sections, added toggle component, added other payment methods toggle 2022-04-06 16:25:32 +08:00
Ilyas Foo a3bd1e5109 Add see more button 2022-04-06 16:25:32 +08:00
Ilyas Foo fb89df5f2c Rename set up button to get started 2022-04-06 16:25:32 +08:00
Ilyas Foo fd4a4a5604 Add is_offline flag and split payment sections 2022-04-06 16:25:31 +08:00
Paul Sealock a154c26ea4 fix legacy tests path 2022-04-06 16:01:36 +12:00
Paul Sealock 0b2e922338 changelog 2022-04-06 15:48:24 +12:00
Paul Sealock ab673dd14b Call Core's script from root level 2022-04-06 15:27:37 +12:00
Paul Sealock 659bf2d43c add additional script to core 2022-04-06 15:25:18 +12:00
Chi-Hsuan Huang 73ba1fc4b2 Add changelog 2022-04-06 11:06:53 +08:00
Chi-Hsuan Huang 8da48065fd Remove de-activation logic when the Core version is not met 2022-04-06 10:28:40 +08:00
Chi-Hsuan Huang 0c366289e0 Remove woocommerce-admin.php from tests 2022-04-06 10:27:53 +08:00
Chi-Hsuan Huang bf91c3cca0 Change mainFile in Gruntfile.js 2022-04-06 10:27:53 +08:00
Chi-Hsuan Huang 9969f60fd3 Remove uninstall.php & woocommerce-admin.php 2022-04-06 10:27:53 +08:00
Paul Sealock 407b225133 Move feature flag config files to Woocommerce plugin to support unit test execution in the wp-env environment. 2022-04-06 14:12:24 +12:00
Barry Hughes 73409592b7
Merge pull request #31185 from sicelo/rename
Rename Swaziland to Eswatini
2022-04-05 13:37:54 -07:00
Barry Hughes dfbc71974b
Merge pull request #32350 from woocommerce/fix/relative-directory-handling
Enhance directory traversal handling/resolution.
2022-04-05 11:24:49 -07:00
Jorge A. Torres 394a9fa490
Merge pull request #30320 from erikdemarco/patch-2
Add new hooks to order-tracking form
2022-04-05 15:10:39 -03:00
Lourens Schep c90922d9e4 Fix PHP warning of missing default value in spec 2022-04-05 14:38:17 -03:00
Jorge A. Torres e72bc47535 Bump ‘form-tracking’ template version 2022-04-05 14:02:40 -03:00
Christopher Allford 5be65f39fd
Merge pull request #32474 from woocommerce/fix/isolate-development-environments
Isolate `wp-env` Environments
2022-04-05 09:57:26 -07:00
Jorge A. Torres 680ad9ceb8 Add docblocks to woocommerce_order_tracking_form hooks. 2022-04-05 13:55:25 -03:00
erikdemarco 28a5f7866b Update form-tracking.php 2022-04-05 11:16:33 -03:00
erikdemarco be8e0744e5 Add new hook to order-tracking
Add additional hook for order tracking, So developer can add additional field for example adding captcha field.
2022-04-05 11:16:33 -03:00
Chi-Hsuan Huang bab72ea51b Fix continue setup prompt for adding first product appeared too early 2022-04-05 16:59:25 +08:00
Chi-Hsuan Huang 277b1acdf5 Downgrade chalk to v4 2022-04-05 14:45:13 +08:00
Vedanshu Jain 605fc47389
Merge pull request #32335 from woocommerce/fix/login-on-wc-auth-endpoint-for-sso
Changes to class-wc-auth that allows it to work with sso auth - update PR #29977
2022-04-05 11:05:38 +05:30
Christopher Allford 0204010b75 Moved `wp-env` File
Rather than having a root `wp-env` environment,
each project should define what it needs. This
prevents problems with shared WordPress installations
and plugin conflicts during development.
2022-04-04 15:18:30 -07:00
Lourens Schep e4803ef40f Fix tests 2022-04-04 16:43:15 -03:00
Lourens Schep 217bec8942 Fix lint errors 2022-04-04 15:58:50 -03:00
Lourens Schep 4d6aab73df Add placeholder for task list experiment one 2022-04-04 15:38:27 -03:00
Lourens Schep b68a835d3a Add displayed task lists to admin settings data 2022-04-04 13:07:25 -03:00
Lourens Schep 885516f302 Slight improvements for loading of the task list 2022-04-04 11:54:34 -03:00
AlexTech01 b903b84edb
Change is_file_valid_csv to wc_is_file_valid_csv
This pull request replaces the class-specific is_file_valid_csv() function with the global wc_is_file_valid_csv() function as requested by the todo that was previously above the is_file_valid_csv() function on the previous line 89.
2022-04-03 08:54:45 -05:00
RJChow ce874e6a75 Temporary PHP lint suppression 2022-04-01 17:29:57 +08:00
RJChow 09a0d2568e Codemod to change php i18n text domain from 'woocommerce-admin' to 'woocommerce' in post-merge WCA folders 2022-04-01 11:41:32 +08:00
RJChow 6e8d620f00 Copied and modified package-update-textdomain.js script for modifying PHP i18n textdomain 2022-04-01 11:41:32 +08:00
RJChow 26ec889111 Manually change i18n text domain from 'woocommerce-admin' to 'woocommerce' in WCA Client .md files 2022-04-01 11:41:32 +08:00
RJChow 1ba60ee69d Codemod to change i18n text domain from 'woocommerce-admin' to 'woocommerce' in WCA Client 2022-04-01 11:41:32 +08:00
Barry Hughes e32e410f62
Merge pull request #31292 from robertmassaioli/patch-1
The woocommerce_webhook_options needs webhook
2022-03-31 14:10:14 -07:00
Fernando 610a48185c
Merge pull request #32408 from woocommerce/fix/32407_move_admin_e2e_tests
Add missing Admin e2e tests
2022-03-31 14:37:23 -03:00
Barry Hughes 4646496651
Linting. 2022-03-31 10:19:06 -07:00
louwie17 e59798a336
Merge pull request #32422 from woocommerce/update/woocommerce_admin_build_watch_command
Add build-watch command for woocommerce-admin
2022-03-30 19:41:55 -03:00
Barry Hughes a41bb22c12
Add docblock for revised `woocommerce_webhook_options` hook. 2022-03-30 14:55:30 -07:00
Barry Hughes 9db2c45290
Merge pull request #31798 from Saggre/fix/documentation-typos
Fix typos in phpdocs and comments
2022-03-30 14:46:23 -07:00
Kamil 43e36a945d change `wp_safe_redirect` location from user dashboard to `edit-account` endpoint 2022-03-30 22:04:56 +02:00
barryhughes 98dee7a196 Don't trigger beforeunload notice inappropriately (re embedded WP_List_Tables). 2022-03-30 10:53:20 -07:00
Stanislav Mazur d0d2963d90 fix internal meta key getter/setter identification 2022-03-30 09:46:46 -07:00
Barry Hughes 69b6a71ab5
Merge pull request #31354 from gs-nasc/trunk
Remove zeroclipboard.

See https://developer.woocommerce.com/2022/03/30/removal-of-zeroclipboard/ for details.
2022-03-30 09:44:13 -07:00
Lourens Schep 775e7117a1 Add build-watch to most js packages and remove packages watch from woocommerce-admin command 2022-03-30 11:46:12 -03:00
louwie17 dda45f7823
Merge pull request #32404 from woocommerce/docs/update_testing_docs
Update test readme with additional error for troubleshooting
2022-03-30 10:08:23 -03:00
Chi-Hsuan Huang 2a5bc7ea75
Merge pull request #32395 from woocommerce/add/32354-php-lint-action
Fix PHP code sniff Github action
2022-03-30 16:48:01 +08:00
Chi-Hsuan Huang 54bfa1e77c
Merge pull request #32378 from woocommerce/remove/32360-unnecessary-wca-files
Remove unnecessary wooCommerce admin files
2022-03-30 14:26:10 +08:00
Moon 9e1d11abdf
Merge pull request #32409 from woocommerce/fix/code-coverage
Fix broken code coverage
2022-03-29 22:14:04 -07:00
Chi-Hsuan Huang d04ace17e8 Fix woocommerce tests/bin/phpcs.sh
Fix tests/bin/phpcs.sh
2022-03-30 11:45:31 +08:00
moon 150142c139 Remove duplicated call 2022-03-29 20:29:19 -07:00
moon 8632950ab8 Fix typo 2022-03-29 20:28:36 -07:00
rodelgc b30179f8d2
Added: Command to generate HTML report 2022-03-30 10:57:11 +08:00
Chi-Hsuan Huang 0be52342b7
Merge pull request #32372 from woocommerce/add/test-lint-js-action
Add lint-test JS Github action
2022-03-30 10:23:50 +08:00
moon 11515797a4 Add return type to make tearDownAfterClass compatible with the parent 2022-03-29 17:10:40 -07:00
moon 93bd09ea2d Merge branch 'fix/code-coverage' of github.com:woocommerce/woocommerce into fix/code-coverage 2022-03-29 17:06:40 -07:00
moon fffbf56c1c Call parent tearDownAfterClass 2022-03-29 17:06:32 -07:00
Moon 01a77550d3
Merge branch 'trunk' into fix/code-coverage 2022-03-29 17:03:11 -07:00
moon 21498bd712 Exclude WC_Admin_Tests_Reports_Orders_Stats from code coverage 2022-03-29 16:58:46 -07:00
moon a99c093a69 Remove unnecessary call to regenerate 2022-03-29 16:44:14 -07:00
moon 6f1502d20b Delete wc_installing transient before running tests -- this prevents CategoryLookup::on_create() from running 2022-03-29 15:46:43 -07:00
Fernando Marichal 89f6032cba Add missing e2e tests
This commit adds the tests: `testDifferentStoreCurrenciesWCPay`, `testSubscriptionsInclusion` and `testBusinessDetailsForm`
2022-03-29 19:16:03 -03:00
barryhughes e1a943cdb3 Add shortcode resolution to sync (approved download directories). 2022-03-29 14:13:21 -07:00
barryhughes cdbbca5b1b Support shortcode-based downloadable files (as used by S3 Downloads extension). 2022-03-29 14:13:21 -07:00
barryhughes b46f28f4e2 Improve path resolution, add additional tests, clean-up tests (use data-providers). 2022-03-29 14:09:53 -07:00
Moon c13d126f11
Merge pull request #32390 from woocommerce/update/32177-deprecate-wc-admin-version-number
Deprecate WC_ADMIN_VERSION_NUMBER constant
2022-03-29 13:59:04 -07:00
moon 657819b48f Clean up attributes after the class 2022-03-29 13:31:11 -07:00
Fernando Marichal 0368fd8b43 Move `admin-homescreen` 2022-03-29 14:58:04 -03:00
barryhughes a41ae705dd Rename the is_directory property to give a better sense of its role. 2022-03-29 10:18:31 -07:00
barryhughes 80397d4f73 Improve test description. 2022-03-29 10:18:31 -07:00
barryhughes 114480c23c Tweak commentary. 2022-03-29 10:18:31 -07:00
barryhughes 1aecb64be5 Cover further scenarios relating to relative URLs and traversals. 2022-03-29 10:18:31 -07:00
barryhughes cee42b7264 Enhance directory traversal handling/resolution. 2022-03-29 10:18:31 -07:00
Lourens Schep 3014f0f9f0 Update test readme with additional error for troubleshooting 2022-03-29 13:09:23 -03:00
Barry Hughes a98aa9c910
Merge pull request #32112 from woocommerce/bump-required-php-to-7.2
Bump WooCommerce minimum required PHP version to 7.2
2022-03-29 09:03:42 -07:00
Fernando bd0397285b
Merge pull request #32331 from woocommerce/update/32157_disable_welcome_modals
Experiment: disable welcome modal
2022-03-29 11:46:24 -03:00
Nestor Soriano be213eb821
Add return type setUp and tearDown methods in admin unit tests
After the bump to PHP 7.2 all the setUp and tearDown methods
in unit test classes need to have an explicit "void" return type
declaration. This commit adds those for the woocommerce-admin tests.
2022-03-29 12:08:08 +02:00
Chi-Hsuan Huang 4b21e1d913 Remove .vscode since it has been removed to root 2022-03-29 17:48:25 +08:00
Chi-Hsuan Huang ed8c114bdd Add back woocommerce-admin.php uninstall.php 2022-03-29 17:47:18 +08:00
Chi-Hsuan Huang 4c976ebd17 Remove unnecessary wooCommerce admin files
Add back languages/README.md
2022-03-29 17:47:18 +08:00
Chi-Hsuan Huang 386d173105 Update storybook webpack config to build stories 2022-03-29 16:46:40 +08:00
Chi-Hsuan Huang 0cc5c6d515 Add expose-loader for storybook webpack config 2022-03-29 16:46:40 +08:00
Chi-Hsuan Huang b658920898 Fix storybook packages paths 2022-03-29 16:45:39 +08:00
Nestor Soriano 25bf59d5e7
Merge branch 'trunk' into bump-required-php-to-7.2 2022-03-29 10:45:07 +02:00
Chi-Hsuan Huang 71350b4e8b Change script lint:js:packages to lint:js-packages 2022-03-29 16:38:26 +08:00
Chi-Hsuan Huang ecff6cd680 Remove lint-test-js.yml 2022-03-29 16:38:06 +08:00
Chi-Hsuan Huang f2a6f93684 Update wca test command and ignore api-core-test
Update test:packages cmd
2022-03-29 16:38:06 +08:00
Chi-Hsuan Huang 4baad1a6e3 Add pr-lint-test-js.yml and remove package-js-api.yml, js_lint_test.sh 2022-03-29 16:38:06 +08:00
Nestor Soriano 6befc1d62a
Small changes related to the bump of min PHP to 7.2
- Rename wrongly cased variable
- Require higher version of maxmind/dbreader
2022-03-29 10:29:15 +02:00
RJChow e9eac24793 tsconfig modifications
- moved and updated .vscode/tasks.json up to root level, and add exclusion to .gitignore
- added --pretty to ts:check in wca package.json (because otherwise there's no syntax highlighting in the output, not sure why this is needed with nx and not without)
- added references to root tsconfig.base.json
- update development.md with instructions for ts checking
2022-03-29 16:08:07 +08:00
Chi-Hsuan Huang 99e6f61dc8 Update woocommerce-admin/.eslintrc.js 2022-03-29 16:08:07 +08:00
Chi-Hsuan Huang df5b506b97 Add lint command to js packages
Update lint js commands

Update customer-effort-score/package.json
2022-03-29 16:08:06 +08:00
Chi-Hsuan Huang 8b2a97d405 Add lint cmd to project.json 2022-03-29 16:08:06 +08:00
Chi-Hsuan Huang 4592d49cfb Fix tsconfig path 2022-03-29 16:07:09 +08:00
Chi-Hsuan Huang b9eeb4991e Fix reminder-bar.scss lint error 2022-03-29 16:07:09 +08:00
Chi-Hsuan Huang 3e8c3be69d Ignore core js packages from woo admin's eslint 2022-03-29 16:07:09 +08:00
Chi-Hsuan Huang 2c5c7549b5 Fix client lint errors 2022-03-29 16:06:33 +08:00
Chi-Hsuan Huang 4ca1ae0032 Fix paths in tsconfig 2022-03-29 16:06:32 +08:00
Christopher Allford bc12f7a263
Merge pull request #32334 from woocommerce/update/woocommerce-blocks-7.2.1
This pull updates the WooCommerce Blocks plugin to 7.2.1. It is intended to target WooCommerce 6.4 for release. This supercedes https://github.com/woocommerce/woocommerce/pull/32075.
2022-03-28 19:42:45 -07:00
moon f2b03feb24 Update version 2022-03-28 18:14:26 -07:00
moon d915587f5d Update version 2022-03-28 17:55:07 -07:00
moon cda288d327 Update VERSION constant 2022-03-28 17:37:35 -07:00
moon 707b0bd74d Fix typo 2022-03-28 14:01:21 -07:00
moon 4a52285930 Deprecate WC_ADMIN_VERSION_NUMBER constant 2022-03-28 13:55:51 -07:00
Christopher Allford 14e852b4b2
Merge WooCommerce Admin Unit Tests (#32287)
This folds the unit tests from WooCommerce Admin into the core test suite, enabling them to run.
2022-03-28 12:53:33 -07:00
Barry Hughes e12d82ae46
Merge pull request #32376 from woocommerce/remove-php-72-version-bump-notice
Remove the admin notice about the upcoming PHP 7.2 requirement
2022-03-28 06:26:18 -07:00
louwie17 2215c9ab3e
Merge pull request #32347 from woocommerce/add-dev-scripts
Add build-watch command for woocommerce-admin
2022-03-28 08:55:57 -03:00
Nestor Soriano c8280c0aee
Remove the admin notice about the upcoming PHP 7.2 requirement 2022-03-28 10:45:08 +02:00
Lourens Schep 8508a46f31 Update watch command so there are no conflicts between build commands 2022-03-25 10:04:02 -03:00
barryhughes f0c18b6683 Update documentation links. 2022-03-25 06:00:03 -07:00
Chi-Hsuan Huang b43d66f862
Merge pull request #32356 from woocommerce/remove/32352-admin-github-files
Remove unnecessary admin `.github` files
2022-03-25 18:24:55 +08:00
Nestor Soriano d7ee2914b7
Add visibility modifiers to constants in src
PHP 7.2 allows visibility modifiers in constants, so let's add these
to the code in the src directory.

The src/Admin and src/Internal/Admin directories are skipped as
they contain a lot of code and they deserve a separate project.
2022-03-25 11:00:17 +01:00
Chi-Hsuan Huang 554fc86441
Merge pull request #32322 from woocommerce/fix/lint_js-fix
Fix paths and argument forwarding for `script lint:js-fix`
2022-03-25 15:01:10 +08:00
Chi-Hsuan Huang 73cb00907b Remove unnecessary admin .github files 2022-03-25 14:26:37 +08:00
Chi-Hsuan Huang 1295c5052d
Merge pull request #32343 from woocommerce/update/admin-node-version
Update woocommerce admin node version to v16
2022-03-25 13:31:38 +08:00
louwie17 80ec23c425
Merge pull request #32298 from woocommerce/feature/32163_new_task_list_header
Add task list progress header
2022-03-24 16:32:46 -03:00
Lourens Schep 3ebf785665 Fix progress title logic 2022-03-24 15:25:07 -03:00
Lourens Schep 3ced44cc40 Fix task navigation that contains actionUrl 2022-03-24 15:25:07 -03:00
Lourens Schep c934c62351 Address PR feedback and fix some minor issues 2022-03-24 15:25:06 -03:00
Lourens Schep 569e27bf02 Add changelog 2022-03-24 15:25:06 -03:00
Lourens Schep c281ddb820 Add progress header bar to task list experiment 2022-03-24 15:25:06 -03:00
Lourens Schep 9a6c077b69 Add build-watch command for woocommerce-admin 2022-03-24 15:09:15 -03:00
Lourens Schep 4a76505fdf Add comment for woocommerce-reset plugin addition 2022-03-24 14:11:18 -03:00
Lourens Schep 20c0c85f9c Fix admin-e2e-test dependency and add new purchase task E2E test, also added the WooCommerce reset plugin 2022-03-24 14:08:03 -03:00
Barry Hughes 9056be919d
Merge pull request #32332 from woocommerce/fix/32329
Don't change quotes when replacing text domain.
2022-03-24 09:23:54 -07:00
Nestor Soriano 913c6bddb2
Add more "#[\ReturnTypeWillChange]" attributes.
These are needed for the code to be compatible with both PHP 7.x and 8.x
2022-03-24 14:08:18 +01:00
Nestor Soriano fbc77160db
Use CssInliner class instead of Emogrifier class
With the upgrade of the Emogrifier package we can't use the Emogrifier
class, since it was removed in v4 (we need to use at least v5 for
compatibility with PHP 8); so we now use the CssInliner class.

Note that this is a potential breaking change for consumers of the
woocommerce_emogrifier hook, which was getting an Emogrifier object
as parameter (now it gets a CssInliner object, which is partially
compatible).
2022-03-24 14:08:18 +01:00
Nestor Soriano 0f2b717462
Fix calls to deprecated PHPUnit methods in unit tests.
Fix tests where PHPUnit 8 would throw "this method is deprecated
and will be removed in PHPUnit 9, use this other one instead"
warnings, by replacing all those with the proper ones. This will help
once we are able to use PHP 8 (once WP requirement is bumped to 5.9)
2022-03-24 14:08:18 +01:00
Nestor Soriano 5837a53821
Add .phpunit.result.cache to .gitignore
This file is created by PHPUnit v8 when tests run.
2022-03-24 14:08:18 +01:00
Nestor Soriano 01073ec24f
Add return type setUp and tearDown methods in unit tests
After the bump to PHP 7.2 all the setUp and tearDown methods
in unit test classes need to have an explicit "void" return type
declaration.
2022-03-24 14:08:17 +01:00
Nestor Soriano 819494f2ed
Bump WooCommerce minimum required PHP version to 7.2
This includes:

- Changing "Requires PHP" in woocommerce.php
- Changing "require-php" and "config-platform-php" in composer.json
- Bumping pelago/emogrifier to ^6.0 in composer.json
- Bumping maxmind-db/reader to ^1.6 in composer.json
- Bumping composer/installers to ^1.9 in composer.json
  (bump to 2.0 not possible due to conflict with Admin package)
- Removing jobs for 7.0/.1 unit test runs in CI
- Explicitly specifying the PHPUnit version to be 7.5,
  otherwise it will install v8 which isn't compatible with
  WordPress <5.9
2022-03-24 14:08:11 +01:00
Peter Fabian 8cd3a86aaa
Merge pull request #31539 from nagpai/fix/30209
Fix columns in checkout page for TwentyTwenty theme
2022-03-24 10:57:22 +01:00
Chi-Hsuan Huang 096759862f Update woo admin node version to ^16 2022-03-24 16:33:53 +08:00
louwie17 eb081aa9fa
Merge pull request #32320 from woocommerce/add/32161_reminder_bar
Add reminder bar for task list experiment
2022-03-23 17:12:05 -03:00
Lourens Schep 44d9824d47 Fix error when tasks are not defined yet 2022-03-23 14:05:25 -03:00
Lourens Schep 371ce71173 Update completed tasks variable 2022-03-23 13:57:48 -03:00
Josh Betz 939d429389
Simplify product variation filtering
Fixes an issue where we were conditionally mutating the meta key and value. This was originally copy/pasted from somewhere else. In this context, we don't need all of these values, so the simpler approach is good.

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2022-03-23 11:09:50 -05:00
Josh Betz 8446625b0d
Merge pull request #32073 from woocommerce/reviews-api/add-product-info
Added product name + permalink to the GET Reviews API endpoint response
2022-03-23 11:06:22 -05:00
Peter Fabian f2b534c687 WC Admin is no longer a package 2022-03-23 15:45:21 +01:00
Seghir Nadir 180178044a
Update WooCommerce Blocks package to 7.2.1
This pull updates the WooCommerce Blocks plugin to 7.2.1. It is intended to target WooCommerce 6.4 for release. This supercedes https://github.com/woocommerce/woocommerce/pull/32075.

Details from all the different releases included in this pull:

## Blocks 7.2.1
[Release PR](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6072)
[Testing Instruction](https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/trunk/docs/testing/releases/721.md)

### Changelog entry

#### The following changelog entries are only those that impact existing blocks and functionality surfaced to users:

#### Bug fixes

- Don't trigger class deprecations notices if headers are already sent [#6074](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6074)

### Changelog entry
> Dev - Update WooCommerce Blocks version to 7.2.1
2022-03-23 15:02:45 +01:00
Rodrigue Tusse e7f822e8eb Changes to class-wc-auth that allows it to work with sso auth 2022-03-23 15:51:42 +02:00
Peter Fabian d7642c7ae7 Don't change quotes when replacing text domain. 2022-03-23 13:50:37 +01:00
Fernando Marichal f276434ea4 Disable welcome modals 2022-03-23 09:11:34 -03:00
anitaamurthy 7603a2c02b Fixed spacing issue 2022-03-23 17:11:09 +05:30
Chi-Hsuan Huang e3d035a624
Merge pull request #32291 from woocommerce/add/32138-ability-for-code-based-notes-to-update
Add ability for code-based notes to update
2022-03-23 17:08:15 +08:00
RJ 04d94d0430
Merge pull request #32327 from woocommerce/dev/publish-wca-packages
Corrected path for publishing commands
2022-03-23 16:07:19 +08:00
rjchow 2d8214af2e Corrected path for publishing commands
- typo in the path in previous commit
2022-03-23 13:30:11 +08:00
Chi-Hsuan Huang 9d7879b254
Merge pull request #32290 from woocommerce/add/primary-arg-back-to-add-action
Add `$primary` param back to add_action method
2022-03-23 11:22:52 +08:00
RJ fc163b6dc9
Merge pull request #32313 from woocommerce/dev/publish-wca-packages
Bump WCA JS packages version numbers in package.json and changelogs
2022-03-23 11:18:04 +08:00
Tomek Wytrębowicz a67188b52e Fix argument forwarding for npm script lint:js-fix.
Redo 7d1a6661f9.
2022-03-22 16:36:17 +01:00
Tomek Wytrębowicz 4714289838 Fix `packages/` path for npm script `lint:js`. 2022-03-22 16:35:12 +01:00
Lourens Schep fdbc2190c0 Update changelog 2022-03-22 12:32:32 -03:00
Lourens Schep 25d6b6d528 Add reminder bar for task list experiment 2022-03-22 12:28:58 -03:00
Ovidiu Liuta 9d9b7464d7
Update class-wc-download-handler.php 2022-03-22 14:46:14 +02:00
Ovidiu Liuta 4c97d8e757
Update class-wc-download-handler.php 2022-03-22 14:45:42 +02:00
Ovidiu Liuta 867f26da8b
woocommerce_download_parse_remote_file_path filter 2022-03-22 14:42:08 +02:00
Ovidiu Liuta 17b18ac68f
adding woocommerce_download_parse_file_path filter 2022-03-22 14:26:41 +02:00
louwie17 b27618e51d
Merge pull request #32304 from woocommerce/fix/add_feature_config_to_gitignore
Remove feature config from repo and add it to the gitignore
2022-03-22 08:56:38 -03:00
Chi-Hsuan Huang c9e9465802 Update indent 2022-03-22 16:13:22 +08:00
Chi-Hsuan Huang b7cee3e867 Add tests for update_note_field_if_changed method 2022-03-22 16:09:01 +08:00
rjchow 3c0cc02104 Updated WCA package publishing commands
- Updated path for packages
2022-03-22 16:07:36 +08:00
Chi-Hsuan Huang 5b294e4c11 Use in_array to check need_save logic 2022-03-22 15:29:30 +08:00
Chi-Hsuan Huang da241f6c70
Merge pull request #32293 from woocommerce/fix/admin-js-tests
Fix WooCommerce Admin JS unit tests
2022-03-22 14:11:08 +08:00
Chi-Hsuan Huang 1fcdc5b6a2 Update wc admin test command 2022-03-22 11:24:59 +08:00
Chi-Hsuan Huang 3dc5f95254 Update test mocks
Fix lint
2022-03-22 11:24:58 +08:00
Lourens Schep f82d3b7301 Remove feature config from repo and add it to the gitignore 2022-03-21 14:49:44 -03:00
barryhughes cadb25d1cf Amend `generate_generate_<CUSTOM>_html` hook docs. 2022-03-21 10:02:00 -07:00
Luigi Pulcini fc59fa5d5b converted action into filter 2022-03-21 09:47:52 -07:00
LuigiPulcini 6f5a8f4394 Add action hook to generate a custom field type
Adding a `woocommerce_generate_{$type}_html` action hook allows to generate the HTML output of a custom field type for those classes extending the `WC_Settings_API` (e.g. `WC_Email`).
2022-03-21 09:47:52 -07:00
Chi-Hsuan Huang 8ce25e6b1b Change @wordpress/data from devDependencies to peerDependencies
When @wordpress/data is included in devDependencies, all tests mocked @wordpress/data fails
2022-03-21 18:28:56 +08:00
Chi-Hsuan Huang 24595bd2cb Fix jest config paths 2022-03-21 18:28:05 +08:00
Chi-Hsuan Huang ffef8df540 Update possibly_update_note() to update other attributes 2022-03-21 12:03:29 +08:00
Chi-Hsuan Huang 58422dd008 Add $primary param back to add_action method
See https://github.com/woocommerce/woocommerce-admin/pull/8474/files#r829672400
2022-03-21 11:33:50 +08:00
Christopher Allford fdf88c0d94
Updated Core Build Script
Since the smoke and E2E tests don't use `nx` commands to build, we need to make sure
that the command they run builds our dependencies. In the future we should change
all of the scripts and Nx executors to make this all simpler.
2022-03-19 11:42:55 -07:00
Christopher Allford d928a5e1a6 Added missing namespace import 2022-03-18 16:23:00 -07:00
Christopher Allford 0e4b42b732 Remove WCA package existence check 2022-03-18 16:00:56 -07:00
Christopher Allford 3feab4a747 Fixed Deprecated Notes Inclusion 2022-03-18 15:51:55 -07:00
Christopher Allford 6acfa7a037 Added React Client as Implicit Dependency
This makes sure that building WooCommerce builds the
react admin as well.
2022-03-18 15:46:48 -07:00
Christopher Allford 839b6ffbc6 Moved WooCommerce Admin Images
This commit moves the images from `plugins/woocommerce-admin/images`
to their new home in `plugins/woocommerce/assets/images`
2022-03-18 15:44:40 -07:00
Christopher Allford c4628b966b Removed WooCommerce Admin Package
This commit removes the WooCommerce Admin package from Core. The
result of this change is that the code for WooCommerce Admin will come
from the included content, rather than the previous package.
2022-03-18 15:30:00 -07:00
Christopher Allford 80c3858aa6 Removed WooCommerce Admin SSR Version
Since there's no such thing as WooCommerce Admin anymore,
we can remove it from the SSR.
2022-03-18 15:28:44 -07:00
Christopher Allford 3dd60322d5 Migrated WooCommerce Admin PHP Code
This commit moves all of the PHP code from `plugins/woocommerce-admin`
to its new home in `plugins/woocommerce`.

- `plugins/woocommerce-admin/src` -> `plugins/woocommerce/src/Admin`
- `plugins/woocommerce-admin/src-internal` -> `plugins/woocommerce/src/Internal`
- `plugins/woocommerce-admin/includes` -> `plugins/woocommerce/includes/react-admin`
2022-03-18 15:23:33 -07:00
Christopher Allford 93e44b3628 Updated React Admin Build Output
This changes the output of the React-based
admin client from WooCommerce Admin to
an appropriate location in the core plugin.
2022-03-18 14:53:25 -07:00
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
Josh Betz 31bcda40b2 Check $product is set
This variable is set conditionally, so we need to explicitly check if it
is set rather than just checking if it's truthy.
2022-03-17 14:49:41 -05:00
Josh Betz f61503f82c
Merge branch 'trunk' into update/filter-out-product-variation-line-item-meta 2022-03-17 14:25:51 -05:00
Josh Betz bb9feb7d68 Add `order_item_display_meta` query parameter
By default we will show all meta for order items to maintain backwards
compatibility. When this new parameter is set, we will filter out
variation meta just as core does on the web.
2022-03-17 14:20:17 -05: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
Nestor Soriano 71cc725bb5
Some minor improvements in the custom orders table implmentation. 2022-03-16 11:00:41 +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
Fernando 9a704ad1e2 Remove class `ExtendedPayments`. (https://github.com/woocommerce/woocommerce-admin/pull/8461)
* Removed class `ExtendedPayments`

* Add changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-03-15 09:10:40 -03:00
Mike Jolley 2e3937d68e Composer update 2022-03-15 11:50:10 +00:00