Skip to content

Commit 0062135

Browse files
Merge pull request #824 from contentstack/feature/aem-final
Feature/aem final
2 parents fd4d592 + d12b956 commit 0062135

File tree

13 files changed

+185
-147
lines changed

13 files changed

+185
-147
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,9 @@ upload-api/extracted_files*
360360
*copy*
361361
.qodo
362362
.vscode
363+
app.json
364+
# Snyk Security Extension - AI Rules (auto-generated)
365+
.cursor/rules/snyk_rules.mdc
363366
*extracted_files*
364367
*MigrationData*
365368
*.zip

ui/src/components/AdvancePropertise/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,6 @@ const AdvancePropertise = (props: SchemaProps) => {
331331
});
332332
};
333333

334-
335-
336334
const handleDrop = (index: number) => {
337335
if (draggedIndex === null) return;
338336

@@ -588,7 +586,7 @@ const AdvancePropertise = (props: SchemaProps) => {
588586
props?.data?.contentstackFieldUid
589587
);
590588
}}
591-
options={option}
589+
options={option ?? []}
592590
placeholder="Add Content Type(s)"
593591
version="v2"
594592
isSearchable={true}
@@ -673,6 +671,7 @@ const AdvancePropertise = (props: SchemaProps) => {
673671
true
674672
))
675673
}
674+
disabled={props?.fieldtype === 'Modular Blocks' || props?.fieldtype === 'Block'}
676675
/>
677676
</div>
678677
)}

ui/src/components/Common/AddStack/addStack.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { getCMSDataFromFile } from '../../../cmsData/cmsSelector';
2424
import { CS_ENTRIES } from '../../../utilities/constants';
2525

2626
// Interface
27-
import { AddStackCMSData, defaultAddStackCMSData } from './addStack.interface';
27+
import { AddStackCMSData, defaultAddStackCMSData, Errors, Stack } from './addStack.interface';
2828

2929
// Styles
3030
import './addStack.scss';
@@ -129,8 +129,12 @@ const AddStack = (props: any): JSX.Element => {
129129
<FinalForm
130130
onSubmit={onSubmit}
131131
keepDirtyOnReinitialize={true}
132-
validate={(values: any) => {
133-
const errors: any = {};
132+
validate={(values: Stack) => {
133+
const errors: Errors = {
134+
name: '',
135+
locale: '',
136+
description: ''
137+
};
134138
if (!values?.name || values?.name?.trim().length < 1) {
135139
errors.name = 'Stack name required';
136140
}
@@ -263,7 +267,7 @@ const AddStack = (props: any): JSX.Element => {
263267
version={'v2'}
264268
placeholder={addStackCMSData?.stack_locale_description}
265269
/>
266-
<div className="stack-creation-warning"><span className='imp-text'>Important:</span> The master language cannot be changed after the stack has been created.</div>
270+
<div className="stack-creation-warning"><span className='imp-text'>Important:</span> The default language cannot be changed after the stack has been created.</div>
267271
{meta?.error && meta?.touched && (
268272
<ValidationMessage
269273
testId="cs-stack-create-language-validation"

ui/src/components/ContentMapper/index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ div .table-row {
320320
display: block;
321321
}
322322
.advanced-setting-button {
323-
padding: 5px;
323+
padding: 5px 10px;
324324
}
325325
.field-count {
326326
font-size: $size-font-large;

0 commit comments

Comments
 (0)