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
284 stars 206 forks source link

[epic] DR | Downloadable Copy of Submission #71358

Open saderagsdale opened 12 months ago

saderagsdale commented 12 months ago

Value Statement

As a Veteran that has just submitted an appeal on VA.gov I want to download a copy of the information I submitted on the form So that I can retain it for may records and reference it if I need to recall what I submitted for future filing purposes.

Initiative Brief

Success Metrics

We will know we are right when/if:

Specifications

Category Acceptance Criteria UI + Accessibility Requirements FE Technical Requirements BE Technical Requirements Logging and Monitoring Implementation Idea(s)
Confirmation page User is advanced to a confirmation page where they can both see and save the information they submitted. Users see success alert, PDF download option, print button, what to expect next section, how to contact VA, and plain-text html version of their responses for the form n/a n/a n/a Already implemented.
Alert User is aware they've successfully submitted their claim, when it was submitted, and what happens directly after submission Users are shown a success alert that includes date of submission, form submitted, and next course of action n/a n/a Alert visibility already sent to Google Analytics Already implemented.
Download delay User can still access the confirmation page if there is a longer than acceptable delay in PDF generation While download link is loading, the user is shown a loading indicator (general or progress bar).

The loading indicator will inform the Veteran of whether or not the content is still loading.
Option 1:
Load confirmation page and show loading indicator for the PDF. When PDF is done loading, use aria-live to indicate that there's been an update to the page.
Option 2:
Delay loading confirmation page until API call is returned about PDF is generated, and upon failure, load page without PDF download

From API:
Need an endpoint to poll to get the status/availibility of the PDF. Options could be an immediate response yay/nay or an endpoint with a timeout of 30-60secs and a response of yay/nay
(Need to verify) API calls for submission are async.
First submits form, with a response of an ID
Second would be to poll LH with ID until PDF is ready, this can take an unknown amount of time.
LH API needs to reopen endpoint to get PDF file.
Need to log API success & failures and add the result into a DataDog widget for each form
Download link User can download a copy of the PDF via a link. Success: Users see downlaod link Does this open the PDF in a new window, or directly download the PDF? Direct download LH API needs to reopen endpoint to get PDF file Log usage of link After the PDF is generated by Lighthouse, the confirmation page becomes available, and a user can download it.
PDF Error State User is notified if the PDF is not available for download. Failure: Users see alert that the download link did not generate, but they can still review the page for their answers.

No extra accessibility requirements here: The alert will do the work, and we don't want to shift focus because the Veteran could be doing something else on the page.
From API: Need an endpoint to poll to get the status/availibility of the PDF. Options could be an immediate response yay/nay or an endpoint with a timeout of 30-60secs and a response of yay/nay LH API needs to reopen endpoint to get PDF file
Endpoint will have to return an expired status vs a not found status to tell the difference
Log time/status if PDF file is unavailable (might get noisy depending on how often we poll)
Print button User can print the confirmation page by clicking a button and is made aware that printing will store all information on the page, but it won't be in the paper form format. Users see a print button and clicking, triggers their browser's print modal. Could use print/media styling to reformat page into printable version n/a n/a Already implemented.
"What to expect next" content User is made aware of the timeline for establishing their appeal and when/how to check the claim status tool. n/a n/a n/a Custom content and link to CST.
"You submitted the following information for the Board Appeal" Users are able to review all of their answers from the form, and get a list of evidence file names (not the actual files themselves) they've uploaded with the form. Users are able to use headers to navigate sections to review the form, and form responses are tied to questions for both visual and screen reader users

Each section should use one unordered list and one list item for each form label/form data pair. This will help assistive technology group the content.
n/a Data retention policies might prevent this feature.
Working with Cory to concrete answers as ATO is ambigious
n/a
Confirmation email User receives a confirmation email that notifies Veterans their submission has been sent and is being processed. n/a Will need vanotify template Log when email is sent Use the email Lighthouse is submitting (edit the copy)
saderagsdale commented 12 months ago

Old copy:

Specifications

Mottie commented 10 months ago

