Skip to content

Commit 000d488

Browse files
committed
Rename to Settings
1 parent 44c6902 commit 000d488

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ ClassifAI is a sophisticated solution that we want organizations of all shapes a
159159
- Check for an email from `ClassifAI Team` which contains the registration key.
160160
- Note that the email will be sent from `opensource@10up.com`, so please whitelist this email address if needed.
161161

162-
### 2. Configure ClassifAI Registration Key under Tools > ClassifAI > ClassifAI Registration
162+
### 2. Configure ClassifAI Registration Key under Tools > ClassifAI > Settings
163163

164164
- In the `Registered Email` field, enter the email you used for registration.
165165
- In the `Registration Key` field, enter the registration key from the email in step 1 above.

assets/img/screenshot-6.png

238 KB
Loading

includes/Classifai/Admin/templates/classifai-header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
$services_menu = Classifai\get_services_menu();
6565
$classifai_settings = array(
66-
'classifai_settings' => __( 'ClassifAI Registration', 'classifai' ),
66+
'classifai_settings' => __( 'Settings', 'classifai' ),
6767
);
6868

6969
$classifai_header_menu = array_merge( $classifai_settings, $services_menu );

src/js/settings/components/classifai-settings/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,15 @@ export const ServiceNavigation = () => {
108108
</NavLink>
109109
) ) }
110110
<NavLink
111-
to="classifai_registration"
112-
key="classifai_registration"
111+
to="settings"
112+
key="settings"
113113
className={ ( { isActive } ) =>
114114
isActive
115115
? 'active-tab classifai-tabs-item'
116116
: 'classifai-tabs-item'
117117
}
118118
>
119-
{ __( 'ClassifAI Registration', 'classifai' ) }
119+
{ __( 'Settings', 'classifai' ) }
120120
</NavLink>
121121
</div>
122122
</>
@@ -239,7 +239,7 @@ export const ClassifAISettings = () => {
239239
element={ <FeatureSettingsWrapper /> }
240240
/>
241241
<Route
242-
path="classifai_registration"
242+
path="settings"
243243
element={ <ClassifAIRegistration /> }
244244
/>
245245
{ /* When no routes match, it will redirect to this route path. Note that it should be registered above. */ }

tests/cypress/integration/admin.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ describe( 'Admin can login and make sure plugin is activated', () => {
4848
.contains( 'Image Processing' );
4949
} );
5050

51-
it( 'Can visit "ClassifAI Registration" settings page and see all settings.', () => {
51+
it( 'Can visit the general settings page and see all settings.', () => {
5252
// Check Selected Navigation menu
53-
cy.visitFeatureSettings( 'classifai_registration' );
53+
cy.visitFeatureSettings( 'settings' );
5454
cy.get( '.classifai-tabs' ).should( 'exist' );
5555
cy.get( '.classifai-tabs a.active-tab' )
5656
.first()
57-
.contains( 'ClassifAI Registration' );
57+
.contains( 'Settings' );
5858

5959
// Check that all settings are present.
6060
cy.get( '.components-input-control input[type="email"]' ).should(
@@ -70,7 +70,7 @@ describe( 'Admin can login and make sure plugin is activated', () => {
7070
} );
7171

7272
it( 'Can turn on "Block AI Bots" setting and it works.', () => {
73-
cy.visitFeatureSettings( 'classifai_registration' );
73+
cy.visitFeatureSettings( 'settings' );
7474

7575
cy.get( '.classifai-enable-bot-block input' ).check();
7676

wp-hooks-docs/docs/01.get-started/02.register-account.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ClassifAI is a sophisticated solution that we want organizations of all shapes a
1212
- Check for an email from `ClassifAI Team` which contains the registration key.
1313
- Note that the email will be sent from `opensource@10up.com`, so please whitelist this email address if needed.
1414

15-
### 2. Configure ClassifAI Registration Key under Tools > ClassifAI > ClassifAI Registration
15+
### 2. Configure ClassifAI Registration Key under Tools > ClassifAI > Settings
1616

1717
- In the `Registered Email` field, enter the email you used for registration.
1818
- In the `Registration Key` field, enter the registration key from the email in step 1 above.

0 commit comments

Comments
 (0)