Merge branch 'release/10.5.0' of https://github.com/woocommerce/woocommerce-blocks into trunk

This commit is contained in:
Luigi 2023-06-21 14:34:39 +02:00
commit ee3eabe5d0
8 changed files with 181 additions and 7 deletions

View File

@ -3,7 +3,7 @@
"description": "WooCommerce blocks for the Gutenberg editor.",
"homepage": "https://woocommerce.com/",
"type": "wordpress-plugin",
"version": "10.5.0-dev",
"version": "10.5.0",
"keywords": [
"gutenberg",
"woocommerce",

View File

@ -0,0 +1,145 @@
# Testing notes and ZIP for release 10.5.0
Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-blocks/files/11801343/woocommerce-gutenberg-products-block.zip)
## WooCommerce Core
### Fix error when adding the Reviews by Category block to a store without any product reviews. ([9868](https://github.com/woocommerce/woocommerce-blocks/pull/9868))
1. Make sure your store has no reviews.
2. Create a new post: To do this, navigate to Posts > Add New from the WordPress dashboard.
3. Add the Reviews by Category block: Inside the new post editor, click on the plus icon (+) at the top left corner or within the post editor to add a new block. In the search bar that appears, type Reviews by Category and click on it to add the block to your post.
4. Configure the Reviews by Category block: Now, you can configure the block based on your needs. Select the category you want to display reviews from using the dropdown in the block selector.
5. Check that the block is inserted to the Editor and no error appears.
| Before | After |
| ------ | ----- |
| ![image](https://github.com/woocommerce/woocommerce-blocks/assets/20469356/7444c66f-8c86-4444-a1ee-419b38eeba25) | ![image](https://github.com/woocommerce/woocommerce-blocks/assets/20469356/da76db67-6d7d-460d-8737-be1a6201b06d) |
### Allow Customer Account Block to be found with keyword "My Account". ([9815](https://github.com/woocommerce/woocommerce-blocks/pull/9815))
1. Create a new post: To do this, navigate to Posts > Add New from the WordPress dashboard.
2. Open the inserter and search for "My account".
3. Check if Customer Account Block shows up.
### Ensure the "Change Address" button is visible in the cart even if local pickup is selected. ([9809](https://github.com/woocommerce/woocommerce-blocks/pull/9809))
1. Ensure you are using the Cart block.
2. Go to `/my-account/edit-address/` and ensure your test account has a (shipping) address.
3. Ensure you have an item in the cart that needs shipping, and a mixture of pickup and flat rates.
4. Select the local pickup shipping method.
5. Confirm the “change address” button is still shown.
![Screenshot 2023-06-13 at 14 18 51](https://github.com/woocommerce/woocommerce-blocks/assets/90977/69156833-3cba-461d-bec6-a4d07fc6bf50)
### WooCommerce Product Filters pattern: Improve the preview of the Filter by Attribute block. ([9812](https://github.com/woocommerce/woocommerce-blocks/pull/9812))
1. Create a new page or post.
2. Open the block inserter and search for the `WooCommerce Product Filters` pattern.
3. Check the preview image of the pattern in the inserter and make sure you see one attribute selected and not the "edit" view of the filter by attribute block (see screenshot above).
4. If the store does not have any attributes you should still see the "edit" view though.
| Before | After |
| ------ | ----- |
|![image](https://github.com/woocommerce/woocommerce-blocks/assets/4463174/ffa10e39-a8b0-4468-bd6b-30db08cb48a4)|![image](https://github.com/woocommerce/woocommerce-blocks/assets/4463174/5a435970-b94d-477e-986d-478620c60b91)|
### Mini Cart block: Fix icon render in the widget selector. ([9828](https://github.com/woocommerce/woocommerce-blocks/pull/9828))
1. Enable the Storefront theme.
2. Click on "Appearance > Customize".
3. Click on "Widgets > Below Header".
4. Search for the Mini Cart widget.
5. Ensure the Mini Cart icon displays correctly.
| Before | After |
| ------ | ----- |
|<img width="898" alt="before icon" src="https://github.com/woocommerce/woocommerce-blocks/assets/905781/f8c0bc43-fefc-4771-89f2-b5a9122f25fc">|<img width="827" alt="after icon" src="https://github.com/woocommerce/woocommerce-blocks/assets/905781/520c3f1f-9247-4484-a43b-02c458147c57">|
### Mini Cart: Add an alternative icon setting. ([9570](https://github.com/woocommerce/woocommerce-blocks/pull/9570))
1. Add the Mini-Cart block to a page.
2. Select the Bag alternative icon and save.
3. Make sure it displays correctly in the editor and on the page.
4. Repeat the same for the third icon (Bag-Alt).
| Before | After |
| ------ | ----- |
| <img width="279" alt="Edit_Page_“Mini_cart”__kirigami_—_WordPress-2" src="https://github.com/woocommerce/woocommerce-blocks/assets/905781/35f49092-13c1-4d8c-b411-8e5af8fdff4a">|<img width="280" alt="Edit_Page_“Mini_cart”__kirigami_—_WordPress" src="https://github.com/woocommerce/woocommerce-blocks/assets/905781/15a48120-b16d-4db0-be69-d0f65e2f0ff8">|
### Fix capitalization in Product Collections: Newest Arrivals pattern. ([9777](https://github.com/woocommerce/woocommerce-blocks/pull/9777))
1. Create a post or page and open the _Patterns_ tab in the inserter.
2. Search for `product collections`.
3. Verify the word _Collections_ is capitalized in all the available patterns.
### Prevent Mini-Cart drawer to show horizontal scrollbar if the system has visible scrollbars. ([9676](https://github.com/woocommerce/woocommerce-blocks/pull/9676))
1. Set up your browser so scrollbars are visible (see [instructions for Mac](https://support.vagaro.com/hc/en-us/articles/204347160-Disable-Disappearing-Scroll-Bars-on-Mac-Computers), on GNOME it's under Settings > Accessibility).
2. Add the Mini-Cart block to the header of your store.
3. In the frontend, open the Mini-Cart drawer and verify there is no horizontal scrollbar in the contents table.
Before | After
--- | ---
![imatge](https://github.com/woocommerce/woocommerce-blocks/assets/3616980/084b8dee-aff3-435a-aaec-b231609afe6e) | ![imatge](https://github.com/woocommerce/woocommerce-blocks/assets/3616980/1db799a4-cd27-4c06-9acf-b18ffa96bad1)
### Add RTL preview support for mini-cart. ([9756](https://github.com/woocommerce/woocommerce-blocks/pull/9756))
1. On a block theme (ie: Twenty Twenty Three), create a new post/page and insert the mini-cart block.
2. Switch to a RTL language such as Arabic.
3. Click on the mini-cart block in the Editor.
4. In the inspector controls, you should see a preview of the mini-cart drawer that shows a RTL version. ( where the drawer opens from the left ).
5. Switch to English language and now the preview should be opening from the right instead.
![file.png](https://github.com/woocommerce/woocommerce-blocks/assets/2132595/fc7e0a01-ad54-4c81-8071-e77af8bb4e66)
### Fix mini cart icon not displaying correctly in RTL sites. ([9707](https://github.com/woocommerce/woocommerce-blocks/pull/9707))
1. Install a plugin called "RTL Tester".
2. Switch to RTL with the button in your admin bar.
3. Add a post and insert the `Mini cart` block.
4. Click on the `Mini cart` icon to open the editor drawer.
5. Ensure the `Mini cart` icon is facing left instead of right as seen in the screenshot above.
![file.png](https://github.com/woocommerce/woocommerce-blocks/assets/2132595/30fd5c40-b035-4765-ad3b-00e8f1837785)
### All Reviews block: Fix error when adding the block to a store without reviews. ([9869](https://github.com/woocommerce/woocommerce-blocks/pull/9869))
1. Make sure your store has no reviews.
2. Create a new post: Navigate to Posts > Add New from the WordPress dashboard.
3. Add the All Reviews block: When you're in the new post editor, click on the plus icon (+) in the top left corner or within the post editor to add a new block. Type All Reviews in the search bar and click on it to add the block to your post.
4. Check that the block is inserted to the Editor without any errors.
### Mini Cart Block: show the total price, including tax, according to the option. ([9878](https://github.com/woocommerce/woocommerce-blocks/pull/9878))
1. Open the WooCommerce Settings via WooCommerce > Settings from the sidebar menu of the WP-Admin.
2. Enable the option "Enable tax rates and calculations".
3. Click on the "Tax" tab.
4. Click on "Standard Rates" and configure a tax rate. Save.
5. Click on the "Tax" tab.
6. Set the "Display prices during cart and checkout" option to "Including Tax".
7. Now set up a Shipping method going to WooCommerce > Settings > Shipping > Add shipping zone. Create the zone and add a shipping method with a price different from 0.
8. With the Site Editor adds the Mini Cart in the header.
9. On the front end, add a product to the cart and go to the Cart page, so shipping price is calculated.
10. Go back to the Shop page
11. Ensure that the Mini Cart shows the price including the tax, but not including the Shipping prive.
12. Hover the Mini Cart.
13. Ensure that the Mini Cart shows always the same price.
14. Open the WooCommerce Settings.
15. Click on the "Tax" tab.
16. Set the "Display prices during cart and checkout" option to "Excluding Tax".
17. On the front end, add a product to the cart.
18. Refresh the page.
19. Ensure that the Mini Cart shows the price excluding the tax.
20. Hover the Mini Cart.
21. Ensure that the Mini Cart shows always the same price.
### Products block: fix compatibility with Gutenberg 16. ([9886](https://github.com/woocommerce/woocommerce-blocks/pull/9886))
1. Ensure that you have Gutenberg 16 installed and enabled.
2. Create a post/page.
3. Add the Products block.
4. Ensure that Products block defaults to the grid layout.

View File

@ -153,6 +153,7 @@ Every release includes specific testing instructions for new features and bug fi
- [10.4.0](./1040.md)
- [10.4.2](./1042.md)
- [10.4.3](./1043.md)
- [10.5.0](./1050.md)
<!-- FEEDBACK -->

View File

@ -1,12 +1,12 @@
{
"name": "@woocommerce/block-library",
"version": "10.5.0-dev",
"version": "10.5.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@woocommerce/block-library",
"version": "10.5.0-dev",
"version": "10.5.0",
"hasInstallScript": true,
"license": "GPL-3.0+",
"dependencies": {

View File

@ -2,7 +2,7 @@
"name": "@woocommerce/block-library",
"title": "WooCommerce Blocks",
"author": "Automattic",
"version": "10.5.0-dev",
"version": "10.5.0",
"description": "WooCommerce blocks for the Gutenberg editor.",
"homepage": "https://github.com/woocommerce/woocommerce-gutenberg-products-block/",
"keywords": [

View File

@ -4,7 +4,7 @@ Tags: gutenberg, woocommerce, woo commerce, products, blocks, woocommerce blocks
Requires at least: 6.2
Tested up to: 6.2
Requires PHP: 7.3
Stable tag: 10.4.3
Stable tag: 10.5.0
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
@ -81,6 +81,34 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](https:/
== Changelog ==
= 10.5.0 - 2023-06-19 =
#### Enhancements
- Allow Customer Account Block to be found with keyword "My Account". ([9815](https://github.com/woocommerce/woocommerce-blocks/pull/9815))
- Mini Cart: Add an alternative icon setting. ([9570](https://github.com/woocommerce/woocommerce-blocks/pull/9570))
- Improved the performance of loading frontend assets through the use of caching. ([9120](https://github.com/woocommerce/woocommerce-blocks/pull/9120))
- Add additional optimization to the Pattern images. ([9803](https://github.com/woocommerce/woocommerce-blocks/pull/9803))
#### Bug Fixes
- Fix error when adding the Reviews by Category block to a store without any product reviews. ([9868](https://github.com/woocommerce/woocommerce-blocks/pull/9868))
- Mini Cart block: Fix icon render in the widget selector. ([9828](https://github.com/woocommerce/woocommerce-blocks/pull/9828))
- WooCommerce Product Filters pattern: Improve the preview of the Filter by Attribute block. ([9812](https://github.com/woocommerce/woocommerce-blocks/pull/9812))
- Ensure the "Change Address" button is visible in the cart even if local pickup is selected. ([9809](https://github.com/woocommerce/woocommerce-blocks/pull/9809))
- Fix capitalization in Product Collections: Newest Arrivals pattern. ([9777](https://github.com/woocommerce/woocommerce-blocks/pull/9777))
- Add RTL preview support for mini-cart. ([9756](https://github.com/woocommerce/woocommerce-blocks/pull/9756))
- Fix mini cart icon not displaying correctly in RTL sites. ([9707](https://github.com/woocommerce/woocommerce-blocks/pull/9707))
- Prevent Mini-Cart drawer to show horizontal scrollbar if the system has visible scrollbars. ([9676](https://github.com/woocommerce/woocommerce-blocks/pull/9676))
- All Reviews block: Fix error when adding the block to a store without reviews. ([9869](https://github.com/woocommerce/woocommerce-blocks/pull/9869))
- Products block: fix compatibility with Gutenberg 16. ([9886](https://github.com/woocommerce/woocommerce-blocks/pull/9886))
#### Dependencies
- Peer Dependency: Request 2.88.2. ([9827](https://github.com/woocommerce/woocommerce-blocks/pull/9827))
- Bump fast-xml-parser from 4.0.7 to 4.2.4. ([9818](https://github.com/woocommerce/woocommerce-blocks/pull/9818))
= 10.4.3 - 2023-06-20 =
#### Bug Fixes

View File

@ -109,7 +109,7 @@ class Package {
NewPackage::class,
function ( $container ) {
// leave for automated version bumping.
$version = '10.5.0-dev';
$version = '10.5.0';
return new NewPackage(
$version,
dirname( __DIR__ ),

View File

@ -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: 10.5.0-dev
* Version: 10.5.0
* Author: Automattic
* Author URI: https://woocommerce.com
* Text Domain: woo-gutenberg-products-block