Skip to content

Commit d283063

Browse files
committed
Language mapper and Legacy CMS step changes
1 parent ae322d5 commit d283063

File tree

4 files changed

+12
-33
lines changed

4 files changed

+12
-33
lines changed

ui/src/cmsData/legacyCms.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@
326326
"uid": "cs752bfd62296e4791"
327327
},
328328
"title": "Select CMS",
329-
"description": "Select the CMS you are migrating content from.",
330-
"step_lock_text": "Editing this step is currently disabled. To make changes in Draft mode, please deactivate the migration.",
329+
"description": "Select the CMS you are migrating content from",
330+
"step_lock_text": "Editing this step is currently disabled. To make changes in Draft mode, please deactivate the migration",
331331
"lock": false,
332332
"active": true,
333333
"empty_step_placeholder": "No CMS selected..."
@@ -338,8 +338,8 @@
338338
"uid": "cs6c761d71844ac800"
339339
},
340340
"title": "Add Source Affix",
341-
"description": "Add a 2–5 character affix for the source name. Use only letters, no numbers or special characters.",
342-
"step_lock_text": "Editing this step is currently disabled. To make changes in Draft mode, please deactivate the migration.",
341+
"description": "Add a 2–5 character affix for the source name. Use only letters, no numbers or special characters",
342+
"step_lock_text": "Editing this step is currently disabled. To make changes in Draft mode, please deactivate the migration",
343343
"lock": false,
344344
"active": false,
345345
"empty_step_placeholder": "No affix Entered..."
@@ -350,8 +350,8 @@
350350
"uid": "cs7c935e15de9ea7c8"
351351
},
352352
"title": "Select File Format",
353-
"description": "Select the file format compatible with the selected CMS.",
354-
"step_lock_text": "Editing this step is currently disabled. To make changes in Draft mode, please deactivate the migration.",
353+
"description": "Select the file format compatible with the selected CMS",
354+
"step_lock_text": "Editing this step is currently disabled. To make changes in Draft mode, please deactivate the migration",
355355
"lock": false,
356356
"active": true,
357357
"empty_step_placeholder": "No File Format selected..."
@@ -362,8 +362,8 @@
362362
"uid": "cs0279f1f0ce13e83e"
363363
},
364364
"title": "Uploaded File",
365-
"description": "This is the file you have uploaded.",
366-
"step_lock_text": "Editing this step is currently disabled. To make changes in Draft mode, please deactivate the migration.",
365+
"description": "This is the file you have uploaded",
366+
"step_lock_text": "Editing this step is currently disabled. To make changes in Draft mode, please deactivate the migration",
367367
"lock": false,
368368
"active": true,
369369
"empty_step_placeholder": "No File Uploaded..."
@@ -373,7 +373,7 @@
373373
"title": "https://www.contentstack.com/docs/developers/create-content-types/restricted-keywords-for-uids",
374374
"href": "https://www.contentstack.com/docs/developers/create-content-types/restricted-keywords-for-uids"
375375
},
376-
"file_format_checkbox_text": "Please acknowledge that you have read the file export guidelines.",
376+
"file_format_checkbox_text": "Please acknowledge that you have read the file export guidelines",
377377
"restricted_keyword_checkbox_text": "Please acknowledge that you have referred to the Contentstack restricted keywords",
378378
"affix_cta": "Continue",
379379
"file_format_cta": "Continue"

ui/src/components/DestinationStack/Actions/LoadLanguageMapper.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -508,21 +508,9 @@ const LanguageMapper = () => {
508508
isDisabled={newMigrationData?.project_current_step > 2}
509509
/>
510510
}
511-
// footerComponent={
512-
// <Button className="ml-10 mt-10 mb-10"
513-
// buttonType="secondary"
514-
// version={'v2'}
515-
// icon="AddPlus"
516-
// onClick={addRowComp}
517-
// size='small'>
518-
// Add Language
519-
// </Button>
520-
521-
// }
522511
type="Secondary"
523512
/>
524513
<Button
525-
className="mt-10"
526514
buttonType="secondary"
527515
aria-label="add language"
528516
version={'v2'}

ui/src/components/DestinationStack/DestinationStack.scss

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,6 @@
197197
align-items: center;
198198
padding: $px-10;
199199
}
200-
.lang-container {
201-
//display: flex;
202-
//flex-wrap: wrap;
203-
//padding: $px-20;
204-
//padding-bottom: 50px;
205-
}
206200
.language-mapper {
207201
border-top: 1px solid $color-brand-secondary-lightest;
208202
margin-top: 16px;
@@ -212,7 +206,6 @@
212206
&.Field--full {
213207
.field-content {
214208
width: 100% !important;
215-
//border-left: none !important;
216209
}
217210
}
218211
}
@@ -250,13 +243,11 @@
250243
margin-top: 10px;
251244
overflow: visible !important;
252245
position: relative;
253-
//width: 120px;
254246
}
255247
.lang-container {
256-
// margin-bottom: 30px;
257-
// margin-left: 10px;
258-
// margin-top: 10px;
259248
display: flex;
249+
margin-bottom: 20px;
250+
margin-top: 10px;
260251
}
261252
.info-tag {
262253
max-width: 500px;

ui/src/components/LegacyCms/Actions/LoadPrefix.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const LoadPreFix = (props: LoadSelectCmsProps) => {
6767
} else if (!isValidPrefix(value)) {
6868
setIsRestrictedKey(false);
6969
setIsError(true);
70-
setErrorMessage('Affix must be 2 to 5 letters, with no numbers or special characters.');
70+
setErrorMessage('Affix must be 2 to 5 letters, with no numbers or special characters');
7171
const newMigrationDataObj: INewMigration = {
7272
...newMigrationData,
7373
legacy_cms: {

0 commit comments

Comments
 (0)