From bd807f3470a6beddfae0af9504269e0747d052c8 Mon Sep 17 00:00:00 2001
From: retrofox
Date: Tue, 18 Feb 2020 15:19:26 -0300
Subject: [PATCH] [not verified] [not verified] extenstions: assign a new
category per block
---
extensions/blocks/amazon/index.js | 2 +-
extensions/blocks/business-hours/index.js | 2 +-
extensions/blocks/calendly/index.js | 2 +-
extensions/blocks/contact-form/index.js | 2 +-
extensions/blocks/contact-info/address/index.js | 2 +-
extensions/blocks/contact-info/email/index.js | 2 +-
extensions/blocks/contact-info/index.js | 2 +-
extensions/blocks/contact-info/phone/index.js | 2 +-
extensions/blocks/eventbrite/index.js | 2 +-
extensions/blocks/gif/index.js | 2 +-
extensions/blocks/mailchimp/index.js | 2 +-
extensions/blocks/map/settings.js | 2 +-
extensions/blocks/markdown/index.js | 2 +-
extensions/blocks/opentable/index.js | 2 +-
extensions/blocks/pinterest/index.js | 2 +-
extensions/blocks/recurring-payments/index.js | 2 +-
extensions/blocks/related-posts/index.js | 2 +-
extensions/blocks/repeat-visitor/index.js | 2 +-
extensions/blocks/simple-payments/index.js | 7 ++-----
extensions/blocks/slideshow/index.js | 2 +-
extensions/blocks/subscriptions/index.js | 2 +-
extensions/blocks/tiled-gallery/index.js | 2 +-
extensions/blocks/wordads/index.js | 2 +-
23 files changed, 24 insertions(+), 27 deletions(-)
diff --git a/extensions/blocks/amazon/index.js b/extensions/blocks/amazon/index.js
index 2afad2b111562..8e93ca3d1bc41 100644
--- a/extensions/blocks/amazon/index.js
+++ b/extensions/blocks/amazon/index.js
@@ -30,7 +30,7 @@ export const settings = {
icon: renderMaterialIcon(
),
- category: 'jetpack',
+ category: 'earn',
keywords: [],
supports: {
// Support for block's alignment (left, center, right, wide, full). When true, it adds block controls to change block’s alignment.
diff --git a/extensions/blocks/business-hours/index.js b/extensions/blocks/business-hours/index.js
index 534c300ffc30d..98066c2e5c6fe 100644
--- a/extensions/blocks/business-hours/index.js
+++ b/extensions/blocks/business-hours/index.js
@@ -82,7 +82,7 @@ export const settings = {
title: __( 'Business Hours', 'jetpack' ),
description: __( 'Display opening hours for your business.', 'jetpack' ),
icon,
- category: 'jetpack',
+ category: 'marketing',
supports: {
html: true,
},
diff --git a/extensions/blocks/calendly/index.js b/extensions/blocks/calendly/index.js
index 4fa5f23a407f6..0c490db2f403f 100644
--- a/extensions/blocks/calendly/index.js
+++ b/extensions/blocks/calendly/index.js
@@ -23,7 +23,7 @@ export const settings = {
title,
description: __( 'Embed a calendar for customers to schedule appointments', 'jetpack' ),
icon,
- category: 'jetpack',
+ category: 'marketing',
keywords: [
__( 'calendar', 'jetpack' ),
__( 'schedule', 'jetpack' ),
diff --git a/extensions/blocks/contact-form/index.js b/extensions/blocks/contact-form/index.js
index 9a0d608d095a8..1801ecdc3a98e 100644
--- a/extensions/blocks/contact-form/index.js
+++ b/extensions/blocks/contact-form/index.js
@@ -31,7 +31,7 @@ export const settings = {
_x( 'feedback', 'block search term', 'jetpack' ),
_x( 'contact form', 'block search term', 'jetpack' ),
],
- category: 'jetpack',
+ category: 'marketing',
supports: {
html: false,
},
diff --git a/extensions/blocks/contact-info/address/index.js b/extensions/blocks/contact-info/address/index.js
index f94259f4577d7..9dd20ca9974fb 100644
--- a/extensions/blocks/contact-info/address/index.js
+++ b/extensions/blocks/contact-info/address/index.js
@@ -63,7 +63,7 @@ export const settings = {
),
- category: 'jetpack',
+ category: 'marketing',
attributes,
parent: [ 'jetpack/contact-info' ],
edit,
diff --git a/extensions/blocks/contact-info/email/index.js b/extensions/blocks/contact-info/email/index.js
index db086dd091826..f451a339beb04 100644
--- a/extensions/blocks/contact-info/email/index.js
+++ b/extensions/blocks/contact-info/email/index.js
@@ -34,7 +34,7 @@ export const settings = {
icon: renderMaterialIcon(
),
- category: 'jetpack',
+ category: 'marketing',
attributes,
edit,
save,
diff --git a/extensions/blocks/contact-info/index.js b/extensions/blocks/contact-info/index.js
index 9307e8110951d..cd003f0741290 100644
--- a/extensions/blocks/contact-info/index.js
+++ b/extensions/blocks/contact-info/index.js
@@ -40,7 +40,7 @@ export const settings = {
icon: renderMaterialIcon(
),
- category: 'jetpack',
+ category: 'marketing',
supports: {
align: [ 'wide', 'full' ],
html: false,
diff --git a/extensions/blocks/contact-info/phone/index.js b/extensions/blocks/contact-info/phone/index.js
index 17c51924d7cd4..e551f37113bd0 100644
--- a/extensions/blocks/contact-info/phone/index.js
+++ b/extensions/blocks/contact-info/phone/index.js
@@ -34,7 +34,7 @@ export const settings = {
icon: renderMaterialIcon(
),
- category: 'jetpack',
+ category: 'marketing',
attributes,
parent: [ 'jetpack/contact-info' ],
edit,
diff --git a/extensions/blocks/eventbrite/index.js b/extensions/blocks/eventbrite/index.js
index c4737f804772c..4047ab7cfdd9f 100644
--- a/extensions/blocks/eventbrite/index.js
+++ b/extensions/blocks/eventbrite/index.js
@@ -40,7 +40,7 @@ export const settings = {
title,
description: __( 'Embed Eventbrite event details and ticket checkout.', 'jetpack' ),
icon,
- category: 'jetpack',
+ category: 'embed',
keywords: [ __( 'events', 'jetpack' ), __( 'tickets', 'jetpack' ) ],
supports: {
html: false,
diff --git a/extensions/blocks/gif/index.js b/extensions/blocks/gif/index.js
index 17a1967a3a592..770d226c24b25 100644
--- a/extensions/blocks/gif/index.js
+++ b/extensions/blocks/gif/index.js
@@ -26,7 +26,7 @@ export const icon = (
export const settings = {
title,
icon,
- category: 'jetpack',
+ category: 'embed',
keywords: [
_x( 'animated', 'block search term', 'jetpack' ),
_x( 'giphy', 'block search term', 'jetpack' ),
diff --git a/extensions/blocks/mailchimp/index.js b/extensions/blocks/mailchimp/index.js
index 85bbda1b1f855..2a6ef06e85ea0 100644
--- a/extensions/blocks/mailchimp/index.js
+++ b/extensions/blocks/mailchimp/index.js
@@ -23,7 +23,7 @@ export const settings = {
title: __( 'Mailchimp', 'jetpack' ),
icon,
description: __( 'A form enabling readers to join a Mailchimp list.', 'jetpack' ),
- category: 'jetpack',
+ category: 'marketing',
keywords: [
_x( 'email', 'block search term', 'jetpack' ),
_x( 'subscription', 'block search term', 'jetpack' ),
diff --git a/extensions/blocks/map/settings.js b/extensions/blocks/map/settings.js
index 27a25f09252cc..423d358349529 100644
--- a/extensions/blocks/map/settings.js
+++ b/extensions/blocks/map/settings.js
@@ -24,7 +24,7 @@ export const settings = {
),
- category: 'jetpack',
+ category: 'embed',
keywords: [
_x( 'map', 'block search term', 'jetpack' ),
_x( 'maps', 'block search term', 'jetpack' ),
diff --git a/extensions/blocks/markdown/index.js b/extensions/blocks/markdown/index.js
index a8b0bb7b74957..41f7038000f1a 100644
--- a/extensions/blocks/markdown/index.js
+++ b/extensions/blocks/markdown/index.js
@@ -57,7 +57,7 @@ export const settings = {
),
- category: 'jetpack',
+ category: 'formatting',
keywords: [
_x( 'formatting', 'block search term', 'jetpack' ),
diff --git a/extensions/blocks/opentable/index.js b/extensions/blocks/opentable/index.js
index 5515c676b5a26..d152a7bea6721 100644
--- a/extensions/blocks/opentable/index.js
+++ b/extensions/blocks/opentable/index.js
@@ -25,7 +25,7 @@ export const settings = {
title,
description: __( 'Allow visitors to book a reservation with OpenTable', 'jetpack' ),
icon,
- category: 'jetpack',
+ category: 'earn',
keywords: [
__( 'opentable', 'jetpack' ),
__( 'reservation', 'jetpack' ),
diff --git a/extensions/blocks/pinterest/index.js b/extensions/blocks/pinterest/index.js
index e588244aed6ee..ab1b8ba7d8023 100644
--- a/extensions/blocks/pinterest/index.js
+++ b/extensions/blocks/pinterest/index.js
@@ -32,7 +32,7 @@ export const settings = {
icon,
- category: 'jetpack',
+ category: 'social',
keywords: [ _x( 'social', 'block search term', 'jetpack' ) ],
diff --git a/extensions/blocks/recurring-payments/index.js b/extensions/blocks/recurring-payments/index.js
index 637dd775adb7c..9d6fdd68b8039 100644
--- a/extensions/blocks/recurring-payments/index.js
+++ b/extensions/blocks/recurring-payments/index.js
@@ -25,7 +25,7 @@ export const settings = {
title: __( 'Recurring Payments button', 'jetpack' ),
icon,
description: __( 'Button allowing you to sell subscription products.', 'jetpack' ),
- category: 'jetpack',
+ category: 'earn',
keywords: [
_x( 'sell', 'block search term', 'jetpack' ),
_x( 'subscription', 'block search term', 'jetpack' ),
diff --git a/extensions/blocks/related-posts/index.js b/extensions/blocks/related-posts/index.js
index c7a0b8bd246c0..bcdcaf805b42e 100644
--- a/extensions/blocks/related-posts/index.js
+++ b/extensions/blocks/related-posts/index.js
@@ -23,7 +23,7 @@ export const settings = {
),
- category: 'jetpack',
+ category: 'blog',
keywords: [
_x( 'Similar content', 'block search term', 'jetpack' ),
diff --git a/extensions/blocks/repeat-visitor/index.js b/extensions/blocks/repeat-visitor/index.js
index 25ead8b3376b8..62b9890ae6cd0 100644
--- a/extensions/blocks/repeat-visitor/index.js
+++ b/extensions/blocks/repeat-visitor/index.js
@@ -28,7 +28,7 @@ export const settings = {
default: DEFAULT_THRESHOLD,
},
},
- category: 'jetpack',
+ category: 'widget',
description: __(
'Control block visibility based on how often a visitor has viewed the page.',
'jetpack'
diff --git a/extensions/blocks/simple-payments/index.js b/extensions/blocks/simple-payments/index.js
index a8ed2b4271f07..b9402a9f9febd 100644
--- a/extensions/blocks/simple-payments/index.js
+++ b/extensions/blocks/simple-payments/index.js
@@ -42,10 +42,7 @@ export const settings = {
) }
- { __(
- 'Good for collecting donations or payments for products and services.',
- 'jetpack'
- ) }
+ { __( 'Good for collecting donations or payments for products and services.', 'jetpack' ) }
{ __( 'Support reference', 'jetpack' ) }
@@ -58,7 +55,7 @@ export const settings = {
),
- category: 'jetpack',
+ category: 'earn',
keywords: [
_x( 'shop', 'block search term', 'jetpack' ),
diff --git a/extensions/blocks/slideshow/index.js b/extensions/blocks/slideshow/index.js
index 7669de30a4be7..6053a101b8677 100644
--- a/extensions/blocks/slideshow/index.js
+++ b/extensions/blocks/slideshow/index.js
@@ -111,7 +111,7 @@ export const name = 'slideshow';
export const settings = {
title: __( 'Slideshow', 'jetpack' ),
- category: 'jetpack',
+ category: 'layout',
keywords: [
_x( 'image', 'block search term', 'jetpack' ),
_x( 'gallery', 'block search term', 'jetpack' ),
diff --git a/extensions/blocks/subscriptions/index.js b/extensions/blocks/subscriptions/index.js
index b7a804bb613d1..ca5968e458305 100644
--- a/extensions/blocks/subscriptions/index.js
+++ b/extensions/blocks/subscriptions/index.js
@@ -28,7 +28,7 @@ export const settings = {
icon: renderMaterialIcon(
),
- category: 'jetpack',
+ category: 'marketing',
keywords: [
_x( 'subscribe', 'block search term', 'jetpack' ),
diff --git a/extensions/blocks/tiled-gallery/index.js b/extensions/blocks/tiled-gallery/index.js
index b61c5f03cbe50..7624af2d47a4f 100644
--- a/extensions/blocks/tiled-gallery/index.js
+++ b/extensions/blocks/tiled-gallery/index.js
@@ -197,7 +197,7 @@ export const icon = (
export const settings = {
attributes: blockAttributes,
- category: 'jetpack',
+ category: 'layout',
description:
__( 'Display multiple images in an elegantly organized tiled layout.', 'jetpack' ) +
( ! isSimpleSite()
diff --git a/extensions/blocks/wordads/index.js b/extensions/blocks/wordads/index.js
index ece01423181f5..6fe18cfa8e92d 100644
--- a/extensions/blocks/wordads/index.js
+++ b/extensions/blocks/wordads/index.js
@@ -56,7 +56,7 @@ export const settings = {
attributes: {},
},
- category: 'jetpack',
+ category: 'earn',
keywords: [ __( 'ads', 'jetpack' ), 'WordAds', __( 'Advertisement', 'jetpack' ) ],