Commit Graph

11893 Commits

Author SHA1 Message Date
RJ 773baea857
fix: cys design with ai duplicate color validation (#40670) 2023-10-11 13:41:34 +08:00
Ilyas Foo 1b18634ad3
Fix CYS font pairing issues (#40668)
* Remove invalid text parameter used to optimize loaded font

* Fix preview not loading the heading and text font families

* Changelog
2023-10-11 13:40:08 +08:00
Alejandro López Ariza a1f180da2c
Update stable tag to 8.2.0 (#40682)
woorelease: Update stable tag to 8.2.0
2023-10-11 00:07:46 +02:00
Jon Lane ff4645875e Add changelog 2023-10-10 14:22:12 -07:00
Jon Lane c2c85c9d88 Delete onboarding.js 2023-10-10 14:17:56 -07:00
Maikel David Pérez Gómez e0a138b27b
Complete General tab for Single Variation page (#40633)
* Add description to the Variation details section

* Add Image section block to the Single Variation page

* Add support to the checkbox block for changing non boolean properties and extend it to use the entity context

* Register the product-variation-visibility block into the ProductVariationTemplate

* Null is a valid value but not updafined

* Fix type definitions

* Add changelog files

* Fix linter errors

* Add changelog file

* Change onValue and offValue for checkedValue and unchackedValue for the checkbox block to avoid event naming conflicts

* Set multiple value dynamically into the media uploader component

* Prevent uploading multiple files when multiple is set to false

* Remove cover label when multiple is set to false

* Fix DropZone min height in Image section

* Fix rebase conflict

* Fix linter error
2023-10-10 09:42:26 -04:00
louwie17 98876f54d9
Add pricing tab for variations (#40642)
* Update blocks with postType context

* Add tax class

* Pass context into get_tax_class

* Add parent option

* Add changelog

* Update changelog

* Add isRequired attribute to regular price block for use in variations

* Add additional condition to avoid error in date time picker

* Add changelog

* Fix lint errors
2023-10-10 08:55:05 -03:00
Corey McKrill 914a1dfd09
Update mobile app onboarding modal to focus on app installation (#40559) 2023-10-09 16:00:50 -07:00
sanesh-acowebs 1c711eeb16
Updated possibly_schedule_import function to return order id (#35743)
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2023-10-09 12:06:59 +02:00
nigeljamesstevenson 2731c41268
Remove OBW end to end tests (#40256) 2023-10-09 10:16:49 +01:00
Chris Runnells e14086eef1
Update recommended themes for Customize Your Store (#40650)
* Update theme properties

* Fix theme array properties

* Update filtered urls to use admin_url() instead of home_url()

home_url() is used for front-end requests; admin_url() should be used for wp-admin urls

* Remove "valid" theme check

* Slight tweak to the color palette values

The theme showcase actually uses some more complex logic to pick two out of the 5 colors to represent the theme. We could probably manually copy these as two values instead of what I'm doing here.

* Removed unused color palette values

Really this is probably the simpler approach. Might revisit this later. Also added a total_palettes value so we can track that and show "+X" in the theme preview

* Add extra palettes number

If there are more than 4 palettes, we'll show the number of extras as we do in the WP.com theme showcase.

* Tighten gap between theme name and type

There was too large of a bottom margin on the theme info div.

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

* Fix lint

* Remove allowed_theme check from activate_theme api

* Fix tests

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2023-10-09 02:45:04 -05:00
RJ b436d40be3
add: CYS task-completed intro flow (#40616)
* add: UI work for task completed flow

* added spinner for intro page loading

* add: save ai generated theme id to options

* resolve rebase conflict

* fixed tests
2023-10-09 13:19:08 +08:00
Christopher Allford 1c30563ffc
Separate PHP and JS Unit Tests (#40639)
Since some projects might have both kinds of tests we are
going to have a `test:php` and a `test:js` script for each.
2023-10-06 15:41:47 -07:00
Jon Lane 0d38de6a20 Changelog 2023-10-06 13:57:37 -07:00
Jon Lane 7091ac3d9a Skips tests as they’re only designed to run in wp-env 2023-10-06 13:51:30 -07:00
Moon e7711f1a50
Skip combining translation files without comment.reference (#40623)
* Skip invalid translation format

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-10-06 13:33:37 -07:00
Jon Lane 67e78507e7 Remove onboarding helpers 2023-10-06 13:32:33 -07:00
Jon Lane 8d2496ca33 Merge branch 'trunk' into e2e/remove-obw-tests 2023-10-06 11:14:23 -07:00
Maikel David Pérez Gómez d1656e12e5
Add Shipping tab to the single variation page (#40637)
* Fix shipping blocks ids into ProductVariationTemplate

* Add support to postType context to product-shipping-class-field block

* Add support to postType context to product-shipping-dimensions-fields block

* Add changelog files
2023-10-06 13:47:45 -04:00
Maikel David Pérez Gómez 5d97297c89
Add Inventory tab to the single variation page (#40636)
* Remove advance section from the inventory section in the ProductVariationTemplate

* Add support to postType context to product-sku-field block

* Add support to postType context to product-toggle-field block

* Add support to postType context to product-inventory-quantity-field block

* Add support to postType context to product-radio-field block

* Fix inventory blocks ids into ProductVariationTemplate

* Add changelog files
2023-10-06 13:45:27 -04:00
nigeljamesstevenson e57cb30e31
Check first element on the page (#40423) 2023-10-06 18:11:59 +01:00
Nathan Silveira 129f11df9e
Create woocommerce/product-number-field block (#40619)
* Add initial structure for number block

* Add more attributes and remove currenty formatting

* Add changelog

* Refactor

* Add readme

* Remove unused import

* Add changelog

* Use 'formatNumber' and 'parseNumber' functions from useProductHelper hook

* Use 36px default size

* Fix README
2023-10-06 16:21:33 +00:00
Leif Singer c7dbd8a4e1
Tweak flaky meta data save test (#40457) 2023-10-06 11:42:38 +02:00
And Finally c8346b70d3
Marketplace search view more button & categories 2 (#40617) 2023-10-06 09:56:05 +01:00
Chi-Hsuan Huang 6ce8199e97
[Customize Your Store] Add "Inter + Inter" font pairing & Set default font pairing (#40611)
* Add Inter + Inter font pairing

* Set default font pairing

* Add changelog
2023-10-06 03:53:52 -05:00
And Finally a60f0ab23f Changes from https://github.com/woocommerce/woocommerce/pull/40375. Adding "View all" button to in-app marketplace search results. 2023-10-06 09:17:56 +01:00
Jonathan Lane 76cc38d7bd
A few fixes for API daily test execution (#40180)
* Make check conditional

* Changelog

* Refactor based on PR feedback

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-10-06 08:25:15 +02:00
Jaclyn Chen 6a3a94ee42 Fit mobile app modal height to content with a max height that's taller than the default modal guide. 2023-10-06 13:36:14 +08:00
berislav grgičak 5c7698a9ad
Fix marketplace tab reset state (#40601) 2023-10-06 07:13:01 +02:00
Jaclyn Chen 9a30b9aaef Replace mobile static QR code SVG with `QRCodeSVG`. 2023-10-06 09:42:52 +08:00
Jaclyn Chen 1e454cf8fb Add `qrcode.react` for a React component that displays a QR code also used in Calypso. 2023-10-06 09:34:47 +08:00
Corey McKrill a0f427364b
Add notices about the removal of the Legacy API in WooCommerce 9.0 (#40535)
More info: https://developer.woocommerce.com/2023/10/02/the-legacy-rest-api-will-move-to-a-dedicated-extension-in-woocommerce-9-0/
2023-10-05 17:26:01 -07:00
Corey McKrill a55b05163d
Update plugins/woocommerce/includes/admin/settings/class-wc-settings-advanced.php 2023-10-05 15:25:11 -07:00
Corey McKrill 2ac0c6728c
Update plugins/woocommerce/includes/admin/class-wc-admin-notices.php 2023-10-05 15:24:54 -07:00
Maikel David Pérez Gómez a918e79093
Setup the product editor to support the product variation (#40605)
* Initial changes needed to get product variation to load in its own form

* Allow the publishing of an individual variation

* Address some PR feedback and do some general cleanup

* Update template with new attribute name

* Add changelogs

* Update label of note field and allow for optional param in summary block

* Remove helpText in variation note field

* Fix PHP lint errors

* Make editor type more abstract

---------

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2023-10-05 15:27:54 -03:00
Moon a99a52947e
Use themes REST API - CYS intro page (#40552)
* Use themes REST API

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

* Use browse_all.href and set default value to /:admin-dir/themes.php

* Fix lint

* Fix tests

* Fix tests

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2023-10-05 08:33:50 -05:00
Chi-Hsuan Huang fbb294f543
[Customize Your Store] Fix preview opacity style does not reset after saving changes (#40612)
* Reset highlighted block index after saving

* Add changelog
2023-10-05 07:39:24 -05:00
Chi-Hsuan Huang 06ea7ae24a
[Customize your store] Fix site preview in transitional screen (#40588)
* Replace mshot image with preview editor frame in transitional screen

* Add changelog

* Fix test

* Use current xstate to check if it is transitional page
2023-10-05 07:36:08 -05:00
Patricia Hillebrandt f0cf1f480c
Store Customization > Update the Homepage Templates list. (#40602) 2023-10-05 10:28:51 +02:00
Nestor Soriano 10d6366ff1
Don't show the notices if the dedicated extension is already active. 2023-10-05 09:48:19 +02:00
Panos (Panagiotis Synetos) 643a70e65c
Use fallback color for select2 fields on non WooCommerce pages (#40586) 2023-10-05 10:32:42 +03:00
Patricia Hillebrandt 193c410614 Add changelog 2023-10-05 08:58:06 +02:00
Chi-Hsuan Huang 6d14eb744e
[Customize Your Store] Correct activeThemeHasMods conditionals (#40560)
* Fix activeThemeHasMods logic

* Add changelog
2023-10-04 22:42:05 -05:00
Jaclyn Chen 780c5216b5 Increase the QR code dimension from 100x100 to 150x150 for better visibility. 2023-10-05 10:19:47 +08:00
Jonathan Lane c0f2e69191
Delete plugins/woocommerce/changelog/pr-40466 (#40603) 2023-10-04 11:34:42 -07:00
github-actions 187e6f301c Add changefile(s) from automation for the following project(s): woocommerce 2023-10-04 19:57:23 +02:00
Bero 806e554a14 Abort content requests before new request 2023-10-04 19:57:11 +02:00
Bero a8cf772aaf Reset url state on tab click 2023-10-04 19:57:04 +02:00
Patricia Hillebrandt 5da7f24eea Update the Homepage Templates list. 2023-10-04 19:49:45 +02:00
Kyle Nel d8adecf783
Marketplace Themes: Feature Branch (#40159)
* Support for themes in in-app marketplace.

Contains the changes from:

https://github.com/woocommerce/woocommerce/pull/40247
https://github.com/woocommerce/woocommerce/pull/40272
https://github.com/woocommerce/woocommerce/pull/40302
https://github.com/woocommerce/woocommerce/pull/40303
https://github.com/woocommerce/woocommerce/pull/40333
https://github.com/woocommerce/woocommerce/pull/40368
https://github.com/woocommerce/woocommerce/pull/40375
https://github.com/woocommerce/woocommerce/pull/40375
https://github.com/woocommerce/woocommerce/pull/40389

* `.woocommerce-marketplace__discover`: changed `align-items` `flex-start` to `stretch` to properly display products on large and very large viewports.

* Delete plugins/woocommerce/changelog/add-18026-marketplace-theme-cards

Removing from feature branch before final review

* Delete plugins/woocommerce/changelog/add-18027-themes-to-in-app-search

Removing from feature branch before final review

* Delete plugins/woocommerce/changelog/add-marketplace-theme-discover-section

Removing from feature branch before final review

* Delete plugins/woocommerce/changelog/update-in-app-multiple-category-filters

Removing from feature branch before final review

* Delete plugins/woocommerce/changelog/update-theme-no-result-style

Removing from feature branch before final review

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

---------

Co-authored-by: And Finally <andfinally@users.noreply.github.com>
Co-authored-by: Dan Q <dan@danq.me>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Dan Q <danq@automattic.com>
2023-10-04 18:59:34 +02:00
Nathan Silveira 793e4a821d
Split product editor blocks into separate directory structures (#40571)
* Create 'generic' and 'product-fields' and separate blocks between the two

* Refactor 'BlockRegistry' to include new directory structure

* Increment README

* Add param documentation

* Add changelogs

* Lint markdown

* Add block directory doc

* Fix jest test

* Update handbook reference
2023-10-04 13:51:25 +00:00
RJ 246b9a5c76
fix/cys intro refactor banner (#40561)
* tests

lint

* refactor cys intro banner

* refactor cys intro modal

* changelog

* fix banner classname
2023-10-04 20:24:51 +08:00
Nestor Soriano 0533ad40af
Improve the TODO comments in the admin notice add and remove methods 2023-10-04 11:26:29 +02:00
Nestor Soriano 3a07007b40
Update the text in the admin notice 2023-10-04 11:03:18 +02:00
Panos (Panagiotis) Synetos e5e1345e8f
Use fallback color for select2 fields on non WooCommerce pages 2023-10-04 12:02:32 +03:00
Néstor Soriano 428e1478fc
Update the text in the warning next to the setting
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2023-10-04 10:48:36 +02:00
Jaclyn Chen 1235376ef0 Add changelog. 2023-10-04 14:41:45 +08:00
Jaclyn Chen fbd0ce2490 Remove unused import. 2023-10-04 14:41:35 +08:00
Chi-Hsuan Huang 7918e1ee5c
[Customize Your Store] Retain unsave changes and save all when users click the "done" button (#40541)
* Retain unsave changes and save all the unsaved when users click the "done" button

* Add changelog

* Update save hub
2023-10-04 12:16:41 +08: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
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
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
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
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
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
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
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
Moon 0091fada88
Remove homepage template prompt logic (#40476)
* Remove homepage template prompt

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

* Set template1 for the default homepageTemplate

* Fix lint error

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-29 19:39:34 -07:00
Moon 4798829bbd
CYS -- Intro design updates (#40503)
* Update intro banner background image

* Remove unused graphic

* Add site icon and title

Also updated the intro banner background CSS

* Fix typo

* Remove assembler hub button -- not used here

* Fix image pos and import the correct image

* Change banner to offline when the user network goes offline

* CSS fixes

* Redirect to users to themes.php on Browse all themes clicked

* Change banner text, title, and button text depending on the network and jetpack status

* Add active theme design -- still needs API to get the active theme

* Add color variations

* Update info card margin

* Update info card margin

* Separate out ColorPalettes component

* Separate out ThemeCard

* Update site-title font color

* Update margin between banner p and button

* Update theme card row-gap

* Remove use of color palette border color

* Lint fixes

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

* Fix errors after rebase

---------

Co-authored-by: Chris Runnells <chris.runnells@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2023-09-29 17:17:36 -07:00
Moon 4d41109ca2
Customize Store -- Show warning modal when the active theme has mods (#40362)
* Add new context values

* Implement design with A.I change warning modal

* Add count-active-theme-mods endpoint

* Add count-active-theme-mods selector in the frontend

* Set mods_count correctly

* Fetch activeThemeHasMods and customizeStoreTaskCompleted

* Use activeThemeHasMods and customizeStoreCompleted

* Add changefile(s) from automation for the following project(s): @woocommerce/data, woocommerce

* Use correct APIs to check  template, pages, and styles modifications

* Fix hasModifiedPages resolve error

* Assign hasErrors on fetchIntroData errors

* Add changefile(s) from automation for the following project(s): @woocommerce/data, woocommerce

* Ignore TS error

* Fix css lint errors

* Fix broken test

* Fix broken test

* Revert changes -- no longer needed

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-29 16:03:50 -07:00
Leif Singer e06f674288
Support using category_id and tag_id in wc_get_product() (#40436)
* Support using category_id and tag_id in wc_get_product()

* add changelog file

* add unit tests for searching products by category slug, category id, tag slug, and tag id

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

* remove the `unset` for `category_id`

* appease the linter

* rename tag_id to product_tag_id so that we don't interfere with WordPress's native use of tag_id

* rename category_id to product_category_id for consistency

---------

Co-authored-by: helgatheviking <507025+helgatheviking@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
2023-09-29 11:06:57 -07:00
Maikel David Pérez Gómez 0c7d01bc8e
Fix the form background color (#40515)
* Remove gray background on product editor page and fix wrong visible scroll

* Add changelog file

* Fix linter errors
2023-09-29 14:32:35 -03:00
Fernando Marichal 53e53c9a63
Remove extra quotes in block editor template (#40490)
* Remove extra quotes

* Add changelog
2023-09-29 09:41:42 -03:00
Dan Q 470be80dce Merge branch 'add/wccom-18292-cache-marketplace-results' of https://github.com/woocommerce/woocommerce into add/wccom-18292-cache-marketplace-results 2023-09-29 11:09:39 +01:00
Dan Q d06c6b7c13 Various backflips to specify object types for TypeScript 2023-09-29 11:09:29 +01:00
github-actions db56a8837b Add changefile(s) from automation for the following project(s): woocommerce 2023-09-29 10:04:27 +00:00
Dan Q 5959ecee7f Prettier code layout 2023-09-29 11:02:48 +01:00
Dan Q b0b2afd26d Linter appeasement 2023-09-29 11:02:19 +01:00
Chi-Hsuan Huang 79442edf1d
[Customize Your Store] Add track events to intro page (#40484)
* Add tracks to cys intro page

* Add changelog
2023-09-29 15:44:22 +08:00
barryhughes 5043a1b597 Add docs manifest. 2023-09-28 22:53:32 -07:00
RJ ceb5f942ea
fix: cys assembler font loading optimisations (#40458)
* fix: cys assembler font loading optimisations

* lint
2023-09-29 13:20:29 +08:00
Chi-Hsuan Huang 4ac861d94c
[Customize your store] Make the frame not navigable for the MVP (#40431)
* Make the frame not navigable for the MVP

* Add changelog
2023-09-29 11:38:25 +08:00
Néstor Soriano 73c90bd3b1
Fix: HPOS keeping disabled when the database tables were created via enabling the setting (#40466)
* Fix: when the HPOS tables are created, HPOS was always disabled.

After the fix HPOS will be disabled only if the creation of the
tables fail. Additionally, failure to create the tables will be logged.

* Add changelog file
2023-09-28 14:59:39 -07:00
Fernando Marichal ec61afd387
Remove "Feeling Stuck" tooltip (#40397)
* Remove "Feeling Stuck" tooltip

* Add changelog
2023-09-28 15:49:11 -03:00
Dan Q 5e34eb4c78 Enable apiFetch to use cache too 2023-09-28 17:14:02 +01:00
Dan Q 68d9fcff03 Remove debug code 2023-09-28 17:11:57 +01:00
Dan Q 4742270522 Remove debug code 2023-09-28 17:10:22 +01:00
Dan Q b70d60414a Remove debug code 2023-09-28 17:10:10 +01:00
Dan Q f90dde0b06 Add fetchCache pruning 2023-09-28 17:05:51 +01:00
Dan Q 1c1f36c7d0 Happier TS types 2023-09-28 16:11:38 +01:00
Dan Q d4f54bfeb8 Remove unused type 2023-09-28 16:11:13 +01:00
Dan Q 5442ccd065 Appease linter 2023-09-28 16:10:51 +01:00
Dan Q 6ffdda2ff7 Better indentation 2023-09-28 16:09:44 +01:00
Dan Q b050266d61 Better linefeeds 2023-09-28 16:09:37 +01:00
Dan Q 1252324ee2 Better indentation 2023-09-28 16:09:18 +01:00
Dan Q 96532b8fcf Move extensions search into functions, and add fetchJsonWithCache wrapper 2023-09-28 16:06:30 +01:00
Joni Erkkilä 8ebef5f928
Updated link href attribute in new product editor on "How to prepare images" section (#39179)
* Updated link href attribute

* Added changelog file
2023-09-28 11:29:15 -03:00
Matt Sherman e65c5dbef4
Add README.md files for BlockTemplates and ProductTemplates (#40425)
* Initial BlockTemplates readme

* Fix code docs in SectionInterface

* Fix code docs in GroupInterface

* BlockTemplates README.md updates

* ProductTemplates README.md updates

* Changelog

* Update reference to handbook.

* Markdown linting: Allow the same headings under different nesting

* Add missing method headers

* Update Usage section of BlockTemplates README to be more clear

* Import BlockInterface in examples
2023-09-28 09:49:45 -03:00
Jorge A. Torres 3cfa509118
Correctly set 'created_via' for HPOS orders created on the admin (#40469) 2023-09-28 13:01:09 +02:00
Yordan Soares 82ddee70a5
Remove "soberano" from the VES currency name (Venezuelan bolívar) (#40424)
Co-authored-by: Leif Singer <github.2017@singer.sh>
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2023-09-28 10:37:08 +02:00
Chi-Hsuan Huang 6d52afa5e9
Handle CYS ai wizard API failures (#40430)
* Add error notice

* Handle api call loader errors

* Add docs

* Add changelog

* Fix untranslated text
2023-09-28 11:15:38 +08:00
Barry Hughes 508b2d1615
Fixes typo mistake in coupon error message (#35110) 2023-09-27 16:41:21 -07:00
Tarun Vijwani 39662af248
Update WooCommerce Blocks to version to 11.2.0 (#40473)
Update WooCommerce Blocks to 11.2.0
2023-09-27 15:45:59 -05:00
Matt Sherman 1e35d45c99
Template API: Expose template block id and order to client (#40263)
* Update unit tests to handle _templateBlockId and _templateBlockOrder

* Refactor get_formatted_template

* Initial @woocommerce/block-templates package

* Add block-templates to admin webpack

* Add block-templates to dependency-extraction-webpack-plugin

* Add block-templates to admin assets

* Add block-templates dependency

* Update name block

* Update syncpack

* Update regular price block

* Update tab block

* Update section block

* Add @wordpress/deprecated to package

* Deprecated initBlock

* Update attributes block

* Update catalog visibility block

* Update checkbox block

* Update conditional block

* Update collapsible block

* Allow additional props to be passed to useWooBlockProps

* Update inventory sku block

* Update inventory quantity block

* Update inventory email block

* Update images block

* Update description block

* Update radio block

* Update pricing block

* Update password block

* Update notice block

* Update shipping dimensions block

* Update shipping class block

* Update schedule sale block

* Update sale price block

* Update toggle block

* Update taxonomy block

* Update tag block

* Update summary block

* Update variations block

* Update variations options block

* Update variation items blocks

* Changelog

* Changelog

* Changelog

* Changelog

* Changelog

* Add test for registerWooBlockType

* Add @testing-library/react-hooks to devDependencies

* Add test for useWooBlockProps

* Document API

* Fix linting issues in README.md

* Fix tabs tests by mocking useWooBlockProps

* Allow header duplication under different nesting

* Remove unused import (fixes lint error)

* Update lock file
2023-09-27 13:38:56 -07:00
louwie17 88ead8f672
Add E2E test to check if all blocks render correctly in product editor (#40358)
* Add E2E test to check if all blocks render correctly in product editor

* Add changelog

* Fix matcher for warning
2023-09-27 13:03:13 -03:00
Jonathan Lane 5b06aace54
Allow e2e tests to use dotfiles for configuration (#40361)
* Allow e2e tests to use dotfiles for configuration

* Fix lint errors

* Fix lint errors

* Linter strikes again

* Again

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-09-27 07:35:06 -07:00
Jonathan Lane 2c0a060cd2
Update Playwright to 1.38 (#40418)
* Update Playwright from 1.37.1 to 1.38.0

* Add changelog

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-09-27 07:34:33 -07:00
RJ 858fdecc52
fix: cys site assembler color palette persistence bug (#40396)
Fix the bug where sometimes switching from user defined color palettes to a pre-defined color palette won't set some colors.
2023-09-27 16:27:04 +08:00
Corey McKrill c752c60fd4
HPOS: Add background sync (#39952)
* HPOS: Add a recurring event to check for unsynced orders

Adds an event that will get scheduled when HPOS data sync gets enabled.
The event will run every 6 hours and check for unsynced orders. If it
finds any, it will queue up the  data syncing batch processor.

Fixes #39626

* Add button to sync orders immediately

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

* Wrap AS function calls to avoid errors in unit tests

* Use WC_Queue methods instead of AS functions

* Add a filter to customize the sync check time interval

* Ensure retrieved pending sync count is not a cached value

* Change sync button style to link

* Formatting fixes

* Fix unit test

* Add BatchProcessingController dependency to DataSynchronizer

* Add background sync functionality to DataSynchronizer

* Tweaks to watchdog scheduling in batch processor

* Adds a filter to modify the amount of time the watchdog schedule
  gets delayed when calling the scheduler using `$with_delay`
* Adds a check to ensure the scheduler doesn't overwrite an existing
  scheduled event. This is because the scheduler was getting called
  multiple times in a request, first without `$with_delay` (so the event
  would run right away) and then again with `$with_delay`, so that the
  event would then be delayed by an hour. The result was that the event
  was always scheduled for an hour later, even when we want it to run
  right away.

* Improve query arg for running sync via UI

* Remove sync check from COTController, add message about background sync

* Abstract the removal of background sync events

* Remove accidental test code

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

* Ensure bg sync event is not scheduled when in continuous mode

* Add missing @since comments on new filter hooks

* Add caching to check for scheduled bg sync events

* Use constants for bg sync modes

* Add unit tests

* Switch from init hook to shutdown

* Switch bg sync settings from filters to options

* Update unit tests

* phpcs fix

* Tweak "Background sync is enabled" message

Only show this if it is enabled while real-time sync is disabled.
Otherwise the message could be confusing to users who just check the
"Compatibility mode" box, since background sync doesn't have any UI.

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-27 10:14:23 +02:00
Ron Rennick 4ee6eb7ce3 update project labeler workflow configuration labels 2023-09-27 05:03:21 -03:00
barryhughes 15f5d51e4d Changelog. 2023-09-26 13:22:38 -07:00
daniyal.ahmad1992@gmail.com 4ab577b691 Fixes typo mistake in coupon error message
Closes #34889
2023-09-26 13:22:38 -07:00
jonathansadowski 58740c8ac7
Update stable tag to 8.1.1 (#40442)
woorelease: Update stable tag to 8.1.1
2023-09-26 12:53:16 -05:00
Chi-Hsuan Huang 94660e0476
[Customize Your Store] Fix AI selected verticals not display (#40372)
* Handle store patterns update API request properly

* Full redirect to Assembler hub after ai loading

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-09-26 20:34:47 +08:00
RJ bf80b7a534
add: use ai suggestions to populate color schemes in assembler hub (#40377) 2023-09-26 11:32:14 +08:00
Maikel David Pérez Gómez cf58e827b0
Add missing help texts to sections in the Variations tab (#40415)
* Add description to Variation options and Variations sections

* Add changelog file
2023-09-25 21:40:40 -04:00
Jon Lane 9af1245d04 Add changelog 2023-09-25 15:57:16 -07:00
Jon Lane 7a303f259c Check first element on the page 2023-09-25 15:53:18 -07:00
Veljko V f9e05f620f
Add new E2E tests to cover Shopper Mini Cart (#40380)
* Add new E2E tests to cover Shopper Mini Cart

* Update test not to look for tax label and to check for 2 quantity price
2023-09-25 15:29:45 -07:00
louwie17 48834f88be
Add global attribute terms filtering (#40253)
* Deprecate local_attributes and add attributes filter to variation endpoint

* Add test for variations attributes filter

* Add changelog
2023-09-25 16:10:38 -03:00
github-actions[bot] 1ca1536b31
Delete changelog files based on PR 40334 (#40413)
Delete changelog files for 40334

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-09-25 13:57:47 -05:00
github-actions[bot] d5fcd214c4
Delete changelog files based on PR 40282 (#40408)
Delete changelog files for 40282

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-09-25 11:36:12 -07:00
github-actions[bot] d1edec6331
Delete changelog files based on PR 40355 (#40406)
Delete changelog files for 40355

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-09-25 13:26:17 -05:00
github-actions[bot] 15c9415ace
Delete changelog files based on PR 40367 (#40404)
Delete changelog files for 40367

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-09-25 13:20:17 -05:00