You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: CSV import error row numbers skip blank lines and identify the wrong spreadsheet row #3581
Found during the local Tale fleet audit. P3 · confirmed parser defect.
Source: 44e0dcf254975286c0e9dea443b5cd1ca6b23347. No production testing or writes.
Users correcting a partially imported file are directed to the wrong row; each blank line shifts later server/parser refusals farther. Excel already preserves rowNum correctly.
Reproduce:
Use CSV: header line1; Okay,1,1 line2; blank line3; Broken,not-number,2 line4.
Parse/import products and inspect the repairable price refusal.
Expected: Error identifies row4, where the invalid price is located.
Observed: rowErrors reports row3, a blank row; omitted blank lines are lost before firstLine+index calculates the row.
The assigned auditor and independent parent rerun both executed the production parser and import mappers with actual SheetJS-generated CSV/XLSX bytes. The browser file picker and database import were not exercised. The local Bun FileReader adapter only delivered File bytes to the existing callbacks.
Acceptance: Preserve source row/line positions through empty-line skipping. A refusal after the blank line must identify physical row4, with further blank/leading lines covered.
Deduplication: No matching issue found in the cached repository inventory or focused GitHub search.
Local evidence: tale-100-findings/settings-import-probe.ts and settings-import-parent-rerun.log in the audit notes.
Activity
fix(platform): preserve CSV import source row numbers
fix(platform): preserve CSV import source row numbers (#4201)