From 8767b64b10bff2b5aeae72025b0fcf9a6861cfde Mon Sep 17 00:00:00 2001
From: Colin O'Sullivan <143013011+cosu419@users.noreply.github.com>
Date: Tue, 3 Dec 2024 08:03:38 -0500
Subject: [PATCH 1/3] Removed duplicate text
---
.../components/SelectAccreditedRepresentative.jsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/applications/representative-appoint/components/SelectAccreditedRepresentative.jsx b/src/applications/representative-appoint/components/SelectAccreditedRepresentative.jsx
index 796ee15b099f..b8c6b04964e0 100644
--- a/src/applications/representative-appoint/components/SelectAccreditedRepresentative.jsx
+++ b/src/applications/representative-appoint/components/SelectAccreditedRepresentative.jsx
@@ -197,7 +197,7 @@ const SelectAccreditedRepresentative = props => {
From 11ddca37457fc5172ddc1a1fd4d79173e96323ec Mon Sep 17 00:00:00 2001
From: Colin O'Sullivan <143013011+cosu419@users.noreply.github.com>
Date: Tue, 3 Dec 2024 08:04:13 -0500
Subject: [PATCH 2/3] Reintroduce rep status widget
---
.../containers/IntroductionPage.jsx | 19 ++++++++-----------
1 file changed, 8 insertions(+), 11 deletions(-)
diff --git a/src/applications/representative-appoint/containers/IntroductionPage.jsx b/src/applications/representative-appoint/containers/IntroductionPage.jsx
index 619610f48921..3e1f1b3e4cf3 100644
--- a/src/applications/representative-appoint/containers/IntroductionPage.jsx
+++ b/src/applications/representative-appoint/containers/IntroductionPage.jsx
@@ -3,27 +3,24 @@ import PropTypes from 'prop-types';
import { focusElement } from 'platform/utilities/ui';
import FormTitle from 'platform/forms-system/src/js/components/FormTitle';
import SaveInProgressIntro from 'platform/forms/save-in-progress/SaveInProgressIntro';
-// import repStatusLoader from 'applications/static-pages/representative-status';
-import {
- // useStore,
- connect,
-} from 'react-redux';
+import repStatusLoader from 'applications/static-pages/representative-status';
+import { useStore, connect } from 'react-redux';
import { isLoggedIn } from 'platform/user/selectors';
import GetFormHelp from '../components/GetFormHelp';
const IntroductionPage = props => {
const { route, loggedIn } = props;
const { formConfig, pageList } = route;
- // const store = useStore();
+ const store = useStore();
useEffect(() => {
focusElement('.va-nav-breadcrumbs-list');
}, []);
- // // search from query params on page load
- // useEffect(() => {
- // repStatusLoader(store, 'representative-status', 3, false);
- // }, []);
+ // search from query params on page load
+ useEffect(() => {
+ repStatusLoader(store, 'representative-status', 3, false);
+ }, []);
return (
@@ -44,7 +41,7 @@ const IntroductionPage = props => {
<>
>
From 2e52ce0896a0000ac4c1092ea4691875b6e9c607 Mon Sep 17 00:00:00 2001
From: Colin O'Sullivan <143013011+cosu419@users.noreply.github.com>
Date: Tue, 3 Dec 2024 08:12:43 -0500
Subject: [PATCH 3/3] Added condition for authorize-outsize-va/names screen
---
src/applications/representative-appoint/config/form.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/applications/representative-appoint/config/form.js b/src/applications/representative-appoint/config/form.js
index b1be02f7a43b..5635d995f4b8 100644
--- a/src/applications/representative-appoint/config/form.js
+++ b/src/applications/representative-appoint/config/form.js
@@ -378,7 +378,10 @@ const formConfig = {
authorizeOutsideVANames: {
path: 'authorize-outside-va/names',
depends: formData => {
- return isAttorneyOrClaimsAgent(formData);
+ return (
+ isAttorneyOrClaimsAgent(formData) &&
+ formData.authorizeOutsideVARadio === 'Yes'
+ );
},
title: 'Authorization for Access Outside of VA Systems',
uiSchema: authorizeOutsideVANames.uiSchema,