Commit Graph

5886 Commits

Author SHA1 Message Date
Alba Rincón 62ab092822 [Store Customization MVP] Add image alts to the ai prompt if available (https://github.com/woocommerce/woocommerce-blocks/pull/11101)
* Add image alts to the ai prompt if available

* Update images index and remove randomness

* Update pattern with missing content

* Add image alts to the pattern array

* Improve prompt

* Fix typo

* Use the correct business_description in both the scheduled action and the endpoint
2023-10-13 09:32:35 +02:00
Luigi Teschio 5f07baee8b fix check blocks.ini (https://github.com/woocommerce/woocommerce-blocks/pull/11227) 2023-10-12 15:02:39 +02:00
Paulo Arromba 0223b0d156 Updated composer.lock (https://github.com/woocommerce/woocommerce-blocks/pull/11213) 2023-10-12 02:37:14 -07:00
Alba Rincón c6de93a5d9 Make patterns full width and fix margin (https://github.com/woocommerce/woocommerce-blocks/pull/11206)
* Make patterns full width and fix margin

* Fix horizontal spacing
2023-10-12 09:06:33 +02:00
Tung Du cd16c0f401 Price Filter powered by Interactivity API (https://github.com/woocommerce/woocommerce-blocks/pull/10730)
Co-authored-by: David Arenas <david.arenas@automattic.com>
Co-authored-by: Luis Herranz <luisherranz@gmail.com>
2023-10-12 04:30:27 +00:00
Niels Lange 113342fc89 Fix inconsistent border focus styles (https://github.com/woocommerce/woocommerce-blocks/pull/11203) 2023-10-12 09:31:55 +07:00
roykho 847d94b040 Fix linting errors in testing instructions for 1130 2023-10-11 09:12:57 -07:00
Mike Jolley 0c2f042886 Add universal border radius for form elements and components (https://github.com/woocommerce/woocommerce-blocks/pull/11193)
* Add universal border radius

* Apply radius to checkbox and dropdown
2023-10-11 17:04:45 +01:00
roykho 055e1a11ef Update to next dev version 2023-10-11 08:40:37 -07:00
roykho 7e426acff3 Update changelogs and testing instructions for 11.3.0 2023-10-11 08:38:55 -07:00
Mike Jolley 2044798af6 Remove Shipping calculator settings and link to the WooCommerce admin settings (https://github.com/woocommerce/woocommerce-blocks/pull/11184)
* Remove block level options in favour of settings

* Remove calculator toggle test

* Update assets/js/blocks/cart/inner-blocks/cart-order-summary-shipping/block.tsx

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* Remove unused attributes

---------

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
2023-10-11 15:09:43 +01:00
Tom Cafferkey cffea366a5 Product Collection 5 Columns pattern - Update title and price to be rows instead of columns (https://github.com/woocommerce/woocommerce-blocks/pull/11205) 2023-10-11 12:20:16 +01:00
Tom Cafferkey a45e3699a2 Product Collection: Featured Products 5 Columns - Remove no results block. (https://github.com/woocommerce/woocommerce-blocks/pull/11198) 2023-10-11 08:11:57 +01:00
Hsing-yu Flowers 748ecb0963 Add order and checkout order endpoint documentation (https://github.com/woocommerce/woocommerce-blocks/pull/11157)
* Add order and checkout order endpoint documentation

* Update order and checkout order endpoint documentation

* Update cart endpoint doc
2023-10-11 06:37:42 +00:00
Manish Menaria e88fa94026 Product Collection - Fix undefined layout attribute issue in migration (https://github.com/woocommerce/woocommerce-blocks/pull/11196)
This commit addresses an issue where layout attributes could become undefined during the block migration process. Alongside this fix, several updates were made to align the migration logic with the new `ProductCollectionDisplayLayout` types:

- Added logic to handle `undefined` layout attributes, defaulting to `DEFAULT_ATTRIBUTES.displayLayout`.
- Removed `ProductGridLayout` and `ProductGridLayoutTypes` from the types file.
- Imported `LayoutOptions` and `ProductCollectionDisplayLayout` from the product-collection module.
- Updated the `mapLayoutType` and `mapLayoutPropertiesFrom...` functions to use the new layout types.
- Updated transformation functions like `transformProductTemplate` and `transformPostSummary` to use the new types.

These changes not only resolve the issue with undefined layout attributes but also align the codebase with the new layout options, enhancing code maintainability.
2023-10-11 11:00:26 +05:30
Mike Jolley 75bac91787 Ensure validation of fields occurs when collapsing fields (https://github.com/woocommerce/woocommerce-blocks/pull/11199)
* Ensure validation of fields occurs when collapsing fields

* update click for edit button

* turn off pointer events when hidden

* Add visibility rule
2023-10-10 22:07:58 +01:00
Tom Cafferkey 41724e9400 Product Gallery pattern: Use the Product Collection block (https://github.com/woocommerce/woocommerce-blocks/pull/11194) 2023-10-10 17:17:17 +01:00
Luigi Teschio 645bd8d339 Add feature gate for the block templates controller refactor (https://github.com/woocommerce/woocommerce-blocks/pull/11178)
* add feature gating for the block templates controller refactor

* improve check
2023-10-10 16:50:18 +02:00
Alexandre Lara a6ddae9dc3 Product Gallery block: Move inner block settings around to match the order from the design (https://github.com/woocommerce/woocommerce-blocks/pull/11170)
* Rearrange block settings to correct position

* Remove unnecessary comments

* Remove unused imports

* Fix e2e tests
2023-10-10 14:04:54 +02:00
Mike Jolley 27ae9acafc Remove all instances of GUTENBERG_EDITOR_CONTEXT (https://github.com/woocommerce/woocommerce-blocks/pull/11126) 2023-10-10 10:57:26 +00:00
Thomas Roberts 14b5414c36 Update wording on checkout error message to try to prevent retries (https://github.com/woocommerce/woocommerce-blocks/pull/10888) 2023-10-10 01:16:24 -07:00
Alexandre Lara e603d039ad Make block to respect the Redirect to Cart setting (https://github.com/woocommerce/woocommerce-blocks/pull/11151) 2023-10-09 19:06:48 +02:00
Niels Lange cd1f199f1b Increase number of visible products when cart is empty (https://github.com/woocommerce/woocommerce-blocks/pull/11182) 2023-10-09 22:04:19 +07:00
Paulo Arromba c14a911937 Updated cart json response example (https://github.com/woocommerce/woocommerce-blocks/pull/11135)
* Updated cart json response example

* Updated cart json response example host

* Updated cart json response example protocol
2023-10-09 07:40:04 -07:00
Dmytro 81773ad31e Add data-price button attribute containing product price (https://github.com/woocommerce/woocommerce-blocks/pull/11117)
* Add data-price button attribute containing product price

* Fix phpcs error.

---------

Co-authored-by: Dima <9010963+message-dimke@users.noreply.github.com>
2023-10-09 07:33:48 -07:00
dependabot[bot] fa7d66e248 Bump automattic/jetpack-autoloader from 2.11.22 to 2.12.0 (https://github.com/woocommerce/woocommerce-blocks/pull/11066)
Bumps [automattic/jetpack-autoloader](https://github.com/Automattic/jetpack-autoloader) from 2.11.22 to 2.12.0.
- [Release notes](https://github.com/Automattic/jetpack-autoloader/releases)
- [Changelog](https://github.com/Automattic/jetpack-autoloader/blob/trunk/CHANGELOG.md)
- [Commits](https://github.com/Automattic/jetpack-autoloader/compare/v2.11.22...v2.12.0)

---
updated-dependencies:
- dependency-name: automattic/jetpack-autoloader
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-09 06:19:05 -07:00
Mike Jolley 3857dc6e04 WIP: Condensed Address Form Implementation (https://github.com/woocommerce/woocommerce-blocks/pull/11167)
* Add address card component

* Condensed shipping address

* Billing address

* Animations

* Fix editing state

* Toggle sections open in tests
2023-10-09 12:49:09 +01:00
Luigi Teschio 924ed3f30b Product Gallery: fix CSS leak (https://github.com/woocommerce/woocommerce-blocks/pull/11111)
* fix CSS leak

* fix css

* fix comment
2023-10-09 10:15:54 +00:00
Mike Jolley 2f9181a514 Icon should use current color (https://github.com/woocommerce/woocommerce-blocks/pull/11127) 2023-10-09 10:36:17 +01:00
Tung Du 758fdb3b46 Making filter block contextual on the front end (https://github.com/woocommerce/woocommerce-blocks/pull/10919) 2023-10-09 08:22:17 +00:00
Tung Du 1f049de16b Fix: Store Notices block breaks page editors (https://github.com/woocommerce/woocommerce-blocks/pull/11165) 2023-10-09 07:15:57 +00:00
Patricia Hillebrandt df2a3d72d2 Store Customization > Update aspect ratio, icons and default text for the Social: Follow us on social media pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11161)
* 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>
2023-10-06 11:45:26 +00:00
Patricia Hillebrandt 75c48ffb47 Store Customization > Ensure the Just Arrived Full Hero pattern can have an AI selected image assigned to it (https://github.com/woocommerce/woocommerce-blocks/pull/11159)
* 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>
2023-10-06 11:17:31 +00:00
Patricia Hillebrandt 15d24a227f Store Customization > Fix the Testimonials 3 Columns pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11158)
* 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>
2023-10-06 10:42:51 +00:00
Mike Jolley 4987a921b1 Force 100% width for combobox (https://github.com/woocommerce/woocommerce-blocks/pull/11133) 2023-10-06 11:03:48 +01:00
Alba Rincón 209fe0b6d8 Add horizontal padding to the Featured Category Triple pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11160) 2023-10-06 11:45:43 +02:00
Alba Rincón 37623be4f2 Remove placeholder and pagination (https://github.com/woocommerce/woocommerce-blocks/pull/11145)
* 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
2023-10-06 10:51:35 +02:00
Alexandre Lara b4f07b7c5f Product Gallery > Next/Previous Buttons block: Add support to Interactivity API (https://github.com/woocommerce/woocommerce-blocks/pull/10938)
* Add interactivity API to the Pager block

* Replace Large Image when clicking on page

* Fix php cs errors

* Fix php cs errors

* Fix php cs errors

* fix php cs errors

* Add support to Interactivity API

* Fix phpcs errors

* Fix phpcs errors

* Remove unnecessary code and fix block classes

* Rename interactivity actions

* Remove unnecessary type conversion

* Fix error when clicking on page in Pager block

* Fix php cs errors

* Fix ProductGalleryUtils import

* fix php cs error

* Fix styles for next/previous buttons

* Fix styles for the next/previous buttons

* Fix php cs errors

* Fix next/previous icons when buttons are outside image

* Fix php cs errors

* Fix php cs errors

* Fix buttons not visible in Editor

* Delete src/SpeciticTemplateController.php

Delete unnecessary file that is causing php cs error
2023-10-05 18:55:52 +02:00
Alba Rincón 01d8a78e4f Store Customization > Homepage Template 1: Review layout and spacing in between patterns (https://github.com/woocommerce/woocommerce-blocks/pull/11144)
* 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
2023-10-05 17:44:14 +02:00
Mike Jolley 3fed0831f8 Check endpoint was preloaded before returning it. (https://github.com/woocommerce/woocommerce-blocks/pull/11128) 2023-10-05 15:43:29 +00:00
Luigi Teschio 74c6287485 return (https://github.com/woocommerce/woocommerce-blocks/pull/11143) 2023-10-05 14:14:54 +00:00
Alba Rincón 592db8df43 Store Customization > Homepage Template 3: Review layout and spacing in between patterns (https://github.com/woocommerce/woocommerce-blocks/pull/11131)
* Add padding and headers to patterns

* Fix centering when GB enabled
2023-10-05 13:49:26 +02:00
Alba Rincón 4716d7483e Store Customization > Homepage Template 2: Review layout and spacing in between patterns (https://github.com/woocommerce/woocommerce-blocks/pull/11129)
* Add titles to patterns and set the aligment to Wide

* Add paddings

* Replace product query patterns with product collection ones

* Fix pattern title
2023-10-05 13:14:53 +02:00
Mike Jolley eb383203f0 validateInput when the value in the store changes (https://github.com/woocommerce/woocommerce-blocks/pull/11108) 2023-10-05 10:27:10 +01:00
Patricia Hillebrandt 04e298050c Store Customization > Replace patterns based on the Products (Beta) block with an equivalent based on the Product Collection block (https://github.com/woocommerce/woocommerce-blocks/pull/11134)
* 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
2023-10-05 08:36:18 +00:00
Tom Cafferkey 661b7031dd Store Customization > Add default image to Just Arrived pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11130) 2023-10-05 09:05:59 +01:00
Luigi Teschio ad80598ab8 Pattern: fetch product id on the JS side (https://github.com/woocommerce/woocommerce-blocks/pull/11138)
* Pattern: fetch product id on the frontend side

* fix TS type
2023-10-05 07:30:50 +00:00
Alexandre Lara dec4e4fc75 Product Gallery > Pager block: Add E2E tests for the block (https://github.com/woocommerce/woocommerce-blocks/pull/11001)
* Add e2e tests for Pager block

* Fix e2e tests for Product Gallery Pager

* Fix e2e tests
2023-10-04 19:11:34 +02:00
Alba Rincón 22fd4512d8 Remove object cast (https://github.com/woocommerce/woocommerce-blocks/pull/11082) 2023-10-04 14:55:25 +02:00
Patricia Hillebrandt 4d82186495 Store Customization > Wireframe and adjust width for the Just Arrived Full Hero pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11115)
* Update the width; Add the button text to the patterns dictionary; adjust the width to wide.

* Remove unnecessary space before the title.
2023-10-04 12:47:19 +00:00