Skip to content

Commit 5b9aa59

Browse files
authored
Forms: remove Creative Mail promotion (#45524)
1 parent 946efda commit 5b9aa59

File tree

11 files changed

+13
-255
lines changed

11 files changed

+13
-255
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: minor
2+
Type: deprecated
3+
4+
Forms: remove Creative Mail promotion.

projects/packages/forms/src/blocks/contact-form/components/jetpack-integrations-modal/creative-mail-card.tsx

Lines changed: 0 additions & 98 deletions
This file was deleted.

projects/packages/forms/src/blocks/contact-form/components/jetpack-integrations-modal/index.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { __ } from '@wordpress/i18n';
99
* Internal dependencies
1010
*/
1111
import AkismetCard from './akismet-card';
12-
import CreativeMailCard from './creative-mail-card';
1312
import GoogleSheetsCard from './google-sheets-card';
1413
import HostingerReachCard from './hostinger-reach-card';
1514
import JetpackCRMCard from './jetpack-crm-card';
@@ -33,7 +32,6 @@ const IntegrationsModal = ( {
3332
akismet: false,
3433
googleSheets: false,
3534
crm: false,
36-
creativemail: false,
3735
salesforce: false,
3836
mailpoet: false,
3937
hostingerReach: false,
@@ -52,7 +50,6 @@ const IntegrationsModal = ( {
5250
const crmData = findIntegrationById( 'zero-bs-crm' );
5351
const mailpoetData = findIntegrationById( 'mailpoet' );
5452
const salesforceData = findIntegrationById( 'salesforce' );
55-
const creativeMailData = findIntegrationById( 'creative-mail-by-constant-contact' );
5653
const hostingerReachData = findIntegrationById( 'hostinger-reach' );
5754

5855
const toggleCard = ( cardId: string ) => {
@@ -137,15 +134,6 @@ const IntegrationsModal = ( {
137134
setAttributes={ setAttributes }
138135
/>
139136
) }
140-
{ creativeMailData && (
141-
<CreativeMailCard
142-
isExpanded={ expandedCards.creativemail }
143-
onToggle={ () => toggleCard( 'creativemail' ) }
144-
data={ creativeMailData }
145-
refreshStatus={ refreshIntegrations }
146-
borderBottom={ false }
147-
/>
148-
) }
149137
</VStack>
150138
</Modal>
151139
);

projects/packages/forms/src/blocks/contact-form/components/jetpack-integrations-modal/integration-card/style.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,6 @@
143143
padding-right: 0;
144144
}
145145

146-
.jetpack-forms-creative-mail-settings-button {
147-
margin-top: 12px;
148-
}
149-
150146
p {
151147
text-wrap: balance; // TODO: remove this fallback once `pretty` is globally supported.
152148
text-wrap: pretty;

projects/packages/forms/src/contact-form/class-contact-form-endpoint.php

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Contact_Form_Endpoint extends \WP_REST_Posts_Controller {
3838
*/
3939
private function get_supported_integrations() {
4040
$supported_integrations = array(
41-
'akismet' => array(
41+
'akismet' => array(
4242
'type' => 'plugin',
4343
'file' => 'akismet/akismet.php',
4444
'settings_url' => 'admin.php?page=akismet-key-config',
@@ -48,17 +48,7 @@ private function get_supported_integrations() {
4848
// Overriding this may automatically enable/disable the integration when editing a form.
4949
'enabled_by_default' => false,
5050
),
51-
'creative-mail-by-constant-contact' => array(
52-
'type' => 'plugin',
53-
'file' => 'creative-mail-by-constant-contact/creative-mail-plugin.php',
54-
'settings_url' => 'admin.php?page=creativemail',
55-
'marketing_redirect_slug' => 'creative-mail',
56-
'title' => __( 'Creative Mail', 'jetpack-forms' ),
57-
'subtitle' => __( 'Manage email contacts and campaigns', 'jetpack-forms' ),
58-
// Overriding this may automatically enable/disable the integration when editing a form.
59-
'enabled_by_default' => false,
60-
),
61-
'zero-bs-crm' => array(
51+
'zero-bs-crm' => array(
6252
'type' => 'plugin',
6353
'file' => 'zero-bs-crm/ZeroBSCRM.php',
6454
'settings_url' => 'admin.php?page=zerobscrm-plugin-settings',
@@ -68,7 +58,7 @@ private function get_supported_integrations() {
6858
// Overriding this may automatically enable/disable the integration when editing a form.
6959
'enabled_by_default' => true,
7060
),
71-
'salesforce' => array(
61+
'salesforce' => array(
7262
'type' => 'service',
7363
'file' => null,
7464
'settings_url' => null,
@@ -78,7 +68,7 @@ private function get_supported_integrations() {
7868
// Overriding this may automatically enable/disable the integration when editing a form.
7969
'enabled_by_default' => false,
8070
),
81-
'google-drive' => array(
71+
'google-drive' => array(
8272
'type' => 'service',
8373
'file' => null,
8474
'settings_url' => null,
@@ -88,7 +78,7 @@ private function get_supported_integrations() {
8878
// Overriding this may automatically enable/disable the integration when editing a form.
8979
'enabled_by_default' => false,
9080
),
91-
'mailpoet' => array(
81+
'mailpoet' => array(
9282
'type' => 'plugin',
9383
'file' => 'mailpoet/mailpoet.php',
9484
'settings_url' => 'admin.php?page=mailpoet-homepage',

projects/packages/forms/src/dashboard/about/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { __ } from '@wordpress/i18n';
1111
*/
1212
import useConfigValue from '../../hooks/use-config-value';
1313
import AkismetIcon from '../../icons/akismet';
14-
import CreativeMailIcon from '../../icons/creative-mail';
1514
import GoogleSheetsIcon from '../../icons/google-sheets';
1615
import SalesforceIcon from '../../icons/salesforce';
1716
import CreateFormButton from '../components/create-form-button';
@@ -124,7 +123,6 @@ const About = () => {
124123
<div className="app-icons-wrapper feature-header">
125124
<AkismetIcon width={ 32 } height={ 32 } className="icon-round" />
126125
<JetpackIcon size={ 32 } className="jetpack-icon" />
127-
<CreativeMailIcon width={ 32 } height={ 32 } className="icon-round" />
128126
<GoogleSheetsIcon
129127
width={ 32 }
130128
height={ 32 }

projects/packages/forms/src/dashboard/integrations/creative-mail-card.tsx

Lines changed: 0 additions & 69 deletions
This file was deleted.

projects/packages/forms/src/dashboard/integrations/index.tsx

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { useState, useCallback } from 'react';
1010
*/
1111
import { INTEGRATIONS_STORE } from '../../store/integrations';
1212
import AkismetDashboardCard from './akismet-card';
13-
import CreativeMailDashboardCard from './creative-mail-card';
1413
import GoogleSheetsDashboardCard from './google-sheets-card';
1514
import HostingerReachDashboardCard from './hostinger-reach-card';
1615
import JetpackCRMDashboardCard from './jetpack-crm-card';
@@ -35,7 +34,6 @@ const Integrations = () => {
3534
akismet: false,
3635
googleSheets: false,
3736
crm: false,
38-
creativemail: false,
3937
salesforce: false,
4038
mailpoet: false,
4139
hostingerReach: false,
@@ -66,10 +64,6 @@ const Integrations = () => {
6664
);
6765
const handleToggleCRM = useCallback( () => toggleCard( 'crm' ), [ toggleCard ] );
6866
const handleToggleSalesforce = useCallback( () => toggleCard( 'salesforce' ), [ toggleCard ] );
69-
const handleToggleCreativeMail = useCallback(
70-
() => toggleCard( 'creativemail' ),
71-
[ toggleCard ]
72-
);
7367
const handleToggleMailPoet = useCallback( () => toggleCard( 'mailpoet' ), [ toggleCard ] );
7468
const handleToggleHostingerReach = useCallback(
7569
() => toggleCard( 'hostingerReach' ),
@@ -85,7 +79,6 @@ const Integrations = () => {
8579
const crmData = findIntegrationById( 'zero-bs-crm' );
8680
const mailpoetData = findIntegrationById( 'mailpoet' );
8781
const salesforceData = findIntegrationById( 'salesforce' );
88-
const creativeMailData = findIntegrationById( 'creative-mail-by-constant-contact' );
8982
const hostingerReachData = findIntegrationById( 'hostinger-reach' );
9083

9184
return (
@@ -151,14 +144,6 @@ const Integrations = () => {
151144
refreshStatus={ refreshIntegrations }
152145
/>
153146
) }
154-
{ creativeMailData && (
155-
<CreativeMailDashboardCard
156-
isExpanded={ expandedCards.creativemail }
157-
onToggle={ handleToggleCreativeMail }
158-
data={ creativeMailData }
159-
refreshStatus={ refreshIntegrations }
160-
/>
161-
) }
162147
</div>
163148
</div>
164149
</div>

projects/packages/forms/src/icons/creative-mail.tsx

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)