Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
3753d46
Resolved mapped content types disable issue
sayalijoshi27 Sep 16, 2024
7d3a1ea
Merge pull request #277 from contentstack/bugfix/content-mapper
RohitKini Sep 16, 2024
d330ad9
refactor:content mapper bugs
AishDani Sep 17, 2024
1942f7b
Merge pull request #278 from contentstack/feature/dropdown-field-choices
RohitKini Sep 17, 2024
9111c79
[CMG-312] - Destination stack | When an existing project is open and …
sayalijoshi27 Sep 17, 2024
ee3449f
Merge pull request #279 from contentstack/bugfix/content-mapper
RohitKini Sep 17, 2024
b2d3fdc
Fixed bug CMG-315
BhagyahsreeMatere Sep 17, 2024
e87f622
Merge pull request #280 from contentstack/bugfix/popup-modal
RohitKini Sep 17, 2024
4058b10
refactor:resolved uncaught error deu to token expiration
AishDani Sep 17, 2024
1d709e7
[CMG-317] - Destination stack | When creating a new project and going…
sayalijoshi27 Sep 17, 2024
76816e2
Merge branch 'dev' of https://github.com/contentstack/migration-v2-no…
sayalijoshi27 Sep 17, 2024
3072571
refactor:content-mapper-bugs
AishDani Sep 5, 2024
ab68581
refactor:css for required text
AishDani Sep 17, 2024
a4d6731
Merge branch 'dev' of github.com:contentstack/migration-v2-node-serve…
AishDani Sep 17, 2024
3aaf384
refactor:legacy cms validation msg was getting showed for empty project
AishDani Sep 18, 2024
7c8ede5
refactor:required text in all steps of legacy cms
AishDani Sep 18, 2024
55937b8
Merge pull request #282 from contentstack/feature/dropdown-field-choices
RohitKini Sep 18, 2024
05f941c
Merge pull request #281 from contentstack/bugfix/content-mapper
RohitKini Sep 18, 2024
8a12ba4
[CMG-129], [CMG-136]
sayalijoshi27 Sep 18, 2024
fd18eba
Merge pull request #285 from contentstack/bugfix/content-mapper
RohitKini Sep 18, 2024
b29e2b0
refactor:content mapper bugs
AishDani Sep 20, 2024
e8d18db
Merge branch 'dev' of github.com:contentstack/migration-v2-node-serve…
AishDani Sep 20, 2024
5391588
Merge pull request #287 from contentstack/feature/dropdown-field-choices
RohitKini Sep 20, 2024
4ddabee
refactor:changed logic for setting stepIndex in stepper to avoid by d…
AishDani Sep 20, 2024
0586d91
refactor:removed file format confirmation api call form useEffect
AishDani Sep 20, 2024
d8d6bbc
refactor:content mapper bugs and api calls
AishDani Sep 20, 2024
be3c5c5
refcator:uncommented code for isDropdown change
AishDani Sep 20, 2024
0170197
Merge pull request #288 from contentstack/feature/dropdown-field-choices
RohitKini Sep 20, 2024
20e5293
[CMG-324] - Content mapper | Global fields | When opening global fiel…
sayalijoshi27 Sep 20, 2024
b1eff9c
Conflict resolved
sayalijoshi27 Sep 20, 2024
ebf6800
Dropdown placeholder changes for global fields
sayalijoshi27 Sep 23, 2024
b57a338
Merge pull request #289 from contentstack/bugfix/content-mapper
RohitKini Sep 23, 2024
a26cd52
Merge branch 'dev' of https://github.com/contentstack/migration-v2-no…
RohitKini Sep 24, 2024
c456e3e
stacks limit check
RohitKini Sep 26, 2024
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
2 changes: 1 addition & 1 deletion ui/src/cmsData/projects.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"type": "doc",
"_version": 12
},
"heading": "Welcome to Content Migrations",
"heading": "Welcome to Content Migration!",
"help_text": {
"type": "doc",
"attrs": {},
Expand Down
19 changes: 13 additions & 6 deletions ui/src/components/ContentMapper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,16 @@ const ContentMapper = forwardRef(({projectData}: ContentMapperComponentProps, re
});
setTableData(updatedRows);
setSelectedEntries(updatedRows);

const dropdownChangeState: INewMigration = {
...newMigrationData,
content_mapping: {
...newMigrationData?.content_mapping,
isDropDownChanged: true,
otherCmsTitle: otherCmsTitle
}
}
dispatch(updateNewMigrationData((dropdownChangeState)));
};

