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

Release: 6.3.0 #5146

Merged
merged 26 commits into from
Nov 17, 2021
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
d8296d1
Empty commit for release pull request
invalid-email-address Nov 16, 2021
3d2f378
Update readme.txt with release changelog
nielslange Nov 16, 2021
286d5fb
Add testing instructions for 6.3.0 release
nielslange Nov 16, 2021
12a5468
Update testing instructions as MD tables didn't work
nielslange Nov 16, 2021
0a22a3c
Update testing instructions
nielslange Nov 16, 2021
b334ecd
Update testing instructions
nielslange Nov 16, 2021
2af5c63
Update testing instructions
nielslange Nov 16, 2021
6287e25
Update readme.txt
nielslange Nov 16, 2021
70a918c
Update docs/testing/releases/630.md
nielslange Nov 16, 2021
d192480
Update readme.txt
nielslange Nov 16, 2021
9dccdee
Update release zip in testing note
nielslange Nov 16, 2021
633ad1a
Update testing instructions
nielslange Nov 16, 2021
24ff0f1
Remove feature gate condition for Legacy Template block (#5158)
Aljullu Nov 16, 2021
ec0ebd2
Update testing instructions
nielslange Nov 17, 2021
cebefde
Merge branch 'release/6.3.0' of github.com:woocommerce/woocommerce-gu…
nielslange Nov 17, 2021
9e9f1a7
Update testing instructions
nielslange Nov 17, 2021
02519f4
Update testing instructions
nielslange Nov 17, 2021
3de327c
Update readme.txt
nielslange Nov 17, 2021
8008e27
Update testing instructions
nielslange Nov 17, 2021
a8791ef
Update testing instructions
nielslange Nov 17, 2021
9988008
Update release zip in testing note
nielslange Nov 17, 2021
ddcde98
Update testing instructions for SE templates
frontdevde Nov 17, 2021
18cbe70
Update testing instructions for SE templates II
frontdevde Nov 17, 2021
3313950
Update testing instructions
nielslange Nov 17, 2021
4c8d74f
Bumping version strings to new version.
nielslange Nov 17, 2021
b0ad2b5
Release: 6.3.1 (#5169)
github-actions[bot] Nov 17, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions assets/js/blocks/legacy-template/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
* External dependencies
*/
import {
registerExperimentalBlockType,
WC_BLOCKS_IMAGE_URL,
} from '@woocommerce/block-settings';
import { registerBlockType } from '@wordpress/blocks';
import { WC_BLOCKS_IMAGE_URL } from '@woocommerce/block-settings';
import { useBlockProps } from '@wordpress/block-editor';
import { Placeholder } from '@wordpress/components';
import { __, sprintf } from '@wordpress/i18n';
Expand Down Expand Up @@ -57,7 +55,7 @@ const Edit = ( { attributes }: Props ) => {
);
};

registerExperimentalBlockType( 'woocommerce/legacy-template', {
registerBlockType( 'woocommerce/legacy-template', {
title: __( 'WooCommerce Legacy Template', 'woo-gutenberg-products-block' ),
category: 'woocommerce',
apiVersion: 2,
Expand Down
122 changes: 122 additions & 0 deletions docs/testing/releases/630.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
## Testing notes and ZIP for release 6.3.0

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

## Feature Plugin

### Improve readability of terms and condition text by not displaying the text justified. ([5120](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5120))

1. Create a test page, add the checkout block and save the page.
2. Add a short custom text to the terms and conditions section.
3. Verify that the terms and conditions text is left-aligned and contains even spacing between the words.

### Partially fix missing translations in the Checkout block. ([5020](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5020))

1. Set the site language to Spanish.
2. Download the translation files via Dashboard → Updates.
3. Create a test page, add the checkout block and save the page.
4. Verify that all texts of the checkout block are available in Spanish in the editor.

⚠️ Please note that some strings are not translated in the frontend. This problem will be addressed with ([5112](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5112)).

### Fix ‘Country is required’ error on the Cart block when updating shipping address ([5129](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5129))

1. Add a product to the cart and go to the cart page.
2. Provide a shipping address in the shipping calculator and click the `Update` button.
3. Provide a shipping address from a different country and click the `Update` button again.
4. Verify that the new shipping address is visible.
5. Verify that the error `Country is required` is not visible.
6. Go to the checkout page and verify that the new shipping address is visible.
7. Finalize the order and verify that the new shipping address is visible on the order details.

### Make order note block removable ([5139](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5139))

1. Create a test page, add the Checkout block and save the page.
2. Remove the order note block and verify that it will not be added again.
3. Go to the frontend and verify that the order note block is not visible.

## Feature plugin and package inclusion in WooCommerce

### FSE: Add basic single product block template. ([5054](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5054))

1. Install and activate version 11.9.1 of [the Gutenberg plugin](https://wordpress.org/plugins/gutenberg/).
2. Install and activate a FSE enabled theme, such as [the TT1 Blocks theme](https://wordpress.org/themes/tt1-blocks/).
3. Load the Site Editor (Appearance → Editor). Open the left editor sidebar navigation by clicking the WordPress logo in the top left. In the Templates > General Templates section select the `Single Product Page` template.
4. Confirm you can load the template in the editor and it looks as expected in large/small viewports.
5. Confirm you can add blocks to the template and saving works as expected.
6. Load a single product page (e.g. `/product/album/`) on the Frontend of your store. Confirm the template is loaded and your modifications from the previous step are visible.

### FSE: Add basic product archive block template. ([5049](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5049))

1. Install and activate version 11.9.1 of [the Gutenberg plugin](https://wordpress.org/plugins/gutenberg/).
2. Install and activate a FSE enabled theme, such as [the TT1 Blocks theme](https://wordpress.org/themes/tt1-blocks/).
3. Load the Site Editor (Appearance → Editor). Open the left editor sidebar navigation by clicking the WordPress logo in the top left. In the Templates > General Templates section select the `Product Archive Page` template.
4. Confirm you can load the template in the editor and it looks as expected in large/small viewports.
5. Confirm you can add blocks to the template and saving works as expected.

### FSE: Add basic taxonomy block templates. ([5063](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5063))

1. Install and activate version 11.9.1 of [the Gutenberg plugin](https://wordpress.org/plugins/gutenberg/).
2. Install and activate a FSE enabled theme, such as [the TT1 Blocks theme](https://wordpress.org/themes/tt1-blocks/).
3. Load the Site Editor (Appearance → Editor). Open the left editor sidebar navigation by clicking the WordPress logo in the top left. In the Templates > General Templates section select the `Product Category Page` template.
4. Confirm you can load the template in the editor and it looks as expected in large/small viewports.
5. Confirm you can add blocks to the template and saving works as expected.
6. Repeat steps 3-5 for the `Product Tag Page` template.

### Add placeholder text when modifying product search input in the editor. ([5122](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5122))

1. Add the Product Search block to any page in the editor.
2. Delete the “Search Products…” value from the Search input.
3. “Enter search placeholder text” should be displayed in the input as a placeholder.
4. The text should disappear as you start typing.

### Improve the product images placeholder display by adding a light gray border to it. ([4950](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/4950))

1. Create a product with no product image.
2. Create a test page and add the Newest Products block.
3. Verify that the placeholder image has a visible border.

### Improve accessibility by using self-explaining edit button titles. ([5113](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5113))

1. Create a test page and add the following blocks to it:
- Featured Category block
- Featured Product block
- Hand-picked Products block
- Products by Category block
- Products by Attribute block
- Reviews by Product block
- Reviews by Category block
- Products by Tag block
- All products block
2. Click on the `edit` button of each block and verify that the button text corresponds to the value of the following list:
- Featured Category: Edit selected category
- Featured Product: Edit selected product
- Hand-picked Products: Edit selected products
- Products by Category: Edit selected categories
- Products by Attribute: Edit selected attributes
- Reviews by Product: Edit selected product
- Reviews by Category: Edit selected categories
- Products by Tag: Edit selected tags
- All products: Edit inner product layout

Example of button text for the Hand-picked Products block:

![](https://user-images.githubusercontent.com/3323310/141891543-5ef2d0d5-fba7-407a-a731-daee53b9a70d.png)

### Fix label alignment of the product search in the editor. ([5072](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5072))

1. Create a test page, add the Product Search block and save the page.
2. Verify that the search label is vertically aligned with the search input field in the editor side and in the frontend side.
3. Verify that the right button is aligned with the input field.

### Fix duplicate queries in product grids. ([5002](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5002))

1. Add multiple product grid blocks to a page, e.g. `Products by Category` and `Products by Category`.
2. Ensure there are some variable products visible.
3. Check the product grid blocks render correctly on the frontend.

### Fix sale badge alignment on smaller screen. ([5061](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5061))

1. Create a test page, add the All Products block and save the page.
2. Simulate a screen that has a width between 480px and 600px.
3. Verify that the sale badge is aligned on the right.
2 changes: 1 addition & 1 deletion docs/testing/releases/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ Every release includes specific testing instructions for new features and bug fi
- [6.0.0](./600.md)
- [6.1.0](./610.md)
- [6.2.0](./620.md)

- [6.3.0](./630.md)
31 changes: 31 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,37 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](https:/

== Changelog ==

= 6.3.0 - 2021-11-16 =

#### Enhancements

- Add placeholder text when modifying product search input in the editor. ([5122](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5122))
- FSE: Add basic product archive block template. ([5049](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5049))
- FSE: Add basic taxonomy block templates. ([5063](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5063))
- FSE: Add single product block template. ([5054](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5054))
- FSE: Remove the `do_action( 'woocommerce_sidebar' );` action from the `LegacyTemplate.php` block. ([5097](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5097))
- Fix duplicate queries in product grids #4695. ([5002](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5002))
- FSE: Add abstract block legacy template for core PHP templates. ([4991](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/4991))
- FSE: Add render logic to BlockTemplateController. ([4984](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/4984))
- Improve accessibility by using self-explaining edit button titles. ([5113](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5113))
- Improve readability of terms and condition text by not displaying the text justified. ([5120](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5120))
- Improve rendering performance for Single Product block. ([5107](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5107))
- Improve the product images placeholder display by adding a light gray border to it. ([4950](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/4950))
- Deprecate the __experimental_woocommerce_blocks_checkout_update_order_from_request action in favour of woocommerce_blocks_checkout_update_order_from_request. ([5015](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5015))
- Deprecate the __experimental_woocommerce_blocks_checkout_update_order_meta action in favour of woocommerce_blocks_checkout_update_order_meta. ([5017](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5017))
- Deprecate the __experimental_woocommerce_blocks_checkout_order_processed action in favour of woocommerce_blocks_checkout_order_processed. ([5014](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5014))

#### Bug Fixes

- Fix 'Country is required' error on the Cart block when updating shipping address ([5129](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5129))
- Fix label alignment of the product search in the editor. ([5072](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5072))
- Fix sale badge alignment on smaller screen. ([5061](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5061))
- Fix state validation to compare state codes, and only validate if a country is given ([5132](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5132))
- FSE: Fix missing `is_custom` property for WooCommerce block template objects. ([5067](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5067))
- Make order note block removable ([5139](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5139))
- Replace incorrect with correct text domain. ([5020](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5020))
- Scripts using `wc-settings` or script that depend on it would be enqueued in the footer if they're enqueued in the header. ([5059](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5059))

= 6.2.0 - 2021-10-26 =

#### Enhancements
Expand Down