Skip to content

Commit c66dd71

Browse files
committed
feat: remove tooltip from right diff view in deploy config diff
1 parent 72620c6 commit c66dd71

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

src/components/app/details/triggerView/PipelineConfigDiff/usePipelineDeploymentConfig.ts

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
AppEnvDeploymentConfigType,
2222
DEPLOYMENT_CONFIG_DIFF_SORT_KEY,
2323
DeploymentConfigDiffState,
24+
DeploymentHistorySingleValue,
2425
DeploymentStrategyType,
2526
DeploymentWithConfigType,
2627
EnvResourceType,
@@ -297,7 +298,7 @@ export const usePipelineDeploymentConfig = ({
297298
: recentDeploymentConfigWithoutStrategy,
298299
})
299300

300-
return getAppEnvDeploymentConfigList({
301+
const { configList, ...rest } = getAppEnvDeploymentConfigList({
301302
currentList: compareData || {
302303
configMapData: null,
303304
deploymentTemplate: null,
@@ -314,6 +315,28 @@ export const usePipelineDeploymentConfig = ({
314315
convertVariables,
315316
sortingConfig: { sortBy, sortOrder },
316317
})
318+
319+
// filtering out tooltipContent from secondary config, as we are not showing tooltip in right side
320+
return {
321+
...rest,
322+
configList: configList.map((list) => ({
323+
...list,
324+
secondaryConfig: {
325+
...list.secondaryConfig,
326+
list: {
327+
...list.secondaryConfig.list,
328+
values: {
329+
...list.secondaryConfig.list.values,
330+
strategy: Object.fromEntries(
331+
Object.entries(list.secondaryConfig.list.values.strategy ?? {}).filter(
332+
([key]) => key !== 'tooltipContent',
333+
),
334+
) as DeploymentHistorySingleValue,
335+
},
336+
},
337+
},
338+
})),
339+
}
317340
}
318341

319342
return null

0 commit comments

Comments
 (0)