Repository navigation
Conversation
✅ Deploy Preview for hope-for-haiti ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Disclaimer: This comment was AI-generated and is not necessarily completely accurate. Please take code comments with a grain of salt.
[Medium impact] Fixes validation error reporting in donor offer uploads. The PR appears safe to merge, with a non-blocking correction needed for XLSX row numbers. Findings
SummaryThe PR makes failed row checks return HTTP 422 and shows the server's errors instead of a success message.
Review score: 90/100.
|
| const skipResult = skipEmptyRows(XLSX.utils.sheet_to_csv(sheet)); | ||
| skipped = skipResult.skipped; |
There was a problem hiding this comment.
Excel row numbers remain wrong
When an XLSX sheet starts below row 1, sheet_to_csv omits blank rows before the sheet's used range. skipEmptyRows cannot count those rows, so a header at row 3 and invalid data at row 4 produce “row 2.” Users are still pointed to the wrong cells. Include the starting row from the sheet's !ref when calculating __excelRow in both parsers.
Description
Resolves ticket number: #372
Explain what your code changes:
Trace (as per gh issue ask):
Changes:
List the steps you took to test your code:
Checklist