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

Release: 7.1.0 #5959

Merged
merged 8 commits into from
Mar 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
"config": {
"platform": {
"php": "7.4.24"
},
"allow-plugins": {
"automattic/jetpack-autoloader": true,
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"extra": {
Expand Down
81 changes: 81 additions & 0 deletions docs/testing/releases/710.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
## Testing notes and ZIP for release 7.1.0

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

## Feature plugin and package inclusion in WooCommerce

### Add Global Styles support to the Product Price block. ([5950](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5950))

1. Be sure that you are on `WordPress 5.9`.
2. Install and enable the `Twenty Twenty-Two` theme.
3. Select Appearance > Editor (beta). On the Editor page click on the `Styles` icon in the top-right corner.
4. Edit some Global Styles e.g. color & font-size for the Product Price block in the Blocks section.
5. Create a new post and add the All Products block.
6. The Price component should reflect the changes made in Global Styles.
7. Click the Edit icon in the block toolbar. Select the Price block and change its styles in the right sidebar. Click Done & save.
8. Ensure the local styles override the Global Styles on the Frontend of your store.

### Add Global Styles support to the Add To Cart Button block. ([5816](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5816))

1. Be sure that you are on `WordPress 5.9`.
2. Install and enable the `Twenty Twenty-Two` theme.
3. Add the `All Products` block (this block contains the `Add To Cart Button Block`) to a post.
4. Click the Edit icon in the block toolbar. Select the `Add To Cart Button`.
5. On the right sidebar, personalize the styles of the block. Click Done & save.
6. View the post on the Frontend and confirm your changes changes.
7. Reset to default using the `Reset` button from the different sections.
8. Go to Dashboard and select Appearance > Editor (beta). At the top of the screen, select Home > Browse all templates > Single Post. When the page is loaded, add the `All Products` block to the page.
9. On the Editor page click on the `Styles` icon in the top-right corner.
10. Verify that the `Add To Cart Button` is shown under the `Blocks` section. Personalize the block again.
11. Save your changes.
12. Go on the page created earlier and check if all styles are applied correctly.
13. Edit your previous post/page again.
14. Change the styles again and save your changes.
15. Check if these new styles have priority over the global styles from the Site Editor.

### Store API - Introduced `wc/store/v1` namespace. ([5911](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5911))

1. Smoke test checkout process to highlight any problems with cart/checkout endpoints.
2. Smoke test the All Products block to highlight any problems with product endpoints.
3. Try accessing old endpoints, for example, `https://store.local/wp-json/wc/store/cart`. These should still work.
4. Try accessing new endpoints, for example, `https://store.local/wp-json/wc/store/v1/cart`.

### Renamed WooCommerce block templates to more e-commerce related names. ([5935](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5935))

1. Be sure that you are on `WordPress 5.9`.
2. Install and enable the `Twenty Twenty-Two` theme.
3. Select Appearance > Editor (beta).
4. Select the dropdown next to Home and click the "Browse all templates" button.
4. Confirm that the WooCommerce block template names appear on the list according to the following table:

Old Title | New Title
-- | --
Product Archive | Product Catalog
Product Tag | Products by Tag
Product Category | Products by Category
Single Product | _no change_

### Featured Product block: Add the ability to reset to a previously set custom background image. ([5886](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5886))

1. Add a Featured Product block to a page, post, or template. Select a product that has a product image.
2. In the block toolbar, click Replace and add custom background media.
3. The button to Reset the image should become available in the block toolbar.
4. Clicking the Reset button should remove the custom media.
5. The original product image should show again.

## Feature Plugin

### Fix loading WC core translations in locales where WC Blocks is not localized for some strings. ([5910](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5910))

1. Go to Settings > General > Language (`/wp-admin/options-general.php`) and select a language which has WC core translation at 100% but WC Blocks' at 0% e.g. `Català`.
2. Go to the updates screen (`/wp-admin/update-core.php`), scroll down and update the language translations.
3. Visit the Cart or Checkout block in the frontend and verify the texts are translated.

<!-- FEEDBACK -->
---

[We're hiring!](https://woocommerce.com/careers/) Come work with us!

🐞 Found a mistake, or have a suggestion? [Leave feedback about this document here.](https://github.com/woocommerce/woocommerce-gutenberg-products-block/issues/new?assignees=&labels=type%3A+documentation&template=--doc-feedback.md&title=Feedback%20on%20./docs/testing/releases/700.md)
<!-- /FEEDBACK -->

1 change: 1 addition & 0 deletions docs/testing/releases/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Every release includes specific testing instructions for new features and bug fi
- [6.8.0](./680.md)
- [6.9.0](./690.md)
- [7.0.0](./700.md)
[7.1.0](./710.md)
<!-- FEEDBACK -->
---

Expand Down
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": "7.1.0-dev",
"version": "7.1.0",
"description": "WooCommerce blocks for the Gutenberg editor.",
"homepage": "https://github.com/woocommerce/woocommerce-gutenberg-products-block/",
"keywords": [
Expand Down
17 changes: 16 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: 5.9
Tested up to: 5.9
Requires PHP: 7.0
Stable tag: 7.1.0-dev
Stable tag: 7.1.0
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

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

== Changelog ==

= 7.1.0 - 2022-02-28 =

#### Enhancements

- Add Global Styles support to the Product Price block. ([5950](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5950))
- Add Global Styles support to the Add To Cart Button block. ([5816](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5816))
- Store API - Introduced `wc/store/v1` namespace. ([5911](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5911))
- Renamed WooCommerce block templates to more e-commerce related names. ([5935](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5935))
- Featured Product block: Add the ability to reset to a previously set custom background image. ([5886](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5886))

#### Bug Fixes

- Fixed typo in `wooocommerce_store_api_validate_add_to_cart` and `wooocommerce_store_api_validate_cart_item` hook names. ([5926](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5926))
- Fix loading WC core translations in locales where WC Blocks is not localized for some strings. ([5910](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5910))

= 7.0.0 - 2022-02-14 =

#### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion src/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public static function container( $reset = false ) {
NewPackage::class,
function ( $container ) {
// leave for automated version bumping.
$version = '7.1.0-dev';
$version = '7.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: 7.1.0-dev
* Version: 7.1.0
* Author: Automattic
* Author URI: https://woocommerce.com
* Text Domain: woo-gutenberg-products-block
Expand Down