Commit Graph

7086 Commits

Author SHA1 Message Date
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
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
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