woocommerce/plugins/woocommerce-blocks/patterns
Alba Rincón e2d5175c65 Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997)
* Fix bug, it was always returning {'ai_content_generated':true} even in case of error

* Refactor PatternImages to extract static helper method to PatternImagesHelper and rename to PatternUpdater

* Fix use on patterns

* Update the pattern content using AI as well

* Make API requests in parallel

* Fix prompt and update patterns with generated content

* Return default content if patterns content is empty

* Fix patterns and failed responses

* Add timeout to the request multiple function

* Replace square by landscape

* Remove todo

* Return error on content update error

* Ensure the pattern content exists within the wc_blocks_patterns_content option: if it doesn't exist, fetch the default content from the default dictionary instead.

---------

Co-authored-by: Patricia Hillebrandt <patriciahillebrandt@gmail.com>
2023-09-25 09:48:52 +00:00
..
README.md Consistent Pattern Titles (https://github.com/woocommerce/woocommerce-blocks/pull/9814) 2023-06-21 09:50:12 +02:00
banner.php Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997) 2023-09-25 09:48:52 +00:00
discount-banner-with-image.php Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997) 2023-09-25 09:48:52 +00:00
discount-banner.php Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997) 2023-09-25 09:48:52 +00:00
featured-category-focus.php Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997) 2023-09-25 09:48:52 +00:00
featured-category-triple.php Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997) 2023-09-25 09:48:52 +00:00
featured-products-5-cols.php Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997) 2023-09-25 09:48:52 +00:00
featured-products-fresh-and-tasty.php Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997) 2023-09-25 09:48:52 +00:00
filters.php Consistent Pattern Titles (https://github.com/woocommerce/woocommerce-blocks/pull/9814) 2023-06-21 09:50:12 +02:00
footer-large-dark.php Ensure the My Account text size matches other texts in the footer. (https://github.com/woocommerce/woocommerce-blocks/pull/10614) 2023-08-17 15:04:56 +00:00
footer-large.php Ensure the My Account text size matches other texts in the footer. (https://github.com/woocommerce/woocommerce-blocks/pull/10614) 2023-08-17 15:04:56 +00:00
footer-simple-dark.php Ensure the My Account text size matches other texts in the footer. (https://github.com/woocommerce/woocommerce-blocks/pull/10614) 2023-08-17 15:04:56 +00:00
footer-simple-menu-and-cart.php Add the wc-blocks-footer-pattern class identifier to all patterns (https://github.com/woocommerce/woocommerce-blocks/pull/10542) 2023-08-14 10:02:27 +00:00
footer-simple.php Ensure the My Account text size matches other texts in the footer. (https://github.com/woocommerce/woocommerce-blocks/pull/10614) 2023-08-17 15:04:56 +00:00
footer-with-2-menus-dark.php Add the wc-blocks-footer-pattern class identifier to all patterns (https://github.com/woocommerce/woocommerce-blocks/pull/10542) 2023-08-14 10:02:27 +00:00
footer-with-2-menus.php Add the wc-blocks-footer-pattern class identifier to all patterns (https://github.com/woocommerce/woocommerce-blocks/pull/10542) 2023-08-14 10:02:27 +00:00
footer-with-3-menus.php Add the wc-blocks-footer-pattern class identifier to all patterns (https://github.com/woocommerce/woocommerce-blocks/pull/10542) 2023-08-14 10:02:27 +00:00
header-centered-search-pattern.php Add the wc-blocks-header-pattern class identifier to header patterns. (https://github.com/woocommerce/woocommerce-blocks/pull/10541) 2023-08-11 13:31:49 +00:00
header-essential-dark.php Add the wc-blocks-header-pattern class identifier to header patterns. (https://github.com/woocommerce/woocommerce-blocks/pull/10541) 2023-08-11 13:31:49 +00:00
header-essential.php Add the wc-blocks-header-pattern class identifier to header patterns. (https://github.com/woocommerce/woocommerce-blocks/pull/10541) 2023-08-11 13:31:49 +00:00
header-large-dark.php Add the wc-blocks-header-pattern class identifier to header patterns. (https://github.com/woocommerce/woocommerce-blocks/pull/10541) 2023-08-11 13:31:49 +00:00
header-large.php Add the wc-blocks-header-pattern class identifier to header patterns. (https://github.com/woocommerce/woocommerce-blocks/pull/10541) 2023-08-11 13:31:49 +00:00
header-minimal.php Add the wc-blocks-header-pattern class identifier to header patterns. (https://github.com/woocommerce/woocommerce-blocks/pull/10541) 2023-08-11 13:31:49 +00:00
hero-product-3-split.php Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997) 2023-09-25 09:48:52 +00:00
hero-product-chessboard.php Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997) 2023-09-25 09:48:52 +00:00
hero-product-split.php Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997) 2023-09-25 09:48:52 +00:00
just-arrived-full-hero.php Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997) 2023-09-25 09:48:52 +00:00
no-products-found.php Update the archive templates to use Products block (https://github.com/woocommerce/woocommerce-blocks/pull/8308)Co-authored-by: Alba Rincón <alba.rincon@automattic.com> 2023-02-22 08:24:04 +07:00
product-collection-banner.php Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997) 2023-09-25 09:48:52 +00:00
product-collection-full-grid.php Add pattern chooser in Product Collection (https://github.com/woocommerce/woocommerce-blocks/pull/10876) 2023-09-14 14:19:16 +02:00
product-collection-grid.php Add pattern chooser in Product Collection (https://github.com/woocommerce/woocommerce-blocks/pull/10876) 2023-09-14 14:19:16 +02:00
product-collection-rows.php Add pattern chooser in Product Collection (https://github.com/woocommerce/woocommerce-blocks/pull/10876) 2023-09-14 14:19:16 +02:00
product-collection-simple-grid.php Add pattern chooser in Product Collection (https://github.com/woocommerce/woocommerce-blocks/pull/10876) 2023-09-14 14:19:16 +02:00
product-collections-featured-collection.php Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997) 2023-09-25 09:48:52 +00:00
product-collections-featured-collections.php Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997) 2023-09-25 09:48:52 +00:00
product-collections-newest-arrivals.php Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997) 2023-09-25 09:48:52 +00:00
product-details-listing.php Remove styles from `Product Details Product Listing` pattern (https://github.com/woocommerce/woocommerce-blocks/pull/10362) 2023-07-26 16:12:11 +02:00
product-details-pattern.php Add alt text to images used in patterns describing their purpose (https://github.com/woocommerce/woocommerce-blocks/pull/9788) 2023-06-12 19:34:03 +02:00
product-featured-2-columns.php Remove `queryId` parameter from patterns (https://github.com/woocommerce/woocommerce-blocks/pull/10616) 2023-08-17 09:06:48 +02:00
product-hero-2-col-2-row.php Consistent Pattern Titles (https://github.com/woocommerce/woocommerce-blocks/pull/9814) 2023-06-21 09:50:12 +02:00
product-hero.php Product Hero Pattern > Adjust the content width (https://github.com/woocommerce/woocommerce-blocks/pull/10832) 2023-09-05 10:20:57 +00:00
product-listing-with-gallery-and-description.php Add alt text to images used in patterns describing their purpose (https://github.com/woocommerce/woocommerce-blocks/pull/9788) 2023-06-12 19:34:03 +02:00
product-query-1-1-image-4-column-products-row.php Remove `queryId` parameter from patterns (https://github.com/woocommerce/woocommerce-blocks/pull/10616) 2023-08-17 09:06:48 +02:00
product-query-3-column-product-row.php Remove `queryId` parameter from patterns (https://github.com/woocommerce/woocommerce-blocks/pull/10616) 2023-08-17 09:06:48 +02:00
product-query-4-column-product-row.php Remove `queryId` parameter from patterns (https://github.com/woocommerce/woocommerce-blocks/pull/10616) 2023-08-17 09:06:48 +02:00
product-query-large-image-product-gallery.php Remove `queryId` parameter from patterns (https://github.com/woocommerce/woocommerce-blocks/pull/10616) 2023-08-17 09:06:48 +02:00
product-query-minimal-5-column-products-row.php Remove `queryId` parameter from patterns (https://github.com/woocommerce/woocommerce-blocks/pull/10616) 2023-08-17 09:06:48 +02:00
product-query-minimal-product-list.php Remove `queryId` parameter from patterns (https://github.com/woocommerce/woocommerce-blocks/pull/10616) 2023-08-17 09:06:48 +02:00
product-query-product-gallery.php Remove `queryId` parameter from patterns (https://github.com/woocommerce/woocommerce-blocks/pull/10616) 2023-08-17 09:06:48 +02:00
product-query-product-list-with-1-1-images.php Remove `queryId` parameter from patterns (https://github.com/woocommerce/woocommerce-blocks/pull/10616) 2023-08-17 09:06:48 +02:00
product-query-product-list-with-full-product-description.php Remove `queryId` parameter from patterns (https://github.com/woocommerce/woocommerce-blocks/pull/10616) 2023-08-17 09:06:48 +02:00
product-search-form.php Update the archive templates to use Products block (https://github.com/woocommerce/woocommerce-blocks/pull/8308)Co-authored-by: Alba Rincón <alba.rincon@automattic.com> 2023-02-22 08:24:04 +07:00
shop-by-price.php Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997) 2023-09-25 09:48:52 +00:00
small-discount-banner-with-image.php Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997) 2023-09-25 09:48:52 +00:00
social-follow-us-in-social-media.php Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997) 2023-09-25 09:48:52 +00:00
store-info-alt-image-and-text.php Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997) 2023-09-25 09:48:52 +00:00
testimonials-3-columns.php Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997) 2023-09-25 09:48:52 +00:00
testimonials-single.php Ensure the content of the patterns is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/10997) 2023-09-25 09:48:52 +00:00

README.md

WooCommerce Blocks - Patterns

Naming Conventions for Patterns

  • Use spaces as a separator. Only use hyphens for compound words or expressions.
  • Use consistent title case capitalization.
  • Use clear, descriptive names that indicate the component's function or appearance.
  • Group similar items together with a common name structure.