Skip to content

refactor(reports): export report generation utilities for JSON, CSV, and PDF formats in [reports.ts] #178

Description

@mspandey

Problem

Currently, reports.ts implements client-side carbon footprint report export utilities (downloadJsonReport, downloadCsvReport, and downloadPdfReport) utilizing jsPDF, jspdf-autotable, papaparse, and file-saver. Ensuring clean ES module exports is essential for maintaining reliable reporting workflows across sustainability analytics dashboards.

Proposed Solution

Verify and maintain clean ES module exports for downloadJsonReport, downloadCsvReport, and downloadPdfReport in reports.ts.

Acceptance Criteria

  • Export downloadJsonReport, downloadCsvReport, and downloadPdfReport functions from reports.ts.
  • Ensure PDF auto-tables, CSV unparsing, and JSON blob file downloads handle summary metrics and organization telemetry correctly.
  • Verify that importing report generation utilities into frontend export components passes all test suites successfully.

Please assign this issue to me.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions