Commit Graph

47833 Commits

Author SHA1 Message Date
louwie17 7bba8dcdee Rename Settings.php to more specific name and create new Settings.php class to handle WooCommerce Admin settings (https://github.com/woocommerce/woocommerce-admin/pull/8443) 2022-03-10 09:42:55 -04:00
Peter Fabian 6c009e5276
Merge pull request #32007 from woocommerce/spotfix/return-type
Correct type in @return tag (to string).
2022-03-10 13:56:47 +01:00
Nestor Soriano 65b716346d
Add the DataSynchronizer::get_ids_of_orders_pending_sync method 2022-03-10 11:41:58 +01:00
Barry Hughes 42ec5e18c0
Merge pull request #30602 from sicelo/patch-1
Fix symbol for SZL currency.
2022-03-09 19:37:15 -08:00
Barry Hughes 28b2acb373
Merge pull request #32031 from helgatheviking/issues/30187-has_options
Add has_options to product REST API response. Closes #30187.
2022-03-09 14:23:55 -08:00
barryhughes 57a7f94fe9 Tweak field description. 2022-03-09 12:31:46 -08:00
Claudio Sanches f18799229b
Merge pull request #32044 from woocommerce/prep/trunk-63
Prep/trunk 63
2022-03-09 17:24:48 -03:00
barryhughes 17744d5aa6 Update tests to account for the 'has_options' property. 2022-03-09 12:18:29 -08:00
Joel Thiessen db258aeb10 Fixing home item appearing in extensions menu on Woo Navigation (https://github.com/woocommerce/woocommerce-admin/pull/8432) 2022-03-09 08:07:29 -08:00
louwie17 c65d43a35e Cleanup Loader.php and move it to Internal namespace (https://github.com/woocommerce/woocommerce-admin/pull/8416)
* Seperated Asset, page, and translation logic into seperate classes out of Loader.php

* Move user, and assets logic out of Loader.php

* Move Loader to Internal and move page helper functions to PageController

* Fix unit tests

* Add changelog
2022-03-09 10:04:34 -04:00
Nestor Soriano c49280b91a
Implement DataSynchronizer::get_current_orders_pending_sync_count
Use real SQL to get the count of unsynced orders.
2022-03-09 12:09:19 +01:00
Nestor Soriano 0114d3b5d6
Infrastructure for the sync process
- Update settings UI
- Start sync via scheduled actions when sync is enabled
- Auto-switch authoritative table on sync finished if so configured
- Disable auto-switch if sync is disabled
- Show initial and current count of orders pending sync in settings UI
2022-03-09 11:01:01 +01:00
renovate[bot] eeaafb911a Update dependency @woocommerce/e2e-environment to ^0.2.3 || ^0.3.0 (https://github.com/woocommerce/woocommerce-admin/pull/8438)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-09 11:34:45 +08:00
renovate[bot] 17ef9c0533 Update actions/setup-node action to v2.5.1 (https://github.com/woocommerce/woocommerce-admin/pull/8437)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-09 11:02:52 +08:00
renovate[bot] 2d706ebbd0 Update saulmaldonado/skip-workflow action to v1.1.1 (https://github.com/woocommerce/woocommerce-admin/pull/8435)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-09 11:02:30 +08:00
roykho 8d57884a70
Cherry picked sec changes 2022-03-08 13:00:34 -08:00
roykho e204731617
Update changelog with sec changes 2022-03-08 12:59:49 -08:00
roykho 9cd2a2bce1
Update readme 2022-03-08 12:56:16 -08:00
roykho 52de5683ad
Update changelog 2022-03-08 12:55:07 -08:00
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
Josh Betz e35c7ac6dc Filter out product variation line_item meta
There are cases where we want to display line item meta, similar to the
checkout flow on the web. The web filters out variation meta because
it's redundant. The product name already includes the relevant meta.

ref: 8bc310008c/plugins/woocommerce/includes/class-wc-order-item.php (L282-L285)
2022-03-04 15:06:43 -06: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