@@ -19,27 +19,24 @@ const DECISION_TYPES = {
19
19
const DECLINATION_OPTIONS = {
20
20
DECLINATION_HEALTH_RECORDS_WITHHELD : {
21
21
type : DECISION_TYPES . DECLINATION ,
22
- reason :
23
- "I decline the request, because the claimant didn't provide access to health records" ,
22
+ reason : "Decline, because change of address isn't authorized" ,
24
23
} ,
25
24
DECLINATION_ADDRESS_CHANGE_WITHHELD : {
26
25
type : DECISION_TYPES . DECLINATION ,
27
- reason :
28
- "I decline the request, because the claimant didn't allow me to change their address" ,
26
+ reason : 'Decline, because protected medical record access is limited' ,
29
27
} ,
30
28
DECLINATION_BOTH_WITHHELD : {
31
29
type : DECISION_TYPES . DECLINATION ,
32
30
reason :
33
- 'I decline the request , because the claimant did not provide access to change address and to health records' ,
31
+ "Decline , because change of address isn't authorized and protected medical record access is limited" ,
34
32
} ,
35
33
DECLINATION_NOT_ACCEPTING_CLIENTS : {
36
34
type : DECISION_TYPES . DECLINATION ,
37
- reason :
38
- 'I decline the request, because the VSO is not currently accepting new clients' ,
35
+ reason : "Decline, because the VSO isn't accepting new clients" ,
39
36
} ,
40
37
DECLINATION_OTHER : {
41
38
type : DECISION_TYPES . DECLINATION ,
42
- reason : 'I decline for another reason' ,
39
+ reason : 'Decline, because of another reason' ,
43
40
} ,
44
41
} ;
45
42
@@ -55,8 +52,10 @@ const Authorized = () => {
55
52
return (
56
53
< span >
57
54
< va-icon
55
+ height = { 20 }
56
+ maxWidth = { 20 }
58
57
icon = "check_circle"
59
- class = "vads-u-color--success poa-request__card-icon"
58
+ class = "vads-u-color--success-dark poa-request__card-icon"
60
59
/>
61
60
Authorized
62
61
</ span >
@@ -67,8 +66,10 @@ const NoAccess = () => {
67
66
return (
68
67
< span >
69
68
< va-icon
69
+ height = { 20 }
70
+ maxWidth = { 20 }
70
71
icon = "warning"
71
- class = "vads-u-color--error poa-request__card-icon"
72
+ class = "vads-u-color--warning-dark poa-request__card-icon"
72
73
/>
73
74
No Access
74
75
</ span >
@@ -79,8 +80,10 @@ const AccessToSome = () => {
79
80
return (
80
81
< span >
81
82
< va-icon
83
+ height = { 20 }
84
+ maxWidth = { 20 }
82
85
icon = "warning"
83
- class = "vads-u-color--error poa-request__card-icon"
86
+ class = "vads-u-color--warning-dark poa-request__card-icon"
84
87
/>
85
88
Access to some
86
89
</ span >
@@ -128,21 +131,26 @@ const POARequestDetailsPage = () => {
128
131
} = poaRequest . powerOfAttorneyForm . authorizations ;
129
132
return (
130
133
< section className = "poa-request-details" >
131
- < h1 data-testid = "poa-request-details-header" > POA request</ h1 >
134
+ < h1
135
+ className = "poa-request-details__header"
136
+ data-testid = "poa-request-details-header"
137
+ >
138
+ POA request
139
+ </ h1 >
132
140
< h2 className = "poa-request-details__name" >
133
141
{ claimantLastName } , { claimantFirstName }
134
- < span
135
- className = { `usa-label vads-u-font-family--sans poa-request-details__status ${ poaStatus } ` }
136
- >
137
- { formatStatus ( poaStatus ) }
138
- </ span >
142
+ { poaStatus !== 'expired' && (
143
+ < span
144
+ className = { `usa-label vads-u-font-family--sans poa-request-details__status ${ poaStatus } ` }
145
+ >
146
+ { formatStatus ( poaStatus ) }
147
+ </ span >
148
+ ) }
139
149
</ h2 >
140
150
141
151
< ul className = "poa-request-details__list" >
142
152
< li className = "poa-request-details__list-item" >
143
- < p className = "poa-request-details__title" >
144
- Requesting representation through
145
- </ p >
153
+ < p className = "poa-request-details__title" > Requested representative</ p >
146
154
< p className = "poa-request-details__subtitle" >
147
155
{ poaRequest ?. powerOfAttorneyHolder ?. name }
148
156
</ p >
@@ -158,20 +166,18 @@ const POARequestDetailsPage = () => {
158
166
< li className = "poa-request-details__list-item" >
159
167
{ poaStatus === 'declination' && (
160
168
< >
161
- < p className = "poa-request-details__title" >
162
- POA request declined on
163
- </ p >
164
- { resolutionDate ( poaRequest . resolution ?. createdAt , poaStatus . id ) }
169
+ < p className = "poa-request-details__title" > Request declined on</ p >
170
+ { resolutionDate ( poaRequest . resolution ?. created_at , poaStatus . id ) }
165
171
</ >
166
172
) }
167
173
{ poaStatus === 'acceptance' && (
168
174
< >
169
175
< p className = "poa-request-details__title" >
170
176
< va-icon
171
177
icon = "check_circle"
172
- class = "vads-u-color--success poa-request__card-icon"
178
+ class = "vads-u-color--success-dark poa-request__card-icon"
173
179
/> { ' ' }
174
- POA request accepted on
180
+ Request accepted on
175
181
</ p >
176
182
{ resolutionDate ( poaRequest . resolution ?. createdAt , poaStatus . id ) }
177
183
</ >
@@ -181,9 +187,9 @@ const POARequestDetailsPage = () => {
181
187
< p className = "poa-request-details__title" >
182
188
< va-icon
183
189
icon = "warning"
184
- class = "vads-u-color--error poa-request__card-icon"
190
+ class = "vads-u-color--warning-dark poa-request__card-icon"
185
191
/> { ' ' }
186
- POA request expired on
192
+ Request expired on
187
193
</ p >
188
194
{ resolutionDate ( poaRequest . resolution ?. createdAt , poaStatus . id ) }
189
195
</ >
@@ -200,7 +206,7 @@ const POARequestDetailsPage = () => {
200
206
aria-hidden = "true"
201
207
/>
202
208
) }
203
- POA request expires on
209
+ Request expires on
204
210
</ p >
205
211
{ resolutionDate ( poaRequest ?. expiresAt , poaStatus . id ) }
206
212
</ >
@@ -216,110 +222,106 @@ const POARequestDetailsPage = () => {
216
222
217
223
< div className = "poa-request-details__info" >
218
224
< h2 > Claimant information</ h2 >
219
- < table className = "poa-request-details__table " >
220
- < tr >
221
- < th scope = "row" > Relationship to veteran</ th >
222
- < td > { relationship } </ td >
223
- </ tr >
224
- < tr >
225
- < th scope = "row" > Address</ th >
226
- < td >
225
+ < ul className = "poa-request-details__list poa-request-details__list--info " >
226
+ < li >
227
+ < p > Relationship to veteran</ p >
228
+ < p > { relationship } </ p >
229
+ </ li >
230
+ < li >
231
+ < p > Address</ p >
232
+ < p >
227
233
{ city } , { state } , { zipCode }
228
- </ td >
229
- </ tr >
230
- < tr >
231
- < th scope = "row" > Phone</ th >
232
- < td > { phone } </ td >
233
- </ tr >
234
- < tr >
235
- < th scope = "row" > Email</ th >
236
- < td > { email } </ td >
237
- </ tr >
234
+ </ p >
235
+ </ li >
236
+ < li >
237
+ < p > Phone</ p >
238
+ < p > { phone } </ p >
239
+ </ li >
240
+ < li >
241
+ < p > Email</ p >
242
+ < p > { email } </ p >
243
+ </ li >
238
244
{ relationship === 'Self' && (
239
245
< >
240
- < tr >
241
- < th scope = "row" > Social security number</ th >
242
- < td > { poaRequest ?. powerOfAttorneyForm ?. claimant ?. ssn } </ td >
243
- </ tr >
244
- < tr >
245
- < th scope = "row" > VA file number</ th >
246
- < td >
247
- { poaRequest ?. powerOfAttorneyForm ?. claimant ?. va_file_number }
248
- </ td >
249
- </ tr >
246
+ < li >
247
+ < p > Social Security number</ p >
248
+ < p > { poaRequest ?. power_of_attorney_form ?. claimant ?. ssn } </ p >
249
+ </ li >
250
+ < li >
251
+ < p > VA file number</ p >
252
+ < p >
253
+ { poaRequest ?. power_of_attorney_form ?. claimant ?. va_file_number }
254
+ </ p >
255
+ </ li >
250
256
</ >
251
257
) }
252
- </ table >
258
+ </ ul >
253
259
254
260
{ /* if there is a claimant that is a relative/friend to the veteran, their information will populate in the previous table under claimant,
255
261
and the veteran information will show up here. if the veteran is filing themselves, they will appear as the claimant */ }
256
262
{ poaRequest . powerOfAttorneyForm . veteran && (
257
263
< >
258
264
< h2 > Veteran information</ h2 >
259
- < table className = "poa-request-details__table " >
260
- < tr >
261
- < th scope = "row" > Name</ th >
262
- < td >
263
- { poaRequest ?. powerOfAttorneyForm ?. veteran ?. name ?. last } ,{ ' ' }
264
- { poaRequest ?. powerOfAttorneyForm ?. veteran ?. name ?. first }
265
- </ td >
266
- </ tr >
267
- < tr >
268
- < th scope = "row" > Social security number</ th >
269
- < td > { poaRequest ?. powerOfAttorneyForm ?. veteran ?. ssn } </ td >
270
- </ tr >
271
- < tr >
272
- < th scope = "row" > VA file number</ th >
273
- < td >
274
- { poaRequest ?. powerOfAttorneyForm ?. veteran ?. vaFileNumber }
275
- </ td >
276
- </ tr >
277
- </ table >
265
+ < ul className = "poa-request-details__list poa-request-details__list--info " >
266
+ < li >
267
+ < p > Name</ p >
268
+ < p >
269
+ { poaRequest ?. power_of_attorney_form ?. veteran ?. name ?. last } ,{ ' ' }
270
+ { poaRequest ?. power_of_attorney_form ?. veteran ?. name ?. first }
271
+ </ p >
272
+ </ li >
273
+ < li >
274
+ < p > Social security number</ p >
275
+ < p > { poaRequest ?. power_of_attorney_form ?. veteran ?. ssn } </ p >
276
+ </ li >
277
+ < li >
278
+ < p > VA file number</ p >
279
+ < p >
280
+ { poaRequest ?. power_of_attorney_form ?. veteran ?. va_file_number }
281
+ </ p >
282
+ </ li >
283
+ </ ul >
278
284
</ >
279
285
) }
280
286
281
287
< h2 > Authorization information</ h2 >
282
- < table className = "poa-request-details__table " >
283
- < tr >
284
- < th scope = "row" > Change of address</ th >
285
- < td >
288
+ < ul className = "poa-request-details__list poa-request-details__list--info " >
289
+ < li >
290
+ < p > Change of address</ p >
291
+ < p >
286
292
{ checkAuthorizations (
287
293
poaRequest ?. powerOfAttorneyForm . authorizations . address_change ,
288
294
) }
289
- </ td >
290
- </ tr >
291
- < tr >
292
- < th scope = "row" > Protected medical records</ th >
293
- < td >
294
- { recordDisclosureLimitations . length === 0 && < NoAccess /> }
295
- { recordDisclosureLimitations . length < 4 &&
296
- recordDisclosureLimitations . length > 0 && < AccessToSome /> }
297
- { recordDisclosureLimitations . length === 4 && < Authorized /> }
298
- </ td >
299
- </ tr >
300
- < tr >
301
- < th scope = "row" > Alcoholism or alcohol abuse records</ th >
302
- < td >
303
- { checkLimitations ( recordDisclosureLimitations , 'ALCOHOLISM' ) }
304
- </ td >
305
- </ tr >
306
- < tr >
307
- < th scope = "row" > Drug abuse records</ th >
308
- < td >
309
- { checkLimitations ( recordDisclosureLimitations , 'DRUG_ABUSE' ) }
310
- </ td >
311
- </ tr >
312
- < tr >
313
- < th scope = "row" > HIV records</ th >
314
- < td > { checkLimitations ( recordDisclosureLimitations , 'HIV' ) } </ td >
315
- </ tr >
316
- < tr >
317
- < th scope = "row" > Sickle cell anemia records</ th >
318
- < td >
295
+ </ p >
296
+ </ li >
297
+ < li >
298
+ < p > Protected medical records</ p >
299
+ < p >
300
+ { recordDisclosureLimitations . lengp === 0 && < NoAccess /> }
301
+ { recordDisclosureLimitations . lengp < 4 &&
302
+ recordDisclosureLimitations . lengp > 0 && < AccessToSome /> }
303
+ { recordDisclosureLimitations . lengp === 4 && < Authorized /> }
304
+ </ p >
305
+ </ li >
306
+ < li >
307
+ < p > Alcoholism or alcohol abuse records</ p >
308
+ < p > { checkLimitations ( recordDisclosureLimitations , 'ALCOHOLISM' ) } </ p >
309
+ </ li >
310
+ < li >
311
+ < p > Drug abuse records</ p >
312
+ < p > { checkLimitations ( recordDisclosureLimitations , 'DRUG_ABUSE' ) } </ p >
313
+ </ li >
314
+ < li >
315
+ < p > HIV records</ p >
316
+ < p > { checkLimitations ( recordDisclosureLimitations , 'HIV' ) } </ p >
317
+ </ li >
318
+ < li >
319
+ < p > Sickle cell anemia records</ p >
320
+ < p >
319
321
{ checkLimitations ( recordDisclosureLimitations , 'SICKLE_CELL' ) }
320
- </ td >
321
- </ tr >
322
- </ table >
322
+ </ p >
323
+ </ li >
324
+ </ ul >
323
325
324
326
{ poaStatus === 'Pending' && (
325
327
< Form
@@ -333,15 +335,18 @@ const POARequestDetailsPage = () => {
333
335
>
334
336
< VaRadio
335
337
header-aria-describedby = { null }
336
- hint = ""
337
338
label = "Do you accept or decline this POA request?"
338
339
label-header-level = "4"
339
340
class = "poa-request-details__form-label"
340
341
onVaValueChange = { handleChange }
341
342
required
342
343
>
344
+ < p >
345
+ We’ll send the claimant an email letting them know your
346
+ decision.
347
+ </ p >
343
348
< VaRadioOption
344
- label = "I accept the request "
349
+ label = "Accept "
345
350
value = "ACCEPTANCE"
346
351
name = "decision"
347
352
/>
@@ -356,18 +361,6 @@ const POARequestDetailsPage = () => {
356
361
) ) }
357
362
</ VaRadio >
358
363
359
- < va-alert
360
- status = "info"
361
- class = "poa-request-details__form-alert"
362
- visible
363
- aria-live = "polite"
364
- slim
365
- >
366
- < p className = "vads-u-margin-y--0" >
367
- We will send the claimant an email letting them know your
368
- decision.
369
- </ p >
370
- </ va-alert >
371
364
{ /* eslint-disable-next-line @department-of-veterans-affairs/prefer-button-component */ }
372
365
< button
373
366
type = "submit"
0 commit comments