Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9c9d4ac
refactor:resolved the bug [CMG-697]:UI overlapping issue
AishDani Aug 21, 2025
d65df99
refactor:resolved [CMG-699] login switch issue
AishDani Aug 21, 2025
e7316ba
refactor:resolved language mapper bugs
AishDani Aug 25, 2025
bd7c5fa
refactor:removed commented code
AishDani Aug 25, 2025
517d442
refactor:resolved copilot reviews
AishDani Aug 29, 2025
5317254
refactor:added LoadLanguageMapper.tsx to fileignoreconfig
AishDani Aug 29, 2025
9ea266c
Merge pull request #773 from contentstack/bugfix/beta-release
umeshmore45 Aug 29, 2025
8a29620
refactor:updated talisman file
AishDani Sep 1, 2025
e185311
Merge pull request #775 from contentstack/bugfix/beta-release
umeshmore45 Sep 1, 2025
9917bf7
Merge pull request #774 from contentstack/dev
umeshmore45 Sep 1, 2025
1612550
refactor:replaces constant value of getting apptoken to function call
AishDani Sep 4, 2025
c1844c9
refactor: improve language mapping logic and validation checks
AishDani Sep 4, 2025
ab793ff
refactor: add optional chaining
AishDani Sep 4, 2025
ff53551
refactor: rename variable for clarity in language mapping logic
AishDani Sep 4, 2025
74b6495
refactor: resolved token management process in login form copilot
AishDani Sep 4, 2025
caf002a
Merge pull request #776 from contentstack/bugfix/beta-release
sayalijoshi27 Sep 4, 2025
ba11fdb
refactor: add LoadLanguageMapper component in fileignoreconfig
AishDani Sep 5, 2025
3baf005
Merge pull request #780 from contentstack/bugfix/beta-release
umeshmore45 Sep 5, 2025
28f0b1d
Merge pull request #779 from contentstack/dev
sayalijoshi27 Sep 5, 2025
9cad4ce
Contantstack logo and favicon updated according to new branding
sayalijoshi27 Sep 16, 2025
9237b6b
Merge branch 'dev' of https://github.com/contentstack/migration-v2-no…
sayalijoshi27 Sep 16, 2025
7d89b53
Merge branch 'pre-stage' of https://github.com/contentstack/migration…
sayalijoshi27 Sep 18, 2025
b8d9d8b
axios package upgrade
sayalijoshi27 Sep 23, 2025
901af41
axios package upgrade
sayalijoshi27 Sep 23, 2025
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
6 changes: 6 additions & 0 deletions .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,11 @@ fileignoreconfig:
checksum: 38d2188de3b4df88ed5e195c13b77ad7c469fe5c4d1265f1ffb868dbe3844ae1
- filename: api/package-lock.json
checksum: 09b36877f7e86bb806a9657f852a448dc32fa1dfb350d0fde5fd843c54a27bf0
- filename: ui/src/components/DestinationStack/Actions/LoadLanguageMapper.tsx
checksum: 4e9bd6dcdb08fab85a3d8200e0dffa0d003743ebbb42d5043228cfd46f7e91da
- filename: ui/src/components/DestinationStack/Actions/LoadLanguageMapper.tsx
checksum: 4e9bd6dcdb08fab85a3d8200e0dffa0d003743ebbb42d5043228cfd46f7e91da
- filename: ui/src/components/DestinationStack/Actions/LoadLanguageMapper.tsx
checksum: dde885393dfdd813f1dace88ce8ce79e3fb438801ee5e7bf19855fe1394cb78c

