Align risk wording

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-04-14 14:52:01 -07:00
parent 156c3af6ec
commit 405c570d2e

View File

@@ -221,19 +221,19 @@ function getRiskSeverity(likelihood: number, impact: number) {
// Add helper functions to convert numerical values to labels // Add helper functions to convert numerical values to labels
function getLikelihoodLabel(likelihood: number): string { function getLikelihoodLabel(likelihood: number): string {
if (likelihood >= 0.8) return "Very High"; if (likelihood >= 0.8) return "Frequent";
if (likelihood >= 0.6) return "High"; if (likelihood >= 0.6) return "Probable";
if (likelihood >= 0.4) return "Medium"; if (likelihood >= 0.4) return "Occasional";
if (likelihood >= 0.2) return "Low"; if (likelihood >= 0.2) return "Remote";
return "Very Low"; return "Improbable";
} }
function getImpactLabel(impact: number): string { function getImpactLabel(impact: number): string {
if (impact >= 0.8) return "Critical"; if (impact >= 0.8) return "Catastrophic";
if (impact >= 0.6) return "Major"; if (impact >= 0.6) return "Significant";
if (impact >= 0.4) return "Moderate"; if (impact >= 0.4) return "Moderate";
if (impact >= 0.2) return "Minor"; if (impact >= 0.2) return "Low";
return "Insignificant"; return "Negligible";
} }
function ShowRiskViewContent({ function ShowRiskViewContent({