The bulk import view (src/components/bulk-import/bulk-import-view.tsx) allows users to upload CSV or JSON files for bulk outage creation. The current implementation sends the file directly to the backend's dry-run endpoint for validation. If the CSV has incorrect columns or missing required fields, the user only receives an error after the upload completes, wasting upload time for large files.
Why this is architecturally hard
- Expected CSV schema is defined in backend's OpenAPI spec, not exposed to frontend
- Parsing CSV in browser requires library like papaparse or custom parsing
- Type coercion must match backend expectations exactly
Acceptance criteria
Getting started
Files: src/components/bulk-import/bulk-import-view.tsx, src/services/bulkImportService.ts
The bulk import view (
src/components/bulk-import/bulk-import-view.tsx) allows users to upload CSV or JSON files for bulk outage creation. The current implementation sends the file directly to the backend's dry-run endpoint for validation. If the CSV has incorrect columns or missing required fields, the user only receives an error after the upload completes, wasting upload time for large files.Why this is architecturally hard
Acceptance criteria
Getting started
Files:
src/components/bulk-import/bulk-import-view.tsx,src/services/bulkImportService.ts