feat: [CDE-275]: pass parentIdentifier in getTokenList api (#2611)

* feat: [CDE-275]: pass parentIdentifier in getTokenList api
This commit is contained in:
Deepesh Kumar 2024-08-29 06:10:34 +00:00 committed by Harness
parent bea4048d0e
commit e2de9ba77e
2 changed files with 20 additions and 17 deletions

View File

@ -38,7 +38,7 @@
div[class*='TableV2--cells'], div[class*='TableV2--cells'],
div[class*='TableV2--header'] { div[class*='TableV2--header'] {
display: grid !important; display: grid !important;
grid-template-columns: 1fr 1fr 0.5fr 1fr 1fr 50px; grid-template-columns: 1.5fr 1.5fr 0.5fr 0.75fr 1fr 50px;
} }
} }

View File

@ -168,6 +168,7 @@ export const RenderGitspaceName: Renderer<CellProps<TypesGitspaceConfig>> = ({ r
<Layout.Horizontal spacing={'small'} flex={{ alignItems: 'center', justifyContent: 'start' }}> <Layout.Horizontal spacing={'small'} flex={{ alignItems: 'center', justifyContent: 'start' }}>
<img src={ide === IDEType.VSCODE ? VSCode : vsCodeWebIcon} height={20} width={20} /> <img src={ide === IDEType.VSCODE ? VSCode : vsCodeWebIcon} height={20} width={20} />
<Text <Text
width="90%"
lineClamp={1} lineClamp={1}
color={Color.BLACK} color={Color.BLACK}
title={name} title={name}
@ -210,23 +211,25 @@ export const RenderRepository: Renderer<CellProps<TypesGitspaceConfig>> = ({ row
const { name, branch, code_repo_url, code_repo_type } = details || {} const { name, branch, code_repo_url, code_repo_type } = details || {}
return ( return (
<Layout.Vertical spacing={'small'}> <Layout.Horizontal
<Layout.Horizontal spacing={'small'}
spacing={'small'} className={css.repositoryCell}
className={css.repositoryCell} flex={{ alignItems: 'center', justifyContent: 'start' }}
flex={{ alignItems: 'center', justifyContent: 'start' }} onClick={e => {
onClick={e => { e.preventDefault()
e.preventDefault() e.stopPropagation()
e.stopPropagation() window.open(code_repo_url, '_blank')
window.open(code_repo_url, '_blank') }}>
}}> <Container height={24} width={24}>
<Container height={24} width={24}> {getIconByRepoType({ repoType: code_repo_type })}
{getIconByRepoType({ repoType: code_repo_type })} </Container>
</Container> <Container width="100%">
<Text lineClamp={1} color={Color.PRIMARY_7} title={name} font={{ align: 'left', size: 'normal' }}> <Text lineClamp={1} color={Color.PRIMARY_7} title={name} font={{ align: 'left', size: 'normal' }}>
{name} {name}
</Text> </Text>
<Text color={Color.PRIMARY_7}>:</Text> </Container>
<Text color={Color.PRIMARY_7}>:</Text>
<Container width="30%">
<Text <Text
lineClamp={1} lineClamp={1}
icon="git-branch" icon="git-branch"
@ -236,8 +239,8 @@ export const RenderRepository: Renderer<CellProps<TypesGitspaceConfig>> = ({ row
font={{ align: 'left', size: 'normal' }}> font={{ align: 'left', size: 'normal' }}>
{branch} {branch}
</Text> </Text>
</Layout.Horizontal> </Container>
</Layout.Vertical> </Layout.Horizontal>
) )
} }