Commit Graph

47359 Commits

Author SHA1 Message Date
Fernando f5316d02af Make individual note classes internal (https://github.com/woocommerce/woocommerce-admin/pull/8398)
* Moved `WooSubscriptionsNotes`

* Moved `WooSubscriptionsNotes` deprecated

* Moved `WooCommerceSubscriptions`

* Moved `WooCommercePayments`

* Fix `WooCommerceSubscriptions`

* Fix `WooSubscriptionsNotes

* Fix `WooCommercePayments`

* Moved `WelcomeToWooCommerceForStoreUsers

* Add use `Note`

* Moved `UpdateStoreDetails`

* Moved `UnsecuredReportFiles`

* Moved `TrackingOptIn`

* Moved `TestCheckout`

* Moved `SetUpAdditionalPaymentTypes`

* Moved `SellingOnlineCourses`

* Moved `RealTimeOrderAlerts`

* Moved `PersonalizeStore`

* Moved `PerformanceOnMobile`

* Moved `PaymentsRemindMeLater`

* Moved `OrderMilestones`

* Moved `OnlineClothingStore`

* Moved `OnboardingPayments

* Moved `NewSalesRecord`

* Moved `NavigationNudge`

* Moved `NavigationNudge`

* Moved `MobileApp`

* Moved `MigrateFromShopify`

* Moved `MarketingJetpack`

* Moved `ManageStoreActivityFromHomeScreen`

* Moved `ManageOrdersOnTheGo`

* Moved `MagentoMigration`

* Moved `LaunchChecklist`

* Moved `InstallJPAndWCSPlugins`

* Moved `InsightFirstSale`

* Moved `InsightFirstProductAndPayment`

* Moved `GivingFeedbackNotes`

* Moved `FirstProduct`

* Moved `FirstDownlaodableProduct`

* Moved `EUVATNumber`

* Moved `EditProductsOnTheMove`

* Moved `DeactivatePlugin`

* Moved `CustomizingProductCatalog`

* Moved `CustomizeStoreWithBlocks`

* Moved `CouponPageMoved`

* Moved `CompleteStoreDetails`

* Moved `ChoosingTheme`

* Moved `AddingAndManangingProducts`

* Moved `AddFirstProduct`

* Removed `OnboardingTraits` trait

* Moved `EmailNotification`

* Fixed notes

* Add changelog

* Fix lint error

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-03-08 10:55:27 -03:00
Mike Jolley 3450112f39 Add rate_limit_remaining column to wc_rate_limits table 2022-03-08 12:25:54 +00:00
anitaamurthy acbb448f6b Updated existing unit tests 2022-03-08 13:55:11 +05:30
anitaamurthy 014d64a941 Added product name + permalink to the GET Reviews API endpoint response 2022-03-08 13:36:09 +05:30
Chi-Hsuan Huang 1335fe4a1a Fix long notes are not replaced with shorter notes (https://github.com/woocommerce/woocommerce-admin/pull/8401)
* Add possibly_update_note to replace long notes with shorter notes

* Add changelog

* Refactor possibly_update_note
2022-03-08 12:07:14 +08:00
Moon 86b94e64c3 Run woocommerce_admin_updated as a scheduled action (https://github.com/woocommerce/woocommerce-admin/pull/8423)
* run woocommerce_admin_updated as a scheduled action

* Rename the action
2022-03-07 18:26:09 -08:00
Chi-Hsuan Huang 9aba93d127 Update all js packages with minor/patch version changes (https://github.com/woocommerce/woocommerce-admin/pull/8392)
* Update all js packages with minor/patch version changes

* Add changelog

* Fix packages/data types errors

* Update data/CHANGELOG.md

* Fix puppeteer version

* Fix packages/data > countries error types

* Make data key optional in RestApiError
2022-03-08 10:11:12 +08:00
Moon 1860aeba28 Use update_option instead of delete_option + add_option (https://github.com/woocommerce/woocommerce-admin/pull/8421) 2022-03-07 17:58:51 -08:00
Tam Mullen aa8b7a4a6b
Merge pull request #31998 from woocommerce/e2e/improve-logout
Refactor merchant logout
2022-03-07 19:52:42 +00:00
Joshua T Flowers 834307e155 Merge payment gateway suggestion classes into single source of truth (https://github.com/woocommerce/woocommerce-admin/pull/8252)
* Rename route to payment gateway suggestions

* Create separate payment gateway suggestions controller

* Move payment gateway logic into feature class

* Merge payment gateway information into single source of truth

* Filter out WCPay client-side

* Fix up frontend

* Redirect to payment settings page on install

* Add test around showing installed gateways

* Remove check for marketplace suggestions at the endpoint level

* Fix up payment gateway conflicts after rebase

* Handle PR feedback

* Optimistically dismiss the payment gateway suggestions

* Add changelog entry

* Add square_image support for new API param

* Fixed lint error

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2022-03-07 09:15:06 -04:00
Chi-Hsuan Huang ac660167a0 Reintroduce emphasis on inbox note action button (https://github.com/woocommerce/woocommerce-admin/pull/8411)
* Reintroduce emphasis on inbox note action button

* Add changelog

* Remove actioned note gray color style
2022-03-07 17:14:49 +08:00
Chi-Hsuan Huang be7e73d484 Use integers for add_menu_page priority (https://github.com/woocommerce/woocommerce-admin/pull/8399)
* Use integers for menu page priority

 In wordpress >= 6.0, the seventh parameter passed to add_menu_page() should be an integer representing menu position.

* Add changelog

* Fix Analytics & WcPayWelcomePage menu positions
2022-03-07 17:12:24 +08:00
Chi-Hsuan Huang 6c474ed5cb Fix "docs" command (https://github.com/woocommerce/woocommerce-admin/pull/8410) 2022-03-07 13:39:48 +08:00
Chi-Hsuan Huang 3dff2fe11e Fix inbox letters truncator to support multi characters (https://github.com/woocommerce/woocommerce-admin/pull/8404)
* Install grapheme-splitter

* Support multi-characters Unicode letters for inbox html truncator

* Fix truncateRenderableHTML length compare

* Change note to immutable

* Add changelog

* Use hasChildNodes() to check if we should call truncateElement

* Add tests for truncate()
2022-03-07 12:09:26 +08:00
helgatheviking 7ac79aa6d7 Add has_options to product REST API response. Closes #30187. 2022-03-05 15:05:13 -07:00
Chi-Hsuan Huang 86fc8b62e5 Switch to pnpm (https://github.com/woocommerce/woocommerce-admin/pull/8349)
* Add pnpm-workspace.yaml

* Add missing dependencies & replace file: with workspace:* in
package.json

* Replace "npm" with "pnpm"

* Replace "npx" with "pnpx"

* Remove package-lock.json

* Add pnpm setup action to github workflows

* Update webpack babel exclude path

* Upgrade woo e2e and fix e2e test command

Update e2e.yml

Use pnpm run e2e:docker-up in e2e.yml

* Remove unused docker-compose.yaml

* Replace lerna with pnpm commands

Update publish commands

* Exclude _locutus_shared_bc.js in babel.config.js

* Add .npmrc to set enable-pre-post-scripts=true by default

* Fix storybook babel config

Update babel.config.js

* Add changelog

* Update pnpm-lock.yaml

* Replace pnpx with pnpm exec

* Update pnpm-lock.yaml

* Remove js-tests/package-lock.json

* Fix @woocommerce/tracks -> workspace:*

* Update pnpm-lock.yaml

* Add @woocommerce/experimental to onboarding/package.json

* Add "@woocommerce/component" to onboarding/package.json

* Update pnpm-lock.yaml

* Use || instead of && for "test:watch"

Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>

* Fix packages/number "clean" command

* Add root: true to .eslintrc.js to enforce it to use the root config file

* Exclude packages/**/node_modules from babel transpiling

* Fix js-tests build config

Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>
2022-03-04 12:01:16 +08:00
Barry Hughes 8bc310008c
Merge pull request #31877 from iamdharmesh/fix/29445
Fixed clear cart after payment for block-based themes/themes without a header template.
2022-03-03 15:45:54 -08:00
Roy Ho 1e743fec74
Merge pull request #32013 from felipelousantos/fix/wp-version-compatibility
Update the WP version compatibility
2022-03-03 12:21:38 -08:00
Fernando 336645332b Updating all versions (https://github.com/woocommerce/woocommerce-admin/pull/8395)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-03-03 09:41:01 -03:00
Fernando 162a70494f Fix `pre-release` script (https://github.com/woocommerce/woocommerce-admin/pull/8396)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-03-03 09:40:41 -03:00
Jorge A. Torres 11fa76e447
Merge pull request #30949 from sebcode/fix/type-annotation
Fix docblock type annotation of WC_Coupon::is_type.
2022-03-03 09:31:05 -03:00
Jorge A. Torres edc5d0a408
Merge pull request #31860 from scholary-tim/fix/email-styles-template-duplicate
Removed duplicate height style in email-styles template
2022-03-03 09:23:34 -03:00
Felipe Santos a8679b041d
Update the WP version for tests and WooCommerce 2022-03-03 11:38:27 +00:00
Felipe Santos e8f9ea3f4f
Update the WP version compatibility 2022-03-02 23:45:42 +00:00
Jorge A. Torres 9658b3a59c
Merge pull request #29002 from n3f/fix/webhook_loading_limit
Respect the $limit parameter (0)
2022-03-02 16:42:22 -03:00
Francesco 1ace2bbf1e add: `@woocommerce/block-data` in Webpack deps extraction (https://github.com/woocommerce/woocommerce-admin/pull/7911) 2022-03-02 10:31:30 -06:00
Moon 5d55b9b625 Redirect customers back to the payment task after enabling an offline gateway (https://github.com/woocommerce/woocommerce-admin/pull/8389)
* Redirect customers back to the payment task page after enabling an offline payment

* Add changelog

* Make hasPlugins property boolean

* Remove unnecessary type checking

* Fix the comparison logic
2022-03-01 17:45:44 -08:00
Barry Hughes 097e2d3121
Correct type in @return tag (to string). 2022-03-01 16:35:15 -08:00
Lucas Bustamante 97c4688230 Typo and rewording 2022-03-01 18:43:02 -03:00
Lucas Bustamante 7b30436e21 Italic asterisk 2022-03-01 18:42:11 -03:00
Lucas Bustamante e443e8c362 Literal asterisks and typo 2022-03-01 18:41:25 -03:00
Lucas Bustamante ca58e7873f Update docs, see commit description
Remove word "isometric", the correct word is "isomorphic", but I've went for  "works both on Browser and Node" instead.

Added asterisks on "TypeScript definitions and Repositories" feature list

Added a section outlining the differences between this package and @woocommerce/woocommerce-rest-api
2022-03-01 18:34:32 -03:00
Brent Nef 40a1988f24 Add tests. 2022-03-01 17:45:13 -03:00
Brent Nef c01fcf389a Respect the $limit parameter (0) 2022-03-01 17:45:13 -03:00
RJ d2205a6faf Stop showing actioned inbox items (https://github.com/woocommerce/woocommerce-admin/pull/8394)
* Stop showing actioned inbox items

- revert of https://github.com/woocommerce/woocommerce-admin/pull/7983/

* Trigger rerun of CI
2022-03-01 21:08:29 +08:00
louwie17 b871cbf09b Fix/8251 woocommerce payments task list logic (https://github.com/woocommerce/woocommerce-admin/pull/8332)
* Allow the support of multiple task lists with overlapping tasks

* Add filter by task ids

* Revert getTaskListById call

* Fix notices

* Move prefix event to task and task list classes instead

* Fix track events and extended task list

* Fix php unit tests

* Remove the seperate task list classes as this was unnecessary.

* Fix tests

* Remove unneeded allowed-tasks

* Change onboarding task list redux store structure

* Add extra id for handling hidden param for experimental task lists

* Fix lint errors

* Fix forgotten change

* Add changelog
2022-03-01 08:34:18 -04:00
louwie17 212d1c6e96 Remove the use of preloaded countries (https://github.com/woocommerce/woocommerce-admin/pull/8380)
* Remove the use of preloaded countries and make use of country data store instead

* Fix shipping task

* Add changelog

* Fix lint errors
2022-03-01 08:33:41 -04:00
Adrian Duffell f43e4caf4b Fix view logic for Setup additional payment providers task (https://github.com/woocommerce/woocommerce-admin/pull/8391) 2022-03-01 17:06:20 +08:00
Christopher Allford 2c1885f69a
Merge pull request #31974 from woocommerce/add/repository-merge-tool
Created Repository Merge Tool
2022-02-28 20:38:04 -08:00
RJ f306cc2ba5 Enable Typescript checking on ./client folder (https://github.com/woocommerce/woocommerce-admin/pull/8372)
* Copied .tsconfig into ./client to enable ts checking

- Made sub-repos composite typescript packages where necessary

* Prevent tsc from transpiling ./client

 - we use webpack for transpiling so no need for this

* Added tsc resolution path for @automattic/explat-client

- Seems like there's a type export issue (?) with @automattic/explat-client and @automattic/explat-client-react-helpers
- adding the node_modules/@automattic/explat-client path in tsconfig seems to help TS resolve this using the source .ts files
- found answer here: https://github.com/microsoft/TypeScript/issues/42873
- should figure out what's actually wrong with the type exports and fix that there instead

* Removed mandatory checking from webpack

- removed this for now as it will block all development until all type inconsistencies are fixed
- for now, run the optional ts:check task either in console or vscode for highlighting type errors

* Added vscode tasks for typescript checking

* Patch @automattic/explat-client-react-helpers

- this changes the installed code in node_modules (post-installation) for @automattic/explat-client-react-helpers so that it exports the necessary type interfaces required by us
- attempted unsuccessfully to override type exports using declare module
- not too sure how to fix this internally by other means
- have to investigate what fixes to propose to @automattic/explat-client-react-helpers team

* changed tests in ./client to use ts-jest instead of babel-jest

- rewrote jest config to use ts-jest instead of babel-jest
- set ts errors to warnings instead so that tests don't fail on type errors
- created new tsconfig for ./packages/js-tests so that build and ts-check are separate, as js-tests need to be built for commonjs
2022-03-01 12:19:07 +08:00
barryhughes 2874a22fe2 Allow limited HTML when rendering failure messages (CSV import). 2022-02-28 19:34:19 -08:00
louwie17 1c6b18c05a Remove unused data endpoints param (https://github.com/woocommerce/woocommerce-admin/pull/8379)
* Remove unused data endpoints param

* Add changelog
2022-02-28 18:51:14 -04:00
Lucas Bustamante 31fae36caa Update XPath syntax 2022-02-28 17:41:00 -03:00
Lucas Bustamante c90e11ea3d Refactor merchant logout 2022-02-28 17:09:19 -03:00
Moon 3e672d7664 Redirect to the WC Pay onboarding when WC Pay is installed (https://github.com/woocommerce/woocommerce-admin/pull/8367)
* Redirect to the connect page when WC Pay is installed

* Add comment
2022-02-28 11:40:45 -08:00
Moon a2dfbffe89 Remove inbox_action_click event -- this is called from backend by triggerNoteAction (https://github.com/woocommerce/woocommerce-admin/pull/8376) 2022-02-28 11:40:35 -08:00
Christopher Allford 8bb027279a Addressed PR Feedback 2022-02-28 09:43:16 -08:00
Christopher Allford cd9aad9a3d Added Merge Command
This adds a command that is able to merge any
repository into the monorepo.
2022-02-28 09:43:16 -08:00
Christopher Allford ed77233fb4 Added monorepo-merge Tool Scaffolding
This contains the basic framework for our new `monorepo-merge`
command. The goal will be for this command to handle the heavy lifting
for merging repositories with full history. It will (ideally) bring any
plugin or package into the repository in a ready-to-use state.
2022-02-28 09:43:02 -08:00
Alejandro López Ariza 5af5be5100
Added new tests to wp-admin-order-edit.test.js for covering merchant management actions over downloadable products. (#31650)
* Added new tests to wp-admin-order-edit.test.js for covering merchant management actions over downloadable products.

* Updated changelogs from e2e-utils and e2e-core packages.

* - Fixed minor issue from wp-admin-order-edit.test.js when running tests in browser mode.
- Changed those tests so that products and orders are deleted individually after every test run.
- Added deleteOrder() and deleteProduct() functions to withRestApi.

Co-authored-by: rodelgc <rodel.calasagsag@automattic.com>
2022-02-28 15:24:33 +08:00