diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bccf0487..5dc91dc4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file. ## [Unreleased] -## [0.13.1] - 2025-04-24 +### Added + +- Risk can have note + +## [0.13.2] - 2025-04-24 ### Fixed diff --git a/apps/console/src/pages/organizations/risks/EditRiskView.tsx b/apps/console/src/pages/organizations/risks/EditRiskView.tsx index ea7ff809f..a1d05f87e 100644 --- a/apps/console/src/pages/organizations/risks/EditRiskView.tsx +++ b/apps/console/src/pages/organizations/risks/EditRiskView.tsx @@ -52,6 +52,7 @@ const editRiskViewQuery = graphql` residualLikelihood residualImpact treatment + note owner { id fullName @@ -78,6 +79,7 @@ const updateRiskMutation = graphql` residualLikelihood residualImpact treatment + note updatedAt owner { id @@ -107,6 +109,7 @@ function EditRiskViewContent({ const [name, setName] = useState(""); const [description, setDescription] = useState(""); const [category, setCategory] = useState(""); + const [note, setNote] = useState(""); const [inherentLikelihood, setInherentLikelihood] = useState(3); const [inherentImpact, setInherentImpact] = useState(3); const [residualLikelihood, setResidualLikelihood] = useState(3); @@ -124,6 +127,7 @@ function EditRiskViewContent({ setName(risk.name || ""); setDescription(risk.description || ""); setCategory(risk.category || ""); + setNote(risk.note || ""); // Set values directly as integers setInherentLikelihood(risk.inherentLikelihood || 3); setInherentImpact(risk.inherentImpact || 3); @@ -158,6 +162,7 @@ function EditRiskViewContent({ residualLikelihood, residualImpact, treatment, + note, ownerId: ownerId || undefined, }; @@ -241,6 +246,17 @@ function EditRiskViewContent({ /> +
+ +