Skip to content

feat: implement batch subscription operations for bulk management#449

Merged
Smartdevs17 merged 2 commits into
Smartdevs17:mainfrom
Junman140:feat/batch-operations
May 28, 2026
Merged

feat: implement batch subscription operations for bulk management#449
Smartdevs17 merged 2 commits into
Smartdevs17:mainfrom
Junman140:feat/batch-operations

Conversation

@Junman140
Copy link
Copy Markdown
Contributor

@Junman140 Junman140 commented May 27, 2026

Closes #372


Implements batch subscription operations for bulk management, allowing merchants to create, update, cancel, and charge subscriptions in bulk via CSV/JSON.

Changes:

  • \contracts/batch/: Added \CancelReason\ enum, \BatchFilter\ struct, enhanced result types with skipped_operations tracking
  • \�pp/services/batchTransactionService.ts: Full rewrite with 4 operation types, CSV parsers, chunked processing, idempotent retry with backoff, result export (CSV/JSON), history persistence, per-item status tracking
  • \�pp/stores/batchStore.ts: Zustand store with draft management, CSV loading per operation type, execute/retry, export helpers
  • \�pp/screens/BatchOperationsScreen.tsx: Full UI with operation selector, CSV input, update params/filter modals, cancel reason picker, progress bar, per-item results, export, retry, history
  • \src/screens/ImportScreen.tsx: Added batch operations shortcut banner
  • \src/navigation/: Added BatchOperations route to SettingsStack

Edge cases handled: partial batch failure, idempotent retry of failed items, large batch memory management via chunked processing (default 50, max 200)

Add batch create from CSV/JSON, batch update with filtering, batch cancel with reason collection, and batch charge for manual billing runs.

- contracts/batch: Added CancelReason enum, BatchFilter struct, enhanced result types with skipped_operations tracking
- app/services/batchTransactionService.ts: Full rewrite with 4 operation types, CSV parsers, chunked processing, idempotent retry with backoff, result export, per-item status tracking
- app/stores/batchStore.ts: Zustand store with draft management, CSV loading per operation type, execute/retry, export helpers
- app/screens/BatchOperationsScreen.tsx: Full UI with operation selector, CSV input, update params/filter modals, cancel reason picker, progress bar, per-item results, export buttons, retry, history
- src/screens/ImportScreen.tsx: Added batch operations shortcut banner
- src/navigation: Added BatchOperations route to SettingsStack

Edge cases: partial batch failure, idempotent retry of failed items, large batch memory management via chunked processing
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 27, 2026

@Junman140 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 428410d into Smartdevs17:main May 28, 2026
2 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 batch subscription operations for bulk management

2 participants