department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
281 stars 201 forks source link

[CDP] Fix Alert on download debt letter page. #87478

Closed josephrlee closed 2 months ago

josephrlee commented 3 months ago

Issue Description

The alert on the debt portal is incorrect. It says that the Veteran doesn't have any debt letters. We need to change it to say that debt letters are not currently available using the messaging below. Also, need to change the alert style to a warning instead of an error.

Current alert Proposed alert
Current alert page Proposed alert page

Here is the updated copy:

Your debt letters are currently unavailable.

You can’t download your debt letters because something went wrong on our end. What you can do You can check back later or call the Debt Management Center at 800-827-0648 to find out more information about how to resolve your debt.

Alert can be found on the debt-balance/letters page: https://staging.va.gov/manage-va-debt/summary/debt-balances/letters https://va.gov/manage-va-debt/summary/debt-balances/letters


Tasks

Acceptance Criteria


How to configure this issue

josephrlee commented 3 months ago

@OptionSelect, @amponce , it looks like the proper Alert exists, it's just not displaying. I think it has something to do with the logic on this component.

amponce commented 2 months ago

Good catch @joe, I'll get it resolved shortly

Dr-Pongo commented 2 months ago

Hey @josephrlee! I'm taking over this one and I think I'm going to tie the alert you described above to the same feature flag that's disabling fetching the letters on the BE. I'll update that ErrorMessage to match the content and styling you described in the main ticket since I can't find another reference to it elsewhere if that seems alright with you

denisecoveyduc commented 2 months ago

As per our discussion in slack we are changing direction of this ticket to remove the mention of downloading the debt letters until such time we have identified an adequate path forward. This will eliminated the alert message for the Veteran.

@Dr-Pongo suggested for the purposes of this ticket we hide the content in the following screenshot behind a feature flag so it can be leveraged in the future. This is a great solution which can hopefully be contained as part of the updated scope for this ticket. @Tom-Davis will work with the team to update any estimates or capture changes as needed.

image.png
Dr-Pongo commented 2 months ago

@denisecoveyduc CC: @mgleo / @josephrlee Should we update the text here as well? I just updated it to read "You can check the status of this debt."

image.png
mgleo commented 2 months ago

"You can check the status of this debt."

Maybe this line should be removed entirely as we are letting them know when the debt letters were sent, not the status. What do you think @denisecoveyduc?

Dr-Pongo commented 2 months ago

Closing out this ticket as complete. Using the debt_letters_show_letters_vbms feature flag we've removed references to the debt letter downloads page, and included the following alert if someone does manage to navigate there:

image.png