version: "1.0"
10 changes: 5 additions & 5 deletions api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@contentstack/cli-utilities": "^1.12.0",
"@contentstack/json-rte-serializer": "^2.0.7",
"@contentstack/marketplace-sdk": "^1.2.4",
"axios": "^1.8.2",
"axios": "^1.12.0",
"chokidar": "^3.6.0",
"cors": "^2.8.5",
"dotenv": "^16.3.1",
Expand Down
10 changes: 5 additions & 5 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@types/react": "^18.3.21",
"@types/react-dom": "^18.2.13",
"@types/react-redux": "^7.1.33",
"axios": "^1.8.3",
"axios": "^1.12.0",
"bootstrap": "^5.3.6",
"chokidar": "^3.6.0",
"final-form": "^4.20.10",
Expand Down
Binary file modified ui/public/favicon.ico
Binary file not shown.
Binary file removed ui/public/images/ContentstackLogo.png
Binary file not shown.
Binary file removed ui/public/images/contentstack.png
Binary file not shown.
6 changes: 3 additions & 3 deletions ui/src/cmsData/main_header.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
"content_type": "image/svg+xml",
"file_size": "10160",
"tags": [],
"filename": "icon-cs-mobile.svg",
"url": "https://images.contentstack.io/v3/assets/blt7359e2a55efae483/blt0b9a8281aeac3ec0/664c27d3c9024c35b5ad593a/CS_logo.png",
"filename": "contentstack-logo.svg",
"url": "https://images.contentstack.io/v3/assets/blt77d44a06c81b1730/blt2e24a315fedaeaf7/68bc10f25f14881bc908b6c2/CS_OnlyLogo.webp",
"ACL": [],
"is_dir": false,
"parent_uid": "blt8e7f7872baa3a09e",
"_version": 1,
"title": "icon-cs-mobile.svg"
"title": "Contentstack"
},
"url": "/projects"
}
Expand Down
5 changes: 0 additions & 5 deletions ui/src/components/AdvancePropertise/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,6 @@
position: relative;
z-index: 10000;
}
.Select__control--menu-is-open {
position: relative;
border: 2px solid red;
z-index: 10000;
}
}
.Radio-class {
display: flex;
Expand Down
4 changes: 4 additions & 0 deletions ui/src/components/ContentMapper/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -317,4 +317,8 @@ div .table-row {
.filterButton-color{
color: $color-brand-primary-base;
font-weight: $font-weight-bold;
}
.icon-padding{
padding: 10px 10px;
margin-left: 6px;
}
8 changes: 4 additions & 4 deletions ui/src/components/ContentMapper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2470,17 +2470,17 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref:
/>
</div>

<Tooltip content={'Fetch content types from destination stack'} position="left">
<Button buttonType="light" icon={onlyIcon ? "v2-FetchTemplate" : ''}
<Tooltip content={'Fetch content types from destination stack'} position="top">
<Button className='icon-padding' buttonType="light" icon={onlyIcon ? "v2-FetchTemplate" : ''}
version="v2" onlyIcon={true} onlyIconHoverColor={'primary'}
size='small' onClick={handleFetchContentType}>
</Button>
</Tooltip>
</>
)}

<Tooltip content={'Reset to system mapping'} position="left">
<Button buttonType="light" icon={onlyIcon ? "v2-ResetReverse" : ''}
<Tooltip content={'Reset to system mapping'} position="top">
<Button className='icon-padding' buttonType="light" icon={onlyIcon ? "v2-ResetReverse" : ''}
version="v2" onlyIcon={true} onlyIconHoverColor={'primary'}
size='small' onClick={handleResetContentType}></Button>
</Tooltip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,13 @@ const Mapper = ({
setSelectedMappings(updatedSelectedMappings);

}
else if ( !isLabelMismatch && !isStackChanged ) {
const key = `${locale?.label}-master_locale`
updatedSelectedMappings = {
[key]: updatedSelectedMappings?.[`${locale?.label}-master_locale`] ? updatedSelectedMappings?.[`${locale?.label}-master_locale`] : '',
};
setSelectedMappings(updatedSelectedMappings);
}
}
})

Expand Down Expand Up @@ -227,9 +234,13 @@ const Mapper = ({
updatedMappings[selectedLocaleKey] = existingLocale?.[index]?.label;
delete updatedMappings?.[CS_ENTRIES?.UNMAPPED_LOCALE_KEY];
}else{
updatedMappings[selectedLocaleKey] = existingLocale?.[index]?.label
? existingLocale?.[index]?.label
: '';
const oldlabel = Object?.keys?.(updatedMappings)?.[index - 1];

// Delete old key and assign to new key
delete updatedMappings?.[oldlabel];
updatedMappings[selectedLocaleKey] = existingLocale?.[index]?.label
? existingLocale?.[index]?.label
: '';
}
}

