Open Source Contribution: React-Virtualized-Pivot



April 2018

While looking into pivot table functionality for OutagePlanner users, I found Niles Turner's great open source React Virtualized Pivot project.

The original demo for the project (screenshot) allowed users to upload a CSV or TSV file, but if the uploaded file contained missing or incorrect headers, the pivot table didn't display correctly.

Using JavaScript, Enzyme and Jest, I added functionality and tests to help developers considering this React library to successfully demo the pivot table. Potential users can now preview the headers of their uploaded files, edit those headers if desired, and add headers if their CSV/TSV file did not include them.

Here's the Merged Pull Request.