Skip to content

Export calculation results to PDF/CSV #102

@caitlon

Description

@caitlon

User Story

As a project admin, I want to export BeCoMe calculation results to PDF or CSV, so that I can include them in reports or share with stakeholders who do not use the web app.

Problem Statement

Calculation results can only be viewed in the web interface. For academic papers, presentations, or sharing with non-technical stakeholders, export functionality is needed.

Proposed Solution

PDF Export

  • Include project metadata (name, description, date)
  • List all expert opinions in a table
  • Show calculation results (arithmetic mean, median, best compromise, max error)
  • Include fuzzy triangle visualization
  • Professional formatting suitable for academic reports

CSV Export

  • Expert opinions table (name, lower, peak, upper, comment)
  • Calculation results summary (one row with all metrics)

Acceptance Criteria

  • Export to PDF button on project results page
  • Export to CSV button on project results page
  • PDF includes fuzzy triangle visualization
  • Exports work in both EN and CS languages
  • PDF uses proper fonts for Czech characters
  • Downloaded files have descriptive names (e.g., project-name-results.pdf)

Technical Notes

  • Consider using jspdf or react-pdf for PDF generation
  • CSV can use native Blob API
  • Visualization may need to be rendered to canvas for PDF inclusion

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions