Skip to content

Commit

Permalink
Correct block name and description (woocommerce#7354)
Browse files Browse the repository at this point in the history
* Correct block name and description

* remove duplicated description for controls blocks

* remove duplicated title and desc

* Revert "remove duplicated description for controls blocks"

This reverts commit ed5417e.
  • Loading branch information
dinhtungdu authored and senadir committed Nov 12, 2022
1 parent bda5b64 commit 743b112
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 21 deletions.
2 changes: 1 addition & 1 deletion assets/js/blocks/active-filters/block.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "woocommerce/active-filters",
"version": "1.0.0",
"title": "Active Product Filter Controls",
"title": "Active Product Filters Controls",
"description": "Display the currently active product filters.",
"category": "woocommerce",
"keywords": [ "WooCommerce" ],
Expand Down
8 changes: 0 additions & 8 deletions assets/js/blocks/active-filters/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ import { blockAttributes } from './attributes';
import { Attributes } from './types';

registerBlockType( metadata, {
title: __(
'Active Product Filter Controls',
'woo-gutenberg-products-block'
),
description: __(
'Display the currently active product filters.',
'woo-gutenberg-products-block'
),
icon: {
src: (
<Icon
Expand Down
2 changes: 1 addition & 1 deletion assets/js/blocks/attribute-filter/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "woocommerce/attribute-filter",
"version": "1.0.0",
"title": "Filter by Attribute Controls",
"description": "Allow customers to filter the grid by product attribute, such as color.",
"description": "Enable customers to filter the product grid by selecting one or more attributes, such as color.",
"category": "woocommerce",
"keywords": [ "WooCommerce" ],
"supports": {
Expand Down
8 changes: 4 additions & 4 deletions assets/js/blocks/filter-wrapper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ registerBlockType( metadata, {
'woo-gutenberg-products-block'
),
description: __(
'Show the currently active product filters. Works in combination with other filters blocks.',
'Display the currently active product filters.',
'woo-gutenberg-products-block'
),
/**
Expand Down Expand Up @@ -58,7 +58,7 @@ registerBlockType( metadata, {
name: 'price-filter',
title: __( 'Filter by Price', 'woo-gutenberg-products-block' ),
description: __(
'Allow customers to filter products by price range.',
'Enable customers to filter the product grid by choosing a price range.',
'woo-gutenberg-products-block'
),
isActive: ( attributes ) =>
Expand All @@ -83,7 +83,7 @@ registerBlockType( metadata, {
name: 'stock-filter',
title: __( 'Filter by Stock', 'woo-gutenberg-products-block' ),
description: __(
'Allow customers to filter the grid by products stock status.',
'Enable customers to filter the product grid by stock status.',
'woo-gutenberg-products-block'
),
isActive: ( attributes ) =>
Expand All @@ -108,7 +108,7 @@ registerBlockType( metadata, {
name: 'attribute-filter',
title: __( 'Filter by Attribute', 'woo-gutenberg-products-block' ),
description: __(
'Allow customers to filter the grid by product attribute, such as color.',
'Enable customers to filter the product grid by selecting one or more attributes, such as color.',
'woo-gutenberg-products-block'
),
isActive: ( attributes ) =>
Expand Down
2 changes: 1 addition & 1 deletion assets/js/blocks/stock-filter/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "woocommerce/stock-filter",
"version": "1.0.0",
"title": "Filter by Stock Controls",
"description": "Allow customers to filter the grid by products stock status.",
"description": "Enable customers to filter the product grid by stock status.",
"category": "woocommerce",
"keywords": [ "WooCommerce" ],
"supports": {
Expand Down
6 changes: 0 additions & 6 deletions assets/js/blocks/stock-filter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { registerBlockType } from '@wordpress/blocks';
import { Icon, box } from '@wordpress/icons';
import classNames from 'classnames';
import { useBlockProps } from '@wordpress/block-editor';
import { __ } from '@wordpress/i18n';

/**
* Internal dependencies
Expand All @@ -16,11 +15,6 @@ import { blockAttributes } from './attributes';
import type { Attributes } from './types';

registerBlockType( metadata, {
title: __( 'Filter Products by Stock', 'woo-gutenberg-products-block' ),
description: __(
'Enable customers to filter the product grid by stock status.',
'woo-gutenberg-products-block'
),
icon: {
src: (
<Icon
Expand Down

0 comments on commit 743b112

Please sign in to comment.