diff --git a/src/scenes/ProgressReports/EditForm/Steps/ExplanationOfProgress/ExplanationOfProgress.graphql b/src/scenes/ProgressReports/EditForm/Steps/ExplanationOfProgress/ExplanationOfProgress.graphql index 0e37c23b3c..dac4e1ae94 100644 --- a/src/scenes/ProgressReports/EditForm/Steps/ExplanationOfProgress/ExplanationOfProgress.graphql +++ b/src/scenes/ProgressReports/EditForm/Steps/ExplanationOfProgress/ExplanationOfProgress.graphql @@ -9,6 +9,7 @@ fragment ExplanationOfProgressStep on ProgressReport { ahead behind onTime + deprecated } reasons { ...SecuredStringList diff --git a/src/scenes/ProgressReports/EditForm/Steps/ExplanationOfProgress/ExplanationOfProgress.tsx b/src/scenes/ProgressReports/EditForm/Steps/ExplanationOfProgress/ExplanationOfProgress.tsx index 8ff338b7fe..1ca717210f 100644 --- a/src/scenes/ProgressReports/EditForm/Steps/ExplanationOfProgress/ExplanationOfProgress.tsx +++ b/src/scenes/ProgressReports/EditForm/Steps/ExplanationOfProgress/ExplanationOfProgress.tsx @@ -24,7 +24,7 @@ import { ExplainProgressVarianceDocument } from './ExplanationOfProgress.graphql type OptionGroup = typeof groups extends Array ? T : never; -const groups = ['behind', 'onTime', 'ahead'] satisfies Array< +const groups = ['behind', 'onTime', 'ahead', 'deprecated'] satisfies Array< keyof ReasonOptions >; @@ -170,11 +170,20 @@ export const ExplanationOfProgress: StepComponent = ({ report }) => { + > + {optionsByGroup[group].map((reason) => ( + + fieldName={reason} + key={reason} + variant="radio" + value={reason} + disabled={optionsByGroup.deprecated.includes(reason)} + /> + ))} + )}