1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-26 13:48:33 +02:00

add crDiffView to Unleash (#10228)

This change adds the `crDiffView` flag to Unleash, potentially enabling
the new JSON diff tab in change request changes instead of the "view
json diff" hover functionality.
This commit is contained in:
Thomas Heartman 2025-06-27 11:24:44 +02:00 committed by GitHub
parent c5b6ee75f3
commit 4eedf88627
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 0 deletions

View File

@ -90,6 +90,7 @@ export type UiFlags = {
createFlagDialogCache?: boolean;
healthToTechDebt?: boolean;
improvedJsonDiff?: boolean;
crDiffView?: boolean;
changeRequestApproverEmails?: boolean;
};

View File

@ -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,

View File

@ -57,6 +57,7 @@ process.nextTick(async () => {
lifecycleMetrics: true,
improvedJsonDiff: true,
impactMetrics: true,
crDiffView: true,
},
},
authentication: {