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 197 forks source link

[CST] [ENG] Create status page and overview alerts for when claims revert to a previous step #83244

Closed uxgary closed 5 days ago

uxgary commented 3 months ago

Value Statement

As a Veteran checking on my claim I want to see a visual cue when my claim reverts to a previous step So that I am aware of this action and


Background Context

Due to the cyclical nature of the disability claims process, we want to have a way to point Veterans' attention a messaging that their claim has moved to a previous step.

New Feature

- Epic Link

Design

Note: An alert is displayed when the Veteran logs in for the first time since their claim has reverted. It disappears for subsequent logins.

Screenshot 2024-05-17 at 1 23 07 PM

Engineering

Open questions

Tasks

Definition of Done

Acceptance Criteria

uxgary commented 3 months ago

Response to open question:

Just a reminder, I noted: An alert is displayed when the Veteran logs in for the first time since their claim has reverted. It disappears for subsequent logins.

pmclaren19 commented 3 months ago

Thanks for the additional information. These things weren't noted in the ticket or the mocks so I will update the ticket tasks/ ac to reflect this.

Im still a little confused though @uxgary so when a user goes lets say from step 6 to step 3 you expect the following:

So if a user then goes from that step 3 to step 4 what are your expectations?

pmclaren19 commented 3 months ago

Met with @samcoforma and @uxgary Looking at our current claim data there is no way to tell what the previous phase was, in order to only show the information alert at the initial phaseback. Therefore this design may or may not be possible. We will need to hold off on pointing this until we can confirm with @jerekshoe on if this is indeed possible or if we need to change the design.

pmclaren19 commented 3 months ago

Spoke in parking lot about how we want to handle this alert with @uxgary @samcoforma @jerekshoe .

Moving forward we will display this alert on steps (3-6) when the field claim.claimPhaseDates.currentPhaseBack is set to true and we will hide the 'Step may repeat' text. After the phase moves forward, lighthouse will set this field claim.claimPhaseDates.currentPhaseBack back to false and when this occurs, this alert will be hidden and the 'Step may repeat' text will be shown again.

jerekshoe commented 3 weeks ago

One thing to note with this is that when we get the list of claims, lighthouse doesn't include the attribute to indicate whether the claim is currently phased back or not. We only get that attribute when we pull the details for an individual claim