Description
csvInvoiceSchema validates imported CSV rows but returns only a generic error string. Contributors should replace generic errors with structured error objects that include row, column, value, and message fields, so import UIs can highlight exactly which cells contain invalid data.
Acceptance Criteria
Context
- Target file:
src/lib/csvInvoiceSchema.ts
- Used by:
src/components/CsvRecipientImport.tsx
Description
csvInvoiceSchemavalidates imported CSV rows but returns only a generic error string. Contributors should replace generic errors with structured error objects that includerow,column,value, andmessagefields, so import UIs can highlight exactly which cells contain invalid data.Acceptance Criteria
Array<{row: number, column: string, value: string, message: string}>Context
src/lib/csvInvoiceSchema.tssrc/components/CsvRecipientImport.tsx