Skip to content

Commit cc01d6b

Browse files
committed
PR feedback: Copy, sentence-casing
1 parent 9bc3780 commit cc01d6b

File tree

11 files changed

+21
-21
lines changed

11 files changed

+21
-21
lines changed

x-pack/plugins/enterprise_search/public/applications/app_search/components/analytics/constants.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ import { i18n } from '@kbn/i18n';
88

99
export const TOTAL_DOCUMENTS = i18n.translate(
1010
'xpack.enterpriseSearch.appSearch.engine.analytics.totalDocuments',
11-
{ defaultMessage: 'Total Documents' }
11+
{ defaultMessage: 'Total documents' }
1212
);
1313

1414
export const TOTAL_API_OPERATIONS = i18n.translate(
1515
'xpack.enterpriseSearch.appSearch.engine.analytics.totalApiOperations',
16-
{ defaultMessage: 'Total API Operations' }
16+
{ defaultMessage: 'Total API operations' }
1717
);
1818

1919
export const TOTAL_QUERIES = i18n.translate(
2020
'xpack.enterpriseSearch.appSearch.engine.analytics.totalQueries',
21-
{ defaultMessage: 'Total Queries' }
21+
{ defaultMessage: 'Total queries' }
2222
);
2323

2424
export const TOTAL_CLICKS = i18n.translate(
2525
'xpack.enterpriseSearch.appSearch.engine.analytics.totalClicks',
26-
{ defaultMessage: 'Total Clicks' }
26+
{ defaultMessage: 'Total clicks' }
2727
);

x-pack/plugins/enterprise_search/public/applications/app_search/components/api_logs/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import { i18n } from '@kbn/i18n';
88

99
export const RECENT_API_EVENTS = i18n.translate(
1010
'xpack.enterpriseSearch.appSearch.engine.apiLogs.recent',
11-
{ defaultMessage: 'Recent API Events' }
11+
{ defaultMessage: 'Recent API events' }
1212
);

