Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ResponseOps][Cases] Edits case template text #187610

Merged
merged 9 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions x-pack/plugins/cases/public/common/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ export const DELETE_CASE = (quantity: number = 1) =>
});

export const COPY_ID_ACTION_LABEL = i18n.translate('xpack.cases.caseView.copyID', {
defaultMessage: 'Copy Case ID',
defaultMessage: 'Copy case ID',
});

export const COPY_ID_ACTION_SUCCESS = i18n.translate('xpack.cases.caseView.copyIDSuccess', {
defaultMessage: 'Copied Case ID to clipboard',
defaultMessage: 'Copied case ID to clipboard',
});

export const NAME = i18n.translate('xpack.cases.caseView.name', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ describe('CommonFlyout ', () => {
expect(props.onSaveField).not.toHaveBeenCalled();
});

expect(await screen.findByText('A Template name is required.')).toBeInTheDocument();
expect(await screen.findByText('Template name is required.')).toBeInTheDocument();
});

it('shows error if template name is too long', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const TEMPLATE_LABEL = i18n.translate('xpack.cases.create.templateLabel',
});

export const TEMPLATE_HELP_TEXT = i18n.translate('xpack.cases.create.templateHelpText', {
defaultMessage: 'Selecting a template will pre-fill certain case fields below',
defaultMessage: 'Select a template to use its default field values.',
});

export const SOLUTION_SELECTOR_LABEL = i18n.translate('xpack.cases.create.solutionSelectorLabel', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const REQUIRED = i18n.translate('xpack.cases.customFields.required', {
export const REQUIRED_FIELD = (fieldName: string): string =>
i18n.translate('xpack.cases.customFields.requiredField', {
values: { fieldName },
defaultMessage: 'A {fieldName} is required.',
defaultMessage: '{fieldName} is required.',
});

export const EDIT_CUSTOM_FIELDS_ARIA_LABEL = (customFieldLabel: string) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ export const TEMPLATE_TITLE = i18n.translate('xpack.cases.templates.title', {
});

export const TEMPLATE_DESCRIPTION = i18n.translate('xpack.cases.templates.description', {
defaultMessage:
'Add Case Templates to automatically define the case fields while creating a new case. A user can choose to create an empty case or based on a preset template. Templates allow to auto-populate values when creating new cases.',
defaultMessage: 'Create templates that automatically populate values in new cases.',
});

export const NO_TEMPLATES = i18n.translate('xpack.cases.templates.noTemplates', {
Expand All @@ -37,16 +36,15 @@ export const REQUIRED = i18n.translate('xpack.cases.templates.required', {
export const REQUIRED_FIELD = (fieldName: string): string =>
i18n.translate('xpack.cases.templates.requiredField', {
values: { fieldName },
defaultMessage: 'A {fieldName} is required.',
defaultMessage: '{fieldName} is required.',
});

export const TEMPLATE_NAME = i18n.translate('xpack.cases.templates.templateName', {
defaultMessage: 'Template name',
});

export const TEMPLATE_TAGS_HELP = i18n.translate('xpack.cases.templates.templateTagsHelp', {
defaultMessage:
'Type one or more custom identifying tags for this template. Please enter after each tag to begin a new one',
defaultMessage: 'Separate tags with a line break.',
});

export const TEMPLATE_FIELDS = i18n.translate('xpack.cases.templates.templateFields', {
Expand Down