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

Download your statements #27612

Closed LinnJS closed 2 years ago

LinnJS commented 3 years ago

Technical Task

We need to allow users to download their statements via the Medical Copays Detail Page so they can see their individual itemized copays. onClick or onPageLoad we need to fetch the statement from the BE take the data stream blob() them into a downloadable document and append them to the URL that the user would clock to download via href.

Can use Caregivers DownloadLink as a POC but this one will be more complex due to a handful of possible downloads.

MCP Desktop - UXPin Preview 2021-10-13 09-19-39.png

Expected Behavior

Users should be able to download statements by clicking the links

Acceptance Criteria

LinnJS commented 2 years ago

Tracking event for PDF downloads = debt-mcp-pdf-download

LinnJS commented 2 years ago

Waiting for @craigwheeler to review this PR in the AM and will be ready to merge right after BE changes are merged.

PR

craigwheeler commented 2 years ago

Looks good @LinnJS great work! 💯

LinnJS commented 2 years ago

PR is merged thanks for the speedy review @craigwheeler