Skip to content

Commit d898a4f

Browse files
refactor: update feature descriptions and improve UI text consistency
1 parent 69106fd commit d898a4f

File tree

3 files changed

+24
-42
lines changed

3 files changed

+24
-42
lines changed

onboarding/src/Components/CustomizeControls/FeaturesControl.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ import FeaturesList from '../FeaturesList';
66
const FeaturesControl = ( { importData, togglePluginInstall } ) => {
77
return (
88
<div className="ob-ctrl">
9-
<div className="ob-ctrl-head small-gap">
10-
<h3>
11-
{ __( 'Select features', 'templates-patterns-collection' ) }
12-
</h3>
13-
</div>
149
<div className="ob-ctrl-wrap input">
1510
<FeaturesList requiredPlugins={importData?.mandatory_plugins ?? {}} onToggle={togglePluginInstall} />
1611
</div>

onboarding/src/Components/FeaturesList.js

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,43 @@ const featuredPluginCollection = [
1717
id: 'pageBuilder',
1818
pluginSlug: 'otter-blocks',
1919
label: __('Site Builder', 'templates-patterns-collection'),
20-
description: __('Design pages visually with a drag-and-drop builder', 'templates-patterns-collection')
20+
description: __('Design pages visually with a drag-and-drop builder.', 'templates-patterns-collection')
2121
},
2222
{
2323
id: 'contactForm',
2424
pluginSlug: 'otter-blocks',
2525
label: __('Contact Form', 'templates-patterns-collection'),
26-
description: __('Create custom contact forms easily', 'templates-patterns-collection')
26+
description: __('Create custom contact forms easily.', 'templates-patterns-collection')
2727
},
2828
{
2929
id: 'imageOpt',
3030
pluginSlug: 'optimole-wp',
3131
label: __('Image Optimization', 'templates-patterns-collection'),
32-
description: __('Automatically optimize images for better performance', 'templates-patterns-collection')
32+
description: __('Automatically optimize images for better performance.', 'templates-patterns-collection')
3333
},
3434
{
3535
id: 'caching',
3636
pluginSlug: 'wp-cloudflare-page-cache',
3737
label: __('Caching', 'templates-patterns-collection'),
38-
description: __('Improve website speed with caching technology', 'templates-patterns-collection')
38+
description: __('Improve website speed with caching technology.', 'templates-patterns-collection')
3939
},
4040
{
4141
id: 'eCommerce',
4242
pluginSlug: 'wp-full-stripe-free',
4343
label: __('eCommerce', 'templates-patterns-collection'),
44-
description: __('Set up an online store and accept payments', 'templates-patterns-collection'),
44+
description: __('Set up an online store and accept payments.', 'templates-patterns-collection'),
4545
},
4646
{
4747
id: 'chatbot',
4848
pluginSlug: 'hyve-lite',
4949
label: __('AI ChatBot', 'templates-patterns-collection'),
50-
description: __('Add intelligent chat functionality to your site', 'templates-patterns-collection')
50+
description: __('Add intelligent chat functionality to your site.', 'templates-patterns-collection')
51+
},
52+
{
53+
id: 'visualizer',
54+
pluginSlug: 'visualizer',
55+
label: __('Tables and Chart', 'templates-patterns-collection'),
56+
description: __('A powerful and easy to use plugin for responsive charts & tables.', 'templates-patterns-collection')
5157
},
5258
];
5359

@@ -102,6 +108,12 @@ const thirdPartyFeaturedPluginCollection = [
102108
pluginSlug: 'pods',
103109
label: __('Pods', 'templates-patterns-collection'),
104110
description: __('A framework for creating, managing, and deploying customized content types and fields for any project.', 'templates-patterns-collection')
111+
},
112+
{
113+
id: 'restrict-content',
114+
pluginSlug: 'restrict-content',
115+
label: __('Membership Plugin', 'templates-patterns-collection'),
116+
description: __('Membership plugin that allows you to monetize content access.', 'templates-patterns-collection')
105117
}
106118
];
107119

@@ -194,7 +206,7 @@ const FeaturesList = ({ requiredPlugins, onToggle }) => {
194206
<button
195207
key={feature.id}
196208
className={`ob-feature-card ${
197-
selectedFeatures[feature.id] ? 'selected' : ''
209+
checked ? 'selected' : ''
198210
} ${isLocked ? 'ob-disabled' : ''}`}
199211
onClick={() => toggleFeature(feature.id, feature.pluginSlug)}
200212
onKeyPress={(e) => {

onboarding/src/Components/SiteSettings.js

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ export const SiteSettings = ( {
3737

3838
let heading =
3939
step === 3
40-
? __( 'Customise design', 'templates-patterns-collection' )
41-
: __( 'Site details', 'templates-patterns-collection' );
40+
? __( 'Customize design', 'templates-patterns-collection' )
41+
: __( 'Select features', 'templates-patterns-collection' );
4242

4343
let description = __(
44-
'Optionally add your business name and logo. You can change these later.',
44+
'Enhance your website with powerful plugins to fulfil your needs.',
4545
'templates-patterns-collection'
4646
);
4747
if ( step === 3 ) {
4848
description = __(
49-
'Customise the design of your site, such as color and typography.',
49+
'Customize the design of your site, such as color and typography.',
5050
'templates-patterns-collection'
5151
);
5252
}
@@ -196,11 +196,6 @@ export const SiteSettings = ( {
196196
{ step === 4 &&
197197
( canImport ? (
198198
<>
199-
<SiteNameControl
200-
importDataDefault={
201-
importDataDefault
202-
}
203-
/>
204199
<FeaturesControl />
205200
</>
206201
) : (
@@ -248,30 +243,10 @@ export const SiteSettings = ( {
248243
setOpenConfirmationModal( true );
249244
}
250245
}
251-
disabled={
252-
fetching ||
253-
( ! siteName &&
254-
! siteLogo &&
255-
! settingsChanged )
256-
}
257-
>
258-
{ __(
259-
'Import Website',
260-
'templates-patterns-collection'
261-
) }
262-
</Button>
263-
<Button
264-
isLink
265-
className="ob-link"
266-
onClick={ () =>{
267-
setSkipSuggestions( true );
268-
setOpenConfirmationModal( true );
269-
}
270-
}
271246
disabled={ fetching }
272247
>
273248
{ __(
274-
'Skip and import website',
249+
'Import Website',
275250
'templates-patterns-collection'
276251
) }
277252
</Button>

0 commit comments

Comments
 (0)