Commit Graph

54364 Commits

Author SHA1 Message Date
Matt Sherman b51b652ebd Signed number tests 2023-10-03 19:23:39 -04:00
Matt Sherman d82737fb81 Implement unary expressions 2023-10-03 19:13:56 -04:00
Matt Sherman 6237c8caea Refactor logical expressions and implement equality expressions 2023-10-03 19:04:46 -04:00
jonathansadowski e8df6a634e
Add CFE label to cherry-picks via workflow (#40570)
add CFE label to cherry-picks
2023-10-03 16:00:17 -05:00
Moon 92eb4efd9d
Remove background, primary_border, secondary_border from the API sche… (#40553)
* Remove background, primary_border, secondary_border from the API schema -- they are not used

* Add changefile(s) from automation for the following project(s): woocommerce

* Fix lint

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-10-03 13:48:23 -07:00
github-actions[bot] 04bcc4a315
Delete changelog files based on PR 40469 (#40579)
Delete changelog files for 40469

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-10-03 13:28:57 -07:00
github-actions[bot] 6526c1cc17
Delete changelog files based on PR 40551 (#40577)
Delete changelog files for 40551

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-10-03 13:11:32 -07:00
Matt Sherman a5fec1fa6e Extract OR and AND operators 2023-10-03 15:43:40 -04:00
Barry Hughes 798d8d318c
Add docs manifest. (#40507)
This was generated 'manually', however the end goal is to add automations (probably via GH Actions) to regenerate the manifest as and when needed.
2023-10-03 11:33:48 -07:00
Matt Sherman e9180206b0 String literals 2023-10-03 13:56:45 -04:00
And Finally 60c41cd9a0
Marketplace: Fix the Marketplace header being invisible after viewing other WC Admin pages. (#40562) 2023-10-03 17:48:06 +01:00
github-actions 44f76f69f9 Add changefile(s) from automation for the following project(s): woocommerce 2023-10-03 17:11:21 +01:00
raicem 228084cb7c Marketplace: Change the way we space out heading and content area
Previous method caused issues when you go from WooCommerce > Home to
WooCommerce > Marketplace. The header was going missing on the
Marketplace page.
2023-10-03 17:11:21 +01:00
And Finally b3cd93e0bf
Omit WooCommerce plugin from the list of Woo extensions in Helper (#40549) 2023-10-03 16:42:44 +01:00
Nathan Silveira 00d14debd4
Create woocommerce/product-text-field block (#40337)
* Add new block woocommerce/product-input-field

* Add required attribute

* Add 'required' validation

* Add validationRegex attribute

* Add changelog

* Use existing meta_data field

* Add validationErrorMessage attribute

* Rename block

* Rename path

* Create 'useMetaEntityProp' hook

* Add changelog

* Add comment to translators

* Rename init function

* Add minLength and maxLength attributes

* Fix wrong copied line

* Fix typescript issues

* Refactor hook to use property name instead of isMeta boolean

* Rename hook

* Add tests to useProductEntityProp

* Fix bug: the meta property shouldn't contain "meta_data."

* Implement code review suggestions

* Use 'useWooBlockProps' hook
2023-10-03 15:12:07 +00:00
Chi-Hsuan Huang 1b9375b779
Fix core editor store available in classic (#40557)
* Remove wp-editor dependency if we're not on a customize store page

* Add changelog

* Update WCAdminAssets.php

* Add WC_ADMIN_APP === $script check
2023-10-03 22:47:40 +08:00
And Finally 9bcef3a015 Addressing linter issues. Hook comment. 2023-10-03 15:25:44 +01:00
And Finally db8dede036 Added condition to skip WooCommerce product 18734002369816 from the list of Woo extensions. The Woo release team uses this product to distribute the Woo AF release (pcShBQ-14K).
Restored `woocommerce_show_addons_page` filter, which is used to add or not add the Extensions menu item.

Changed the method we use to hide the extra Extensions submenu item we add to WooCommerce as a temporary measure, to ensure the My Subscriptions page still works. Using the superior `hide_submenu_page` method borrowed from Jetpack.
2023-10-03 15:09:47 +01:00
Nathan Silveira bda564ad67
Add reusable blocks documentation for remaining blocks (#40521)
* Add documentation for woocommerce/product-radio-field

* Update woocommerce/product-taxonomy-field documentation

* Rename checkbox section for consistency

* Edit pricing attribute name for consistency

* Add documentation for woocommerce/product-pricing-field

* Add 'conditional' documentation

* Update README.md

* Add usage text

* Add documentation to collapsible

* Fix details across all readmes

* Add changelog

* Try adding video html tag

* Allow video html tag

* Fix wrong position in doc

* Rename 'name' to 'property' on InputControl props

* Fix mistake in label position
2023-10-03 12:49:46 +00:00
Fernando Marichal e224445bf6
Add missing Tracks events to attribute modals (#40517)
* Add tracks events

* Add remove icon recording

* Add tracking to new product modal

* Add changelog

* Remove not used `recordEvent`
2023-10-03 08:26:39 -03:00
Néstor Soriano cd9949c664
Add changelog file 2023-10-03 13:25:15 +02:00
Nestor Soriano 1f0e952314
Add notices about the removal of the Legacy API in WooCommerce 9.0
- A permanent notice in Settings - Advanced - Legacy API

- A dismissable admin notice only if the Legacy API is enabled
  (disappears if it gets disabled)
2023-10-03 13:25:10 +02:00
Alexandre Beaujour 07a178760f
FIX strtotime(): Passing null to parameter #1 () of type string is deprecated PHP 8 (#40533)
* strtotime(): Passing null to parameter #1 () of type string is deprecated PHP 8

* feedback more succinctly

* generate changelog

* use suggested change

* add indentation
2023-10-03 11:16:23 +01:00
Corey McKrill b9bfbcdc42
HPOS Features: Revert to one feature (#39525)
Co-authored-by: Vedanshu Jain <vedanshu.jain.2012@gmail.com>
2023-10-03 11:34:41 +02:00
Jaclyn Chen e4900d7d4c Rename app installation views to be consistent with the similar Jetpack component/page. 2023-10-03 16:19:15 +08:00
Jaclyn Chen 6e7a54e5f9 Remove redundant case when Jetpack is not installed/connected. 2023-10-03 16:15:59 +08:00
Jaclyn Chen 367d6ef31a Extract mobile installation view to a component, and show it in the installation page and Jetpack installed page with style tweaks. 2023-10-03 16:13:42 +08:00
Jaclyn Chen 5b57f07e32 Simplify modal state by removing wrong user connected case and show the installation info page by default. 2023-10-03 16:13:42 +08:00
Jaclyn Chen 0d62b35900 Show mobile app installation QR code when the site is not Jetpack connected. 2023-10-03 16:13:42 +08:00
Chi-Hsuan Huang a9c8486b53
[Customize Your Store] Switch Theme to TT3 (#40486)
* Switch theme to TT3 during cys loading screen

* Add changelog

* Revert changes

* Add doc

* Bring theme_switch_via_cys_ai_loader logic to cys task

* Remove unused imports
2023-10-03 15:41:48 +08:00
RJ 6a0fb11a74
fix: refactored use-network-status (#40542)
* fix: refactored use-network-status

* Add changefile(s) from automation for the following project(s): woocommerce

* fix: renamed event handlers appropriately

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-10-03 09:56:13 +08:00
Matt Sherman 32964d8556 Null, boolean, and numeric literals 2023-10-02 20:50:59 -04:00
Barry Hughes 0048341046
Do not override pagination args if `woocommerce_hpos_pre_query` doesn't override query (#40551) 2023-10-02 17:10:46 -07:00
Matt Sherman f6ee58a4ce Change case of grammar rules 2023-10-02 19:58:02 -04:00
Fernando Marichal 2e74ab84e8
Fix dropdown and list behavior in attributes variation modals (#40496)
* Fix selectors alignment

* Modify icon

* Hide placeholder when an item has been selected

* Fix methods

* Add changelog
2023-10-02 17:18:05 -03:00
Johan van der Molen ef36c24858
Improve `remove_duplicate_notices` which fixes issue 35005 (#40170)
* Fix issue 35005

* Changelog.

---------

Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2023-10-02 21:52:37 +02:00
Matt Sherman 0f55dff6de Initial grammar 2023-10-02 15:12:44 -04:00
Matt Sherman fcf099b780 Initial @woocommerce/expression-evaluation package 2023-10-02 15:12:30 -04:00
Matt Sherman 0885808c07
Template API: Store edited product in context (#40450) 2023-10-02 15:09:49 -04:00
Jorge Torres 17f81d1089 Add unit test 2023-10-02 19:18:41 +01:00
Jorge Torres 5a9a6ce7b5 Make sure `woocommerce_hpos_pre_query` filter doesn't override pagination args unless used. 2023-10-02 18:54:16 +01:00
barryhughes fb4a48aeb8 Move docs-manifest.json to docs folder. 2023-10-02 09:21:21 -07:00
Sebastian Volland 8a6fcd8b2a
Fix docblock type annotation for return value of `::process_refund`. (#36508) 2023-10-02 16:47:13 +01:00
Jorge A. Torres bae1844458
Trigger `woocommerce_update_order` even when order has no changes (#40516) 2023-10-02 15:16:47 +02:00
Nathan Silveira 1903b3a759
Update Product Editor Handbook (#40514)
* Rename title

* Remove common-tasks section as it's currently made redundant by template API documentation

* Create index for reusable blocks doc

* Update reference to the handbook

* Add references to new documentation to the handbook

* Add changelog

* Update README.md
2023-10-02 12:59:35 +00:00
Chi-Hsuan Huang de1fe1bf96
Fix Customize Your Store UI bugs (#40456)
* Add woocommerce_customize_store_ai_suggestions option to allowed list

* Add z-index=1 to tour-kit close btn to ensure it's clickable

* Fix cys container classname

* Fix color palette border style and frame spinner position

* Fix janky ai loader

* Add changelog

* Fix classname and section header spacing

* Fix cannot save cys logo changes

* Add use-selected-pattern hoook to add selected style to pattern

* Fix opacity preview issue

* Revert interval change

* Add test

* Fix findPatternByBlock

* Fix range input focus style

* Fix lint
2023-10-02 16:28:13 +08:00
Chi-Hsuan Huang 8ce50fb419
Add onboarding theme rest api endpoint stub (#40508)
* Add recommended Themes REST API Endpoint Stub

* Add changelog

* Revert indents

* Fix docs

* Update docs

* Fix lint

* Make filter experimental and add filter when Marketplace Suggestions is disabled
2023-10-02 15:32:27 +08:00
Ron Rennick f73b8a80f6
update project labeler workflow configuration labels (#40454) 2023-09-30 21:38:59 -03:00
Joni Erkkilä e11afdc898 Added changelog file 2023-09-30 16:05:55 +03:00
Joni Erkkilä 30d369adaa Added aria-label to wrapper element 2023-09-30 16:05:40 +03:00