In a discussion with Michel about NOD E2E testing, he brought up some details about getting the status of a submission. Maybe we should consider adding the status of the application to the download page? Or at least a link to the Claim Status Tool with the status.

saderagsdale commented 10 months ago

@Mottie To make sure I understand correctly, are you recommending that we consider adding the status of the appeal the Veteran submitted to either the download page or CST?

Mottie commented 10 months ago

The status is already in the CST. I was just thinking it might be nice to include the status on this download page, since the Veteran will likely be coming back to the page some time after they submit the form. If we ultimately can only retain the form data for a month, then this page would not contain any useful information - data would be missing, and nothing to download.

saderagsdale commented 9 months ago

Ah, I see what you're saying. I think that is partly an assumption about how the user will interact with the page at a later time, and a question of what the experience looks like after our ability to retain data expires. @eileen-coforma thoughts?

eileen-coforma commented 9 months ago

@Mottie @saderagsdale It's an idea worth exploring once we validate our assumptions about how Veterans would want to use the page. We can consider it as we hash out the requirements after the study.

Julie linked a thread that mentioned there being a max retention period for submitted form data (which doesn't exist for forms not submitted). This could also influence the actions we want the Veteran to take when interacting with the page.

saderagsdale commented 7 months ago

@eileen-coforma @davidakennedy Moving DK's implementation note from the platform accessibility feedback ticket to this epic:

After our meeting Friday, exploring how PDFs are made via Lighthouse, I wanted to share some key aspects of accessible PDF creation and some potential software solutions.

Key Aspects of PDF Accessibility

  1. Searchable text: The document is real text.
  2. Document Language and Title Indication: It has a language and title so assistive technology users can read what the document is about.
  3. Alternative Text Descriptions for Non-Text Elements: Any logos, images or decorative images need to be marked as much with proper alternative text so assistive technology users know what the image means.
  4. Tagged Structure: PDF documents use tags, similar to HTML, to let assistive technology understand what the purpose of different types of text (heading, list item, etc.).

These are the basics of PDF accessibility, and where most PDF creation software gets it wrong. More details are covered in Adobe's guidance and WebAIM's guidance.

Possible Software

I don't think any of the above are perfect for our use case, but I still wanted to share them as what's good about them may help guide our choice in PDF library. A few more detailed thoughts on each of these:

saderagsdale commented 7 months ago

Brian's Platform Accessibility feedback:

Feedback

Practice areas will document their feedback on the VFS-provided artifacts following the Must, Should, and Consider Framework. Platform reviewers may also provide additional notes that don’t comment on the artifacts themselves but are important for implementation (eg. engineering/coding notes).

eileen-coforma commented 7 months ago

Updated epic details with updated feature specs and removed outdated specs. Keeping a copy of outdated specs in comments for tracking.

Specifications

  1. User can click a link on the confirmation page to open the persistent page. Assumptions:

    • Users will gain value by being able to come back to this persistent page, thus the choice to NOT keep it in the confirmation page.
    • Users with accessibility needs will easily recognize that the accessible format is available and derive value from it.
    • This meets the needs of users with all kinds of accessibility needs. Open questions:
    • How do we let them know the page is accessible, re-visitable, and bookmarkable?
    • What is the UX experience when the Lighthouse PDF link expires?
  2. User can click a link on the persistent page to download the standard PDF.

  3. Page displays the following appeal data:

    • Name
    • Submission date
    • Personal information data
    • Issues for review data
    • Board review options data
    • Name of evidence files
  4. User can return to the standard PDF link until it expires.

  5. User can return to the persistent page indefinitely. Assumptions

    • User chooses to return to the persistent page

Open questions:

  1. User can store the information on the persistent page. Assumptions:
    • Users will click a button to download the accessible format.

Open questions:

eileen-coforma commented 7 months ago

Submitted an experimental ticket: https://github.com/department-of-veterans-affairs/vets-design-system-documentation/issues/2767

eileen-coforma commented 6 months ago

Waiting on content review from CAIA. I made the mistake of giving this a lower priority, so I gave them to 5/21 latest due date.