Expand Down Expand Up @@ -288,7 +299,7 @@ const Mapper = ({
}
else if (selectedLocaleKey) {

updatedMappings[existingLabel?.value] = selectedValue?.label
updatedMappings[existingLabel?.value ?? index] = selectedValue?.label
? selectedValue?.label
: '';
}
Expand Down Expand Up @@ -513,7 +524,7 @@ const LanguageMapper = ({stack, uid} :{ stack : IDropDown, uid : string}) => {
const [options, setoptions] = useState<{ label: string; value: string }[]>([]);
const [cmsLocaleOptions, setcmsLocaleOptions] = useState<{ label: string; value: string }[]>([]);
const [sourceLocales, setsourceLocales] = useState<{ label: string; value: string }[]>([]);
const [isLoading, setisLoading] = useState<boolean>(false);
const [isLoading, setisLoading] = useState<boolean>(true);
const [currentStack, setCurrentStack] = useState<IDropDown>(stack);
const [previousStack, setPreviousStack] = useState<IDropDown>();
const [isStackChanged, setisStackChanged] = useState<boolean>(false);
Expand Down Expand Up @@ -618,6 +629,7 @@ const LanguageMapper = ({stack, uid} :{ stack : IDropDown, uid : string}) => {
// return await getStackLocales(newMigrationData?.destination_stack?.selectedOrg?.value);
// };
const addRowComp = () => {
setisStackChanged(false);
setcmsLocaleOptions((prevList: { label: string; value: string }[]) => [
...prevList, // Keep existing elements
{
Expand All @@ -628,6 +640,7 @@ const LanguageMapper = ({stack, uid} :{ stack : IDropDown, uid : string}) => {
};

const handleDeleteLocale = (id: number, locale: { label: string; value: string }) => {
setisStackChanged(false);
setcmsLocaleOptions((prevList) => {
return prevList?.filter(
(item: { label: string; value: string }) => item?.label !== locale?.label
Expand Down
1 change: 0 additions & 1 deletion ui/src/components/MainHeader/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
a {
align-items: center;
display: flex;
height: 2.5rem;
justify-content: center;
padding: 0.5rem;
text-decoration: none;
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/MainHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const MainHeader = () => {
<div className="logo" onClick={handleonClick}>
<Tooltip position="right" content="Projects" wrapperElementType="div">
<Link to={`${logo?.url}`} onClick={(e) => e.preventDefault()}>
<img src={logo?.image?.url} width={32} alt="Contentstack" />
<img src={logo?.image?.url} width={28} alt="Contentstack" />
</Link>
</Tooltip>
</div>
Expand Down
12 changes: 9 additions & 3 deletions ui/src/pages/Login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FC, useEffect, useState } from 'react';
import { useNavigate, useLocation } from 'react-router-dom';
import { useDispatch, useSelector } from 'react-redux';

import { getUserDetails, setAuthToken, setUser } from '../../store/slice/authSlice';
import { clearOrganisationData, getUserDetails, setAuthToken, setUser, clearAuthToken } from '../../store/slice/authSlice';
import {
Button,
Field,
Expand All @@ -22,7 +22,7 @@ import {
TFA_VIA_SMS_MESSAGE,
CS_ENTRIES
} from '../../utilities/constants';
import { failtureNotification, setDataInLocalStorage } from '../../utilities/functions';
import { clearLocalStorage, failtureNotification, setDataInLocalStorage } from '../../utilities/functions';

// API Service
import { getCMSDataFromFile } from '../../cmsData/cmsSelector';
Expand Down Expand Up @@ -153,10 +153,16 @@ const Login: FC<IProps> = () => {
setIsLoading(false);
failtureNotification(response?.data?.error_message || response?.data?.error?.message);
}

dispatch(clearAuthToken());
localStorage?.removeItem('app_token');
if (response?.status === 200 && response?.data?.message === LOGIN_SUCCESSFUL_MESSAGE) {
setIsLoading(false);
setDataInLocalStorage('app_token', response?.data?.app_token);

// Clear any previous organization data to ensure fresh organization selection for new user
localStorage?.removeItem('organization');
dispatch(clearOrganisationData());

const authenticationObj = {
authToken: response?.data?.app_token,
isAuthenticated: true
Expand Down
3 changes: 2 additions & 1 deletion ui/src/pages/Migration/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,8 @@ const Migration = () => {
value !== '' &&
value !== null &&
value !== undefined &&
label !== 'undefined'
label !== 'undefined' &&
isNaN(Number(label))
);

const master_locale: LocalesType = {};
Expand Down
Loading