const handleDropDownChange = (value: FieldTypes) => {
Expand Down Expand Up @@ -928,18 +938,14 @@ const ContentMapper = forwardRef(({projectData}: ContentMapperComponentProps, re

if(index > -1){
selectedOptions.splice(index,1 );

}
delete existingField[item?.uid]

}
}
else{


else {
setIsFieldDeleted(false);
}



setExistingField((prevOptions: ExistingFieldType) => ({
Expand Down Expand Up @@ -1001,7 +1007,8 @@ const ContentMapper = forwardRef(({projectData}: ContentMapperComponentProps, re
...newMigrationData,
content_mapping: {
...newMigrationData?.content_mapping,
isDropDownChanged: true
isDropDownChanged: true,
otherCmsTitle: otherCmsTitle
}
}
dispatch(updateNewMigrationData((dropdownChangeState)));
Expand Down
12 changes: 7 additions & 5 deletions ui/src/components/DestinationStack/Actions/LoadStacks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,15 @@ const LoadStacks = (props: LoadFileFormatProps) => {
useEffect(() => {
newMigrationDataRef.current = newMigrationData;
}, [newMigrationData]);
useEffect(()=>{

useEffect(() => {
if(!isEmptyString(newMigrationData?.destination_stack?.selectedStack?.value)){
setSelectedStack(newMigrationData?.destination_stack?.selectedStack);
}
setAllStack(newMigrationData?.destination_stack?.stackArray)
// setAllStack(newMigrationData?.destination_stack?.stackArray)

},[newMigrationData?.destination_stack?.selectedStack])

//Handle new stack details
const handleOnSave = async (data: Stack) => {

Expand Down Expand Up @@ -272,10 +274,10 @@ const LoadStacks = (props: LoadFileFormatProps) => {
// placeholder='Select a stack'
placeholder={placeholder}

isClearable={newMigrationData?.destination_stack?.stackArray?.length > 0 && !emptyStackValue ? true : false }
isClearable={newMigrationData?.destination_stack?.stackArray?.length > 0 && !emptyStackValue}
// hideSelectedOptions={true}
isDisabled={props?.stepComponentProps?.isSummary || false}
error={isLoading ? false : isError ? true : false }
// isDisabled={props?.stepComponentProps?.isSummary || false}
error={isLoading ? false : !!isError }
width="600px"
hasAddOption={true}
// menuIsOpen
Expand Down
31 changes: 26 additions & 5 deletions ui/src/components/MainHeader/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.mainheader {
[class*="Profile_card"] {
[class*="Dropdown__menu__list"] {
max-height: 203px;
padding: 0;
}

Expand Down Expand Up @@ -79,11 +80,12 @@
}

.Dropdown__header__value {
color: #475161;
color: $color-font-base;
font-weight: $font-weight-regular;
height: 22px;
max-width: 11.1875rem;
width: auto;
color: $color-black-222 !important;
line-height: $line-height-reset;
line-height: $line-height-default;
}

.Dropdown__menu--primary .Dropdown__menu__list__item,
Expand All @@ -93,8 +95,27 @@
}

.Dropdown__header__label {
line-height: $line-height-reset;
margin-bottom: 8px;
font-weight: $font-weight-bold;
line-height: 1.3;
margin-bottom: 4px;
}
}
.user-short-name {
background-color: $color-font-white;
border: 2px solid $color-base-white-10;
border-radius: 50%;
color: $color-font-base;
font-weight: $font-weight-bold;
height: $px-32;
width: $px-32;
&:hover {
border-color: $color-brand-primary-base;
}
}
.Dropdown-wrapper .Dropdown__menu--primary {
left: auto;
right: 0;
top: 3rem;
width: 300px;
}
}
35 changes: 18 additions & 17 deletions ui/src/components/ProfileHeader/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

.profile-card {
width: 300px;
padding: 16px;
padding: 11px 16px;
// background-color: #f8f9fa;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
text-align: center;
}

.profile-card__avatar {
margin-bottom: 16px;
height: 60px;
margin-bottom: 8px;
}

.profile-card__initials {
width: 64px;
height: 64px;
width: 60px;
height: 60px;
border-radius: 50%;
background-color: #2c3e50;
color: white;
Expand All @@ -27,21 +27,17 @@

}

.profile-card__details {
margin-bottom: 16px;
}

.profile-card__name {
font-size: 16px;
font-weight: 500;
color: #2c3e50;
color: #6E6B86;
font-size: $size-font-large;
font-weight: $font-weight-semi-bold;
margin-bottom: 5px;
text-transform: capitalize;
}

.profile-card__email {
font-size: 14px;
color: #7f8c8d;
margin-bottom: 5px;
font-size: $size-font-small;
color: #6E6B86;
}

.profile-card__logout {
Expand All @@ -59,13 +55,18 @@
}

.profile-card__logout-text {
text-decoration: underline;
color: #6E6B86;
font-size: $size-font-large;
&:hover {
text-decoration: underline;
}
}

.profile-gray-background {
border-radius: 8px 8px 0 0;
min-height: 20px;
position: absolute;
width: 350px;
width: 300px;
height: 64px;
top: 0;
left: 0;
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/ProjectsHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const ProjectsHeader = ({
label: cta && cta?.title && (
<Button
buttonType={cta?.theme}
className="ml-10"
className="ml-10 create-project-cta"
onClick={handleModal}
version="v2"
size="medium"
Expand Down
4 changes: 4 additions & 0 deletions ui/src/pages/Projects/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
color: $color-font-base;
a {
color: $color-brand-primary-base;
text-decoration: underline;
}
}
}
Expand All @@ -55,4 +56,7 @@
.EmptyState__title {
padding-top: 15px;
}
}
.create-project-cta {
line-height: $line-height-default;
}