* Add titles to patterns and set the aligment to Wide
* Replace product query patterns with product collection ones
* Add group and spacing to the 3-cols and social patterns
* Fix alignment issue in the testimonals 3 in the editor
* Add padding to the featured catergory triple pattern
* Remove pagination and no results query from product query patterns
* Add aspect ratio to the product image attributes
* Add portrait aspect ratio to product X column and product gallery patterns
* Fix PHP warning and remove the padding for the Testimonials 3 Columns pattern.
* Ensure the Just Arrived Full Hero pattern can have an AI managed image assigned to it and update the content assignment.
* Add background dim
* Update dim to 30
* Add aspect ratio to the Social: Follow us on social media
* Update the icons color to primary
* Update the default title for the Follow us on social media pattern within the dictionary.
* Update text for the main header.
---------
Co-authored-by: Alba Rincón <alba.rincon@automattic.com>
* Add titles to patterns and set the aligment to Wide
* Replace product query patterns with product collection ones
* Add group and spacing to the 3-cols and social patterns
* Fix alignment issue in the testimonals 3 in the editor
* Add padding to the featured catergory triple pattern
* Remove pagination and no results query from product query patterns
* Add aspect ratio to the product image attributes
* Add portrait aspect ratio to product X column and product gallery patterns
* Fix PHP warning and remove the padding for the Testimonials 3 Columns pattern.
* Ensure the Just Arrived Full Hero pattern can have an AI managed image assigned to it and update the content assignment.
* Add background dim
* Update dim to 30
* Update text for the main header.
---------
Co-authored-by: Alba Rincón <alba.rincon@automattic.com>
* Add titles to patterns and set the aligment to Wide
* Replace product query patterns with product collection ones
* Add group and spacing to the 3-cols and social patterns
* Fix alignment issue in the testimonals 3 in the editor
* Add padding to the featured catergory triple pattern
* Remove pagination and no results query from product query patterns
* Add aspect ratio to the product image attributes
* Add portrait aspect ratio to product X column and product gallery patterns
* Fix PHP warning and remove the padding for the Testimonials 3 Columns pattern.
* Update text for the main header.
---------
Co-authored-by: Alba Rincón <alba.rincon@automattic.com>
* Add titles to patterns and set the aligment to Wide
* Replace product query patterns with product collection ones
* Remove pagination and no results query from product query patterns
* Add aspect ratio to the product image attributes
* Add portrait aspect ratio to product X column and product gallery patterns
* Add titles to patterns and set the aligment to Wide
* Replace product query patterns with product collection ones
* Add group and spacing to the 3-cols and social patterns
* Fix alignment issue in the testimonals 3 in the editor
* Add padding to the featured catergory triple pattern
* Introduce the new Product Collection 4 Columns pattern as a replacement for 1:1 Image 4-Column Product Row
* Introduce the new Product Collection 5 Columns pattern as a replacement for Minimal 5-Column Product Row
* Update the slug for the Product Collection 5 Columns pattern
* Introduce the new Product Collection 3 Columns pattern as a replacement for 3-Column Product Row
* Ditch the block types from the docblock
* Introduce the new Product Collection: Featured Products 5 Columns pattern as a replacement for Featured Products 5-Item Grid
* Update the patterns dictionary.
* remove block types from the Product Collection: Featured Products 5 Columns pattern
* Remove outdated patterns.
* Remove unnecessary queryId
* Reintroduce the Featured Category Cover Image pattern.
* Update styles for the pattern to match the new ones.
* Update the patterns dictionary to include the Featured Category Cover Image.
* Remove bold from h3 tag
* remove the fonts customization for the button
* Drop the medium fontsize for the paragraph.
* 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>
* Add the Verticals API client
* Add tests
* Refactor error handling
* Create first version of the prompt class
* Improve Vertical selector and add tests
* Remove testing code
* Update class comment
* Add PatternImages class
* Pass the dictionary as param
* Add tests
* Add `get_pattern_images` function and use it on patterns
* Add the Jetpack Connection Package as a dependency for WooCommerce Blocks.
* Introduce the new Configuration Class for registering and enabling the Jetpack connection for sites and users.
* Introduce the Connection class for making requests to the GPT AI API.
* Update the get_jwt_token method.
* Update the error messages for the get_jwt_token method.
* Update the register_site method.
* Update the Configuration class structure and add Dependency Injection.
* Update structure for the Connection Class.
* Update the return type for the get_jwt_token method.
* Update method visibility for get_site_id
* Update the name and params for methods within the Connection Class
* Add tests for the Connecction class.
* Update the Constructor for the Configuration class.
* Add the Patterns class.
* Move the get_image_url function to the PatternImages class and update the call in all patterns to address errors.
* Remove the functions.php file
* Update the VerticalsSelector class.
* Update the constructor for PatternImages.
* Update the Store API Route for Patterns.
* Update the create_patterns_content method to ensure it returns the results of update_option.
* Add the new Patterns route to the RoutesController class.
* Update the route path and remove the business description validation as that is done via create_patterns_content
* Introduce the PatternsSchema
* Update the prompt, errors messages and output format for the Verticals Selector.
* Fix the missing file error for the Patterns Dictionary.
* Introduce the new get_patterns_dictionary method and update the create_patterns_content method to better handle errors.
* Update the returned response for the endpoint.
* Add the get_item_response method to the PatternsSchema class.
* Update response for when allow_ai_connection option is not set.
* Enable authentication for the endpoint.
* Modify and temporarily remove some failing tests for the AI API: a separate PR will be opened to clear those out later.
* Add validation to the verticals_id.
* Remove reference to the src/Patterns/functions.php file.
* Update `alt` to be more generic, since the displayed images will vary
* Store Customization > Schedule an action to update the patterns content whenever the business description is changed (https://github.com/woocommerce/woocommerce-blocks/pull/10956)
* Introduce the new OptionUpdate class.
* Update the path to action schduler and add a file_exists check before attempting to schedule the action.
* Update the content in patterns from the BlockPatterns class instead.
* Remove return comment
---------
Co-authored-by: Alba Rincón <alba.rincon@automattic.com>
---------
Co-authored-by: Patricia Hillebrandt <patriciahillebrandt@gmail.com>
* Enable Product Collection patterns in inserter and kick off the layout control button
* Add Choose Pattern button
* Move Toolbar settings to related directory
* Display Pattern Selection modal with available patterns after clicking the button
* Make Pattern Chooser always visible
Patterns can be changed no matter if the Inherit Query from Template option in enabled or not
* Add pattern replacement mechanism
* Switch from Gutenberg styles to internal ones
* Adjust column width and icon alignment.
Set new col width to `75%` / `25%` and set the icon flex-alignment
to `space-between`.
While this is not ideal, without any fine-grained control over
breakpoints, this seems to be marginally better than having the icons
remain right-aligned on mobile.
* Correct grammar for pattern title and heading.
Should be "on" not "in".
* Testimonials Single Pattern: Update the styles for the image and add and alt text.
* Update the layout type of the comlumn iwth the content to constrained and update padding to 32px for the columns wrapper.
* Vertical align image to the center.
* Add placeholder images and update text styles for the Alternating Image and Text pattern.
* Address code review.
* add spacing.
* streamline the styles.
* Update wrapping on mobile view
* Update styling for images and size.
* remove e2e-pw changes
* Remove font style.
* Remove custom styling from images.
* Featured Products 5-Item Grid pattern: Ensure a placeholder image is displayed when the product doesn't have any
* Ensure the wp-block-group is aligned wide.
* Update text styles
* Make texts translatable.
* Update the Featured Products 5-Item Grid pattern
* Add the new Social: Follow us in social media pattern and relevant images.
* Update the URLs
* Remove all IDs from the images.
* Make title translatable. Removed hardcoded color for the icons. Update indentation.
* Remove opinionated font styles and sizes from the Large Footer pattern.
* Ensure the year is dinamically changed in the footer.
* Make string translatable
* Update translation to include the WooCommerce brand.
* Introduce the new Featured Products: Fresh & Tasty pattern.
* Update lettuce image.
* Update indentation.
* Make all strings translatable.
* Align all prices right
* Ensure text doesnt stack on mobile
* Update mobile display for the prices
* Update mobile display for the product names
* Remove the image id and the text styles
* Remove custom font color from the cover block.
* Update indentation for the Featured Category Triple pattern.
* Update indentation for the third column
* Make all strings translatable.
* replate all paragraph blocks with a wp-block-heading
* Ensure the central text is also white
* replace the buttons with a paragraphs.
* Remove unnecessary styles from wp:column
* Remove more unnecessary styles from wp-block-cover
* Remove the has-text-color class and other unnecessary positioning styles
* Update headings from h4 to h3 and update the paragraph styles.
* Replate theme's has-base-color with has-white-color
* Show alignment toolbar also when the block is in the single product block
* Start using `Single Product` for the `Product Details Product Listing` pattern
* Use counter and stars blocks in the pattern
* Undo button change
* Make the new rating blocks not experimental
* Add Beta to the average rating block
* Add blocks to block types controller
* Remove styles from `Newest arrivals` pattern
* Remove id
* Replace row with columns to be able to stack blocks on mobile
* Make string translatable
* Make button string translatable