Commit Graph

8640 Commits

Author SHA1 Message Date
Gan Eng Chin 7852448a7a
Use SmartPluginCardBody in Channels component. 2022-12-10 02:29:58 +08:00
Gan Eng Chin 5da2385d41
Add SmartPluginCardBody component. 2022-12-10 02:29:58 +08:00
Gan Eng Chin 542b26e346
Move and rename type Plugin to RecommendedPlugin. 2022-12-10 02:29:58 +08:00
Gan Eng Chin 0229354da0
Rename file Plugin to InstalledPlugin. 2022-12-10 02:29:58 +08:00
Gan Eng Chin 56dbf53a35
Rename type Plugin to InstalledPlugin. 2022-12-10 02:29:57 +08:00
Gan Eng Chin 5cd1d0fe3f
Add CardHeaderDescription in Channels card. 2022-12-10 02:29:57 +08:00
Gan Eng Chin 995fb7e02d
Code refactor with CardHeaderTitle component.
This component will be used in other components later.
2022-12-10 02:29:57 +08:00
Gan Eng Chin a8c8be7c26
Use CenteredSpinner in Channels. 2022-12-10 02:29:57 +08:00
Gan Eng Chin 5216643465
Code refactor with CenteredSpinner. 2022-12-10 02:29:57 +08:00
Gan Eng Chin dc7a233cb1
Add Channels card into Marketing page. 2022-12-10 02:29:57 +08:00
Néstor Soriano 2cd799e76a
Add a states migrator helper method and migrate states for New Zealand and Ukraine (#35669) 2022-12-09 09:20:33 +01:00
Melebius 02fec371f4
Fix payment instruction location in on-hold email (#31880) (#31886)
* Fix payment instruction location in on-hold email
* Update template version tags.
* Changelog.
* Update version tag to 7.3.0.
* Update version tag to 7.3.0.

Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2022-12-08 09:17:50 -08:00
Néstor Soriano 0b4811d83e
Make HPOS feature and "Delete custom order tables" tool work nicely together (#35357)
* Make linter happy by (very painfully) introducing Yoda conditions.

* Change how the COT related tools work combined with the COT feature.

- Enabling the feature will now automatically create the tables
  if they don't exist already.
- In fact, enabling the feature is now the only way to create the tables.
- The "Delete tables" tool will be shown as disabled in the feature
  is enabled.

* Add changelog file

* Fix code sniffer issues
2022-12-08 07:12:16 -08:00
jonathansadowski be73733be4
Update stable tag and readme for 7.1.1 (#35883)
* Update changelog.txt

* Update stable tag in readme.txt
2022-12-08 08:31:15 -06:00
Peter Fabian fc4e28b33e
array_key_exists shall not be called on non array (#35598) 2022-12-08 09:40:12 +01:00
Barry Hughes 084abd9908
[HPOS] Avoid error noise during plugin activation (#35820)
Do not try to query for orders by type, if no order types are registered.

If DataSynchronizer::get_current_orders_pending_sync_count() is called very early in the request then order types may not yet have been registered. This can for example happen during plugin activation/installation.
2022-12-07 11:59:07 -08:00
Luigi Teschio 0a039a1f13
Update WooCommerce blocks package to 8.9.2 (#35805) 2022-12-07 17:01:27 +01:00
Nathan Silveira 493faac544
Add help tip for Product Image and Product Gallery meta boxes (#35834)
* Add help tip to Product galery meta box

* Changelog

* Remove admin_post_thumbnail_html filter from product screen

* Add jQuery to append a tooltip after 'Set product image'

* Add dynamic upload size

* Add guard in case setPostThumbnail doesn't exist
Refactor jQuery code for simplicity

* Run phpcbf

* Fix php linting

* Run lint again

* Make both tooltips with jQuery
Refactor DOM manipulation code
Remove PHP implementation

* Change span tabIndex to 0 to allow focus on screen readers

* Move code to meta-boxes-product

* Add descriptive comment on jQuery code that adds tooltips
2022-12-07 11:38:30 -03:00
Chi-Hsuan Huang 1fbe5d330d
Add @babel/plugin-proposal-class-properties to run storybook (#35867)
* Add @babel/plugin-proposal-class-properties to run storybook

* Add @babel/plugin-proposal-class-properties to webpack config and remove storybook env from babel config

* Add changelog
2022-12-07 22:26:02 +08:00
Adrian Duffell 0b3a0516d0
Fix installation error in Onboarding Wizard when plugin generates unexpected output (#35866)
* Update plugin activation check

This is refactored to test the plugin state instead of checking the API call result.

This is because WordPress can return an error despite the plugin activating correctly. The `unexpected_output` error, in one such case, when WordPress detects stray output upon activation. To workaround this, the plugin is checked for its active status directly.

* Add tests

* Add changelog

* Fix lint issues
2022-12-07 17:31:37 +08:00
Sam Seay ef746eae1e
WC Beta Tester - Don't run WC code if WC is not installed (#35742)
* Always check if wc_get_logger is available before calling it.
* Guard against other WooCommerce specific code.
2022-12-07 07:18:52 +13:00
rodelgc 93b6d358f4
Migrate merchant daily smoke tests to Playwright (#35492)
* Checkout files

* Remove reverted permalinks code

* Enable cron

* More accurate job names

* More accurate test summary title
2022-12-06 11:22:49 +08:00
Nathan Silveira 31773d4b06
Create ProductForm component to merge duplicated UI (#35783)
* Extract new component 'ProductForm', to reduce duplicated code between add-product-page and edit-product-page

* Add changelog

* Try to merge add-product-page and edit-product-page into a single product-page: running into some issues probably with the controller

* Revert "Try to merge add-product-page and edit-product-page into a single product-page: running into some issues probably with the controller"

This reverts commit bc30b67ef2.
2022-12-05 17:46:21 -03:00
Néstor Soriano 206b77b5be
Fix REST API orders query when HPOS is used (#35818)
* Fix REST API orders query when HPOS is used

The query wasn't working properly when 'search' or 'parent'
query string arguments were used and HPOS was enabled.

* Add changelog file

* PHPCS fixes.

Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2022-12-02 10:01:22 -08:00
louwie17 e7dd1a0be9
Add/35300 ces feedback product mvp (#35690)
* Add ability to show CES modal through share Feedback button

* Make use of showCesModal in footer

* Update CES action for share feedback

* Update changes to support second CES question

* Add changelog

* Address some PR feedback
2022-12-02 11:59:42 -04:00
louwie17 0e8fbe083d
Add/35129 product mvp ces (#35652)
* Add product mvp ces footer

* Add changelog

* Reset action option name after CES action

* Make sure we make use of cesAction

* Add close button

* Fix formatting

* Fix css styling issues

* Add icon to success notice

* Add product mvp CES hook and modify logic a little bit

* Update the CES product action name

* Address PR feedback and fix styling for smaller screens

* Add second question to CES product footer and update options

* Add changelog

* Fix lint error

* Fix tests
2022-12-02 05:35:47 -04:00
Néstor Soriano b7c5519b41
Fix product attributes lookup data and filter by attribute widget with non-ASCII named attributes (#34432)
This only fixes the classic widget, not the equivalent block.
2022-12-02 09:54:38 +01:00
Barry Hughes fee3e10445
Always output the min and max attributes for the quantity selector. (#35767)
Even if these are set to the same value (and so the quantity cannot be changed--which results in a readonly quantity selector) we must output them for compatibility with code (example: Composite Products) that expects them to always be present.
2022-12-01 11:08:10 -08:00
RJ 14ab611008
fix: woocommerce admin cart modal header clips header text (#35780)
fix: increased woocommerce cart modal margin
2022-12-01 08:03:58 +08:00
Philip e0450ebd1a
Update wc-account-functions.php (#32026)
* Update wc-account-functions.php

Correct order of single/plural translation strings to prevent confusion with translations and translators.

* Changelog.

Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2022-11-30 12:21:56 -08:00
Andrew 930532c2da
Fix Protected Directory Detection and Admin Notice (#33544)
* Fix Protected Directory Admin Notice

- make notice actually close when clicking "Dismiss"
- make unprotected directory detection smarter: not every /woocommerce_uploads/ page with content is a directory listing

* Unwind the change made to method `is_uploads_directory_protected()`.

Discussion here https://github.com/woocommerce/woocommerce/pull/33544/files#r910253861 relates. In essence, we felt it better to have more warnings prompting the user to evaluate if the directory is protected, than fewer warnings with an increased change of not flagging actual problems.

* Add changelog.

Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2022-11-30 12:21:12 -08:00
justasdobrovolskis d4f2212c8a
check if post_type exists (#34501)
* check if post_type exists

* Changelog.

Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2022-11-30 10:13:31 -08:00
Gan Eng Chin ec5092bd5a
Update logo icon for Google Listings and Ads in onboarding marketing task (#35732) 2022-12-01 01:35:19 +08:00
Maikel David Pérez Gómez 25a7c35cf4
Improve element stacking in modals on tablet and mobile (#35733)
* Add updated versions of sr-only and not-sr-only mixins

* Improve element stacking in modals on tablet and mobile

* Add comment suggestion

* Change sr-only for screen-reader-only which is more descriptive
2022-11-30 13:28:00 -03:00
Fernando Marichal 1e9fff35c0
Allow the user to select multiple images in the Media Library (#35722)
* Add multiple selection to MediaUploader

# Conflicts:
#	packages/js/components/src/media-uploader/media-uploader.tsx

* Fix README.md

* Add multiple select to image section

# Conflicts:
#	plugins/woocommerce-admin/client/products/sections/images-section.tsx

* Add changelogs

* Fix repeated images addition

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-11-30 10:40:41 -03:00
Fernando Marichal 716d5ab322
Move file picker by clicking card into the MediaUploader component (#35738)
* Fix `MediaUploader` component

* Fix storybook

* Fix image section

* Add changelogs

* Fix code comment

* Fix text

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-11-30 09:00:14 -03:00
louwie17 f16cfbc9d6
Add open on focus to attribute fields (#35758)
* Add experimental open menu on focus to attribute input fields

* Add changelog
2022-11-30 04:05:11 -04:00
Sam Seay 978604d0f1
Introduce live branches UI page to WooCommerce Beta Tester (#35643)
* Add basic classes to register the Live Branches page
* Add API endpoint to load live branch manifest
* TS/JS tooling, prettier tooling
2022-11-30 14:17:27 +13:00
Stefano Iachetta 4b07384574
Fix wrong version typo (#35473)
* Fix wrong version typo

* Fix "since" tag in docblock

* Add changelog

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2022-11-29 11:32:27 -08:00
Maikel David Pérez Gómez 79566d7e6b
Add a bottom padding to the whole form (#35721) 2022-11-29 15:11:57 -03:00
Joel Thiessen 4db5c0d8cd
Add additional question to CES modal (#35680) 2022-11-29 08:15:58 -08:00
nigeljamesstevenson cfffb27c45
Update README.md (#35759)
* Update README.md

Updating readme to reference the correct directory location for the .env file

* add changelog file
2022-11-29 09:05:09 -07:00
Nathan Silveira 121bfe3a29
Add tracks event for "View product" and dismiss action after update (#35582)
* Record an event 'product_view_product_click' when the 'View Product' link is clicked after creating or updating a product

* Add product_view_product_dismiss tracks events (WIP, not currently working)

* Add changelog

* Fix whitespace in addEventListener and remove console.logs

* Change link tag id to be more specific and comply with CSS guidelines
Move HTML code out of translation function

* Run phpcs in class-wc-admin-post-types

* Add tinyMCE types to add global tinymce variable in typescript code

* Add additional data in getProductData

TODO: I'm not sure if it's possible, or if it makes sense, to include stock_quantity_update in the object

* Add code review suggestions, including:

* Create isElementVisible function to backfill jQuery implementation
* Fix wrong value for is_downloadable, is_virtual, manage_stock
* Fix wrong radix
* Update menu_order implementation
* Add missing ? to weight

* Add stock_quantity_update implementation which is not working as intended

Since the page reloads after product update, the initialStockValue is updated as well

* Remove stock_quantity_update property and adjust is_downloadable, is_virtual, and manage_stock for consistency
2022-11-28 22:01:10 -03:00
Chi-Hsuan Huang 1339586ab0
Surface Amazon Pay as "Additional Payment Options" for UK/EU/JP (#35726)
* Update payment rules to surface amazon pay as "Additional Payment Options" for UK/EU/JP

* Add changelog
2022-11-29 06:30:10 +08:00
Roy Ho 59a17b1b56
Deb/assets cleanup (#35748)
* Add assets clean up to build:zip

* Add changelog file
2022-11-28 12:18:10 -08:00
Mostafa Soufi 487e7d0031
Fix deprecated error in PageController (#35648)
* Fix deprecated error in PageController

* Add changelog

* Update plugins/woocommerce/changelog/2022-11-24-08-07-11-448089

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>

* Update plugins/woocommerce/src/Admin/PageController.php

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>

* Update plugins/woocommerce/changelog/2022-11-24-08-07-11-448089

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2022-11-28 11:12:25 -08:00
Kathy 185d3337ca
Introduce woocommerce_order_applied_coupon hook (#35616)
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
Closes https://github.com/woocommerce/woocommerce/issues/34473
2022-11-28 16:19:33 +01:00
Jamsheer 9fabda744a
Modified get_wp_plugin_id() (#35727)
* Modified get_wp_plugin_id()

* Changelog.

* Use strict comparison per project coding standards.

Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2022-11-25 16:22:11 -08:00
Maikel David Pérez Gómez 3857b51f30
Fix price field currency symbol position (#35718)
* Currency symbol is fixed on the left side of the price input field

* Currency symbol has a different color from the input field value (Gutenberg-700)

* Input value is aligned right

* On focus, we highlight the field's content so the user can quickly clear or overwrite the placeholder text

* On focus, the user can press the up and down arrow keys to increase or decrease the value by 1

* Add changelog

* Remove unnecesary stepUp function
2022-11-25 11:48:18 -03:00
Maikel David Pérez Gómez 410f06b8c8
Add a blank space between the emoji and the message within a notice popup (#35698)
* Add a blank space between the emoji and the message within a notice popup

* Apply comment suggestions

* Remove duplicated text in the snackbar message after publishing a product
2022-11-25 10:21:22 -03:00