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

@@ -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")

View File

@@ -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")

View File

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