From e5c7cf9b9c91f82a09dd36ff739525a252021a9c Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 20 Jul 2026 08:52:54 +0000 Subject: [PATCH] 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 Co-authored-by: Bryan FRIMIN --- .../src/components/risks/LinkedRisksCard.tsx | 2 +- .../risks/_components/FormRiskDialog.tsx | 2 +- .../nodes/Probo/actions/risk/create.operation.ts | 8 ++++---- .../nodes/Probo/actions/risk/update.operation.ts | 8 ++++---- packages/ui/src/Molecules/Risks/RisksChart.tsx | 2 +- pkg/cmd/risk/create/create.go | 4 ++-- pkg/cmd/risk/update/update.go | 4 ++-- pkg/cmd/risk/view/view.go | 2 +- pkg/probo/templates/risk_list.json.tmpl | 6 +++--- pkg/server/api/mcp/v1/specification.yaml | 14 +++++++------- 10 files changed, 26 insertions(+), 26 deletions(-) diff --git a/apps/console/src/components/risks/LinkedRisksCard.tsx b/apps/console/src/components/risks/LinkedRisksCard.tsx index f0982bea0..f81c5b6e1 100644 --- a/apps/console/src/components/risks/LinkedRisksCard.tsx +++ b/apps/console/src/components/risks/LinkedRisksCard.tsx @@ -109,7 +109,7 @@ export function LinkedRisksCard(props: Props) { {__("Name")} - {__("Inherent Risk")} + {__("Initial Risk")} {__("Residual Risk")} {!props.readOnly && } diff --git a/apps/console/src/pages/organizations/risks/_components/FormRiskDialog.tsx b/apps/console/src/pages/organizations/risks/_components/FormRiskDialog.tsx index b2a544444..ebe05a4e6 100644 --- a/apps/console/src/pages/organizations/risks/_components/FormRiskDialog.tsx +++ b/apps/console/src/pages/organizations/risks/_components/FormRiskDialog.tsx @@ -264,7 +264,7 @@ export function FormRiskDialog({

{type === "inherent" - ? __("Inherent Risk") + ? __("Initial Risk") : __("Residual Risk")}

diff --git a/pkg/cmd/risk/create/create.go b/pkg/cmd/risk/create/create.go index 108480f94..99e703899 100644 --- a/pkg/cmd/risk/create/create.go +++ b/pkg/cmd/risk/create/create.go @@ -228,8 +228,8 @@ func NewCmdCreate(f *cmdutil.Factory) *cobra.Command { cmd.Flags().StringVar(&flagName, "name", "", "Risk name (required)") cmd.Flags().StringVar(&flagCategory, "category", "", "Risk category (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(&flagInherentImpact, "inherent-impact", 0, "Inherent impact 1-5 (required)") + cmd.Flags().IntVar(&flagInherentLikelihood, "inherent-likelihood", 0, "Initial likelihood 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(&flagResidualImpact, "residual-impact", 0, "Residual impact 1-5") cmd.Flags().StringVar(&flagDescription, "description", "", "Risk description") diff --git a/pkg/cmd/risk/update/update.go b/pkg/cmd/risk/update/update.go index c42007f11..e91b1b066 100644 --- a/pkg/cmd/risk/update/update.go +++ b/pkg/cmd/risk/update/update.go @@ -174,8 +174,8 @@ func NewCmdUpdate(f *cmdutil.Factory) *cobra.Command { cmd.Flags().StringVar(&flagName, "name", "", "Risk name") cmd.Flags().StringVar(&flagCategory, "category", "", "Risk category") 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(&flagInherentImpact, "inherent-impact", 0, "Inherent impact 1-5") + cmd.Flags().IntVar(&flagInherentLikelihood, "inherent-likelihood", 0, "Initial likelihood 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(&flagResidualImpact, "residual-impact", 0, "Residual impact 1-5") cmd.Flags().StringVar(&flagDescription, "description", "", "Risk description") diff --git a/pkg/cmd/risk/view/view.go b/pkg/cmd/risk/view/view.go index a22d0bc89..fb4f57a9d 100644 --- a/pkg/cmd/risk/view/view.go +++ b/pkg/cmd/risk/view/view.go @@ -153,7 +153,7 @@ func NewCmdView(f *cmdutil.Factory) *cobra.Command { _, _ = fmt.Fprintf( out, "%s%d (likelihood: %d, impact: %d)\n", - label.Render("Inherent Risk Score:"), + label.Render("Initial Risk Score:"), r.InherentRiskScore, r.InherentLikelihood, r.InherentImpact, diff --git a/pkg/probo/templates/risk_list.json.tmpl b/pkg/probo/templates/risk_list.json.tmpl index ef4e2fbce..1812df332 100644 --- a/pkg/probo/templates/risk_list.json.tmpl +++ b/pkg/probo/templates/risk_list.json.tmpl @@ -8,7 +8,7 @@ }, { "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" }, { @@ -57,7 +57,7 @@ { "type": "heading", "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", @@ -172,7 +172,7 @@ }, { "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)." }] } ] } diff --git a/pkg/server/api/mcp/v1/specification.yaml b/pkg/server/api/mcp/v1/specification.yaml index f522b27cf..73ad75b26 100644 --- a/pkg/server/api/mcp/v1/specification.yaml +++ b/pkg/server/api/mcp/v1/specification.yaml @@ -1843,13 +1843,13 @@ components: description: Risk treatment inherent_likelihood: type: integer - description: Inherent likelihood + description: Initial likelihood inherent_impact: type: integer - description: Inherent impact + description: Initial impact inherent_risk_score: type: integer - description: Inherent risk score + description: Initial risk score residual_likelihood: type: integer description: Residual likelihood @@ -1961,10 +1961,10 @@ components: description: Risk treatment inherent_likelihood: type: integer - description: Inherent likelihood + description: Initial likelihood inherent_impact: type: integer - description: Inherent impact + description: Initial impact residual_likelihood: type: integer description: Residual likelihood @@ -2013,10 +2013,10 @@ components: description: Risk treatment inherent_likelihood: type: integer - description: Inherent likelihood + description: Initial likelihood inherent_impact: type: integer - description: Inherent impact + description: Initial impact residual_likelihood: type: integer description: Residual likelihood