From 78235ed7503f12b81c85cf48fb40e50bd41a1567 Mon Sep 17 00:00:00 2001 From: raj pandey Date: Tue, 20 Feb 2024 17:46:39 +0530 Subject: [PATCH] ui text update --- .../src/import/modules/content-types.ts | 12 ++++++------ .../src/import/modules/extensions.ts | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/contentstack-import/src/import/modules/content-types.ts b/packages/contentstack-import/src/import/modules/content-types.ts index fd65ba5acd..9fd9f4e5c3 100644 --- a/packages/contentstack-import/src/import/modules/content-types.ts +++ b/packages/contentstack-import/src/import/modules/content-types.ts @@ -108,9 +108,9 @@ export default class ContentTypesImport extends BaseClass { if (this.fieldRules.length > 0) { await fsUtil.writeFile(path.join(this.cTsFolderPath, 'field_rules_uid.json'), this.fieldRules); } - log(this.importConfig, 'Updating the Extensions', 'success'); + log(this.importConfig, 'Updating the extensions...', 'success'); await this.updatePendingExtensions(); - log(this.importConfig, 'Extensions Updated', 'success'); + log(this.importConfig, 'Successfully updated the extensions.', 'success'); await this.updatePendingGFs().catch((error) => { log(this.importConfig, `Error while updating pending global field ${formatError(error)}`, 'error'); }); @@ -259,22 +259,22 @@ export default class ContentTypesImport extends BaseClass { async updatePendingExtensions(): Promise { let apiContent = fsUtil.readFile(this.extPendingPath) as Record[]; if (apiContent.length === 0) { - log(this.importConfig, `No Extension are present to be updated`, 'success'); + log(this.importConfig, `No extensions found to be updated.`, 'success'); return; } const onSuccess = ({ response, apiData: { uid, title } = { uid: null, title: '' } }: any) => { - log(this.importConfig, `Extension '${response.title}' updated successfully`, 'success'); + log(this.importConfig, `Successfully updated the '${response.title}' extension.`, 'success'); }; const onReject = ({ error, apiData }: any) => { const { uid } = apiData; if (error?.errors?.title) { if (!this.importConfig.skipExisting) { - log(this.importConfig, `Extension '${uid}' already exists`, 'info'); + log(this.importConfig, `Extension '${uid}' already exists.`, 'info'); } } else { - log(this.importConfig, `Extension '${uid}' failed to be updated ${formatError(error)}`, 'error'); + log(this.importConfig, `Failed to update '${uid}' extension due to ${formatError(error)}.`, 'error'); log(this.importConfig, error, 'error'); } }; diff --git a/packages/contentstack-import/src/import/modules/extensions.ts b/packages/contentstack-import/src/import/modules/extensions.ts index 9d467b9e90..ce92433ca9 100644 --- a/packages/contentstack-import/src/import/modules/extensions.ts +++ b/packages/contentstack-import/src/import/modules/extensions.ts @@ -225,7 +225,7 @@ export default class ImportExtensions extends BaseClass { extension.forEach((ext: ExtensionType) => { let ct: any = ext?.scope?.content_types || []; if ((ct.length === 1 && ct[0] !== '$all') || ct?.length > 1) { - log(this.importConfig, `Removing the Content-types ${ct.join(',')} from Extension ${ext.title}`, 'info'); + log(this.importConfig, `Removing the content-types ${ct.join(',')} from the extension ${ext.title} ...`, 'info'); const { uid, scope } = ext; this.extensionObject.push({ uid, scope }); delete ext.scope;