diff --git a/frontend/src/interfaces/uiConfig.ts b/frontend/src/interfaces/uiConfig.ts index c743b5a24e..501a7ab46b 100644 --- a/frontend/src/interfaces/uiConfig.ts +++ b/frontend/src/interfaces/uiConfig.ts @@ -90,6 +90,7 @@ export type UiFlags = { createFlagDialogCache?: boolean; healthToTechDebt?: boolean; improvedJsonDiff?: boolean; + crDiffView?: boolean; changeRequestApproverEmails?: boolean; }; diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index aefdcb3d72..e155c81844 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -61,6 +61,7 @@ export type IFlagKey = | 'impactMetrics' | 'createFlagDialogCache' | 'improvedJsonDiff' + | 'crDiffView' | 'changeRequestApproverEmails'; export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; @@ -282,6 +283,10 @@ const flags: IFlags = { process.env.UNLEASH_EXPERIMENTAL_IMPROVED_JSON_DIFF, false, ), + crDiffView: parseEnvVarBoolean( + process.env.UNLEASH_EXPERIMENTAL_CR_DIFF_VIEW, + false, + ), impactMetrics: parseEnvVarBoolean( process.env.UNLEASH_EXPERIMENTAL_IMPACT_METRICS, false, diff --git a/src/server-dev.ts b/src/server-dev.ts index b49244861d..ad51d0a923 100644 --- a/src/server-dev.ts +++ b/src/server-dev.ts @@ -57,6 +57,7 @@ process.nextTick(async () => { lifecycleMetrics: true, improvedJsonDiff: true, impactMetrics: true, + crDiffView: true, }, }, authentication: {