Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces a reusable "Export to CSV" feature for the application, allowing users to export data as CSV files through a flexible and customizable UI component. The implementation includes new components, type definitions, and integrates the necessary dependencies for CSV export functionality. Additionally, minor improvements are made to type usage and icon support.
Export to CSV Feature:
ExportToCsv
component, which provides a configurable button or trigger for exporting data to CSV. It supports custom modal dialogs, error handling, loading states, and external triggers. (src/Shared/Components/ExportToCsv/ExportToCsv.tsx
, src/Shared/Components/ExportToCsv/ExportToCsv.tsxR1-R182)ExportToCsvDialog
component to handle export progress, errors, and manual download options within a modal dialog. (src/Shared/Components/ExportToCsv/ExportToCsvDialog.tsx
, src/Shared/Components/ExportToCsv/ExportToCsvDialog.tsxR1-R84)src/Shared/Components/ExportToCsv/types.ts
, src/Shared/Components/ExportToCsv/types.tsR1-R72)src/Shared/Components/ExportToCsv/index.ts
, src/Shared/Components/ExportToCsv/index.tsR1-R2)src/Shared/Components/index.ts
, src/Shared/Components/index.tsR56)Dependency Updates:
react-csv
and its type definitions topackage.json
to enable CSV file generation and download. [1] [2]Icon Support:
src/Shared/Components/Icon/Icon.tsx
, [1] [2]Type Improvements:
ResourceBrowser.Types.ts
to remove unused imports and improve prop definitions for resource recommender action menus. [1] [2]Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist