Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MPDX-8230] Fix 14 month report export button doing nothing #1078

Merged
merged 3 commits into from
Sep 19, 2024

Conversation

canac
Copy link
Contributor

@canac canac commented Sep 17, 2024

Description

Sometimes the fourteen month report export button was doing nothing. This is because only part of the button was a download link. Now, the entire button is a download link. The easiest way to accomplish this was to stop using the react-csv Link component and instead use the method that it uses internally to create the blob download URL and add that href to the Button component.

@wrandall22 If you have time, let me know if you can reproduce the bug after this fix.

MPDX-8230

Checklist:

  • I have given my PR a title with the format "MPDX-(JIRA#) (summary sentence max 80 chars)"
  • I have applied the appropriate labels. (Add the label "On Staging" to get the branch automatically merged into staging.)
  • I have requested a review from another person on the project

Before, only part of the button was a download link. Now, the entire
button is a download link. The easiest way to accomplish this was to
stop using the react-csv Link component and instead use the method that
it uses internally to create the blob download URL.
@canac canac added the Preview Environment Add this label to create an Amplify Preview label Sep 17, 2024
@canac canac requested a review from dr-bizz September 17, 2024 21:45
Copy link

Preview branch generated at https://8230-export-download-fail.d3dytjb8adxkk5.amplifyapp.com

Copy link

Bundle sizes [mpdx-react]

Compared against bc5798e

Route Size (gzipped) Diff
/accountLists/[accountListId]/reports/partnerCurrency/[[...contactId]] 133.74 KB -1.54 KB
/accountLists/[accountListId]/reports/salaryCurrency/[[...contactId]] 133.74 KB -1.54 KB

@wrandall22
Copy link
Contributor

This seems to solve it.

@canac canac merged commit d6e415c into main Sep 19, 2024
18 checks passed
@canac canac deleted the 8230-export-download-fail branch September 19, 2024 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Preview Environment Add this label to create an Amplify Preview
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants