Commit Graph

5957 Commits

Author SHA1 Message Date
louwie17 19e57a4377
Merge pull request #32624 from woocommerce/update/minor_tasklist_changes
Update minor tasklist changes
2022-04-14 11:21:17 -03:00
Joshua T Flowers 26a27650a3
Add check for tasklist layout experiment (#32593)
* Add check for tasklist layout experiment

* Remove task list setup feature flags

* Remove errant config file

* Add negative check for experiment 1 in experiment 2
2022-04-14 10:19:27 -04:00
Lourens Schep 3c69e4f2b0 Remove unused dependency 2022-04-14 10:47:53 -03:00
Lourens Schep d59fa94d2f Add sectioned task list loading placeholder component 2022-04-14 09:48:53 -03:00
Lourens Schep 93438c395d Update progressive header to just show welcome to blog title once completed 2022-04-14 08:51:47 -03:00
Chi-Hsuan Huang c546e9e6e7 Update payment method links to extension > payment section 2022-04-14 19:01:35 +08:00
Chi-Hsuan Huang 08466d8de1 Update payment method link to the internal Extensions Marketplace 2022-04-14 19:01:14 +08:00
Ilyas Foo 5bd497b384
Merge pull request #32605 from woocommerce/update/32132-payment-logic-in-task-and-settings
Update payment gateway logic in payment task
2022-04-14 18:36:44 +08:00
Chi-Hsuan Huang 5a74e9cba6 Add WC_ADMIN_PHASE=core to build:feature-config 2022-04-14 17:25:29 +08:00
Chi-Hsuan Huang b936e3243f Update feature-flags.md 2022-04-14 17:15:12 +08:00
Chi-Hsuan Huang 30a2fc18d6 Pass WC_ADMIN_PHASE=core to build commands 2022-04-14 17:13:23 +08:00
Ilyas Foo 3668ea36c5 Small refactor to consolidate logic 2022-04-14 17:09:10 +08:00
Chi-Hsuan Huang c813c3bc5f Remove "plugin" environment from admin feature plugin 2022-04-14 16:40:35 +08:00
Chi-Hsuan Huang 20736a5280 Remove docsify-cli and releated files 2022-04-14 13:50:29 +08:00
Chi-Hsuan Huang dfa51ac747 Update docs 2022-04-14 13:50:27 +08:00
Chi-Hsuan Huang 96a5a7b75d Remove building ./docs storybook 2022-04-14 13:49:51 +08:00
Chi-Hsuan Huang ed8885f0b7 Fix admin extensions webpack config 2022-04-14 13:49:51 +08:00
Chi-Hsuan Huang 0ed8911875 Update admin docs README.md 2022-04-14 13:49:51 +08:00
Chi-Hsuan Huang a97df494e5 Update woocommerce-admin README.md 2022-04-14 13:49:51 +08:00
Chi-Hsuan Huang 616d318203
Merge pull request #32602 from woocommerce/fix/client-dashboard-type
Fix typescript annotations in react admin `./client/dashboard`
2022-04-14 13:48:16 +08:00
Chi-Hsuan Huang 272394ae9b
Merge pull request #32599 from woocommerce/update/remove-admin-github-folder
Remove woocommerce-admin .github folder
2022-04-14 13:40:38 +08:00
Chi-Hsuan Huang 863316ade7
Merge pull request #32518 from woocommerce/update/32516-woocommerce-admin-links
Update woocommerce-admin links to point to woocommerce repo
2022-04-14 13:40:25 +08:00
RJChow fdd9b1bbb8 Added type guard for locale and unit tests for isAddressFieldRequired 2022-04-14 12:53:45 +08:00
Chi-Hsuan Huang b69a923695 Update admin's webpack config
- Remove unnessary settings
- Refactor config to make it easier to read
2022-04-14 12:10:10 +08:00
Chi-Hsuan Huang adda46cc7b Document Admin’s webpack config 2022-04-14 12:09:00 +08:00
Chi-Hsuan Huang afc8217bcc Remove woocommerce-admin/tests 2022-04-14 11:48:52 +08:00
Ilyas Foo 1a129a2354 Change recommended ribbon to Pill 2022-04-14 10:52:12 +08:00
Ilyas Foo 6f8cb2b536 Merge remote-tracking branch 'origin/trunk' into update/32132-payment-logic-in-task-and-settings 2022-04-14 09:48:39 +08:00
Ilyas Foo 54ea7c9cbe Revert previous image attribute to preserve old images and new icons are replace with new attribute 2022-04-14 09:45:27 +08:00
Ilyas Foo adbc101312 Update logic to only show additional gateways when other is installed and wcpay isnt eligible 2022-04-14 08:39:55 +08:00
Ilyas Foo 39c57c802f Fix tests 2022-04-14 08:38:42 +08:00
Ilyas Foo c81d749781 Fix cases when gateway is disabled but has been set up 2022-04-14 08:37:53 +08:00
Joel T 0ec373734f Replacing condition depending on pageTitle due to translation issues 2022-04-13 16:24:55 -07:00
Joel T bc9ce569b0 Adding Products screens to those that will not show tasks reminder bar 2022-04-13 13:08:13 -07:00
Lourens Schep f15e38f55e Fix minor css issues with complete task list item 2022-04-13 16:01:31 -03:00
louwie17 212198b3c4
Merge pull request #32302 from woocommerce/feature/32164_new_task_list_version_2
Add sectioned task list component
2022-04-13 13:56:27 -03:00
RJ fe1c83de1e
Merge pull request #32559 from woocommerce/fix/wca-webpack-unminify
Changed unminify plugin to hook into step before optimization
2022-04-13 23:37:21 +08:00
Lourens Schep 60e288c849 Update illustrations and fix potential update delay 2022-04-13 12:15:05 -03:00
Lourens Schep 0c91a56f1f Address minor PR feedback and UI issues 2022-04-13 11:20:26 -03:00
Ilyas Foo f1d8cbe15c Add support for external links for payment gateways 2022-04-13 21:39:44 +08:00
Lourens Schep 3bb9c18a2d Update hover color 2022-04-13 09:58:09 -03:00
Lourens Schep 56cb47e059 Fix css lint errors 2022-04-13 09:58:09 -03:00
Lourens Schep 7547901e7d Update number of task list badge and adjust styling 2022-04-13 09:58:09 -03:00
Lourens Schep dfa342f400 Update unchecked checkbox border for task list 2022-04-13 09:58:09 -03:00
Lourens Schep 954be3997d Realign header image 2022-04-13 09:58:09 -03:00
Lourens Schep fd30323288 Fix section title and list alignment 2022-04-13 09:58:09 -03:00
Lourens Schep 7bdaea6195 Add progress header to sectioned task list and made some additional little changes 2022-04-13 09:58:09 -03:00
Lourens Schep df0acb9286 Add changelog 2022-04-13 09:58:09 -03:00
Lourens Schep 68efbafcb5 Add sectioned task list component 2022-04-13 09:58:09 -03:00
Ilyas Foo 202f9df078 Fix tests 2022-04-13 19:12:25 +08:00
Chi-Hsuan Huang c829aacfc7 Fix typescript annotations in react admin ./dashboard 2022-04-13 16:57:58 +08:00
Ilyas Foo b7159dbfc9 Add test 2022-04-13 15:43:07 +08:00
Ilyas Foo 7bebe192e9 Update logic to show only additional category when applicable 2022-04-13 15:13:15 +08:00
Chi-Hsuan Huang 4760b10cc8 Remove admin .github folder 2022-04-13 14:40:27 +08:00
Ilyas Foo 31bcf06ac8
Merge pull request #32467 from woocommerce/dev/32131-ui-changes-additional-payment-section
UI changes for set up payments task
2022-04-13 12:52:46 +08:00
Chi-Hsuan Huang e627fb344e
Merge pull request #32582 from woocommerce/fix/admin-clean-cmd
Fix `pnpm nx clean woocommerce-admin` command
2022-04-13 12:36:36 +08:00
Fernando 0a3359d1ac
Merge pull request #32527 from woocommerce/add/32141_pinterest_extension_to_obw
Add Pinterest extension to onboarding wizard and marketing task
2022-04-12 15:58:48 -03:00
louwie17 c10a9cfd63
Merge pull request #32507 from woocommerce/fix/32128_experiment_1_ui_issues
Fix experiment 1 UI issues
2022-04-12 11:27:30 -03:00
Moon bb9bc378cf
Merge pull request #32447 from woocommerce/update/32130-ui-changes-to-the-recommended-payment-options
UI changes to the recommended payment options
2022-04-12 05:30:18 -07:00
Fernando Marichal db7b1ba035 Add Pinterest to help panel 2022-04-12 09:26:54 -03:00
Chi-Hsuan Huang 13720a663e Fix admin clean command 2022-04-12 15:47:03 +08:00
Ilyas Foo 0b2df9a956 Fix text domain, standardize component conditional, remove unnecessary comment 2022-04-12 10:52:11 +08:00
Ilyas Foo 7cca9642f4 Remove enabled section 2022-04-12 10:09:07 +08:00
Chi-Hsuan Huang 0dcea11bf0
Merge pull request #32531 from Saggre/fix/table-card-docs
Fix TableCard component docs
2022-04-12 08:59:43 +08:00
moon becc53d645 Make sure paymentGatewaySuggestions is defined 2022-04-11 09:55:18 -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
RJChow 464bcb7783 Changed unminify plugin to hook into step before optimization 2022-04-11 21:54:48 +08: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
Lourens Schep 10e9c6c5f9 Fix experiment UI issues 2022-04-11 10:16:44 -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
Ilyas Foo 1f77200e70 Add missing track prop 2022-04-11 15:57:26 +08: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
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 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
Sakri Koskimies b6310900de Fix TableCard component docs 2022-04-08 11:21:53 +03: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
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
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 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
Fernando Marichal fcc7143207 Add alreadyActivatedExtensions to persisted business extensions 2022-04-06 14:01:36 -03:00
Ilyas Foo f82b5d78f1 Fix css and test 2022-04-06 21:31:50 +08: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 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
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
Chi-Hsuan Huang 277b1acdf5 Downgrade chalk to v4 2022-04-05 14:45:13 +08: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 885516f302 Slight improvements for loading of the task list 2022-04-04 11:54:34 -03: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
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
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
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 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
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
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
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
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
moon f2b03feb24 Update version 2022-03-28 18:14:26 -07:00
moon d915587f5d Update version 2022-03-28 17:55:07 -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
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
Lourens Schep 8508a46f31 Update watch command so there are no conflicts between build commands 2022-03-25 10:04:02 -03: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
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
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
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
Fernando Marichal f276434ea4 Disable welcome modals 2022-03-23 09:11:34 -03:00
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
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
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 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
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
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 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 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
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
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
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
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
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
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