Skip to content
4 changes: 2 additions & 2 deletions 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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devtron-labs/devtron-fe-common-lib",
"version": "1.12.0-pre-6",
"version": "1.12.0-pre-7",
"description": "Supporting common component library",
"type": "module",
"main": "dist/index.js",
Expand Down
5 changes: 3 additions & 2 deletions src/Shared/Components/CICDHistory/TriggerOutput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
useAsync,
useInterval,
} from '../../../Common'
import { EMPTY_STATE_STATUS } from '../../constants'
import { DEPLOYMENT_STAGE_TO_NODE_MAP, EMPTY_STATE_STATUS } from '../../constants'
import Artifacts from './Artifacts'
import DeploymentDetailSteps from './DeploymentDetailSteps'
import { DeploymentHistoryConfigDiff } from './DeploymentHistoryConfigDiff'
Expand Down Expand Up @@ -88,8 +88,9 @@ const HistoryLogs: React.FC<HistoryLogsProps> = ({
const paramsData = {
appId,
envId,
appName: `${triggerDetails.helmPackageName}.tgz`,
appName: triggerDetails.helmPackageName,
workflowId: triggerDetails.id,
cdWorkflowType: DEPLOYMENT_STAGE_TO_NODE_MAP[triggerDetails.stage],
}

const CDBuildReportUrl = `app/cd-pipeline/workflow/download/${appId}/${envId}/${pipelineId}/${triggerId}`
Expand Down
8 changes: 7 additions & 1 deletion src/Shared/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import { OptionType } from '@Common/Types'
import { DeploymentNodeType, OptionType } from '@Common/Types'

import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType } from './types'

Expand Down Expand Up @@ -555,3 +555,9 @@ export const Routes = {
export const ENTERPRISE_SUPPORT_LINK = 'enterprise@devtron.ai'

export const INVALID_LICENSE_KEY = 'inValid'

export const DEPLOYMENT_STAGE_TO_NODE_MAP: Readonly<Record<DeploymentStageType, DeploymentNodeType>> = {
[DeploymentStageType.DEPLOY]: DeploymentNodeType.CD,
[DeploymentStageType.POST]: DeploymentNodeType.POSTCD,
[DeploymentStageType.PRE]: DeploymentNodeType.PRECD,
}