Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor data export to separate component #1

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

pianomister
Copy link
Contributor

Moves the data export logic from PrefetchTable into its own DataExport component, to separate concerns and de-clutter the overloaded PrefetchTable component for better maintainability. This also prepares usage of the DataExport component for precache analysis and will make adjustments easier in the future.

  • Adds new DataExport component, now containing all logic for export in a separate dialog window
  • Moves data export generation functions into separate export utils (for easy testability - tests missing for now)
  • Updates npm dependencies

Lint and tests have run successfully.

This commit moves the dialog window with data export output
into a separate component, to
- de-clutter the prefetch table from additional functionality, and
- allow reuse by precache analysis in the future.
Also moves the export type selection into the new DataExport component.
Decouples the generation of export output from the
DataExport view logic to display export options and output.
Adds a tab bar navigation in data export
and empty state
to allow easy extension of export types (CSV is planned).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants