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

Reduce code duplication related to CSV #4667

Open
thiessenp-cds opened this issue Nov 18, 2024 · 0 comments
Open

Reduce code duplication related to CSV #4667

thiessenp-cds opened this issue Nov 18, 2024 · 0 comments
Labels
App tech debt Includes: refactoring, documentation, organization, and dependency management. Does not include bugs

Comments

@thiessenp-cds
Copy link
Contributor

thiessenp-cds commented Nov 18, 2024

Some tech debt:

Merge the related code for formatting CSV currently in (and possibly other places):

  • DownloadCSVWithGroups
  • DownloadCSV

Also the code to download a file could be exported to a util function:

    const url = URL.createObjectURL(blob);
    const a = document.createElement("a");
    a.href = url;
    a.download = slugify(fileName) + "." + extension};
    a.click();
    URL.revokeObjectURL(url);
@thiessenp-cds thiessenp-cds added tech debt Includes: refactoring, documentation, organization, and dependency management. Does not include bugs App labels Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App tech debt Includes: refactoring, documentation, organization, and dependency management. Does not include bugs
Projects
None yet
Development

No branches or pull requests

1 participant