diff --git a/src/components/HrTools/GoalCalculator/SharedComponents/SectionList.test.tsx b/src/components/HrTools/GoalCalculator/SharedComponents/SectionList.test.tsx
index b8b446449b..f078d2dd20 100644
--- a/src/components/HrTools/GoalCalculator/SharedComponents/SectionList.test.tsx
+++ b/src/components/HrTools/GoalCalculator/SharedComponents/SectionList.test.tsx
@@ -31,6 +31,17 @@ describe('SectionList', () => {
within(incompleteSection).getByTestId('RadioButtonUncheckedIcon'),
).toBeInTheDocument();
});
+
+ it('renders the Complete/Incomplete title', () => {
+ const { getByTitle } = render(
+
+
+ ,
+ );
+
+ expect(getByTitle('Complete')).toBeInTheDocument();
+ expect(getByTitle('Incomplete')).toBeInTheDocument();
+ });
});
describe('ReportSectionList', () => {
diff --git a/src/components/HrTools/GoalCalculator/SharedComponents/SectionList.tsx b/src/components/HrTools/GoalCalculator/SharedComponents/SectionList.tsx
index 0c5470e11e..08c9524db8 100644
--- a/src/components/HrTools/GoalCalculator/SharedComponents/SectionList.tsx
+++ b/src/components/HrTools/GoalCalculator/SharedComponents/SectionList.tsx
@@ -13,28 +13,42 @@ import { useGoalCalculator } from '../Shared/GoalCalculatorContext';
interface ListItemContentProps {
title: string;
complete: boolean;
+ announceCompletion?: boolean;
}
const ListItemContent: React.FC = ({
title,
complete,
-}) => (
- <>
- ({
- color: complete
- ? theme.palette.mpdxBlue.main
- : theme.palette.mpdxGrayDark.main,
- })}
- >
- {complete ? : }
-
-
- >
-);
+ announceCompletion = false,
+}) => {
+ const { t } = useTranslation();
+ const titleAccess = announceCompletion
+ ? complete
+ ? t('Complete')
+ : t('Incomplete')
+ : undefined;
+ return (
+ <>
+ ({
+ color: complete
+ ? theme.palette.mpdxBlue.main
+ : theme.palette.mpdxGrayDark.main,
+ })}
+ >
+ {complete ? (
+
+ ) : (
+
+ )}
+
+
+ >
+ );
+};
export interface SectionItem {
title: string;
@@ -50,7 +64,11 @@ export const SectionList: React.FC = ({ sections }) => {
{sections.map(({ title, complete }, index) => (
-
+
))}
diff --git a/src/components/HrTools/PdsGoalCalculator/GoalsList/CreateGoalDialog.tsx b/src/components/HrTools/PdsGoalCalculator/GoalsList/CreateGoalDialog.tsx
index bb967461a0..066142e62c 100644
--- a/src/components/HrTools/PdsGoalCalculator/GoalsList/CreateGoalDialog.tsx
+++ b/src/components/HrTools/PdsGoalCalculator/GoalsList/CreateGoalDialog.tsx
@@ -1,4 +1,4 @@
-import React, { useEffect, useRef } from 'react';
+import React, { useEffect, useMemo, useRef } from 'react';
import {
Button,
CircularProgress,
@@ -50,26 +50,31 @@ export const CreateGoalDialog: React.FC = ({
}
}, [open]);
- const formTypeOptions: Array<{
- value: DesignationSupportFormType;
- title: string;
- description: string;
- }> = [
- {
- value: DesignationSupportFormType.Detailed,
- title: t('Default'),
- description: t(
- 'Full calculator with reimbursable expenses and 403b contributions.',
- ),
- },
- {
- value: DesignationSupportFormType.Simple,
- title: t('Simple'),
- description: t(
- 'Streamlined calculator without reimbursable expenses or 403b contributions.',
- ),
- },
- ];
+ const formTypeOptions = useMemo<
+ Array<{
+ value: DesignationSupportFormType;
+ title: string;
+ description: string;
+ }>
+ >(
+ () => [
+ {
+ value: DesignationSupportFormType.Detailed,
+ title: t('Default'),
+ description: t(
+ 'Full calculator with reimbursable expenses and 403b contributions.',
+ ),
+ },
+ {
+ value: DesignationSupportFormType.Simple,
+ title: t('Simple'),
+ description: t(
+ 'Streamlined calculator without reimbursable expenses or 403b contributions.',
+ ),
+ },
+ ],
+ [t],
+ );
return (