Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Release: 11.1.0 #10878

Closed
wants to merge 11 commits into from
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "WooCommerce blocks for the Gutenberg editor.",
"homepage": "https://woocommerce.com/",
"type": "wordpress-plugin",
"version": "11.1.0-dev",
"version": "11.1.0",
"keywords": [
"gutenberg",
"woocommerce",
Expand Down
160 changes: 160 additions & 0 deletions docs/internal-developers/testing/releases/1110.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
# Testing notes and ZIP for release 11.1.0

Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-blocks/files/12577251/woocommerce-gutenberg-products-block.zip)

## WooCommerce Core

### Enhancements

#### Add Product Collection Rows pattern [#10857](https://github.com/woocommerce/woocommerce-blocks/pull/10857)

1. Go to Editor
2. Insert "Product Collection Rows" pattern
3. Save and go to frontend
4. Verify it looks like in the screenshots below

| Reference | Editor | Frontend
| ------ | ----- | -- |
| ![image](https://github.com/woocommerce/woocommerce-blocks/assets/20098064/70f57d50-715d-46ef-9a80-9c6ae66044d5) | <img width="757" alt="image" src="https://github.com/woocommerce/woocommerce-blocks/assets/20098064/abeaaa75-155f-4181-b604-b9dab18052a9"> | <img width="747" alt="image" src="https://github.com/woocommerce/woocommerce-blocks/assets/20098064/73079494-2fbd-4214-8638-b6116715b972"> |

#### Add Simple Grid Product Collection pattern [#10835](https://github.com/woocommerce/woocommerce-blocks/pull/10835)

1. Go to Editor
2. Insert "Product Collection Simple Grid" pattern
3. Save and go to frontend
4. Verify it looks like in the screenshots below

| Reference | Editor | Frontend
| ------ | ----- | -- |
| ![image](https://github.com/woocommerce/woocommerce-blocks/assets/20098064/c4b2ff30-10de-4ea4-972f-dbf3548b7ded) | <img width="712" alt="image" src="https://github.com/woocommerce/woocommerce-blocks/assets/20098064/5c92b850-5a77-4794-8e2b-5cb789506174"> | <img width="738" alt="image" src="https://github.com/woocommerce/woocommerce-blocks/assets/20098064/ba331287-b195-4a29-8157-72a6d5ec5e1a"> |

#### Product Hero Pattern > Adjust the content width [#10832](https://github.com/woocommerce/woocommerce-blocks/pull/10832)

1. Create a new post
2. Insert the Product Hero pattern
3. Make sure the pattern is properly displayed both in the editor and on the front end

| Before | After |
| ------ | ----- |
| <img width="1199" alt="Screenshot 2023-09-04 at 22 04 40" src="https://github.com/woocommerce/woocommerce-blocks/assets/15730971/ffc2c7a9-00b3-4035-b86a-690d572bab40"> | <img width="1234" alt="Screenshot 2023-09-04 at 22 04 22" src="https://github.com/woocommerce/woocommerce-blocks/assets/15730971/4e8c4c24-d96b-44bd-93b2-b69203dc41ff"> |

#### Fix: Load blocks style separately for classic themes [#10758](https://github.com/woocommerce/woocommerce-blocks/pull/10758)

0. Activate Storefront theme.
1. Create a post or page and add the All Products block. Verify styles are loaded correctly.
2. Visit the page in the frontend and verify styles are loaded correctly in the frontend as well.
3. Repeat steps 1 and 2 with all blocks listed on [this page](https://wordpress.org/plugins/woo-gutenberg-products-block/). Make sure to test each block individually. So, when possible, try with only one block on the page (in some cases, that's not possible, ie: filter blocks, in that case, try with as few blocks as possible on the page). The reason is that we want to make sure each block includes the style dependencies that it needs, so they need to be tested in isolation, otherwise styles from other blocks might leak into other blocks and "help fix issues".
4. Repeat steps above with a block themes. Block themes are excluded from the newly added logic so there shouldn't be any regression with blocks theme as well, but we should ,at least, smoke test with a block theme.

#### Adjust `Follow us on social media` pattern icon alignment [#10709](https://github.com/woocommerce/woocommerce-blocks/pull/10709)

1. Create a new post or page.
2. Insert the **Follow us on social media** Pattern.
3. Confirm the pattern is correctly displayed in the editor.
4. Save the post and head over to the front end and confirm the pattern is correctly displayed both on desktop and mobile view (the layout should match the one demonstrated in the above screenshots in the After column and in the screencast under the Updated section).

| Before | After |
| ------ | ----- |
| ![CleanShot 2023-08-22 at 21 49 02](https://github.com/woocommerce/woocommerce-blocks/assets/481776/04b3c443-d4dd-4f2b-8e68-1a6b73bccec7) | ![CleanShot 2023-08-22 at 21 50 42](https://github.com/woocommerce/woocommerce-blocks/assets/481776/b6931f37-98d7-455b-a577-2732b3f32255) |

### Bug Fixes

#### Change default number of columns in Related Products [#10875](https://github.com/woocommerce/woocommerce-blocks/pull/10875)

1. Go to Single Product template
2. Remove the content and add "WooCommerce Single Product Block"
3. Transform it to blockified template by clicking a blue button in the center of the block
4. Related Products blocks has 5 columns and grid layout

| Before | After |
| ------ | ----- |
| <img width="1004" alt="image" src="https://github.com/woocommerce/woocommerce-blocks/assets/20098064/858ac043-5979-47e0-a682-d992876d574b"> | <img width="1285" alt="image" src="https://github.com/woocommerce/woocommerce-blocks/assets/20098064/8f88a269-39b5-4b0b-8513-e90e2c3558e4"> |

#### Product Image: Fix bug that prevented block styles being applied within the editor [#10859](https://github.com/woocommerce/woocommerce-blocks/pull/10859)

1. Insert Single Product Block into a page
2. Select the product image
3. Open up styles in the inspector
4. Apply a border radius
5. Check this gets applied in the editor AND on the frontend.
6. Now check other styles are working as expected (padding, margin etc) and that no regressions have been introduced.
7. Now check that other blocks using this are working as expected. E.g. `Products (Beta)` and `Product Collections (Beta)`.

| Before | After |
| ------ | ----- |
| ![Screenshot 2023-09-06 at 14 29 17](https://github.com/woocommerce/woocommerce-blocks/assets/8639742/9770164d-32de-4eda-9ff0-ebf9967795fd) | ![Screenshot 2023-09-06 at 14 29 37](https://github.com/woocommerce/woocommerce-blocks/assets/8639742/89e009a9-9ed9-42d7-967d-67393a911af9) |

#### Fix bug with wpautop for the empty cart [#10768](https://github.com/woocommerce/woocommerce-blocks/pull/10768)

1. Install WooCommerce WC 8.0.x and a block theme (such as Twenty Twenty Three)
2. Go to Appearance > Editor > Templates > Cart
3. If this has the Cart Block, delete it and Include the `[woocommerce_cart]` shortcode.
4. Save and visit this page with an empty cart
5. The `Return to Shop` button should have equal padding top and bottom

| Before | After |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <img width="721" alt="Screenshot 2023-08-29 at 15 05 47" src="https://github.com/woocommerce/woocommerce-blocks/assets/3966773/35fbce4d-09da-4c4d-b535-0f76aa786e85"> | <img width="709" alt="Screenshot 2023-08-29 at 15 05 21" src="https://github.com/woocommerce/woocommerce-blocks/assets/3966773/cdb19385-3a7d-49cf-b620-4d5cd5254f55"> |

#### Prevent the Cart block reloading when adding an item to it from the Empty Cart block [#10624](https://github.com/woocommerce/woocommerce-blocks/pull/10624)

1. Add an item to your cart and go to the Cart block. Ensure it renders correctly.
2. Remove the item from your cart and ensure you see the Empty Cart block.
3. From the Empty Cart block, add an item to your cart.
4. Notice the cart loads and shows the new item.
5. Ensure the page does not reload during this process.
6. Create a page and add Products (Beta) to it. Save the page.
7. Visit the page and add items to your cart. Ensure they work and you can go to Cart -> Checkout successfully and place the order.
8. Repeat step 6 and 7 with the Products by Attribute block, and Product Collection block.

#### Product button: Sync temporary number of items on instantiation [#10604](https://github.com/woocommerce/woocommerce-blocks/pull/10604)

1. Add a Product Collection block
2. Add items to the cart
3. Paginate to a different page
4. Add more items to the cart
5. Check that when paginating back and forth, it shows the correct number of items
6. Open the MiniCart block
7. Change the number of items of products that are in the same page
8. Check that the animation is triggered
9. Change the number of items of products that are not in the same page
10. Navigate to the page that has those products and check that the number of items is correct
11. Use a cache plugin (or simulate a cached page)
12. Check everything again

#### Customer Account Block: Fixed an issue that would make the account icon scale incorrectly in certain environments (prominently in the TT1 theme) [#10533](https://github.com/woocommerce/woocommerce-blocks/pull/10533)

1. Add Customer Account block to a page.
2. Set the font-size to `XL`.
3. Activate the Twenty-Twenty-One theme.
4. Ensure the size of the icon is the same in the editor and the front-end, and is aligned with the font size of the label.

| Before | After |
| ------ | ----- |
| <img width="711" alt="Screenshot 2023-08-10 at 23 09 08" src="https://github.com/woocommerce/woocommerce-blocks/assets/1847066/d5480538-beac-4b87-b944-2092d9e20329"> | <img width="704" alt="Screenshot 2023-08-10 at 23 09 31" src="https://github.com/woocommerce/woocommerce-blocks/assets/1847066/bc9c240f-83c3-4833-9605-e93be63190be"> |

#### Customer Account Block: Fixed an issue that caused padding to be inconsistent between the editor and the front-end [#10476](https://github.com/woocommerce/woocommerce-blocks/pull/10476)

1. Add a Customer Account block to a post or page.
2. For easier readability of padding, assign it a background color.
3. Notice that there is a `0.5em` padding in the container, and the same around the icon.
4. Save it and test in on the front-end: padding should be the same.
5. Go back to the editor and remove the icon (select: “Text only” from the Inspector Controls).
6. Padding should decrease to just `0.5em` around the box.
7. Save and test it on the front-end: padding should be the same.

| Before | After |
| ------ | ----- |
| <img width="591" alt="Screenshot 2023-08-04 at 21 13 02" src="https://github.com/woocommerce/woocommerce-blocks/assets/1847066/40d58f4d-8d3c-46b8-833e-b21b5d736911"> | <img width="698" alt="Screenshot 2023-08-04 at 21 13 16" src="https://github.com/woocommerce/woocommerce-blocks/assets/1847066/a70b145f-9dbe-4f61-a98c-6ba987d09a23"> |

## Feature Plugin

### Bug Fixes

#### Fixed notice displaying on Cart and Checkout template [#10151](https://github.com/woocommerce/woocommerce-blocks/pull/10151)

1. Activate a based theme like TT3
2. Go to Appearance > Editor > Templates > Manage All Templates
3. Click the three dots next to the Cart and Checkout templates and then clear customizations
4. Add product via add to cart link. (Eg: [http://localhost/cart/?add-to-cart=34](http://localhost/cart/?add-to-cart=34))
5. Verify that the notice stating that the item was added to the cart appears
2 changes: 2 additions & 0 deletions docs/internal-developers/testing/releases/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ Every release includes specific testing instructions for new features and bug fi
- [10.9.1](./1091.md)
- [10.9.2](./1092.md)
- [10.9.3](./1093.md)
- [11.0.0](./1100.md)
- [11.1.0](./1110.md)

<!-- FEEDBACK -->

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@woocommerce/block-library",
"title": "WooCommerce Blocks",
"author": "Automattic",
"version": "11.1.0-dev",
"version": "11.1.0",
"description": "WooCommerce blocks for the Gutenberg editor.",
"homepage": "https://github.com/woocommerce/woocommerce-gutenberg-products-block/",
"keywords": [
Expand Down
6 changes: 5 additions & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
<exclude-pattern>languages/woo-gutenberg-products-block.php</exclude-pattern>

<!-- Configs -->
<config name="minimum_supported_wp_version" value="6.3" />
<!--
It shoudld match the minimum WP version supported by WooCommerce Core
(see https://github.com/woocommerce/woocommerce-blocks/blob/trunk/.github/release-initial-checklist.md#initial-preparation)
-->
<config name="minimum_supported_wp_version" value="6.2" />
<config name="testVersion" value="7.3-" />

<!-- Rules -->
Expand Down
24 changes: 23 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: gutenberg, woocommerce, woo commerce, products, blocks, woocommerce blocks
Requires at least: 6.3
Tested up to: 6.3
Requires PHP: 7.3
Stable tag: 11.0.0
Stable tag: 11.1.0
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -81,6 +81,28 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](https:/

== Changelog ==

= 11.1.0 - 2023-09-11 =

#### Enhancements

- Add Product Collection Rows pattern. ([10857](https://github.com/woocommerce/woocommerce-blocks/pull/10857))
- Add Simple Grid Product Collection pattern. ([10835](https://github.com/woocommerce/woocommerce-blocks/pull/10835))
- Product Hero Pattern > Adjust the content width. ([10832](https://github.com/woocommerce/woocommerce-blocks/pull/10832))
- Fix: Load blocks style separately for classic themes. ([10758](https://github.com/woocommerce/woocommerce-blocks/pull/10758))
- Adjust `Follow us on social media` pattern icon alignment. ([10709](https://github.com/woocommerce/woocommerce-blocks/pull/10709))
- Add Product Collection Full Grid pattern. ([10665](https://github.com/woocommerce/woocommerce-blocks/pull/10665))

#### Bug Fixes

- Change default number of columns in Related Products. ([10875](https://github.com/woocommerce/woocommerce-blocks/pull/10875))
- Product Image: Fix bug that prevented block styles being applied within the editor. ([10859](https://github.com/woocommerce/woocommerce-blocks/pull/10859))
- Fix bug with wpautop for the empty cart. ([10768](https://github.com/woocommerce/woocommerce-blocks/pull/10768))
- Prevent the Cart block reloading when adding an item to it from the Empty Cart block. ([10624](https://github.com/woocommerce/woocommerce-blocks/pull/10624))
- Product button: Sync temporary number of items on instantiation. ([10604](https://github.com/woocommerce/woocommerce-blocks/pull/10604))
- Customer Account Block: Fixed an issue that would make the account icon scale incorrectly in certain environments (prominently in the TT1 theme). ([10533](https://github.com/woocommerce/woocommerce-blocks/pull/10533))
- Customer Account Block: Fixed an issue that caused padding to be inconsistent between the editor and the front-end. ([10476](https://github.com/woocommerce/woocommerce-blocks/pull/10476))
- Fixed notice displaying on Cart and Checkout template. ([10151](https://github.com/woocommerce/woocommerce-blocks/pull/10151))

= 11.0.0 - 2023-08-30 =

#### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion src/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public static function container( $reset = false ) {
NewPackage::class,
function ( $container ) {
// leave for automated version bumping.
$version = '11.1.0-dev';
$version = '11.1.0';
return new NewPackage(
$version,
dirname( __DIR__ ),
Expand Down
2 changes: 1 addition & 1 deletion woocommerce-gutenberg-products-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: WooCommerce Blocks
* Plugin URI: https://github.com/woocommerce/woocommerce-gutenberg-products-block
* Description: WooCommerce blocks for the Gutenberg editor.
* Version: 11.1.0-dev
* Version: 11.1.0
* Author: Automattic
* Author URI: https://woocommerce.com
* Text Domain: woo-gutenberg-products-block
Expand Down