Skip to content

feat: implement subscription import/export with CSV and JSON support#337

Merged
Smartdevs17 merged 2 commits into
Smartdevs17:mainfrom
eischideraa-unn:feature/import-export-subscriptions
Apr 27, 2026
Merged

feat: implement subscription import/export with CSV and JSON support#337
Smartdevs17 merged 2 commits into
Smartdevs17:mainfrom
eischideraa-unn:feature/import-export-subscriptions

Conversation

@eischideraa-unn
Copy link
Copy Markdown
Contributor

Summary

Implements comprehensive subscription import/export functionality with CSV and JSON support, allowing merchants to migrate subscription data or bulk-import subscribers from external systems.

close #193

Changes Made

  • Add importExport.ts utility with CSV parsing, JSON export/import
  • Implement CSV import with column mapping for all subscription fields
  • Add JSON export for all subscription data with metadata
  • Implement import validation with error reporting
  • Add import preview before commit with confirmation dialog
  • Support incremental import (upsert) mode
  • Add import history tracking with AsyncStorage persistence
  • Create ImportScreen.tsx with mode selection and validation UI
  • Create ExportScreen.tsx with format selection and preview
  • Add navigation routes for Import and Export screens
  • Add links in Settings screen for data management
  • Write comprehensive tests for import/export functionality

Implements: subscription import/export feature


Pull Request Checklist

Quality Gates (All must pass before merge)

  • Lint: Code passes ESLint and Prettier checks
  • Type Check: TypeScript compilation succeeds
  • Tests: All tests pass
  • Build: Project builds successfully
  • Rust Format: Smart contract formatting is correct (N/A - React Native only)
  • Rust Clippy: Smart contract linting passes (N/A - React Native only)
  • Rust Tests: All smart contract tests pass (N/A - React Native only)
  • Rust Build: Smart contracts compile successfully (N/A - React Native only)

Additional Requirements

  • New code has appropriate TypeScript types
  • No hardcoded secrets or credentials
  • New features have corresponding tests
  • Documentation updated if needed (Optional - inline docs provided)

Reviewers

  • At least 1 approval required for merge
  • All CI checks must be green

This PR will not be mergeable until all quality gates pass.

- Add importExport.ts utility with CSV parsing, JSON export/import
- Implement CSV import with column mapping for all subscription fields
- Add JSON export for all subscription data with metadata
- Implement import validation with error reporting
- Add import preview before commit with confirmation dialog
- Support incremental import (upsert) mode
- Add import history tracking with AsyncStorage persistence
- Create ImportScreen.tsx with mode selection and validation UI
- Create ExportScreen.tsx with format selection and preview
- Add navigation routes for Import and Export screens
- Add links in Settings screen for data management
- Write comprehensive tests for import/export functionality

Implements: subscription import/export feature
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 26, 2026

@eischideraa-unn Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Smartdevs17 Smartdevs17 merged commit 65403bb into Smartdevs17:main Apr 27, 2026
9 of 19 checks passed
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.

Implement subscription import/export with CSV and JSON support

2 participants