The print view should use a friendly filename.
Print file name is in this format: YYYY-MM-DD_Full_Name
It looks like it is possible the override the filename in HTML5-capable browsers: https://blog.logrocket.com/programmatic-file-downloads-in-the-browser-9a5186298d5c/
Creating the download link
First, let’s say we have a blob object by some means. We want to create a helper function that allows us to create a download link (<a></a> element) that can be clicked in order to download the content of the blob, just like a regular file download.
The logic of our helper function can be broken down as follows:
Create an object URL for the blob object
Create an anchor element (<a></a>)
Set the href attribute of the anchor element to the created object URL
Set the download attribute to the filename of the file to be downloaded. This forces the anchor element to trigger a file download when it is clicked
If the link is for a one-off download, release the object URL after the anchor element has been clicked
Note: this method could work for as well.
Marking Support Comms as yes for the time being as a reminder to check how we’re referencing print view in support articles and on tidepool.org. I don’t think anything specifically needs to change, but this will be a good opportunity to review everything.
Moving to the next sprint because the Marketo email work (WEB-610) turns out to not have been enough to fix the issue, so I will be addressing it by creating a new template (WEB-704)