From 51d1a170c8abe31cdf015b59b6b9a3a153dd378d Mon Sep 17 00:00:00 2001 From: Lisa Cawley Date: Tue, 2 May 2023 07:49:53 -0700 Subject: [PATCH] [Cases] Edit labels for file attachments (#156026) (cherry picked from commit 30eb413215cf87f96ba5f58e562a7f9b2fbf7241) --- .../public/components/all_cases/translations.ts | 4 ++-- .../components/all_cases/use_cases_columns.test.tsx | 12 ++++++------ .../cases/public/components/files/file_type.test.tsx | 6 +++--- .../cases/public/components/files/translations.tsx | 8 ++++---- .../files/use_files_table_columns.test.tsx | 6 +++--- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/x-pack/plugins/cases/public/components/all_cases/translations.ts b/x-pack/plugins/cases/public/components/all_cases/translations.ts index 80554bb44fb39..12c16e1f6501d 100644 --- a/x-pack/plugins/cases/public/components/all_cases/translations.ts +++ b/x-pack/plugins/cases/public/components/all_cases/translations.ts @@ -52,7 +52,7 @@ export const BULK_ACTIONS = i18n.translate('xpack.cases.caseTable.bulkActions', }); export const EXTERNAL_INCIDENT = i18n.translate('xpack.cases.caseTable.snIncident', { - defaultMessage: 'External Incident', + defaultMessage: 'External incident', }); export const SEVERITY = i18n.translate('xpack.cases.caseTable.severity', { @@ -60,7 +60,7 @@ export const SEVERITY = i18n.translate('xpack.cases.caseTable.severity', { }); export const INCIDENT_MANAGEMENT_SYSTEM = i18n.translate('xpack.cases.caseTable.incidentSystem', { - defaultMessage: 'Incident Management System', + defaultMessage: 'Incident management system', }); export const SEARCH_PLACEHOLDER = i18n.translate('xpack.cases.caseTable.searchPlaceholder', { diff --git a/x-pack/plugins/cases/public/components/all_cases/use_cases_columns.test.tsx b/x-pack/plugins/cases/public/components/all_cases/use_cases_columns.test.tsx index 060ac64cafb08..f6cbe9113e5d6 100644 --- a/x-pack/plugins/cases/public/components/all_cases/use_cases_columns.test.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/use_cases_columns.test.tsx @@ -99,7 +99,7 @@ describe('useCasesColumns ', () => { "sortable": true, }, Object { - "name": "External Incident", + "name": "External incident", "render": [Function], "width": undefined, }, @@ -232,7 +232,7 @@ describe('useCasesColumns ', () => { "sortable": true, }, Object { - "name": "External Incident", + "name": "External incident", "render": [Function], "width": undefined, }, @@ -316,7 +316,7 @@ describe('useCasesColumns ', () => { "sortable": true, }, Object { - "name": "External Incident", + "name": "External incident", "render": [Function], "width": undefined, }, @@ -395,7 +395,7 @@ describe('useCasesColumns ', () => { "sortable": true, }, Object { - "name": "External Incident", + "name": "External incident", "render": [Function], "width": undefined, }, @@ -479,7 +479,7 @@ describe('useCasesColumns ', () => { "sortable": true, }, Object { - "name": "External Incident", + "name": "External incident", "render": [Function], "width": undefined, }, @@ -638,7 +638,7 @@ describe('useCasesColumns ', () => { "sortable": true, }, Object { - "name": "External Incident", + "name": "External incident", "render": [Function], "width": undefined, }, diff --git a/x-pack/plugins/cases/public/components/files/file_type.test.tsx b/x-pack/plugins/cases/public/components/files/file_type.test.tsx index 8d2c782ee0aae..0fc01442487f4 100644 --- a/x-pack/plugins/cases/public/components/files/file_type.test.tsx +++ b/x-pack/plugins/cases/public/components/files/file_type.test.tsx @@ -78,7 +78,7 @@ describe('getFileType', () => { expect(actions[0]).toStrictEqual({ type: AttachmentActionType.CUSTOM, isPrimary: false, - label: 'Download File', + label: 'Download file', render: expect.any(Function), }); @@ -102,7 +102,7 @@ describe('getFileType', () => { expect(actions[1]).toStrictEqual({ type: AttachmentActionType.CUSTOM, isPrimary: false, - label: 'Delete File', + label: 'Delete file', render: expect.any(Function), }); @@ -126,7 +126,7 @@ describe('getFileType', () => { expect(actions[1]).toStrictEqual({ type: AttachmentActionType.CUSTOM, isPrimary: false, - label: 'Delete File', + label: 'Delete file', render: expect.any(Function), }); diff --git a/x-pack/plugins/cases/public/components/files/translations.tsx b/x-pack/plugins/cases/public/components/files/translations.tsx index 2fd8ed28c6aa4..b500d140217f0 100644 --- a/x-pack/plugins/cases/public/components/files/translations.tsx +++ b/x-pack/plugins/cases/public/components/files/translations.tsx @@ -12,7 +12,7 @@ export const ACTIONS = i18n.translate('xpack.cases.caseView.files.actions', { }); export const ADD_FILE = i18n.translate('xpack.cases.caseView.files.addFile', { - defaultMessage: 'Add File', + defaultMessage: 'Add file', }); export const CLOSE_MODAL = i18n.translate('xpack.cases.caseView.files.closeModal', { @@ -20,15 +20,15 @@ export const CLOSE_MODAL = i18n.translate('xpack.cases.caseView.files.closeModal }); export const DATE_ADDED = i18n.translate('xpack.cases.caseView.files.dateAdded', { - defaultMessage: 'Date Added', + defaultMessage: 'Date added', }); export const DELETE_FILE = i18n.translate('xpack.cases.caseView.files.deleteFile', { - defaultMessage: 'Delete File', + defaultMessage: 'Delete file', }); export const DOWNLOAD_FILE = i18n.translate('xpack.cases.caseView.files.downloadFile', { - defaultMessage: 'Download File', + defaultMessage: 'Download file', }); export const FILES_TABLE = i18n.translate('xpack.cases.caseView.files.filesTable', { diff --git a/x-pack/plugins/cases/public/components/files/use_files_table_columns.test.tsx b/x-pack/plugins/cases/public/components/files/use_files_table_columns.test.tsx index 77070da0dbc57..0205fac1d4ec4 100644 --- a/x-pack/plugins/cases/public/components/files/use_files_table_columns.test.tsx +++ b/x-pack/plugins/cases/public/components/files/use_files_table_columns.test.tsx @@ -47,18 +47,18 @@ describe('useFilesTableColumns', () => { "data-test-subj": "cases-files-table-date-added", "dataType": "date", "field": "created", - "name": "Date Added", + "name": "Date added", }, Object { "actions": Array [ Object { - "description": "Download File", + "description": "Download file", "isPrimary": true, "name": "Download", "render": [Function], }, Object { - "description": "Delete File", + "description": "Delete file", "isPrimary": true, "name": "Delete", "render": [Function],