x-pack/plugins/enterprise_search/public/applications/app_search/components/document_creation/constants.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ import { DOCS_PREFIX } from '../../routes';
1515
export const DOCUMENT_CREATION_DESCRIPTION = (
1616
<FormattedMessage
1717
id="xpack.enterpriseSearch.appSearch.engine.documentCreation.description"
18-
defaultMessage="There are three ways to send documents to your Engine for indexing. You can paste raw JSON, upload a {jsonCode} file, or {postCode} to the {documentsApiLink} endpoint. Click on your choice below or see {apiStrong}."
18+
defaultMessage="There are three ways to send documents to your engine for indexing. You can paste raw JSON, upload a {jsonCode} file, or {postCode} to the {documentsApiLink} endpoint. Click on your choice below or see {apiStrong}."
1919
values={{
2020
jsonCode: <EuiCode>.json</EuiCode>,
2121
postCode: <EuiCode>POST</EuiCode>,
2222
documentsApiLink: (
2323
<EuiLink target="_blank" href={`${DOCS_PREFIX}/indexing-documents-guide.html`}>
24-
Documents API
24+
documents API
2525
</EuiLink>
2626
),
2727
apiStrong: <strong>Indexing by API</strong>,
@@ -37,11 +37,11 @@ export const DOCUMENT_API_INDEXING_TITLE = i18n.translate(
3737
export const DOCUMENT_API_INDEXING_DESCRIPTION = (
3838
<FormattedMessage
3939
id="xpack.enterpriseSearch.appSearch.engine.documentCreation.api.description"
40-
defaultMessage="The {documentsApiLink} can be used to add new documents to your Engine, update documents, retrieve documents by id, and delete documents. There are a variety of {clientLibrariesLink} to help you get started."
40+
defaultMessage="The {documentsApiLink} can be used to add new documents to your engine, update documents, retrieve documents by id, and delete documents. There are a variety of {clientLibrariesLink} to help you get started."
4141
values={{
4242
documentsApiLink: (
4343
<EuiLink target="_blank" href={`${DOCS_PREFIX}/indexing-documents-guide.html`}>
44-
Documents API
44+
documents API
4545
</EuiLink>
4646
),
4747
clientLibrariesLink: (

x-pack/plugins/enterprise_search/public/applications/app_search/components/engine_overview/components/recent_api_logs.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('RecentApiLogs', () => {
2525
});
2626

2727
it('renders the recent API logs table', () => {
28-
expect(wrapper.find('h2').text()).toEqual('Recent API Events');
28+
expect(wrapper.find('h2').text()).toEqual('Recent API events');
2929
expect(wrapper.find(EuiButton).prop('to')).toEqual('/engines/some-engine/api-logs');
3030
// TODO: expect(wrapper.find(ApiLogsTable)).toHaveLength(1)
3131
});

x-pack/plugins/enterprise_search/public/applications/app_search/components/engine_overview/components/total_charts.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ describe('TotalCharts', () => {
3131
it('renders the total queries chart', () => {
3232
const chart = wrapper.find('[data-test-subj="TotalQueriesChart"]');
3333

34-
expect(chart.find('h2').text()).toEqual('Total Queries');
34+
expect(chart.find('h2').text()).toEqual('Total queries');
3535
expect(chart.find(EuiButton).prop('to')).toEqual('/engines/some-engine/analytics');
3636
// TODO: find chart component
3737
});
3838

3939
it('renders the total API operations chart', () => {
4040
const chart = wrapper.find('[data-test-subj="TotalApiOperationsChart"]');
4141

42-
expect(chart.find('h2').text()).toEqual('Total API Operations');
42+
expect(chart.find('h2').text()).toEqual('Total API operations');
4343
expect(chart.find(EuiButton).prop('to')).toEqual('/engines/some-engine/api-logs');
4444
// TODO: find chart component
4545
});

x-pack/plugins/enterprise_search/public/applications/app_search/components/engine_overview/components/total_stats.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,22 @@ describe('TotalStats', () => {
3030

3131
const card = wrapper.find(EuiStat).at(0);
3232
expect(card.prop('title')).toEqual(11);
33-
expect(card.prop('description')).toEqual('Total Queries');
33+
expect(card.prop('description')).toEqual('Total queries');
3434
});
3535

3636
it('renders the total documents stat', () => {
3737
expect(wrapper.find('[data-test-subj="TotalDocumentsCard"]')).toHaveLength(1);
3838

3939
const card = wrapper.find(EuiStat).at(1);
4040
expect(card.prop('title')).toEqual(22);
41-
expect(card.prop('description')).toEqual('Total Documents');
41+
expect(card.prop('description')).toEqual('Total documents');
4242
});
4343

4444
it('renders the total clicks stat', () => {
4545
expect(wrapper.find('[data-test-subj="TotalClicksCard"]')).toHaveLength(1);
4646

4747
const card = wrapper.find(EuiStat).at(2);
4848
expect(card.prop('title')).toEqual(33);
49-
expect(card.prop('description')).toEqual('Total Clicks');
49+
expect(card.prop('description')).toEqual('Total clicks');
5050
});
5151
});

x-pack/plugins/enterprise_search/public/applications/app_search/components/engine_overview/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ export const OVERVIEW_TITLE = i18n.translate(
1313

1414
export const VIEW_ANALYTICS = i18n.translate(
1515
'xpack.enterpriseSearch.appSearch.engine.overview.analyticsLink',
16-
{ defaultMessage: 'View Analytics' }
16+
{ defaultMessage: 'View analytics' }
1717
);
1818

1919
export const VIEW_API_LOGS = i18n.translate(
2020
'xpack.enterpriseSearch.appSearch.engine.overview.apiLogsLink',
21-
{ defaultMessage: 'View API Logs' }
21+
{ defaultMessage: 'View API logs' }
2222
);
2323

2424
export const LAST_7_DAYS = i18n.translate(

x-pack/plugins/enterprise_search/public/applications/app_search/components/engine_overview/engine_overview_empty.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('EmptyEngineOverview', () => {
2828

2929
it('renders', () => {
3030
expect(wrapper.find('h1').text()).toEqual('Engine setup');
31-
expect(wrapper.find('h2').text()).toEqual('Setting up the “empty-engine” Engine');
31+
expect(wrapper.find('h2').text()).toEqual('Setting up the “empty-engine” engine');
3232
expect(wrapper.find('h3').text()).toEqual('Indexing by API');
3333
});
3434

x-pack/plugins/enterprise_search/public/applications/app_search/components/engine_overview/engine_overview_empty.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const EmptyEngineOverview: React.FC = () => {
6060
<EuiTitle>
6161
<h2>
6262
{i18n.translate('xpack.enterpriseSearch.appSearch.engine.overview.empty.subheading', {
63-
defaultMessage: 'Setting up the “{engineName}” Engine',
63+
defaultMessage: 'Setting up the “{engineName}” engine',
6464
values: { engineName },
6565
})}
6666
</h2>

x-pack/plugins/enterprise_search/public/applications/app_search/components/engine_overview/engine_overview_metrics.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { EngineOverviewMetrics } from './engine_overview_metrics';
1515
describe('EngineOverviewMetrics', () => {
1616
it('renders', () => {
1717
const wrapper = shallow(<EngineOverviewMetrics />);
18-
expect(wrapper.find('h1').text()).toEqual('Engine Overview');
18+
expect(wrapper.find('h1').text()).toEqual('Engine overview');
1919
});
2020

2121
it('renders an unavailable prompt if engine data is still indexing', () => {

0 commit comments

Comments
 (0)