Overview
Add an export feature allowing users, researchers, and students to download benchmark race data (execution times, operation counts, winner metrics, array size, algorithm list) as CSV or JSON files for offline analysis and lab reports.
Implementation Details & File Reference
- Export Utility: Create
frontend/src/utils/exportTelemetry.ts with exportRaceToCSV(raceData) and exportRaceToJSON(raceData).
- Format data into clean tabular columns (Algorithm, Operations, Execution Time (ms), Swaps, Winner, Dataset Config).
- Use
Blob and URL.createObjectURL to trigger instant browser file downloads.
- UI Action Buttons: Add "Export CSV" and "Export JSON" buttons in the Performance Comparison panel (
frontend/src/components/AlgorithmComparisonCenter.tsx).
Definition of Done
- Clicking "Export CSV" downloads a structured
.csv file containing complete race metrics.
- Clicking "Export JSON" downloads a formatted
.json file containing raw telemetry.
- Supported across Sorting, Searching, and Pathfinding race results.
Skill Level
Medium — data formatting, Blob creation, and browser download trigger implementation.
Overview
Add an export feature allowing users, researchers, and students to download benchmark race data (execution times, operation counts, winner metrics, array size, algorithm list) as CSV or JSON files for offline analysis and lab reports.
Implementation Details & File Reference
frontend/src/utils/exportTelemetry.tswithexportRaceToCSV(raceData)andexportRaceToJSON(raceData).BlobandURL.createObjectURLto trigger instant browser file downloads.frontend/src/components/AlgorithmComparisonCenter.tsx).Definition of Done
.csvfile containing complete race metrics..jsonfile containing raw telemetry.Skill Level
Medium — data formatting, Blob creation, and browser download trigger implementation.