Skip to content

Conversation

@barbaraperic
Copy link
Collaborator

@barbaraperic barbaraperic commented Jan 14, 2026

📝 Description

This PR adds CSV export functionality to the service providers table, allowing users to download provider data for offline analysis.

See Issue #185

  • Type: New feature

🛠️ Key Changes

  • Added CSV export button to the service providers table
  • CSV file includes all relevant provider information with a timestamped filename (service-providers-YYYY-MM-DD.csv)

Added Dependencies:

  • react-csv for CSV generation
  • prop-types (peer dependency for react-csv)
  • @types/react-csv for TypeScript support

📌 To-Do Before Merging

  • Verify design with Filipa

📸 Screenshots

Screenshot 2026-01-14 at 12 46 22

🔖 Resources

react-csv NPM library

@barbaraperic barbaraperic requested a review from Copilot January 14, 2026 13:59
@barbaraperic barbaraperic self-assigned this Jan 14, 2026
@vercel
Copy link

vercel bot commented Jan 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
filecoin-cloud Ready Ready Preview, Comment Jan 28, 2026 10:15am

Request Review

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds CSV export functionality to the service providers table, enabling users to download provider data with a timestamped filename for offline analysis. The implementation introduces a new export button, mapping utilities for data transformation, and refactors shared constants.

Changes:

  • Added CSV export button with download functionality using react-csv library
  • Created utility function to map provider data to CSV format
  • Refactored CURIO_GITHUB_URL constant to shared location and created useExplorerUrl hook

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
src/components/SoftwareVersion.tsx Refactored to use centralized CURIO_GITHUB_URL constant
src/components/ProviderOverview.tsx Refactored to use new useExplorerUrl hook for explorer URL retrieval
src/app/service-providers/utils/mapProviderToCsvRow.ts New utility function to transform provider data to CSV format (contains critical bugs)
src/app/service-providers/hooks/useExplorerUrl.ts New custom hook to encapsulate explorer URL logic
src/app/service-providers/constants/providers.ts New constants file with centralized CURIO_GITHUB_URL
src/app/service-providers/components/ServiceProvidersTable.tsx Integrated CSV export functionality into table component
src/app/service-providers/components/ExportToCsvLink.tsx New component rendering CSV download link
package.json Added react-csv, prop-types, and @types/react-csv dependencies
package-lock.json Lock file updates for new dependencies

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 10 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@BigLep
Copy link
Contributor

BigLep commented Jan 14, 2026

@barbaraperic : A couple of things:

  • Provider Address should be the address (e.g., 0x8c8c7a9BE47ed491B33B941fBc0276BD2ec25E7) not the url to a block explorer
  • Lets not add any cormatting around numbers (e.g., commas). The reason is we want this data to bias towards computer parsable. We're not optimizing for human readability. Humans can do number formating in their csv viewer (e.g., Excel)

@BigLep BigLep moved this from 📌 Triage to ⌨️ In Progress in FOC Jan 15, 2026
@barbaraperic
Copy link
Collaborator Author

@barbaraperic : A couple of things:

  • Provider Address should be the address (e.g., 0x8c8c7a9BE47ed491B33B941fBc0276BD2ec25E7) not the url to a block explorer
  • Lets not add any cormatting around numbers (e.g., commas). The reason is we want this data to bias towards computer parsable. We're not optimizing for human readability. Humans can do number formating in their csv viewer (e.g., Excel)

Thank you!

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 10 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 10 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@barbaraperic barbaraperic force-pushed the bp/add-csv-export-to-tables branch from 992ff4c to 685d4d5 Compare January 28, 2026 10:14
@github-actions github-actions bot added size/L and removed size/L labels Jan 28, 2026
@barbaraperic barbaraperic merged commit 3428945 into main Jan 29, 2026
6 checks passed
@barbaraperic barbaraperic deleted the bp/add-csv-export-to-tables branch January 29, 2026 12:22
@github-project-automation github-project-automation bot moved this from ✔️ Approved by reviewer to 🎉 Done in FOC Jan 29, 2026
@github-actions github-actions bot added size/L and removed size/L labels Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

4 participants