Commit Graph

6880 Commits

Author SHA1 Message Date
Vedanshu Jain e8e5823423
Merge pull request #32041 from woocommerce/add/rate-limit-remaining-column
Add rate_limit_remaining column to wc_rate_limits table
2022-03-11 20:46:41 +05:30
Vedanshu Jain 4303fbbce3
Merge pull request #30948 from woocommerce/add/hook-to-display-metadata
Add wrapper for `get_formatted_meta_data` to make `$include_all` default to `true`
2022-03-11 20:44:19 +05:30
Fernando b11bae047a Removed not used `OnboardingEmailMarketing` (https://github.com/woocommerce/woocommerce-admin/pull/8446)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-03-11 10:43:40 -03:00
Jacob Sewell 2a7df822b3 Avoid get_notes() in Notes::possibly_delete_survey_notes() (https://github.com/woocommerce/woocommerce-admin/pull/8206)
* Query for admin survey note_ids directly in Notes::possibly_delete_survey_notes().

* Add get_notes_with_type( $note_type ) method to Automattic\WooCommerce\Admin\Notes.
Name selected for consistency with preexisting get_notes_with_name( $name ) method.

* Use new get_notes_with_type() in Notes::possibly_delete_marketing_notes().

* Use new get_notes_with_type() in Notes::possibly_delete_survey_notes().

* Correct copy-pasta error querying for MARKETING notes instead of SURVEY notes in possibly_delete_survey_notes().

* Only delete actioned notes in possibly_delete_survey_notes(), which was the previous behavior.

* Changed get_notes_with_type() to get_note_ids_by_type() in Notes data store.

* Changelog for 7987/8206.

* Add missing method name in changelog for 7987/8206.
2022-03-10 18:57:29 -06:00
Chi-Hsuan Huang 7c8c0ee893 Fix failing `test_cancel_import` and `WC_Tests_API_Reports_Variations` php tests (https://github.com/woocommerce/woocommerce-admin/pull/8456)
* Assert the pending action explicitly to fix failing test_cancel_import with latest woo

* Use function lambda

* Fix WC_Tests_API_Reports_Variations by assigning parent_id to variations
2022-03-11 06:39:59 +08:00
Chi-Hsuan Huang 03c428969c Fix possibly_update_note get_content() on null (https://github.com/woocommerce/woocommerce-admin/pull/8455) 2022-03-11 06:39:45 +08:00
Barry Hughes 8be6eb4a63 Update plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-pdt-handler.php 2022-03-10 10:48:01 -06:00
Peter Fabian 8d8a556e5c Fixed docs. 2022-03-10 10:48:01 -06:00
Peter Fabian ce37800178 Fixed the order id fetching 2022-03-10 10:48:01 -06:00
Peter Fabian 95ec1fc56e Receiver email set separately for bw compat 2022-03-10 10:48:01 -06:00
Vedanshu Jain b1b68f52cd Fix object reference
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2022-03-10 10:48:01 -06:00
Nestor Soriano 3e1acd113b Create a new WC_Gateway_Paypal_Response::check_response_for_order method
Adding a new parameter to the existing check_response method could cause
backwards incompatibility issues in inherited classes, so we deprecate
the old method and create a new one instead.
2022-03-10 10:48:01 -06:00
Jorge A. Torres 8bb2b57f65 Make PayPal Standard PDT notification validation more strict 2022-03-10 10:48:01 -06:00
berislav grgičak a2a53ab6c2 Fix legend item width (https://github.com/woocommerce/woocommerce-admin/pull/8442)
* Fix legend item width

* Add testing instructions

* Add changelog entry

* Fix changelog

* Add changelog
2022-03-10 15:09:45 +01:00
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
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 9cd2a2bce1
Update readme 2022-03-08 12:56:16 -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
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
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
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
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
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
Moon 01e5cbdd7f Only run the version check for an admin request (https://github.com/woocommerce/woocommerce-admin/pull/8384) 2022-02-27 19:42:48 -08:00
Fernando 77fb10c53e OBW: fix copy on Business Details when "WooCommerce Shipping" is not listed (https://github.com/woocommerce/woocommerce-admin/pull/8324)
* Fix wc-shipping copy

* Fix method `createInstallExtensionOptions`

* Fix tests

* Add changelog

* Add WCTax logic

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-02-25 18:26:44 -03:00
louwie17 84e6a1e317 Add missing dependency to onboarding package (https://github.com/woocommerce/woocommerce-admin/pull/8378)
* Add missing dependency

* Add changelog
2022-02-25 08:44:07 -04:00
louwie17 02d7973b55 Update WooCommerce Payment note action callback logic (https://github.com/woocommerce/woocommerce-admin/pull/8366)
* Update WooCommerce Payment note action callback logic

* Fix lint errors
2022-02-25 08:43:59 -04:00
Néstor Soriano d76dac08e6
Add syntax highlight to README for the code hacker 2022-02-25 11:38:27 +01:00
Nestor Soriano 32e01a21f2
Fix internal links in README files
After the WooCommerce code was moved to 'plugins/woocommerce' many of
the internal links in the README files (links to other README files
or to code files) were broken. This commit fixes that.
2022-02-25 11:27:58 +01:00
Jaclyn Chen cb9e6b34df Fix hidden notes in `admin/notes` when the user is not in tasklist experiment (https://github.com/woocommerce/woocommerce-admin/pull/8328)
* Fix hidden notes from tasklist experiment.

* Add changelog.

* Use PR number instead of issue number in the changelog.
2022-02-25 08:09:49 +08:00
Claudio Sanches 7fdebe1214
Merge pull request #31973 from woocommerce/update/package
Update browserslist package
2022-02-24 19:02:18 -03:00
Vedanshu Jain e0af6c1050
Merge pull request #31779 from woocommerce/fix/31729-add-menu-page-arg
Use integers for menu page priority.
2022-02-24 20:10:01 +05:30
Nestor Soriano 0f5a395cb9
Add code comments about db updates on new WooCommerce installs.
The update functions in wc-update-functions.php run when WooCommerce
is updated from a previous version, but not when it's newly installed.
This commit adds a couple of comments explaining that.
2022-02-24 15:26:34 +01:00
Ilyas Foo 48cbbfbe38 Bump woocommerce-admin to 3.2.1 2022-02-24 10:36:36 +08:00
Moon 5338ebf04a Make $customer_id public again (https://github.com/woocommerce/woocommerce-admin/pull/8371)
* Make $customer_id public -- see issue 8369. We have a backward compatibility issue
2022-02-23 16:31:41 -08:00
Jeff Stieler 291790c64d Refactor handle_upload() rather than change import_error() visibility. 2022-02-23 18:56:48 -03:00
Jeff Stieler c85f3b7e1d Add test case for tax importer. 2022-02-23 18:56:43 -03:00
Jeff Stieler 735d9f15a2 Add test case for product importer. 2022-02-23 18:56:37 -03:00
Jeff Stieler 654036850e Prevent path traversal outside ABSPATH in product and tax importers. 2022-02-23 18:56:31 -03:00
Claudio Sanches 4a87a9bfbb
Merge pull request from GHSA-6wvr-47ff-m546
Fixed permission check for reviews in v1 & v2 REST API
2022-02-23 18:54:33 -03:00
roykho c749bd3bd6
Update browserslist package 2022-02-23 12:10:00 -08:00
louwie17 e652b0b93f Fixes some minor process issues (https://github.com/woocommerce/woocommerce-admin/pull/8355)
* Additional general updates and improvements

* Fix php lint errors
2022-02-23 13:04:59 -04:00
louwie17 ed2a1eaae2 Updated changelog with cherry picks (https://github.com/woocommerce/woocommerce-admin/pull/8347) 2022-02-23 08:59:49 -04:00
Daniele Scasciafratte 76c3ef7466 Fix Notice in RuleEvaluator (https://github.com/woocommerce/woocommerce-admin/pull/8184)
* Fix Notice in RuleEvaluator 

Ref: https://github.com/woocommerce/woocommerce-admin/issues/7825

* fix indentation

* fix lint
2022-02-22 20:48:15 -08:00
Chi-Hsuan Huang e8ce945d0e Implement MailChimp API request threshold for MailchimpScheduler (https://github.com/woocommerce/woocommerce-admin/pull/8342)
* Implement MailChimp API request threshold for MailchimpScheduler

Fix class-wc-tests-mailchimp-scheduler.php

Fix class-wc-tests-mailchimp-scheduler.php

* Add changelog

* Fix class-wc-tests-mailchimp-scheduler.php

* Fix class-wc-tests-mailchimp-scheduler.php
2022-02-23 09:37:00 +08:00
Chi-Hsuan Huang f052c3fed1 Replace deprecated wp.compose.withState with wp.element.useState (https://github.com/woocommerce/woocommerce-admin/pull/8338)
* Update search-list-control

* Update tag

* Update stories

* Add packages/components changelog
2022-02-23 09:35:50 +08:00
Moon 1c2bc9843c Use WC_VERSION as cache buster for assets (https://github.com/woocommerce/woocommerce-admin/pull/8308)
* Use WC_VERSION as cache buster

* Add changelog
2022-02-22 10:51:53 -08:00
Lourens Schep 0b34842c8d Bump woocommerce-admin version 2022-02-22 14:36:48 -04:00
berislav grgičak e2dfe225b8 Increase chart selection to 10 and allow color overriding (https://github.com/woocommerce/woocommerce-admin/pull/8258)
* Increase selection limit to 10

* Add filter for overriding chart colors

* Add filter documentation

* Update chart story

* Add testing instructions

* Changelogs

* Remove broken changelog entires

* Update changelogs

* Fix changelogs

* Add filter example

* Improve filter example
2022-02-22 09:01:14 -04:00
Chi-Hsuan Huang 56f7850d07 Make src/Features/* internal except for Features.php, Onboarding.php and TransientNotices.php (https://github.com/woocommerce/woocommerce-admin/pull/8318)
* Move src/Features/* to src-internal/Admin/ except for Features.php, Features/Onboarding.php and TransientNotices.php
2022-02-21 17:47:28 +08:00
Chi-Hsuan Huang 9c49667dde Fix Google Listings plugin is always shown in free features despite already activated (https://github.com/woocommerce/woocommerce-admin/pull/8330)
* Add is_visible rule for google-listings-and-ads to not display it if it's already activated

* Add changelog
2022-02-21 17:46:25 +08:00
Chi-Hsuan Huang dd4736cc5c Add build-types to .eslintignore (https://github.com/woocommerce/woocommerce-admin/pull/8334) 2022-02-21 12:12:05 +08:00
Chi-Hsuan Huang bda55d99f3 Bump package versions (https://github.com/woocommerce/woocommerce-admin/pull/8333) 2022-02-21 11:27:45 +08:00
Chi-Hsuan Huang c05ed7777a Update dependencies to support react 17 (https://github.com/woocommerce/woocommerce-admin/pull/8305)
* Upgrade dependencies to support react17

Update pkg

Update @wordpress/api-fetch and gridicons

* Update test snapshots

* Update SnackbarList with latest react-spring

* Mock data.dispatch for task-list-item.test.tsx

* Remove '@wordpress/components/src/visually-hidden/style' import

wp-components has included it

* Update interpolateComponents import path

* Fix display-options test

* Add changelogs

Update changelogs

* Add @automattic/explat-client-react-helpers back

* Update webpack.config for explat-client-react-helpers

Update webpack config comment

Fix grammar
2022-02-21 10:34:25 +08:00
Pierre Carrier b072cc1f9e
includes/class-wc-geolocation.php: bot.whatismyipaddress.com gone, tnedi.me new 2022-02-20 13:14:59 -05:00
Josh Betz 31b22673f4 Revert "If applied, this commit will format Line items price in order api (#31593)"
This reverts commit afde32fd01.
2022-02-18 14:42:25 -06:00
Vedanshu Jain dcbc37a904
Merge pull request #31785 from Saggre/fix/wc-api-error-code
Fix typo in wc api exception code
2022-02-18 21:15:18 +05:30
Fernando 524fad10cd
Merge pull request #31906 from woocommerce/fix/28603_follow_up
Add event tracking to Payments tab
2022-02-18 12:04:31 -03:00
Ron Rennick 101347788f
Merge pull request #31921 from woocommerce/try/k6-run-ci-onpr
Run k6 tests on PR after e2e and API
2022-02-18 10:55:31 -04:00
louwie17 42625174d9 Have free subscriptions adhere to cbd industry (https://github.com/woocommerce/woocommerce-admin/pull/8323)
* Make sure the free subscriptions does not show when cbd industry is selected

* Add changelog and fix productTypes not being defined

* Fix lint issue

* Fix lint error
2022-02-18 10:23:37 -04:00
barryhughes 5855856125 Explicitly set usser when testing if non-reviews can be deleted. 2022-02-18 06:08:37 -08:00
louwie17 7c6a1f3b5b Fix payment task conflicts (https://github.com/woocommerce/woocommerce-admin/pull/8321)
* Fix payment logic of payment tasks between current task list and experimental one.

* Revert testing changes

* Fix linting

* Add changelog
2022-02-18 09:59:39 -04:00
Néstor Soriano adc5b1ba42
Merge pull request #30994 from dnwjn/feature/refund-restock-note-filter
Add filter for refund restock note
2022-02-18 12:20:38 +01:00
Néstor Soriano 9c017e0366
Change @since annotation for woocommerce_refund_restock_note to 6.4 2022-02-18 11:59:11 +01:00
Tam Mullen 579d491ca2 Update orders and product k6 tests to be more robust 2022-02-17 22:34:09 +00:00
Tam Mullen 67d6c063fd Add k6 test scenario for all requests to run in PR action 2022-02-17 22:09:11 +00:00
barryhughes 5ceaf46285 Add check against deleting non-product reviews to our APIv3 Product Review tests. 2022-02-17 11:34:56 -08:00
barryhughes be2eac5637 Tests for product review permissions, simplify permission checks (APIv3). 2022-02-17 11:28:00 -08:00
Moon 718bac6981 Prompt a modal to save any unsaved changes in OBW (https://github.com/woocommerce/woocommerce-admin/pull/8278)
* Add a modal to show when unsaved changes are detected

* Add functions to track value changes from the steps

* Warn unsaved changes for the store details

* Add styles for the unsaved modal

* Warn unsaved changes for the Industry

* Warn unsaved changes for the Product Types

* Warn unsaved changes for the Business Details

* Add changelog

* Add testing instructions.

* Sort array values before comparison

* Use only the array values to compare the diff

* Catch rejected promise on continue

* Set initial value to an empty object

* Fix failing tests
2022-02-17 11:15:11 -08:00
Moon c16a17a17b Enable navigation in core env (https://github.com/woocommerce/woocommerce-admin/pull/8310) 2022-02-17 11:14:45 -08:00
Moon 3a81e6b78d Make classes in src internal (https://github.com/woocommerce/woocommerce-admin/pull/8317)
* Add psr-4 for the internal classes -- this is a temp. changes. We should remove it once we completely merge to the core

* Register class aliases

* Move WcPayPromotion classes to the internal

* Ignore namespace PHP CS issue

* Make features/WcPayPromotion internal

* Added src-internal directory for Automattic\WooCommerce\Internal\Admin namespace

* Moved src/Features/WcPayPromotion to src-internal/Admin/WcPayPromotion

* Add phpcs rules for src-internal

* Remove phpcs:ignoreFile

* Update letter case to make it PSR4 compatible

* Fix letter cases

* Move the alias array into the function

* Rename WcPayPromotion to WCPayPromotion (letter case update)

* Include src-internal

* Update letter case

* Make classes internal

* Update references

* Fix WC_ADMIN_ABSPATH path
2022-02-17 11:14:23 -08:00
Moon aa554fb1e3 Move src/Schedulers/* to src-internal/Admin/Schedulers (https://github.com/woocommerce/woocommerce-admin/pull/8316)
* Add psr-4 for the internal classes -- this is a temp. changes. We should remove it once we completely merge to the core

* Register class aliases

* Move WcPayPromotion classes to the internal

* Ignore namespace PHP CS issue

* Make features/WcPayPromotion internal

* Added src-internal directory for Automattic\WooCommerce\Internal\Admin namespace

* Moved src/Features/WcPayPromotion to src-internal/Admin/WcPayPromotion

* Add phpcs rules for src-internal

* Remove phpcs:ignoreFile

* Update letter case to make it PSR4 compatible

* Fix letter cases

* Move the alias array into the function

* Rename WcPayPromotion to WCPayPromotion (letter case update)

* Include src-internal

* Update letter case

* Make src/Schedulers/* internal, except the SchedulerTraits

* Add @internal comment tag

* Clean up incorrect import

* Remove unused import
2022-02-17 10:48:31 -08:00
Fernando Marichal 5dc30bd013 Add Account Details event tracking 2022-02-17 15:43:16 -03:00
Fernando ce0f73aa9b Refactor `MerchantEmailNotifications` (https://github.com/woocommerce/woocommerce-admin/pull/8304)
* Refactor `MerchantEmailNotifications`

* Rename `NotificationEmail`

* Add changelog

* Add folder `Notes` to `Internal`

* Moved folder and the namespace was renamed

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-02-17 14:33:19 -03:00
barryhughes 401f4c0d0e Simplify early checks, do not duplicate work performed by wc_rest_check_product_review_permissions(). 2022-02-17 09:20:02 -08:00
barryhughes a6fb397a1a Protect REST API v1 and v2 from a category of accidental deletion, where the supplied product ID is invalid. 2022-02-17 08:51:21 -08:00
barryhughes efac1bad3c Separate out assertions; group those relating to other comment types in their own test. 2022-02-17 08:35:13 -08:00
Nestor Soriano 563c56d76b
Remove the DataRegenerator::maybe_create_table_indices
It's not needed since dbDelta will take care of the indices in both
new WooCommerce installs and upgrades from a previous version.
2022-02-17 16:04:17 +01:00
Nestor Soriano eca84266f0
Create and fill the product attributes lookup table in clean installs.
The table creation and filling was happening in a data migration, but
data migrations only run when WooCommerce is upgraded, not on a
clean install. Also, the option for using the lookup table
wasn't being set after a clean install (when the table has been created
and is empty since there are no products yet).

As part of the fix the table is added to the list of WooCommerce
core tables, and thus it's covered by the "Verify base database tables"
tool.
2022-02-17 11:00:12 +01:00
Néstor Soriano 48da1c7928
Merge pull request #31889 from woocommerce/add/abort-resume-tool-for-product-attributes-lookup-table-regeneration
Add extra UI for aborting/resuming the product attributes lookup table filling
2022-02-17 09:13:10 +01:00
Ilyas Foo 5840898524 Add card fees to specify what the discount applies to (https://github.com/woocommerce/woocommerce-admin/pull/8319) 2022-02-17 11:30:59 +08:00
rjchow 99a382c649 Fixed typing errors in Stepper component after typescript conversion 2022-02-17 10:35:39 +08:00
rjchow 0a314f1a97 Renamed stepper components to .tsx 2022-02-17 10:35:39 +08:00
Barry Hughes 91ed566198
Merge pull request #31414 from woocommerce/fix/extend-admin-refunds-for-gift-cards
Support gift cards in admin order refunds template.
2022-02-16 15:34:59 -08:00
barryhughes 9a4b4907cd Tweak docblock for `woocommerce_admin_order_should_render_refunds` filter hook. 2022-02-16 15:02:43 -08:00
xristos3490 45b9eebcda Move filter at the top of the template 2022-02-16 21:56:24 +02:00
Fernando Marichal b327fb5439 Add event tracking to Payments 2022-02-16 15:32:41 -03:00
Moon 8023579670 Move src/Features/WcPayPromotion to /src-internal/Admin/WcPayPromotion (https://github.com/woocommerce/woocommerce-admin/pull/8307)
* Add psr-4 for the internal classes -- this is a temp. changes. We should remove it once we completely merge to the core

* Register class aliases

* Move WcPayPromotion classes to the internal

* Ignore namespace PHP CS issue

* Make features/WcPayPromotion internal

* Added src-internal directory for Automattic\WooCommerce\Internal\Admin namespace

* Moved src/Features/WcPayPromotion to src-internal/Admin/WcPayPromotion

* Add phpcs rules for src-internal

* Remove phpcs:ignoreFile

* Update letter case to make it PSR4 compatible

* Fix letter cases

* Move the alias array into the function

* Rename WcPayPromotion to WCPayPromotion (letter case update)

* Include src-internal

* Update letter case

* Move src/Features/RemoteFreeExtensions to src-internal/Admin/RemoteFreeExtensions (https://github.com/woocommerce/woocommerce-admin/pull/8311)

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2022-02-16 04:50:33 -08:00
Ilyas Foo d590b1116f Fix WCPay in core texts and promo slug (https://github.com/woocommerce/woocommerce-admin/pull/8296)
* Fix texts and change promo slug

* Changelog
2022-02-16 11:10:59 +08:00
barryhughes c675f72ea6 Remove handling for nested id (no routes allow for this). 2022-02-15 06:34:27 -08:00
barryhughes 18fa388ed9 Clean-up. 2022-02-15 06:32:02 -08:00
barryhughes a7c98d5f58 Update and resolve conflicts. 2022-02-15 05:44:34 -08:00
barryhughes 4282811649 Tidy tests. 2022-02-15 05:42:24 -08:00
barryhughes 43d49bfed0 Cleanup reviews/comments work. 2022-02-15 05:38:50 -08:00
Néstor Soriano 44a2c99268
Merge pull request #31811 from woocommerce/mvp-cot/intial-table-strucuture
Add DB table structure for custom order tables.
2022-02-15 11:58:08 +01:00
RJ ab1cbfb6f2 Added tracks test for PaymentGatewaySuggestions (https://github.com/woocommerce/woocommerce-admin/pull/8306) 2022-02-15 10:30:46 +08:00
Claudio Sanches a9189c73d1
Merge pull request #31897 from woocommerce/prep/trunk
Prep trunk for next release
2022-02-14 17:13:00 -03:00
Travis ae582fdc66 Jetpack Backup note - change time range and add an image (https://github.com/woocommerce/woocommerce-admin/pull/8293)
* start note after 3 days and add an image

* add changelog entry

* add PR number to changelog
2022-02-14 12:42:50 -06:00
roykho 618864243e
Bump version for package.json 2022-02-14 08:40:21 -08:00
Nestor Soriano 5d1040232d
Remove no longer needed 'use'. 2022-02-14 15:11:06 +01:00
Néstor Soriano fbc67db556
Merge pull request #31692 from woocommerce/scafolding-for-custom-order-tables
Add scafolding for the custom orders table feature.
2022-02-14 15:02:16 +01:00
roykho dae8aa1d67
Prep trunk for next release 2022-02-14 05:55:53 -08:00
Lucas Bustamante 616b61348e
Merge pull request #31872 from woocommerce/add/suppress-wp-compose-console-messages
Suppress wp.console.withState deprecation warning
2022-02-11 13:41:50 -03:00
Nestor Soriano e2a94bd776
Add extra UI for aborting/resuming the product attributes table filling.
Two new tools are added in the Status - Tools section:

- "Abort the table regeneration" - this one shows up if a regeneration
  process is in progress. Running it will remove the "regeneration
  in progress" option and set the "regeneration aborted" flag, it also
  removes any pending regeneration step scheduled action.

- "Resume the table regeneration" - this one resumes the regeneration
  process by setting the "regeneration in progress" option, removing
  the "regeneration aborted" option, and scheduling a new regeneration
  step action.
2022-02-11 16:27:53 +01:00
Paul Sealock e41441f83e Add hook reference generator README and documentation (https://github.com/woocommerce/woocommerce-admin/pull/8004)
* Add hook reference README

* update hook reference

* better

* changelog

* add pr number

* remove example

* add desc

* add stats

* jsdoc REPORTS_FILTER

* Category configs

* configs

* data

* dashboard

* dashboard charts

* save

* save

* save

* done with filters

* Add scope to slotFill docs

* data

* add all slotfills

* data

* Fix error when scope is not present, and make use of typedef imports

* Move chart and filter jsdoc definitions to the reports index file

* Update hook reference data.json

* Make use of import for filter typedef and address some typos

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2022-02-11 10:38:38 -04:00
louwie17 0deb1c33bc Add wc_version to store profiler view and complete tracks (https://github.com/woocommerce/woocommerce-admin/pull/8290)
* Add wc_version to store profiler view and complete tracks

* Add changelog

* Update changelog
2022-02-11 10:03:37 -04:00
louwie17 7e999148f1 Sync changelog and testing instructions from 3.2 (https://github.com/woocommerce/woocommerce-admin/pull/8289)
* Add additional testing instructions

* Update changelog entries for 3.2
2022-02-11 08:40:33 -04:00
RJ 087ce5aa61 Enable type definitions output for @woocommerce/components (https://github.com/woocommerce/woocommerce-admin/pull/8282)
* Output typedefs for @woocommerce/packages
2022-02-11 19:39:34 +08:00
Chi-Hsuan Huang 4f5e537a54 Fix a lot of pending "run_remote_notifications" scheduled actions (https://github.com/woocommerce/woocommerce-admin/pull/8285)
* Change to only create remote action when there_are_now_products is false

* Add changelog

* Update src/RemoteInboxNotifications/StoredStateSetupForProducts.php

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Update function name

* Add comment

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-02-11 15:08:11 +08:00
Barry Hughes fa3ca776de
Merge pull request #31826 from woocommerce/add/api/order-payment-url
API: Orders: Add payment_url
2022-02-10 16:29:45 -08:00
Joshua T Flowers 7ebb561d98
Add checks around setup widget display when features are disabled (#31884)
* Add checks around setup widget display when features are disabled

* Avoid refetching task list after initialization
2022-02-10 16:59:53 -05:00
Joshua T Flowers f9cf24e50b
Add WooCommerce Admin widget tracks (#31857)
* Add tracks events for dashboard setup widget load and click

* Add status widget tracks

* Use data attributes to track current and total steps

* Add newline at EOF

* Remove errant console logs
2022-02-10 16:59:22 -05:00
Fernando 0f5a6e251b
Merge pull request #31844 from woocommerce/fix/28603_tracks_on_payments_tab
Fix Payments tab tracking
2022-02-10 18:41:00 -03:00
Fernando Marichal 780a703aa7 Fix current tab setting 2022-02-10 17:54:29 -03:00
Fernando Marichal 4d7e8ce2e8 Fix lint 2022-02-10 17:18:16 -03:00
Fernando Marichal 49053b5f88 Set current tab 2022-02-10 17:16:44 -03:00
Fernando Marichal 42e4564705 Remove `add_admin_options_tracking` 2022-02-10 17:07:44 -03:00
Fernando Marichal 7abd23438d Fix toggle tracking 2022-02-10 17:05:27 -03:00
Claudio Sanches b7cef6ad78 Update changelog and prepare everything for 6.3 2022-02-10 13:00:01 -03:00
Roy Ho 53d30f7000
Merge branch 'trunk' into update/woocommerce-blocks-6.9.0 2022-02-10 06:45:17 -08:00
Roy Ho 85ac42b945
Merge pull request #31875 from woocommerce/update/bump_woocommerce_admin_3.1.0-rc.1
Bump WooCommerce Admin version to 3.2.0-rc.1
2022-02-10 06:41:10 -08:00
Néstor Soriano 6eaef89bdb
Fix unit tests related to wc_get_price_excluding_tax 2022-02-10 12:40:10 +01:00
Nestor Soriano 7f48e88a09
Small changes to the custom orders table implementation
- Add an extra warning message in the settings page
- Escape table name for DROP statement in DatabaseUtil::drop_database_table
2022-02-10 09:13:39 +01:00
Dharmesh Patel 1be5e81860 Fixed clear cart after payment for block-based themes(Twenty Twenty-Two). 2022-02-10 10:14:01 +05:30
barryhughes 8d279c018c Update tests for product reviews (REST API endpoints). 2022-02-09 19:53:00 -08:00
Fernando Marichal ca88734006 Fix actions in gateways 2022-02-09 22:02:44 -03:00
Josh Betz 4069cc3470 fix tests 2022-02-09 13:47:50 -06:00
Lourens Schep cd410637fd Bump WooCommerce Admin version 2022-02-09 15:26:14 -04:00
Jon Lane 287c560692 Suppress wp.console.withState deprecation warning 2022-02-09 10:23:53 -08:00
Gabriel Nascimento a1e5ddbced remove zeroclipboard 2022-02-09 08:06:25 -08:00
Nestor Soriano 3964a2255a
Make the db utils class non-static, change the custom orders tables UI
- Rename DBUtils to DatabaseUtils, and register it in the DI container
  (instead of having it just contain static methods)

- The tool for the custom orders tables has now two shapes:
  "create tables" and "delete tables" (so no regeneration, migration...)

- Not yet used constants and methods from DataSynchronizer removed

- Added missing method comments
2022-02-09 11:58:19 +01:00
Chi-Hsuan Huang e1ac06afa7 Fix payments extensions displayed below the offline payments options (https://github.com/woocommerce/woocommerce-admin/pull/8232)
* Fix payments extensions displayed below the offline payments options

Add spaces back

* Add changelog

* Remove the snapshot test and update payment gateway render test

* Make sorting compare function as a helper function
2022-02-09 14:12:20 +08:00
Chi-Hsuan Huang 6dc5189fc2 Replace "any" type with an explicit type (https://github.com/woocommerce/woocommerce-admin/pull/8262)
* Replace "any" type with an explicit type

* Add types in utils and import FormInputProps to store address
2022-02-09 12:40:44 +08:00
barryhughes b2580b29f7 Further adjust permissions for reviews (REST API). 2022-02-08 14:48:04 -08:00
louwie17 83e1addd82 Fix minor process issues (https://github.com/woocommerce/woocommerce-admin/pull/8279) 2022-02-08 18:22:26 -04:00
louwie17 7d2aa04b2a Add business-details step complete track (https://github.com/woocommerce/woocommerce-admin/pull/8265)
* Add business-details step complete track

* Add changelog

* Update tab name and treat each tab as an individual step when trickering tracks

* Add comment

* Fix linting

* Remove unnecessary css selector

* Update goToNextStep param to make it less confusing

* Update jsdoc param
2022-02-08 14:29:17 -04:00
xristos3490 741f5015e0 typo 2022-02-08 19:27:30 +02:00
xristos3490 f331dbc9d2 Move filter into the template controller 2022-02-08 19:24:55 +02:00
Néstor Soriano 87d8e93bfe
Fix argument count in hook. 2022-02-08 17:42:30 +01:00
vedanshujain fc0c45a204 Show link to create custom orders table. 2022-02-08 21:57:39 +05:30
vedanshujain 3d29e8329c Refactor and move DB related methods to util class. 2022-02-08 21:44:38 +05:30
Tim b1e7046808 Removed duplicate height style in email-styles template 2022-02-08 09:29:11 +00:00
Nestor Soriano 2e613bbd0c
Merge branch 'scafolding-for-custom-order-tables' into mvp-cot/intial-table-strucuture 2022-02-08 09:26:08 +01:00
RJ b9806c5087 Made email in OBW optional again (https://github.com/woocommerce/woocommerce-admin/pull/8263) 2022-02-08 08:56:45 +08:00
louwie17 23505c1e58 Make sure hidden fields are cleared when definition changes (https://github.com/woocommerce/woocommerce-admin/pull/8250)
* Make sure hidden fields are cleared when definition changes

* Make use of shortened condition available in TS
2022-02-07 19:31:08 -04:00
barryhughes f762037e61 Update permission checks for V1/V2 product review endpoints. 2022-02-07 12:58:29 -08:00
louwie17 c2537136bb Fix shipping task step when store location isn't filled out (https://github.com/woocommerce/woocommerce-admin/pull/8260)
* Remove completeStep call in StoreLocation callback to avoid duplicate call.

* Add changelog
2022-02-07 14:55:35 -04:00
Moon 080dc48a9b Fix/8191 deleting products adds blank space to analytics data (https://github.com/woocommerce/woocommerce-admin/pull/8255)
* Retrieve variation name from woocommerce_order_items for deleted products

* Remove test code

* Refactor to use wc_order_product_lookup table

* Identation fix

* Remove link if the variation/product has been deleted

* Add changelog

* Remove (deleted) suffix

* Add (Deleted) suffix in frontend
2022-02-07 10:13:27 -08:00
Nestor Soriano 7a9651ad30
Rename FeatureController to CustomOrdersTableController.
Also fix priority-args count reversed in filter hookings in that class.
2022-02-07 11:57:54 +01:00
Ilyas Foo dfdafc1568 Update headercard to use filter to add ExPlat parameter (https://github.com/woocommerce/woocommerce-admin/pull/8233)
* Add changelog

* Update headercard experiment hook to utilize `woocommerce_explat_request_args` filter

* Add test

* Fix experiment name check

* Update parameter name

* Add changelog

* Removed old changelog

* Added prop comments to Layout component

* Add preload option for homescreen

* Fix class attribute typo

* Hide extended tasklist when task detail is shown

* Add local Suspense to stop lazy component bubbling up to Controller's Suspense

* Remove unused props

* Add missed Suspense, add loading logic to ActivityHeader

Co-authored-by: Moon <moon.kyong@automattic.com>
2022-02-07 08:50:20 +08:00
Fernando Marichal eb44888a79 Fix `track_setting_change` method 2022-02-05 09:54:10 -03:00
Oscar Gare 7428e264bd woocommerce_adjust_non_base_location_prices filter not work if there is no order 2022-02-05 10:57:46 +01:00
Barry Hughes f3927c786a
Merge pull request #31819 from woocommerce/add/indices-to-product-attributes-lookup-table
Add database indices for the product attributes lookup table
2022-02-04 14:55:15 -08:00
Fernando Marichal 59b4c806f6 Add event tracking to `Payment methods` list 2022-02-04 14:57:29 -03:00
Joshua T Flowers 517d248ed7 Remove unused task styling classes (https://github.com/woocommerce/woocommerce-admin/pull/8234)
* Remove unused task styling classes

* Rename typo in dismiss modals

* Remove extra styling selector class

* Add changelog entry
2022-02-04 10:26:56 -05:00
Joshua T Flowers e8c1c94b01 Only add product data on REST requests and task list (https://github.com/woocommerce/woocommerce-admin/pull/8235)
* Only add product data on REST requests and task list

* Add changelog entry

* Return new product data variable
2022-02-04 10:03:47 -05:00
louwie17 ec3852160d Add support for filtering by changelog type for testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/8256)
* Add support for filtering by changelog type for testing instructions, and remove some warnings

* Update readme

* Remove error log

* Add changelog
2022-02-04 09:32:21 -04:00
Fernando Marichal 4cd6d31839 Add Payments tab tracking 2022-02-04 10:23:20 -03:00
Fernando Marichal 22b887fb20 Add `woocommerce_update_options_payment_gateways_` action 2022-02-04 10:22:52 -03:00
Fernando Marichal 178db4e789 Add action `woocommerce_update_options_payment_gateways` 2022-02-04 10:21:22 -03:00
Peter Fabian 79578e1262 Make the error code more correct. 2022-02-04 11:00:46 +01:00
Peter Fabian 4e8b179a8b
Update plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php
Report more correct error code.

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2022-02-04 10:58:47 +01:00
Nestor Soriano a2e3e31bd0
Create indices in a stored procedure so that IF...THEN can be used. 2022-02-04 10:27:51 +01:00
Jacob Sewell 9c18a427fa Avoid `get_notes` call in `CouponPageMoved` (https://github.com/woocommerce/woocommerce-admin/pull/8202)
* First draft of CouponPageMoved::has_(unactioned|dismissed)_note() method changes to avoid get_notes().

* Add static function get_note_by_name( $note_name ) to Automattic\WooCommerce\Admin\Notes\Notes class.

* Use Notes::get_note_by_name() in Notes::get_note_status().

* Use new Notes::get_note_by_name() in CouponPageMoved::has_unactioned_note().

* Use new Notes::get_note_by_name() in CouponPageMoved::has_dismissed_note().

* Add changelog for 7986/8202.
2022-02-03 15:27:55 -06:00
Josh Betz 8a9782986d API: Orders: Add payment_url
Adds the payment URL to the order response if we request it. This is
helpful for sharing payment links from the apps.

Ref: https://wp.me/p91TBi-7ov
2022-02-03 14:10:20 -06:00
Philipp Bammes 14ce6090b0
Align notion for country states in PHP comments
Use adjectival form of country names, lowercase "states" etc., end with period, remove reference links.
2022-02-03 20:35:13 +01:00
Philipp Bammes 434de6aa19
Add states for Germany
Source: 666bcce731/common/subdivisions/en.xml (L1090-L1106)
2022-02-03 20:05:46 +01:00
Peter Fabian c3572a19ff Fixed permission check for reviews in v1 & v2 REST API 2022-02-03 16:24:17 +01:00
Alex Florisca 556b6101bf Bump woocommerce-blocks to 6.9.0 in composer.json 2022-02-03 10:14:16 +00:00
Néstor Soriano c36d25af71
Merge pull request #31663 from woocommerce/add/wcpay_settings_tracker
Add WcPay settings info to WC Tracker
2022-02-03 10:45:49 +01:00
Nestor Soriano 7795682232
Add database indices for the product attributes lookup table.
These are intended to improve the performance of the table querying
when there's a lot of products and attributes, see:
https://github.com/woocommerce/woocommerce/issues/31688

The indices will be created during the database migration to v6.3,
regardless of whether the lookup table already existed at that point
or not.
2022-02-03 10:08:50 +01:00
louwie17 8d3eefb508 Add additional testing instructions for 3.2 release (https://github.com/woocommerce/woocommerce-admin/pull/8247)
* Add additional testing instructions for 3.2 release

* Add specificity to the scheduled actions that need running
2022-02-02 11:48:07 -04:00
louwie17 d492793276 Update changelog (https://github.com/woocommerce/woocommerce-admin/pull/8243) 2022-02-02 10:46:24 -04:00
louwie17 d41906267a Dev/e2e reset (https://github.com/woocommerce/woocommerce-admin/pull/8219)
* Add payment_setup track for WooCommerce Payments

* Add WooCommerce Reset Plugin to E2E environment

* Add resetWoComerceState util

* Add state reset before obw test

* Refactor resetWooCommerceState

resetWooCommerceState now makes the HTTP request locally instead of from inside the browser context.

* Update reset functionality

* Add custom settings reset function for onboarding

* Update reset functionality

* Add action-scheduler run helper function

* Fix add section test

* Add plugin removal helper functions

* Fix lint errors

* Fix broken e2e tests

* Add changelog

* Remove unused imports

* Add comment for extra timeout

* Add helper function to wait until button stops moving, incase of animations

* Fix lint error

* Add variable for string used in multiple places

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2022-02-02 08:55:10 -04:00
vedanshujain ad6c9a7099 Fixups for typo and unintended code. 2022-02-02 15:14:34 +05:30
vedanshujain 5308d5b10a Add initial DB structure for custom order tables. 2022-02-02 14:51:18 +05:30
vedanshujain 1aaa4de48e Refactor verify_base_tables method to allow custom schema verification. 2022-02-02 14:50:30 +05:30
Moon 69034713a1 Reintroduce CES (https://github.com/woocommerce/woocommerce-admin/pull/8238)
* Reintroduce CES for the following actions

* Add a product

* Update product

* Edit order

* Add changelog

* Add PR # to the changelog
2022-02-01 15:34:17 -08:00
Moon 52fbcffe92 Make ExPlat request URL args filterable (https://github.com/woocommerce/woocommerce-admin/pull/8231)
* Support woocommerce_explat_request_args filter to modify ExPlat request args

* Add ExPlat test

* Add ExPlat test for PHP

* Add changelog

* Add doc for the filter

* Fix syntax
2022-02-01 14:17:03 -04:00
Chi-Hsuan Huang e6f19d0d91 Fix country/region selection not preserved in store details task (https://github.com/woocommerce/woocommerce-admin/pull/8228)
* Fix country/region selection not preserved in store details task

* Update store-adress test cases

* Add changelog

* Check alphabets regx for isStateAbbreviation

* Update comments

* Use unknown type for locale

* Add Disable reason
2022-02-01 14:13:54 -04:00
Peter Fabian 2a4de35e24
Merge pull request #31701 from dhjw/autocomplete-signup
Enable browser-suggested passwords on checkout signup
2022-02-01 18:40:06 +01:00
Joshua T Flowers ea6b50f241 Show single success message for theme install and activation (https://github.com/woocommerce/woocommerce-admin/pull/8236)
* Show single success message for theme install and activation

* Add changelog entry
2022-02-01 12:02:33 -05:00
Peter Fabian 4645a3a534
Merge pull request #31754 from woocommerce/fix/echo-atto-required-asterix
Echo the escaped text (required field asterix)
2022-02-01 17:51:30 +01:00
Saggre ace9786914 Fix typos in phpdocs and comments 2022-02-01 17:06:58 +02:00
Saggre 6eadc14259 Fix invalid wc api exception code 2022-02-01 13:27:08 +02:00
Jeff Stieler 598f5f329d Fix typo. 2022-02-01 09:56:15 +01:00
Jeff Stieler 40f2575b6c Style the 2022 theme store notice. 2022-02-01 09:55:49 +01:00
Jeff Stieler de57b39d8e Use integers for menu page priority. 2022-01-31 18:12:23 -07:00
Jacob Sewell 5002a1498a Fix distorted Country/Region label at some zoom levels (https://github.com/woocommerce/woocommerce-admin/pull/8186)
* Override overflow rule for label in select controls in OBW store address inputs.

* Changelog for 7893/8186.

* Rather than specifically override the overflow for store addresss country/region, remove the specific rule that was causing the issue.

* Increase line-height on SelectControl label.

* Restore overflow: hidden rule for profile wizard control label.

* Update changelog for 7893/8186.

* Add package changelog entry for 7893/8186.
2022-01-31 15:56:15 -06:00
Joshua T Flowers 8abea5a435 Add asynchronous plugin install and activation endpoints (https://github.com/woocommerce/woocommerce-admin/pull/8079)
* Move plugin installation method to plugin helper

* Add hook to for note addition on install error to JP/WCS note

* Add install scheduler

* Add async request parameter

* Fix up scheduled action errors

* Add route to get installation status

* Add activation endpoints and helper async methods

* Fix errors in plugin activation

* Make job ID null by default

* Add async plugin tests

* Fix install activation error errant method

* Return error codes from API

* Us AS to retrieve jobs instead of transients

* Get plugin status data from AS actions

* Use job ID instead of action ID for scheduling activation

* Add generic activation and installation status endpoints

* Add changelog entry
2022-01-31 09:17:14 -05:00
Joshua T Flowers 75bc438973
Update store setup widget to use task list API (#31755)
* Hide store setup widget if user cannot manage woocommerce

* Use task list API to retrieve tasks

* Fix up URL and URL fragments from tasks

* Remove URL assertion on external API response

* Simplify task count and completed count test

* Update tests around widget visibility

* Update step number to be completed count +1
2022-01-30 10:28:40 -05:00
barryhughes 80fbb5f74d Echo the escaped text (required field asterix) 2022-01-28 06:18:17 -08:00
Vedanshu Jain 02085a084f
Merge pull request #31589 from masteradhoc/patch-2
Special characters in email subject
2022-01-28 17:37:25 +05:30
Peter Fabian 9203111ee5
Merge pull request #31744 from woocommerce/fix/double_php_version_nag
Fix: double "PHP version upgrade required" notice
2022-01-28 10:36:13 +01:00
Barry Hughes dc2269eb12
Merge pull request #31673 from mrleemon/trunk
Wrap terms and conditions required asterisk symbol with <abbr> tag
2022-01-27 19:22:24 -08:00
Barry Hughes a859cdd50c
Merge pull request #31295 from oscarssanchez/fix/customers-api-search-param
Customers endpoint: Check if search param could be considered empty
2022-01-27 19:21:31 -08:00
Barry Hughes 085d12fc6c
Merge pull request #31711 from woocommerce/issue-31710
Hook `set_session` at `woocommerce_after_calculate_totals` @ `1000`
2022-01-27 16:08:57 -08:00
Barry Hughes 0a381f422b
Merge pull request #31266 from carlalexander/patch-1
Enhancement: Add `file` to check import file path hooks
2022-01-27 16:05:45 -08:00
barryhughes 0052af05d6 Ensure PHP is parsed 2022-01-27 15:56:48 -08:00
Oscar Sanchez S 806a25633c Check if search param could be considered empty 2022-01-27 15:37:31 -08:00
Barry Hughes 3e740461dc
Revise docblock. 2022-01-27 15:33:56 -08:00
Barry Hughes 6c2778c109
Add docblock for revised filter. 2022-01-27 15:33:08 -08:00
Nestor Soriano d93d0abd77
Fix: double "PHP version upgrade required" double notice
Recently a new admin notice has been added to warn users about the
upcoming PHP 7.2 requirement starting in Woo 6.5. For new installs
this was appearing together with the "recommended PHP 7.2" notice.

This commit removes the "recommended" notice if the new "required"
notice is already being displayed (unless the site is also using
an outdated WordPress version, which is also covered by the
"recommended" notice).
2022-01-27 16:52:26 +01:00
Fernando 525b8d5ec1 Replace mysql image with mariadb (https://github.com/woocommerce/woocommerce-admin/pull/8220)
* Replace mysql image with mariadb

This fixes the missing architecture error raised by docker compose

* Update readme.txt

* Add changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-01-27 11:28:56 -03:00
RJ ed27652e35 fix: onboarding wizard checkmarks go missing sometimes (https://github.com/woocommerce/woocommerce-admin/pull/8222)
- checkmarks in the stepper component go missing if the first checkmark is hidden
- happens because of html id collision between the checkmarks
- added some randomness to the mask ids
2022-01-27 19:08:31 +08:00
Barry Hughes 7395a4698b
Merge pull request #31734 from helgatheviking/twenty-twenty-one-inputs
Limit input widths to number inputs in Twenty Twenty One theme.
2022-01-26 18:41:17 -08:00
helgatheviking d7a76a5e89 Limit input widths to number inputs in Twenty Twenty One theme. Follow up to #31698. 2022-01-26 18:17:39 -07:00
jamelreid 70091b2a35 Updated describeIf to use repository variable 2022-01-26 17:07:10 -05:00
Joshua T Flowers ace300b4cd Fix setup wizard title and flash of content (https://github.com/woocommerce/woocommerce-admin/pull/8201)
* Fix setup wizard title and flash of content

* Redirect to profiler server-side if landing on the homepage

* Add changelog entry
2022-01-26 15:28:52 -05:00
jamelreid 8158343c74 Added support for PLUGIN_REPOSITORY & PLUGIN_NAME 2022-01-26 12:49:32 -05:00
jamelreid a631454b91 Updated describe block for better logging 2022-01-26 11:53:43 -05:00
Chi-Hsuan Huang 8281eac885 Fix Uncaught TypeError count(NULL) for php8+ in Marketing.php (https://github.com/woocommerce/woocommerce-admin/pull/8213)
* Fix Uncaught TypeError count(NULL) for php8+ in Marketing.php

* Add changelog
2022-01-26 22:42:03 +08:00
Chi-Hsuan Huang bfa445f600 Add Spain to Square suggestion country list (https://github.com/woocommerce/woocommerce-admin/pull/8210)
* Add Spain to square_credit_card suggestion country list

* Fix payment-gateway-suggestions.md data source polling url

* Add changelog
2022-01-26 17:37:05 +08:00
dependabot[bot] cad71e98a0 Bump node-fetch from 2.6.1 to 2.6.7 in /.github/actions/pr-labeler (https://github.com/woocommerce/woocommerce-admin/pull/8218)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-26 16:21:51 +08:00
dhjw af347d3dc0
Merge branch 'woocommerce:trunk' into autocomplete-signup 2022-01-25 19:43:26 -08:00
Matt Sherman 56a78ab4f9 Bump version to 3.3.0-dev and sync changelog from 3.2.0-beta.1 (https://github.com/woocommerce/woocommerce-admin/pull/8217)
* Bump version to 3.3.0-dev

* Bump WP tested up to

* Update changelog

* Update testing instructions version
2022-01-25 17:55:50 -05:00
louwie17 2e3b9f1e01 Add tasklist_payment_setup track for WooCommerce Payments (https://github.com/woocommerce/woocommerce-admin/pull/8146)
* Add changelog

* Move payment setup even to Action button
2022-01-25 17:47:36 -04:00
Jacob Sewell 917545577f Task List: Personalize your store / Import products - error message is not formatted correctly (https://github.com/woocommerce/woocommerce-admin/pull/8173)
* Use __() to display a generic error message on sample item import rather than passing through the server message because it probably has tags.

* Add changelog for 4314/8173.

* Add support for __unstableHTML option to Snackbar.

* Use __unstableHTML option to display server-side error messages as they come in.

* Update changelog description for 4314/8173.
2022-01-25 13:06:38 -06:00
Tam Mullen a61cca5f5f
Merge pull request #31042 from woocommerce/performance/merchant-search-orders
Add new performance test Merchant / Search Orders
2022-01-25 15:10:58 +00:00
Fernando c4e62407ed
Merge pull request #31689 from woocommerce/fix/wc-admin-is-admin-check
Add method to check capability to access to the top-level WooCommerce menu item.
2022-01-25 11:26:26 -03:00
Ilyas Foo af2f0f7a78 Bump versions for multiple WooCommerce packages (https://github.com/woocommerce/woocommerce-admin/pull/8214)
* Bump versions for multiple packages

* Bump all package versions

* Fix spacing
2022-01-25 19:22:58 +08:00
Peter Fabian c0951016db
Merge pull request #31290 from woocommerce/add/rest-api-order-auto-draft
PoC: Allow auto-draft in API orders
2022-01-25 12:01:02 +01:00
Ilyas Foo ad5b1bd36c Update changelog (https://github.com/woocommerce/woocommerce-admin/pull/8212) 2022-01-25 17:26:42 +08:00
Ilyas Foo 4acea19739 Update woocommerce-admin to 3.1.0 2022-01-25 12:04:50 +08:00
Sadik 1225371ca8 get_percent_complete return value cast to int 2022-01-24 14:38:25 -08:00
Barry Hughes fbd450c24d
Merge pull request #31256 from woocommerce/create-product-attributes-lookup-table-in-data-migration
Create and activate product attributes lookup table in data migration
2022-01-24 13:08:57 -08:00
Claudio Sanches 2e2ec741cc
Merge pull request #31707 from woocommerce/update/woocommerce-blocks-6.7.3
Update WooCommerce blocks package to 6.7.3
2022-01-24 17:07:36 -03:00
Claudio Sanches 648e29146d
Merge pull request #31712 from woocommerce/bump/sniff
Bump woocommerce sniff version
2022-01-24 17:03:42 -03:00
Barry Hughes ee76f6939d
Merge pull request #31565 from johnregan3/31252-woo-var-header-hook
Add $loop var to woocommerce_variation_header hook
2022-01-24 10:51:51 -08:00
Barry Hughes 053ee9007c
Merge pull request #31303 from paulochang/patch-4
Make GT postcode visible but do not require it.
2022-01-24 10:00:32 -08:00
Barry Hughes d0f4773ac7
Merge pull request #31698 from helgatheviking/twenty-twenty-inputs
Limit input widths to number inputs in Twenty Twenty theme
2022-01-24 08:59:01 -08:00
roykho a6a686049a
Bump woocommerce sniff version 2022-01-24 08:39:16 -08:00
louwie17 3742be465e Add performance tracks to onboarding flow (https://github.com/woocommerce/woocommerce-admin/pull/8042)
* Add payment_setup track for WooCommerce Payments

* Add timing props to tracks in onboarding when installing extensions

* Update extension key logic

* Add changelog

* Add tests for extension installation data for tracks

* Add util function for plugin slug parsing

* Only install and activate plugins that are not already active
2022-01-24 12:23:12 -04:00
Jason Kytros 4001340603 Hook `set_session` at `woocommerce_after_calculate_totals` @ `1000` 2022-01-24 17:29:19 +02:00
Jeff Stieler bbce4c0d4b
2022 Theme: Fix Search Blocks (#31687)
* Style search blocks for 2022 theme.

* Use magnifying glass icon for single product zoom.

* Match border color on WP search block.
2022-01-24 09:45:11 -05:00
Veljko V d0f70804db
Add missing product_search_term in import
Added a missing product_search_term in the imports
2022-01-24 15:33:52 +01:00
Luigi 5e2dadb10e Update WooCommerce blocks package to 6.7.3 2022-01-24 14:25:31 +01:00
Nestor Soriano 186f5b4eda
Set the return type of LookupDataStore::regeneration_was_aborted to bool 2022-01-24 11:11:23 +01:00
Nestor Soriano d90a1f4e1a
Enable the product attributes lookup table after data regeneration
After a regeneration of the product attributes lookup table finishes
successfully the table usage will be automatically enabled, except
if the regeneration was aborted via the deletion of the
woocommerce_attribute_lookup_regeneration_in_progress option.
2022-01-24 11:11:08 +01:00
Ilyas Foo 0d730a5bed Update readme (https://github.com/woocommerce/woocommerce-admin/pull/8203) 2022-01-24 12:46:36 +08:00
Vedanshu Jain c158d5168f
Merge pull request #31682 from woocommerce/fix/31671-checkout-pay-order-styling
Fix styling of "pay for order" form.
2022-01-24 10:14:57 +05:30
dhjw cd8559381b
Enable browser-suggested passwords on checkout signup 2022-01-22 16:07:04 -08:00
helgatheviking f7d9ebc436 Limit input widths to number inputs 2022-01-22 12:33:16 -07:00
Jacob Sewell 2b1dd08040 Fix/7174 dismiss button alignment (https://github.com/woocommerce/woocommerce-admin/pull/8168)
* Combine all the .woocommerce-task-dashboard__container .woocommerce-task-card rules in one block.

* Move the .woocommerce-task-card__section-controls text-align center rule up in specificity so it overrides the rule in experimental-list.
Do we need the experimental-list package still?

* Changelog for 7174/8168.

* Expand button to container width and center text rather than centering the entire button in the ellipsis menu.

* Move ellipsis menu button style to _global so it applies, um, globally.

* Update changelog description for 7174/8186.

* Move ellipsis-menu popover button style to package from _global.

* Add components package changelog for Dismiss button in Unreleased section.
2022-01-22 11:48:01 -06:00
Joshua T Flowers b5ae232106
Add product meta data to published product tracks (#31355) 2022-01-21 17:19:56 -05:00
Fernando Marichal c065121582 Add call to method `can_view_woocommerce_menu_item` 2022-01-21 17:29:44 -03:00
Nestor Soriano 2565df378e
Add scafolding for the custom orders table feature.
- Add the src/Internal/DataStores/Orders, with the appropriate
  class files.

- Add an entry in the tools page to initiate the (re)generation
  of the table data (does nothing for now).

- Add a new data store class (empty for now).
2022-01-21 16:17:18 +01:00
Fernando Marichal 8e1bd702e4 Add calls to method `can_view_woocommerce_menu_item` 2022-01-21 11:02:23 -03:00
Fernando Marichal 317e530fba Add method can_view_woocommerce_menu_item
This commit adds a method to check if the user can access the top-level WooCommerce item.
2022-01-21 11:02:02 -03:00
Jacob Sewell 1e8cdb3543 Reduce padding around plugin list titles for marketing tools page. (https://github.com/woocommerce/woocommerce-admin/pull/8171)
* Reduce padding around plugin list titles for marketing tools page.

* Changelog for 8164/8171.

* Update plugin list title padding

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-01-20 20:50:21 -06:00
dependabot[bot] f217131dd0 Bump trim-off-newlines from 1.0.1 to 1.0.3 (https://github.com/woocommerce/woocommerce-admin/pull/8195)
Bumps [trim-off-newlines](https://github.com/stevemao/trim-off-newlines) from 1.0.1 to 1.0.3.
- [Release notes](https://github.com/stevemao/trim-off-newlines/releases)
- [Commits](https://github.com/stevemao/trim-off-newlines/compare/v1.0.1...v1.0.3)

---
updated-dependencies:
- dependency-name: trim-off-newlines
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-20 16:41:17 +08:00
RJ 49bf6a5c81 Updated frontend email validation to use @wordpress/url (https://github.com/woocommerce/woocommerce-admin/pull/8197)
* Updated frontend email validation to use @wordpress/url

- added testing for StoreDetails
- changed basic email validation to use @wordpress/url isEmail
2022-01-20 16:40:20 +08:00
renovate[bot] 8af4fe6311 Update dependency follow-redirects to 1.14.7 [SECURITY] (https://github.com/woocommerce/woocommerce-admin/pull/8194)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-20 16:33:34 +08:00
Chi-Hsuan Huang ff1e31cfd4 Enhance report chart i18n support (https://github.com/woocommerce/woocommerce-admin/pull/8129)
* Support i18n texts for report chart

* Add changelogs

* Add d3-time-format to date pkg devDependencies

* Fix date php format and add tests

* Add date changelog

* Fix date test

* Escape week of string for php formatter
2022-01-20 08:20:18 +08:00
Chi-Hsuan Huang 19e7345f01 Fix undefined derived_currency value for the track 'wcadmin_storeprofiler_store_details_continue' (https://github.com/woocommerce/woocommerce-admin/pull/8193)
* Fix undefined store_country value for the track wcadmin_storeprofiler_store_details_continue

* Add changelog
2022-01-20 08:19:20 +08:00
Fernando b74600593e Change the reviews empty state panels logic (https://github.com/woocommerce/woocommerce-admin/pull/8147)
* Add unapproved reviews check

* Add tests

* Add changelog

* Create a review e2e test

* Fix lint

* Rename some constants (https://github.com/woocommerce/woocommerce-admin/pull/8178)

* Renamed `countUnapprovedReviews`

* Renamed `lowStockProductsCount`

* Renamed `unreadOrdersCount`

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-01-19 13:45:17 -03:00
Joshua T Flowers ecd8c34c42 Hide store address fields in regions that specify hidden (https://github.com/woocommerce/woocommerce-admin/pull/8172)
* Hide store address fields in regions that specify hidden

* Add changelog entry
2022-01-19 09:07:43 -05:00
Žygimantas Arūna db6f6f22ca New hook: cart item removed because of hash change 2022-01-19 15:01:21 +01:00
Peter Fabian af3c2732c1
Merge pull request #31508 from woocommerce/update/revert-Customize-WC-logic
Revert #30044
2022-01-19 14:50:02 +01:00
Peter Fabian 322696b2fa
Merge pull request #31506 from siliconforks/woocommerce_product_recount_terms-filter
Change '__return_true' to true in apply_filters()
2022-01-19 14:38:14 +01:00
Chi-Hsuan Huang 9cfd69d778 Fix incorrect date options when the "Default Date Range" is set from Analytics settings (https://github.com/woocommerce/woocommerce-admin/pull/8189)
* Add defaultDateRange argument to getAllowedIntervalsForQuery function for default period value

* Fix incorrect date options when the "Default Date Range" is set

* Add changelog
2022-01-19 10:15:33 +08:00
Jeff Stieler 8c78791c37 Fix styling of order pay form via my account. 2022-01-18 16:50:30 -07:00
Jeff Stieler 1a8e27e5ca Fix my account orders action button spacing. 2022-01-18 16:50:07 -07:00
Joshua T Flowers 067c9f763e Fix task ID class check and add tests around tracking (https://github.com/woocommerce/woocommerce-admin/pull/8185)
* Fix task ID class check and add tests around tracking

* Add changelog entry

* Add doc comment for return value of recorded tracks event
2022-01-18 15:29:14 -05:00
Joel Thiessen 96c7eb4e26 Adding tooltip to describe the lack of refund deductions from revenue summaries (https://github.com/woocommerce/woocommerce-admin/pull/8187) 2022-01-18 12:07:32 -08:00
jonathansadowski 5e4f6c7413
Add `@see` tag to hint at usage of `wp_doing_ajax` 2022-01-18 13:15:32 -06:00
mrleemon f5411284a5
Wrap terms and conditions required asterisk symbol with <abbr> tag 2022-01-18 20:00:33 +01:00
Jonathan Sadowski d39bd0eb54 Partially revert #31113
This commit reverts the deprecation if `is_ajax` that occurred in #31113. It leaves beind the changes to use the native function `wp_doing_ajax` instead.
2022-01-18 11:28:35 -06:00
Fernando 3c424992a4 Refactor selling options - OBW - Business Details (https://github.com/woocommerce/woocommerce-admin/pull/8081)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-01-18 10:46:10 -03:00
Chi-Hsuan Huang 2ce17ed7c0 Fix incorrect total count of downloads on the analytics download report (https://github.com/woocommerce/woocommerce-admin/pull/8182)
* Fix incorrect total count of downloads on download analytics report

* Add changelog
2022-01-18 19:04:20 +08:00
Chi-Hsuan Huang 18a4a467f8 Fix get_automated_tax_supported_countries doesn't include UK (https://github.com/woocommerce/woocommerce-admin/pull/8180)
* Add GB to automated tax supported countries list

* Add changelog
2022-01-18 18:31:46 +08:00
Chi-Hsuan Huang 3b8c6662e8 Fix incorrectly displayed note created date (https://github.com/woocommerce/woocommerce-admin/pull/8179)
* Fix incorrectly displayed note created date

* Add changelog

* Add package changelog
2022-01-18 18:24:15 +08:00
Menaka S 80bf1cfb76 Add WcPay settings info to WC Tracker 2022-01-18 14:22:42 +04:00
Chi-Hsuan Huang 08acc3e2f7 Fix incorrect reader text generated for data points on charts table (https://github.com/woocommerce/woocommerce-admin/pull/8181)
* Fix incorrect screen reader text generated for data points on charts table

* Add changelog
2022-01-18 18:10:23 +08:00
Nestor Soriano dbb4605e8e
Change db update version from 6.2 to 6.3.
Also rename the db update function to include the Woo version number.
2022-01-18 09:28:54 +01:00
Nestor Soriano 806c4f2ed3
Add a table regeneration step size filter and a "regeneration aborted" warning
Add a new filter: woocommerce_attribute_lookup_regeneration_step_size,
it allows to choose how many products will be processed on each
step when the product attributes lookup table is being regenerated,
the default is the previous fixed value, 10.

Also when the regeneration is manually aborted (via deleting the
woocommerce_attribute_lookup_regeneration_in_progress option), the
products - advanced settings section will still allow to enable the
usage of the table, but a warning will be shown because the table
will be in an inconsistent state.
2022-01-18 09:06:14 +01:00
Chi-Hsuan Huang ae0ea6df2c Fix php unit test "test_deleted_coupons" for wc >= 6.1.0 (https://github.com/woocommerce/woocommerce-admin/pull/8162)
* Fix bin/install-wp-tests.sh for wc >= 6.0.0

* Fix php unit test "test_deleted_coupons" for wc >= 6.1.0

* Update WC_Tests_Reports_Coupons test_populate_and_query test

Fix test
2022-01-18 13:31:21 +08:00
Vedanshu Jain 3c9d1353e5
Merge pull request #31317 from kkmuffme/cookie-consent-filter
add cookie consent filter
2022-01-17 16:28:33 +05:30
Vedanshu Jain e6544d737d
Rename filter to be more generic since it can be used across different use cases. 2022-01-17 16:04:34 +05:30
Peter Fabian 505e6ee27c
Merge pull request #31590 from masteradhoc/patch-3
change string 'automatically generate an account password'
2022-01-17 11:25:11 +01:00
Chi-Hsuan Huang 161a9d6feb Fix shipping rate error message overlaps with the 'Proceed' button (https://github.com/woocommerce/woocommerce-admin/pull/8165)
* Fix shipping rate error message overlaps with the 'Proceed' button

* Add changelog
2022-01-17 14:39:02 +08:00
Chi-Hsuan Huang 409f077a83 Fix setup wizard free features checkbox re-check itself (https://github.com/woocommerce/woocommerce-admin/pull/8169)
* Fix setup wizard free features checkbox re-check itself

* Add changelog
2022-01-17 10:03:32 +08:00
Kamil 37794b2b7c
Additional parameters in `woocommerce_get_product_thumbnail` (#31605)
* Additional parameters in `woocommerce_get_product_thumbnail`

* Protection against potential wrong types of parameters

* Coding standards
2022-01-14 13:42:35 -05:00
秋余 afde32fd01
If applied, this commit will format Line items price in order api (#31593)
* If applied, this commit will format Line items price in order api

When buying three products at price is 17.17. request /wp-json/wc/v3/orders api will get line_items prices is 17.169999999999998, this is because floating point numbers have limited precision.

* use wc_format_decimal function format line item price on order api
2022-01-14 12:35:46 -05:00
jonathansadowski 2a2b609055
Merge pull request #31640 from woocommerce/update/changelog-6.1
Prepare trunk to 6.3.0-dev and update changelog
2022-01-14 10:30:47 -06:00
Tom Cafferkey 88a623639c Code review feedback 2022-01-14 14:26:12 +00:00
Joshua T Flowers 666f740659 Add localized validation to store address (https://github.com/woocommerce/woocommerce-admin/pull/8123)
* Use locale labels for store info

* Get address validation errors based on locale

* Fix validation rules based on locale

* Fix up store address in location task step

* Add changelog entry
2022-01-14 08:39:25 -05:00
vedanshujain 7b8f3be261 Merge branch 'trunk' into pr/31317 2022-01-14 17:20:46 +05:30
vedanshujain 17f6671924 Merge branch 'trunk' into pr/31435 2022-01-14 17:01:30 +05:30
Vedanshu Jain fd658797d8
Merge pull request #31577 from woocommerce/issue/31562-filter-coupons-by-status
Issue/31562 filter coupons by status
2022-01-14 16:32:27 +05:30
Vedanshu Jain d5f32ee514
Merge pull request #31610 from woocommerce/fix/allow-block-taxonomy-product-templates
Allow Blocks for Custom Product taxonomies
2022-01-14 16:22:50 +05:30
Vedanshu Jain a9c1c6756a
Updated @since version 2022-01-14 15:57:31 +05:30
dnwjn fe7a35adc8 Update since version 2022-01-14 10:16:22 +01:00
Claudio Sanches fa781ef9e7
Merge pull request #31623 from kvnang/trunk
Use inline `onload` event instead of jQuery `load`
2022-01-14 02:43:11 -03:00
Ilyas Foo 352c533ed8 Update changelog and testing instructions with 3.1.0-rc.1 release (https://github.com/woocommerce/woocommerce-admin/pull/8166)
* Update changelogs

* Update testing instructions

* Fix testing instructions

* Fix instructions
2022-01-14 09:53:21 +08:00
Ilyas Foo e3357ff3bf Bump version 2022-01-14 07:39:59 +08:00
Claudio Sanches efcdcfa67c Prepares trunk to 6.3.0-dev and update changelog 2022-01-13 20:28:58 -03:00
Claudio Sanches 36f4ee84aa
Merge pull request #31556 from woocommerce/update/woocommerce-blocks-6.7.0
Update WooCommerce Blocks package to 6.7.1
2022-01-13 20:22:48 -03:00
Joshua T Flowers 3c20d0f007 Add countries data store (https://github.com/woocommerce/woocommerce-admin/pull/8119)
* Add countries data store

* Add countries state type to reducer

* Add changelog entry
2022-01-13 14:43:56 -05:00
Miguel Perez Pellicer bfa5d2d14d Fix format for PHP < 7.3 2022-01-13 18:14:29 +01:00
Miguel Perez Pellicer 9ec469859b Fix format for PHP < 7.3 2022-01-13 18:10:26 +01:00
Miguel Perez Pellicer ae65c8c139 Adding Unit tests 2022-01-13 18:01:11 +01:00
Vedanshu Jain 4f8540a6c9
Merge pull request #31587 from esprssoo/trunk
Fix PHPDoc Type
2022-01-13 21:21:11 +05:30
Vedanshu Jain 7ef18a5879
Merge pull request #31634 from woocommerce/fix/2022-order-details-table-narrow
Fix order details table width on narrow viewports.
2022-01-13 15:53:43 +05:30
Peter Fabian 28f6760b00
Merge pull request #31557 from woocommerce/add-php-72-version-bump-notice
Add an admin notice about the upcoming change in PHP requirements
2022-01-13 10:14:06 +01:00
Nestor Soriano 0853bf411d
Fix a "__" that should be "esc_html__" (triggering deprecation notice) 2022-01-13 09:57:29 +01:00
Nestor Soriano 9821d5d0fe
Tryy to remove th PHP 7.2 bump notice only if it actually exists. 2022-01-13 08:57:51 +01:00
Vedanshu Jain 2a3360fb95
Merge pull request #31633 from woocommerce/fix/31324-checkout-block-overlay
Basis of overlay used when processing Twenty Twenty-Two checkout.
2022-01-13 09:21:00 +05:30
Chi-Hsuan Huang f00e904d13 Fix category report query returns invalid net sales (https://github.com/woocommerce/woocommerce-admin/pull/8153)
* Fix category report query returns invalid net sales

fixes woocommerce/woocommerce-admin#7710
2022-01-13 11:12:16 +08:00
Chi-Hsuan Huang cedb47d2b0 Make activity panel badges margin consistent (https://github.com/woocommerce/woocommerce-admin/pull/8152)
* Make activity panel badges margin consistent

* Add changelog
2022-01-13 09:50:59 +08:00
Joel Thiessen 512a4fac7a Fix marketing task not displaying on Atomic sites. (https://github.com/woocommerce/woocommerce-admin/pull/8150)
* Should accept a boolean value for is_visible property with an extension, and only evaluate a set of rules

* Adding changelog

* Moving fix to RuleEvaluator so it applies to other rulesets
2022-01-13 09:39:22 +08:00
Moon fec3ab8c5e Fix incorrectly selected column type in two-cols experiment (https://github.com/woocommerce/woocommerce-admin/pull/8137)
* Remove updating to two_cols

* Put woocommerce_task_list_prompt_shown update logic back
2022-01-13 09:38:38 +08:00
Jeff Stieler 6c8758118a Fix order details table width on narrow viewports. 2022-01-12 18:26:36 -07:00
Jeff Stieler be7b1b63f1 Add loading treatment to AJAX add to cart buttons. 2022-01-12 18:17:23 -07:00
barryhughes ef514df47d Import spin animation. 2022-01-12 17:08:12 -08:00
Barry Hughes cd73b57191
Modify background color for <mark> elements (#31631) 2022-01-12 19:55:07 -05:00
Barry Hughes 360ed8d3c6
Merge pull request #31630 from woocommerce/fix/2022-checkout-tweaks
Some 2022 Checkout Form Tweaks
2022-01-12 16:42:48 -08:00
barryhughes a20513b919 Basis of overlay used when processing Twenty Twenty-Two checkout. 2022-01-12 16:18:23 -08:00
Jeff Stieler be6feced4c Fix font sizes in single product tabs area, review form styling. 2022-01-12 16:21:13 -07:00
Jacob Sewell bba520b886 OBW: Move newsletter signup checkbox inside the same Card as the rest of the Store Details form inputs. (https://github.com/woocommerce/woocommerce-admin/pull/8148)
* OBW: Move newsletter signup checkbox inside the same Card as the rest of the Store Details form inputs.

* Add changelog entry for 8033/8148.

* Fix changelog format for 8033/8148.
2022-01-12 16:56:19 -06:00
Barry Hughes 045c3fb915
Center product cards (2022 Theme) (#31626)
* Center product cards (2022 Theme)

* Product card color.

* Center product rating in loops.

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2022-01-12 17:00:52 -05:00
Jeff Stieler accd914e54 Bold font for all price values on checkout. 2022-01-12 14:59:38 -07:00
Jeff Stieler 8e215949f8 Fix vertical alignment of prices on checkout. 2022-01-12 14:59:13 -07:00
Jeff Stieler 9c3afa0ab3 Fix product vendor display on checkout. 2022-01-12 14:58:54 -07:00
Josh Betz e9e7bed39b We can still assume the old status is pending
Per the code comment, we were already explicitly assuming draft posts
are "pending". That's fine and shouldn't block us from setting new posts
to auto-draft.
2022-01-12 14:53:52 -06:00
Josh Betz 58aca9855e PoC: Allow auto-draft in API orders
For some operations in the API, like calculating taxes or shipping, it's
helpful to be able to have an order saved in the database. Having an
order object with an ID lets us perform other API actions on that order.
However, we also don't necessarily want these to show up on certain
screens.

Here we adopt the auto-draft status from core WordPress as a way to save
an order as a discrete object while signalling that it's not ready to
action yet.

Suggestions:

* auto-draft might not make sense given that it's used in core. We might
  want to use something like `draft` instead.
* We may want to track this separate set of statuses (trash, auto-draft)
  in a more official way, so we don't have to copy/paste around the
  codebase.
2022-01-12 14:53:52 -06:00
Joshua T Flowers 583590ecf9 Add Magento migration note (https://github.com/woocommerce/woocommerce-admin/pull/8145)
* Add Magento migration note

* Add changelog entry
2022-01-12 15:41:12 -05:00
Joshua T Flowers 287b00d11b Add REST endpoint to retrieve address locales (https://github.com/woocommerce/woocommerce-admin/pull/8116)
* Add REST endpoint to retrieve address locales

* Add changelog entry
2022-01-12 15:40:52 -05:00
Vedanshu Jain 6e08e1802f
Checkout tweaks for 2022 compatibility (#31619) 2022-01-12 13:17:49 -05:00
dnwjn f48358403e Add comments 2022-01-12 18:30:08 +01:00
Josh Betz 947b9c8ff1 Add doc comment for WC_REST_Coupons_Controller::prepare_objects_query 2022-01-12 11:06:44 -06:00
Josh Betz a88a7255b1 Fix infinite loop
Oops. We can't call $this->prepare_objects_query() unconditionally inside
prepare_objects_query(). This was my fault 🙃

b43af2ae16

To explicitly reference the parent implementation, we use `parent::`
2022-01-12 11:01:53 -06:00
Peter Fabian 38931e401b
Merge pull request #31395 from woocommerce/fix/remove-old-images
Removed assets referred to from deprecated functions.
2022-01-12 16:21:51 +01:00
Kevin Ang d974373b1f
Use inline `onload` event instead of jQuery `load` 2022-01-12 08:30:05 -06:00
Moon 29d4e96114 Make sure WP_ENVIRONMENT_TYPE is defined before checking the value (https://github.com/woocommerce/woocommerce-admin/pull/8133) 2022-01-12 14:48:20 +08:00
Ilyas Foo a0ffceec06 Move WC Pay welcome page from wc-calypso-bridge (https://github.com/woocommerce/woocommerce-admin/pull/8151)
* Move WC Pay welcome page from wc-calypso-bridge (https://github.com/woocommerce/woocommerce-admin/pull/8083)

* Add wc-pay-welcome-screen flags

* Add wc pay welcome page from wc calpyso bridge

* Add changelog

* Rename var to pageViewTimestamp to prevent confusion

* Remove unused code

* Make sure hasViewedWelcomePage is a boolean value

* Simplify storeViewWelcome

* Add payments remind me later note (https://github.com/woocommerce/woocommerce-admin/pull/8085)

* Add payments remind me later note

Fix wcpay path

* Add changelogs

* Update src/Notes/PaymentsRemindMeLater.php

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Fix possibly_add_note syntax error

Update Events.php

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Replace flag icon with component and svg background to png (https://github.com/woocommerce/woocommerce-admin/pull/8101)

* Activate promo note after WC Pay is activated (https://github.com/woocommerce/woocommerce-admin/pull/8104)

* Activate promo after wcpay is a\ctivated

* Add changelogs

* Add experimental to promo API path and limit the promo names

* Use ExPlat to render the WC Pay menu conditionally (https://github.com/woocommerce/woocommerce-admin/pull/8115)

* Check ExPlat to render the menu conditionally

* Update the experiment name

* Fix letter case to follow feature class naming convention

* Enable wc-pay-welcome-page feature in core config (https://github.com/woocommerce/woocommerce-admin/pull/8124)

* Use wc_calypso_bridge_payments_dismissed option name to respect the previously saved setting from wp.com

* Missed wc_calypso_bridge_payments_dismissed rename

* Use the existing code to prevent duplication

* Fix warning (https://github.com/woocommerce/woocommerce-admin/pull/8141)

* Change experiment to come after checks (https://github.com/woocommerce/woocommerce-admin/pull/8142)

* Change track path to (https://github.com/woocommerce/woocommerce-admin/pull/8143)

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Replace deprecated wc-admin-settings package

Co-authored-by: Moon <moon.kyong@automattic.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2022-01-12 14:46:33 +08:00
Jeff Stieler 0c4035615a Style order details. 2022-01-11 22:46:49 -07:00
Jeff Stieler 497738ea71 Tweak show password icon again. 2022-01-11 21:51:26 -07:00
Jeff Stieler 59f57a631d Fix radio buttons on cart. 2022-01-11 21:51:14 -07:00
Jeff Stieler 4718c65352 Style order button and responsive form width. 2022-01-11 21:33:29 -07:00
Jeff Stieler 4b83fa9bca Style checkbox input. 2022-01-11 21:18:37 -07:00
Jeff Stieler cbc4d31ec5 Fix margin on my account address form. 2022-01-11 20:43:57 -07:00
Jeff Stieler 5c67ccdb86 Style radio buttons. 2022-01-11 20:43:40 -07:00
Jeff Stieler e4d51dc017 Style checkout form. 2022-01-11 20:43:32 -07:00
Jeff Stieler a3d83d4aec Fix checkout column layout. 2022-01-11 18:08:06 -07:00
Jeff Stieler e20d76a7f7 Style cart totals table. 2022-01-11 15:46:09 -07:00
Jeff Stieler 5224c4c83d Style "view cart" and "return to shop". 2022-01-11 15:14:31 -07:00
Jeff Stieler 9b8a73875d Fix add to cart buttons. 2022-01-11 14:58:16 -07:00
Jeff Stieler d20aa95d03 Fix password input. 2022-01-11 14:58:08 -07:00
Jeff Stieler 9ef7e0c778 Style cart items table. 2022-01-11 14:57:52 -07:00
Joel Thiessen 8ab602de9d Adding allowed plugins to composer configuration (https://github.com/woocommerce/woocommerce-admin/pull/8139) 2022-01-11 12:14:28 -08:00
Jeff Stieler 51f3e1c3f0 Style login form. 2022-01-11 11:04:11 -07:00
Jeff Stieler 96241487d5 Style tables on my account. 2022-01-11 11:04:11 -07:00
Jeff Stieler ca7a3eec62 Fix input height - affected add to cart. 2022-01-11 11:04:11 -07:00
Jeff Stieler c6dd0f0ab5 Remove button inner border. 2022-01-11 11:04:11 -07:00
Jeff Stieler d0f4691b65 Fix notice/message bottom margin. 2022-01-11 11:04:11 -07:00
Jeff Stieler 7e28e79f26 Style address edit form. 2022-01-11 11:04:11 -07:00
Jeff Stieler 540cbf587a Initial styles for my account template. 2022-01-11 11:04:11 -07:00
Jeff Stieler f07a9d40ad Fix message display on my account page. 2022-01-11 11:04:11 -07:00
Vedanshu Jain 487c4f6e17
2022 theme stylings for product and shop pages. (#31536)
* 2022 theme stylings for product and shop pages.

* Add support for variable products and gallery.

* Add margin to reset button.

* Add support grouped product.

* Disable breadcrumb and add notice styling child.

* Reduce heading size on title page.

* Reduce font-size for content in tabs.

* Fixes for PR 31536 (#31611)

* Set max width to 1000px for shop and products.

* Display breadcrumbs on product pages.

* Remove admin styles.

* Fix result count and ordering control alignment.

* Fix onsale alignment on single product pages.

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2022-01-11 12:57:48 -05:00
Moon 7348c302ec Fix duplicated back button with two-cols experiment (https://github.com/woocommerce/woocommerce-admin/pull/8138)
* Do not render individual task in the extended component when it is rendered with two column task component
* Change var name to shouldRenderTask
2022-01-11 08:21:50 -08:00
Josh Betz b1da020e07 Fix indentation
We use spaces to align the `=>` instead of a mix of tabs and spaces.
2022-01-11 10:08:12 -06:00
Miguel Perez Pellicer 06faa5daa6 Fix logic in get_template_loader_default_file function for loading custom product taxonomies. 2022-01-11 12:30:14 +01:00
Tom Cafferkey c01e9e6582 Allow relevant block templates to be listed in the edit product view 2022-01-11 11:21:42 +00:00
anitaamurthy 9a34ccc7ba Merge branch 'trunk' into issue/31562-filter-coupons-by-status
# Conflicts:
#	plugins/woocommerce/includes/data-stores/class-wc-coupon-data-store-cpt.php
#	plugins/woocommerce/tests/legacy/unit-tests/coupon/data.php
2022-01-11 11:36:16 +05:30
Jeff Stieler 030cea98c8 Improve Customers Sync Performance (https://github.com/woocommerce/woocommerce-admin/pull/8021)
* Avoid unnecessary customer ID retrieval.

* Ignore order count when validating customers.

WC_Customer::get_order_count causes a full table scan without cache.

* Don't get customer names from their last order.

WC_Customer::get_last_order has to scan all _customer_user meta rows.

* Add changelog entry.

* Fix changelog.

* Cache customer ID in Order override classes.

* Check all user roles.
2022-01-10 19:22:09 -05:00
Joshua T Flowers 2dde3f5fa4 Add custom error for store details email and allow continue (https://github.com/woocommerce/woocommerce-admin/pull/8110)
* Add custom error for store details email and allow continue

* Add changelog entry
2022-01-10 14:18:19 -05:00
Anitaa Murthy 0a1b850fb3
Issue/31555 add status field coupons api (#31561)
* Added the status field to the GET Coupon(s) API endpoint

* Updated existing unit test for reading coupons from the db

* Updated tests for version 2&3 when fetching coupons

* Update plugins/woocommerce/includes/data-stores/class-wc-coupon-data-store-cpt.php

Co-authored-by: Josh Betz <j@joshbetz.com>

* Update plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-coupons-v2-controller.php

Co-authored-by: Josh Betz <j@joshbetz.com>

* Update plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-coupons-v2-controller.php

Co-authored-by: Josh Betz <j@joshbetz.com>

* Updated unit test for getters and setters

* Fix indentation

* Fix indentation.

Co-authored-by: Josh Betz <j@joshbetz.com>
Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2022-01-10 13:41:32 -05:00
jonathansadowski 4f482cff26
Merge pull request #31603 from woocommerce/fix/dep-sass-format
Use calc function to prevent deprecated warnings when building
2022-01-10 10:19:08 -06:00
Brian 26d8a667b5
small text change 2022-01-10 16:03:31 +01:00
roykho 39a048631c
Use calc function to prevent deprecated warnings when building 2022-01-10 06:40:40 -08:00
louwie17 48c2742099 Update changelog with 3.0.3 changes (https://github.com/woocommerce/woocommerce-admin/pull/8130) 2022-01-10 08:22:19 -04:00
Jeff Stieler 79c9b66714 Prevent photoswipe tap from interacting with elements directly underneath.
Props @Edsuns and @andi34.
2022-01-07 18:02:46 -07:00
Brian f736216f01
Update class-wc-settings-accounts.php 2022-01-08 01:17:33 +01:00
Brian 1d7b1a7171
fixes #31560
fixes #31560 - change string 'automatically generate an account password'
2022-01-08 01:13:22 +01:00
Brian 9a6ba5cac9
fix #31586
fix #31586 - Special characters in email subject
2022-01-08 01:05:43 +01:00
Raluca Stan cbb6c6b4ab
Merge branch 'trunk' into update/woocommerce-blocks-6.7.0 2022-01-07 18:37:05 +01:00
Raluca Stan 56bc2cec33 Update Woo Blocks version to 6.7.1 2022-01-07 18:23:32 +01:00
anitaamurthy f43ae46ff3 Merge branch 'issue/31562-filter-coupons-by-status' of https://github.com/woocommerce/woocommerce into issue/31562-filter-coupons-by-status 2022-01-07 16:46:20 +05:30
anitaamurthy 2a43c843ec Updated filter to support backward compatibility 2022-01-07 16:45:40 +05:30
Anitaa Murthy b43af2ae16
Update plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-coupons-controller.php
Co-authored-by: Josh Betz <j@joshbetz.com>
2022-01-07 16:38:36 +05:30
Nikos Papadakis 67d81bac8d Fix PHPDoc Type 2022-01-07 11:50:53 +02:00
Nestor Soriano d3036beff7
Changes in the notice for the PHP 7.2 bump:
- Update the link to the announcement post
- Extend the notice text with "Your server is currently running an
  older version of PHP, so this change will impact your store".
2022-01-07 10:25:19 +01:00
Chi-Hsuan Huang 016c8887c9 Fix storybook cannot resolve @woocommerce/settings error (https://github.com/woocommerce/woocommerce-admin/pull/8128) 2022-01-07 13:05:22 +08:00
Chi-Hsuan Huang b9d788c457 Fix variations table product filter (https://github.com/woocommerce/woocommerce-admin/pull/8120)
* Fix variations table product filter query

* Add changelogs
2022-01-07 12:25:44 +08:00
Chi-Hsuan Huang f47a5c7898 Fix misaligned status column on orders report (https://github.com/woocommerce/woocommerce-admin/pull/8121)
* Fix misaligned status column on order report

Add labelPositionToLeft prop to order-status component

Set labelPositionToLeft=true for <OrderStatus> on orders report table

Remove style import

* Add changelogs

Add changelogs
2022-01-07 11:37:47 +08:00
Lourens Schep af929b5b39 Version bump WooCommerce Admin to 3.0.3 2022-01-06 19:35:52 -04:00
louwie17 0e3286772e Check if WC Pay is supported before adding gateway (https://github.com/woocommerce/woocommerce-admin/pull/8122)
* Check if WC Pay is supported before adding gateway

* Add changelog
2022-01-06 18:15:08 -04:00
Joel Thiessen 9f107352ad Adding changelogs from 3.0.2 release (https://github.com/woocommerce/woocommerce-admin/pull/8118) 2022-01-06 09:34:11 -08:00
roykho 3953686056
Update the recommended engine versions to use 2022-01-06 09:14:13 -08:00
Raluca Stan 5d74f6a691 Fix the update of composer.lock 2022-01-06 14:41:19 +01:00
Raluca Stan 7f733646f1 Revert "Update WooCommerce blocks package to 6.7.0"
This reverts commit ccf5db4f3a.
2022-01-06 14:37:05 +01:00
louwie17 26a9089f58 Make use of the woocommerce_allow_marketplace_suggestions filter (https://github.com/woocommerce/woocommerce-admin/pull/8117)
* Make use of the woocommerce_allow_marketplace_suggestions filter in WooCommerce Payment promotion

* Add changelog
2022-01-06 09:00:38 -04:00
louwie17 3998f88597 Remove unpublished wc-admin-settings package and update getSetting usage (https://github.com/woocommerce/woocommerce-admin/pull/8057)
* Remove use of wc-admin-settings from packages

* Move getSetting to getAdminSetting and remove wc-admin-settings package

* Add changelog

* Update package.json and remove last use of wc-admin-settings
2022-01-06 08:53:30 -04:00
anitaamurthy 89d8cb6a9b Merge branch 'issue/31555-add-status-field-coupons-api' into issue/31562-filter-coupons-by-status 2022-01-06 10:54:41 +05:30
anitaamurthy 5b582de829 Updated unit test for getters and setters 2022-01-06 10:48:33 +05:30
Anitaa Murthy 74adbd18f5
Update plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-coupons-v2-controller.php
Co-authored-by: Josh Betz <j@joshbetz.com>
2022-01-06 10:42:04 +05:30
Anitaa Murthy b7e2a58cea
Update plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-coupons-v2-controller.php
Co-authored-by: Josh Betz <j@joshbetz.com>
2022-01-06 10:41:57 +05:30
Anitaa Murthy e6133734f2
Update plugins/woocommerce/includes/data-stores/class-wc-coupon-data-store-cpt.php
Co-authored-by: Josh Betz <j@joshbetz.com>
2022-01-06 10:41:46 +05:30
Chi-Hsuan Huang 0c028b4a87 Add resolution check to ensure setup-wizard redirection on homescreen is stable (https://github.com/woocommerce/woocommerce-admin/pull/8114)
* Add resolution check to ensure setup-wizard redirection is stable

* Add changelogs
2022-01-06 09:47:09 +08:00
Barry Hughes 747cb6b718
Merge pull request #30955 from drjamesj/fix/30828
Fixes #30828
2022-01-05 15:51:11 -08:00
James 232e47611b Fixes #30828 2022-01-05 14:11:57 -08:00
roykho 0f67d858e9
Use application installed Grunt instead of requiring global install 2022-01-05 13:18:09 -08:00
roykho 26c3171101
Explicitly add plugins allowed 2022-01-05 12:09:29 -08:00
anitaamurthy 820cdbe00c Added unit tests for filtering coupons by status 2022-01-05 21:05:24 +05:30
John Regan 757094ea43 Add var to woocommerce_variation_header hook 2022-01-05 08:56:01 -06:00
anitaamurthy 5f881728e5 Added new unit test class for coupons v3 controller 2022-01-05 18:38:48 +05:30
anitaamurthy 53cdfa9c24 Added option to filter coupons by status 2022-01-05 18:16:22 +05:30
anitaamurthy 07e8c0667b Updated tests for version 2&3 when fetching coupons 2022-01-05 16:36:09 +05:30
Chi-Hsuan Huang 91fc05dcfe Fix misaligned rows per page dropdown (https://github.com/woocommerce/woocommerce-admin/pull/8113)
* Fix misaligned rows per page dropdown

* Add changelogs

Add changelogs
2022-01-05 18:01:42 +08:00
Chi-Hsuan Huang af99137dff Truncate the site title with an ellipses on the second line (https://github.com/woocommerce/woocommerce-admin/pull/8112)
* Truncate the site title with ellipses on the second line

Fix style

* Add changelogs

* Add title property to nav site title

Update
2022-01-05 13:39:33 +08:00
anitaamurthy 160cf58410 Updated existing unit test for reading coupons from the db 2022-01-05 10:32:53 +05:30
renovate[bot] 1f0385561a Update dependency nth-check to 2.0.1 [SECURITY] (https://github.com/woocommerce/woocommerce-admin/pull/8050)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-05 11:02:20 +08:00
renovate[bot] 84ae45c2ef Update dependency json-schema to 0.4.0 [SECURITY] (https://github.com/woocommerce/woocommerce-admin/pull/8049)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-05 11:00:30 +08:00
Moon 8983852686 Render the activity panel when the tasklist is hidden (https://github.com/woocommerce/woocommerce-admin/pull/8111) 2022-01-04 18:23:34 -08:00
jonathansadowski 3ce4a7c911
Update class-wc-admin-notices.php 2022-01-04 13:03:02 -06:00
Nestor Soriano 860a8b9e84
Add an admin notice about the upcoming change in PHP requirements
The minimum required PHP version will be 7.2 as of WooCommerce 6.5.
This adds a dismissable admin notice to PHP 7.0 and 7.1 users.
2022-01-04 17:21:19 +01:00
Raluca Stan ccf5db4f3a Update WooCommerce blocks package to 6.7.0 2022-01-04 14:34:37 +01:00
renovate[bot] 233a8a1da1 Update dependency prismjs to 1.25.0 [SECURITY] (https://github.com/woocommerce/woocommerce-admin/pull/8051)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-04 20:00:18 +08:00
renovate[bot] 718aceac64 Update dependency ansi-regex to 5.0.1 [SECURITY] (https://github.com/woocommerce/woocommerce-admin/pull/8048)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-04 19:57:55 +08:00
Ján Mikláš fb9f50a2e5 Add MailPoet to Installed marketing extensions (https://github.com/woocommerce/woocommerce-admin/pull/8091)
* Add MailPoet to Installed marketing extensions

Fixes woocommerce/woocommerce-admin#8088

* Add changelogs
2022-01-04 18:00:22 +08:00
anitaamurthy 9fee3b0b4e Added the status field to the GET Coupon(s) API endpoint 2022-01-04 15:20:37 +05:30
Chi-Hsuan Huang f838727546 Replace all docs.woocommerce.com links with woocommerce.com's (https://github.com/woocommerce/woocommerce-admin/pull/8105)
* Replace all docs.woocommerce.com links with woocommerce.com/documentation
* Add changelogs

Update changelogs

* Update woocommerce-amazon-ebay-integration doc url
2022-01-04 17:03:58 +08:00
Chi-Hsuan Huang 4aaa938c3e Fix ci php unit tests with woocommerce >= 6.0.0 (https://github.com/woocommerce/woocommerce-admin/pull/8108) 2022-01-04 17:03:30 +08:00
Vedanshu Jain aee1f0880f
Merge pull request #31522 from woocommerce/fix/31518-support-for-new-block-templates-naming-conventions
Add support for Gutenberg 12.1.0 block template naming convention
2022-01-04 13:53:37 +05:30
Chi-Hsuan Huang 950455827b OBW: Fix free extensions list isn't updated after store location or industry is changed (https://github.com/woocommerce/woocommerce-admin/pull/8099)
* Rename variables and remove unnecessary select calls in selective-extensions-bundle

* Invalidate getFreeExtensions resolution whenever country or industry
changed

* Fix grammar

* Add changelogs
2022-01-04 11:31:58 +08:00
Chi-Hsuan Huang a2f0390ac8 Skip opening the dropdown if the click event is from the error message (https://github.com/woocommerce/woocommerce-admin/pull/8094)
* Skip focusing the dropdown if the click event is from the error message

fix woocommerce/woocommerce-admin#7906

Update conmments

* Add changelogs
2022-01-04 11:00:05 +08:00
Tom Cafferkey 49681e6b24 Change continue to break in foreach loop to prevent further iterations 2022-01-03 12:01:45 +00:00
Chi-Hsuan Huang 2f290d79a9 Reset "install_timestamp" if it's not numeric to avoid TypeError (https://github.com/woocommerce/woocommerce-admin/pull/8100)
* Reset install_timestamp if it's not numeric to avoid type error

Fix indent

* Add changelogs

* Remove ununnecessary logic
2022-01-03 15:51:51 +08:00
Nagesh Pai 6bff4ff4d4
Merge branch 'woocommerce:trunk' into fix/30209 2022-01-01 19:19:03 +05:30
Nagesh Pai f8afaf8d42 CSS fix for checkout page in Twenty Twenty. Cleaned an empty rule in the Twenty Twenty SCSS file 2021-12-31 22:11:51 +05:30
Fernando Marichal 04567bb8fd Bump woocommerce-admin version to 3.0.1 2021-12-30 17:01:21 -03:00
Ilyas Foo aa9f2df07f Sync version and changelogs after 3.1.0 beta (https://github.com/woocommerce/woocommerce-admin/pull/8092)
* Bump version to next dev version

* Update testing instructions

* Update changelogs
2021-12-30 10:35:22 +08:00
Chi-Hsuan Huang 755f99d5a1 Disallow whitespace as a platform name input (https://github.com/woocommerce/woocommerce-admin/pull/8090)
* Disallow whitespace as the platform name input

* Add changelogs
2021-12-30 10:05:12 +08:00
jonathansadowski 6cc335c35a
Merge pull request #31523 from woocommerce/fix/block-theme-check
Update block theme check to work in WP 5.9 without Gutenberg enabled
2021-12-29 12:13:03 -06:00
Veren 4da4c1d12f Simplify possible path generation 2021-12-29 15:28:21 +01:00
Fernando cb8eff85f5 Changelog - Update release date (https://github.com/woocommerce/woocommerce-admin/pull/8093)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-12-29 08:04:23 -03:00
Albert Juhé Lluveras 91d2b68769 Update block theme check to work in WP 5.9 without Gutenberg enabled 2021-12-29 11:10:14 +01:00
Chi-Hsuan Huang ac78e74ef6 OBW: Hide the extensions header when no available plugins in the category (https://github.com/woocommerce/woocommerce-admin/pull/8089)
* Hide extension list header if no plugins under the category

* Refactor variable naming and add missing hook deps

* Add changelogs

* Add tests for <ExtensionSection />
2021-12-29 16:32:19 +08:00
Fernando Marichal 921b0c19f5 Bump woocommerce-admin version to 3.0.0 2021-12-28 17:02:22 -03:00
Veren b2239b592a Add support for Gutenberg 12.1.0 block template naming convention
Gutenberg 12.1.0 has changed the convention for the directory paths from
`block-templates` and `block-template-parts` to `templates` and `parts`
respectively.

Previously, WooCommerce was checking whether block templates were
available, only in the `block-templates` directory.

This commit adds support for both older and newer naming conventions,
as well as parents and child themes.

Fixes #31518
2021-12-28 19:25:13 +01:00
Adrian Duffell a0278af8ad Syc 2.9.x changelog entries (https://github.com/woocommerce/woocommerce-admin/pull/8044)
* Add changelog

* Fixed style

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-12-28 10:36:16 -03:00
Moon c84a8f4d40 Add/8073 add action_click event to inbox 2.0 (https://github.com/woocommerce/woocommerce-admin/pull/8086)
* Prevent firing multiple panel view event

* Add inbox_action_click event when a note gets clicked

* Add changelog
2021-12-27 16:38:31 +08:00
Moon ccd2495ff4 Do not initialize WC Pay promotion if spec is empty (https://github.com/woocommerce/woocommerce-admin/pull/8087) 2021-12-27 16:29:51 +08:00
Tam Mullen 74445e23d5 Add GitHub templates for issues and PRs 2021-12-24 16:45:52 +00:00
Niels Lange db2be99ea8 Revert #30044 2021-12-24 19:59:26 +07:00
Silicon Forks 27dc83a779 Change '__return_true' to true in apply_filters()
Presumably the original author of this code intended to use true here
instead of '__return_true'; '__return_true' is commonly used with
add_filter() but it does not really make sense to use it here.

This was not really a bug because '__return_true' is a "truthy" value,
so the logic was working as intended; I am changing it to true just to
improve code readability.
2021-12-23 13:39:38 -04:00
Chi-Hsuan Huang 61cdae82c4 Fix unexpected analytics report table filter results (https://github.com/woocommerce/woocommerce-admin/pull/8072)
* Fix unexpected analytics report table filter results

* Add changelogs

Update changelogs
2021-12-23 16:52:39 +08:00
Fernando 566bf788a4 OBW: Update WC Pay label on recommended extensions list (https://github.com/woocommerce/woocommerce-admin/pull/8038)
* Modified WC-Pay label

* Add changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-12-22 09:22:29 -03:00
Tom Cafferkey c9c5f86d30 Update WooCommerce Blocks to 6.5.1 2021-12-22 11:55:17 +00:00
Chi-Hsuan Huang a43bcaca0f Remove low performing inbox notes (https://github.com/woocommerce/woocommerce-admin/pull/8054)
* Remove Marketing note

* Remove DrawAttention note

Remove DrawAttention note

* Remove NeedSomeInspiration note

* Remove ChooseNiche note

* Remove StartDropshippingBusiness note

* Remove FilterByProductVariationsInReports note

* Remove LearnMoreAboutVariableProducts note

* Remove GettingStartedInEcommerceWebinar note

* Remove deprecated note tests

* Add changelogs

Update changelogs

* Remove navigation feedback notes (https://github.com/woocommerce/woocommerce-admin/pull/8055)

* Remove navigation feedback note

issue woocommerce/woocommerce-admin#8043

* Add changelogs
2021-12-22 13:11:10 +08:00
Joshua T Flowers 0ef8959a22 Allow content data note props to be passed from remote sources (https://github.com/woocommerce/woocommerce-admin/pull/8047)
* Allow content data note props to be passed from remote sources

* Add changelog entry
2021-12-21 10:52:15 -05:00
Fernando 00055f69e4 Add e2e tests for PR 7963 (https://github.com/woocommerce/woocommerce-admin/pull/7996)
* Add e2e tests for PR 7963

* Fix lint

* Verify the next screen is shown

* Simplifying product types step

* Add className to SelectControl

* Fix e2e test

* Removed not used dependency

* Add method `expandRecommendedBusinessFeatures`

* Fixed style selectors

* Add default value to `name`.

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-12-21 09:58:15 -03:00
Veljko V 03a4ed7ed9
Update plugins/woocommerce/tests/performance/requests/merchant/orders-search.js
Co-authored-by: Tam Mullen <tam.mullen@automattic.com>
2021-12-21 13:56:11 +01:00
Veljko V 0fb8047bcc
Update plugins/woocommerce/tests/performance/requests/merchant/orders-search.js
Co-authored-by: Tam Mullen <tam.mullen@automattic.com>
2021-12-21 13:54:23 +01:00