Rename Inherent to Initial in risk module UI

Several risk views already used "Initial" while others still showed
"Inherent". Align user-facing labels across the console, shared UI
components, CLI help, n8n fields, generated documents, and MCP
descriptions. API and database field names are unchanged.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
This commit is contained in:
Cursor Agent
2026-07-20 08:52:54 +00:00
committed by Bryan Frimin
parent aba2ef4cc2
commit e5c7cf9b9c
10 changed files with 26 additions and 26 deletions

View File

@@ -109,7 +109,7 @@ export function LinkedRisksCard<Params>(props: Props<Params>) {
<Thead> <Thead>
<Tr> <Tr>
<Th>{__("Name")}</Th> <Th>{__("Name")}</Th>
<Th>{__("Inherent Risk")}</Th> <Th>{__("Initial Risk")}</Th>
<Th>{__("Residual Risk")}</Th> <Th>{__("Residual Risk")}</Th>
{!props.readOnly && <Th></Th>} {!props.readOnly && <Th></Th>}
</Tr> </Tr>

View File

@@ -264,7 +264,7 @@ export function FormRiskDialog({
<ImpactAndLikelihood <ImpactAndLikelihood
errors={errors} errors={errors}
control={control} control={control}
label={__("Inherent Risk")} label={__("Initial Risk")}
prefix="inherent" prefix="inherent"
/> />
<ImpactAndLikelihood <ImpactAndLikelihood

View File

@@ -97,7 +97,7 @@ export const description: INodeProperties[] = [
required: true, required: true,
}, },
{ {
displayName: 'Inherent Likelihood', displayName: 'Initial Likelihood',
name: 'inherentLikelihood', name: 'inherentLikelihood',
type: 'number', type: 'number',
displayOptions: { displayOptions: {
@@ -111,11 +111,11 @@ export const description: INodeProperties[] = [
maxValue: 5, maxValue: 5,
}, },
default: 1, default: 1,
description: 'The inherent likelihood of the risk (1-5)', description: 'The initial likelihood of the risk (1-5)',
required: true, required: true,
}, },
{ {
displayName: 'Inherent Impact', displayName: 'Initial Impact',
name: 'inherentImpact', name: 'inherentImpact',
type: 'number', type: 'number',
displayOptions: { displayOptions: {
@@ -129,7 +129,7 @@ export const description: INodeProperties[] = [
maxValue: 5, maxValue: 5,
}, },
default: 1, default: 1,
description: 'The inherent impact of the risk (1-5)', description: 'The initial impact of the risk (1-5)',
required: true, required: true,
}, },
{ {

View File

@@ -115,7 +115,7 @@ export const description: INodeProperties[] = [
description: 'The description of the risk', description: 'The description of the risk',
}, },
{ {
displayName: 'Inherent Impact', displayName: 'Initial Impact',
name: 'inherentImpact', name: 'inherentImpact',
type: 'number', type: 'number',
typeOptions: { typeOptions: {
@@ -123,10 +123,10 @@ export const description: INodeProperties[] = [
maxValue: 5, maxValue: 5,
}, },
default: 1, default: 1,
description: 'The inherent impact of the risk (1-5)', description: 'The initial impact of the risk (1-5)',
}, },
{ {
displayName: 'Inherent Likelihood', displayName: 'Initial Likelihood',
name: 'inherentLikelihood', name: 'inherentLikelihood',
type: 'number', type: 'number',
typeOptions: { typeOptions: {
@@ -134,7 +134,7 @@ export const description: INodeProperties[] = [
maxValue: 5, maxValue: 5,
}, },
default: 1, default: 1,
description: 'The inherent likelihood of the risk (1-5)', description: 'The initial likelihood of the risk (1-5)',
}, },
{ {
displayName: 'Note', displayName: 'Note',

View File

@@ -88,7 +88,7 @@ export function RisksChart({ organizationId, type, risks }: Props) {
<div className="flex justify-between items-center mb-6"> <div className="flex justify-between items-center mb-6">
<h2 className="font-semibold text-lg"> <h2 className="font-semibold text-lg">
{type === "inherent" {type === "inherent"
? __("Inherent Risk") ? __("Initial Risk")
: __("Residual Risk")} : __("Residual Risk")}
</h2> </h2>
<div className="flex gap-3"> <div className="flex gap-3">

View File

@@ -228,8 +228,8 @@ func NewCmdCreate(f *cmdutil.Factory) *cobra.Command {
cmd.Flags().StringVar(&flagName, "name", "", "Risk name (required)") cmd.Flags().StringVar(&flagName, "name", "", "Risk name (required)")
cmd.Flags().StringVar(&flagCategory, "category", "", "Risk category (required)") cmd.Flags().StringVar(&flagCategory, "category", "", "Risk category (required)")
cmd.Flags().StringVar(&flagTreatment, "treatment", "", "Risk treatment: MITIGATED, ACCEPTED, AVOIDED, TRANSFERRED (required)") cmd.Flags().StringVar(&flagTreatment, "treatment", "", "Risk treatment: MITIGATED, ACCEPTED, AVOIDED, TRANSFERRED (required)")
cmd.Flags().IntVar(&flagInherentLikelihood, "inherent-likelihood", 0, "Inherent likelihood 1-5 (required)") cmd.Flags().IntVar(&flagInherentLikelihood, "inherent-likelihood", 0, "Initial likelihood 1-5 (required)")
cmd.Flags().IntVar(&flagInherentImpact, "inherent-impact", 0, "Inherent impact 1-5 (required)") cmd.Flags().IntVar(&flagInherentImpact, "inherent-impact", 0, "Initial impact 1-5 (required)")
cmd.Flags().IntVar(&flagResidualLikelihood, "residual-likelihood", 0, "Residual likelihood 1-5") cmd.Flags().IntVar(&flagResidualLikelihood, "residual-likelihood", 0, "Residual likelihood 1-5")
cmd.Flags().IntVar(&flagResidualImpact, "residual-impact", 0, "Residual impact 1-5") cmd.Flags().IntVar(&flagResidualImpact, "residual-impact", 0, "Residual impact 1-5")
cmd.Flags().StringVar(&flagDescription, "description", "", "Risk description") cmd.Flags().StringVar(&flagDescription, "description", "", "Risk description")

View File

@@ -174,8 +174,8 @@ func NewCmdUpdate(f *cmdutil.Factory) *cobra.Command {
cmd.Flags().StringVar(&flagName, "name", "", "Risk name") cmd.Flags().StringVar(&flagName, "name", "", "Risk name")
cmd.Flags().StringVar(&flagCategory, "category", "", "Risk category") cmd.Flags().StringVar(&flagCategory, "category", "", "Risk category")
cmd.Flags().StringVar(&flagTreatment, "treatment", "", "Risk treatment: MITIGATED, ACCEPTED, AVOIDED, TRANSFERRED") cmd.Flags().StringVar(&flagTreatment, "treatment", "", "Risk treatment: MITIGATED, ACCEPTED, AVOIDED, TRANSFERRED")
cmd.Flags().IntVar(&flagInherentLikelihood, "inherent-likelihood", 0, "Inherent likelihood 1-5") cmd.Flags().IntVar(&flagInherentLikelihood, "inherent-likelihood", 0, "Initial likelihood 1-5")
cmd.Flags().IntVar(&flagInherentImpact, "inherent-impact", 0, "Inherent impact 1-5") cmd.Flags().IntVar(&flagInherentImpact, "inherent-impact", 0, "Initial impact 1-5")
cmd.Flags().IntVar(&flagResidualLikelihood, "residual-likelihood", 0, "Residual likelihood 1-5") cmd.Flags().IntVar(&flagResidualLikelihood, "residual-likelihood", 0, "Residual likelihood 1-5")
cmd.Flags().IntVar(&flagResidualImpact, "residual-impact", 0, "Residual impact 1-5") cmd.Flags().IntVar(&flagResidualImpact, "residual-impact", 0, "Residual impact 1-5")
cmd.Flags().StringVar(&flagDescription, "description", "", "Risk description") cmd.Flags().StringVar(&flagDescription, "description", "", "Risk description")

View File

@@ -153,7 +153,7 @@ func NewCmdView(f *cmdutil.Factory) *cobra.Command {
_, _ = fmt.Fprintf( _, _ = fmt.Fprintf(
out, out,
"%s%d (likelihood: %d, impact: %d)\n", "%s%d (likelihood: %d, impact: %d)\n",
label.Render("Inherent Risk Score:"), label.Render("Initial Risk Score:"),
r.InherentRiskScore, r.InherentRiskScore,
r.InherentLikelihood, r.InherentLikelihood,
r.InherentImpact, r.InherentImpact,

View File

@@ -8,7 +8,7 @@
}, },
{ {
"type": "paragraph", "type": "paragraph",
"content": [{ "type": "text", "text": "This document provides a comprehensive register of all risks identified within the organization. It captures each risk's classification, treatment, ownership, inherent and residual scoring (likelihood × impact), the related controls, measures, documents and obligations, plus any relevant notes." }] "content": [{ "type": "text", "text": "This document provides a comprehensive register of all risks identified within the organization. It captures each risk's classification, treatment, ownership, initial and residual scoring (likelihood × impact), the related controls, measures, documents and obligations, plus any relevant notes." }]
}, },
{ "type": "horizontalRule" }, { "type": "horizontalRule" },
{ {
@@ -57,7 +57,7 @@
{ {
"type": "heading", "type": "heading",
"attrs": { "level": 3 }, "attrs": { "level": 3 },
"content": [{ "type": "text", "text": {{json (printf "2.%d.2 Inherent Risk" (add $i 1))}} }] "content": [{ "type": "text", "text": {{json (printf "2.%d.2 Initial Risk" (add $i 1))}} }]
}, },
{ {
"type": "table", "type": "table",
@@ -172,7 +172,7 @@
}, },
{ {
"type": "paragraph", "type": "paragraph",
"content": [{ "type": "text", "text": "Risk Score is the product of Likelihood × Impact (range 1–25). Inherent values represent the risk before controls; residual values represent the risk after controls have been applied. Severity bands: Low (≤4), High (5–14), Critical (≥15)." }] "content": [{ "type": "text", "text": "Risk Score is the product of Likelihood × Impact (range 1–25). Initial values represent the risk before controls; residual values represent the risk after controls have been applied. Severity bands: Low (≤4), High (5–14), Critical (≥15)." }]
} }
] ]
} }

View File

@@ -1843,13 +1843,13 @@ components:
description: Risk treatment description: Risk treatment
inherent_likelihood: inherent_likelihood:
type: integer type: integer
description: Inherent likelihood description: Initial likelihood
inherent_impact: inherent_impact:
type: integer type: integer
description: Inherent impact description: Initial impact
inherent_risk_score: inherent_risk_score:
type: integer type: integer
description: Inherent risk score description: Initial risk score
residual_likelihood: residual_likelihood:
type: integer type: integer
description: Residual likelihood description: Residual likelihood
@@ -1961,10 +1961,10 @@ components:
description: Risk treatment description: Risk treatment
inherent_likelihood: inherent_likelihood:
type: integer type: integer
description: Inherent likelihood description: Initial likelihood
inherent_impact: inherent_impact:
type: integer type: integer
description: Inherent impact description: Initial impact
residual_likelihood: residual_likelihood:
type: integer type: integer
description: Residual likelihood description: Residual likelihood
@@ -2013,10 +2013,10 @@ components:
description: Risk treatment description: Risk treatment
inherent_likelihood: inherent_likelihood:
type: integer type: integer
description: Inherent likelihood description: Initial likelihood
inherent_impact: inherent_impact:
type: integer type: integer
description: Inherent impact description: Initial impact
residual_likelihood: residual_likelihood:
type: integer type: integer
description: Residual likelihood description: Residual likelihood