Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,9 @@ upload-api/extracted_files*
*copy*
.qodo
.vscode
app.json
# Snyk Security Extension - AI Rules (auto-generated)
.cursor/rules/snyk_rules.mdc
*extracted_files*
*MigrationData*
*.zip
Expand Down
5 changes: 2 additions & 3 deletions ui/src/components/AdvancePropertise/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,6 @@ const AdvancePropertise = (props: SchemaProps) => {
});
};



const handleDrop = (index: number) => {
if (draggedIndex === null) return;

Expand Down Expand Up @@ -588,7 +586,7 @@ const AdvancePropertise = (props: SchemaProps) => {
props?.data?.contentstackFieldUid
);
}}
options={option}
options={option ?? []}
placeholder="Add Content Type(s)"
version="v2"
isSearchable={true}
Expand Down Expand Up @@ -673,6 +671,7 @@ const AdvancePropertise = (props: SchemaProps) => {
true
))
}
disabled={props?.fieldtype === 'Modular Blocks' || props?.fieldtype === 'Block'}
/>
</div>
)}
Expand Down
12 changes: 8 additions & 4 deletions ui/src/components/Common/AddStack/addStack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { getCMSDataFromFile } from '../../../cmsData/cmsSelector';
import { CS_ENTRIES } from '../../../utilities/constants';

// Interface
import { AddStackCMSData, defaultAddStackCMSData } from './addStack.interface';
import { AddStackCMSData, defaultAddStackCMSData, Errors, Stack } from './addStack.interface';

// Styles
import './addStack.scss';
Expand Down Expand Up @@ -129,8 +129,12 @@ const AddStack = (props: any): JSX.Element => {
<FinalForm
onSubmit={onSubmit}
keepDirtyOnReinitialize={true}
validate={(values: any) => {
const errors: any = {};
validate={(values: Stack) => {
const errors: Errors = {
name: '',
locale: '',
description: ''
};
if (!values?.name || values?.name?.trim().length < 1) {
errors.name = 'Stack name required';
}
Expand Down Expand Up @@ -263,7 +267,7 @@ const AddStack = (props: any): JSX.Element => {
version={'v2'}
placeholder={addStackCMSData?.stack_locale_description}
/>
<div className="stack-creation-warning"><span className='imp-text'>Important:</span> The master language cannot be changed after the stack has been created.</div>
<div className="stack-creation-warning"><span className='imp-text'>Important:</span> The default language cannot be changed after the stack has been created.</div>
{meta?.error && meta?.touched && (
<ValidationMessage
testId="cs-stack-create-language-validation"
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/ContentMapper/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ div .table-row {
display: block;
}
.advanced-setting-button {
padding: 5px;
padding: 5px 10px;
}
.field-count {
font-size: $size-font-large;
Expand Down
Loading