Repository navigation
fix(ingest): list per-event EPCIS batch errors and clear stale results before API-key save - #3661
PetrefiedThunder wants to merge 1 commit into
Conversation
…efore API-key save, show URL-tab errors Supersedes #3578 with the same net changes on a clean branch off main. Original work by DeepSeek.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Caution Review failedThe pull request is closed. Walkthrough
Finishing Touches
Comment |
PR Blocker ChecklistHead SHA: Status: Blocked (1 open blocker)Review Threads (1 unresolved)
Changes Requested (0)
Blocked Engines (0)
|
|
Vercel preview access note removed (A-2177 secret-hygiene cleanup). |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 3e200d0. Configure here.
| notifyDashboardRefresh(); | ||
| } catch (error) { | ||
| setEpcisError(epcisErrorMessage(error)); | ||
| setEpcisErrorEvents(epcisErrorEventMessages(error)); |
There was a problem hiding this comment.
URL error omits workspace error class
Low Severity
A failed API-key save on the URL tab now sets urlError instead of statusError, but PageContainer still keys workspace-load-error off statusError. File and EPCIS API-key failures still apply that class via csvError and epcisError, so the URL tab no longer hides the shell success badge on the same failure.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 3e200d0. Configure here.
✅ Bundle Size Report
Bundle is within the 10.0MB limit. |


Supersedes #3578.
#3578 can't pass Commit Message Check because it inherited a non-conventional commit (
120f8b353c, "Remove made-up sample files from frontend/public/samples") from another branch, and fixing that would need a history rewrite. This PR carries the same net changes from #3578 (head89ea2b5088b46860412f5b3d48365d42437e01d9) as one conventional commit on a clean branch offmain. They were applied withgit diff origin/main...89ea2b50 -- <paths> | git apply, with no hand edits, and each file matches #3578's head byte for byte.The original work is by DeepSeek in #3578:
epcisErrorEventMessagesinfrontend/src/lib/epcis-upload.ts).ingest-epcis-batch-errors.test.tsx(new), plus updates toingest-csv.test.tsxandingest-epcis.test.tsx.Files:
frontend/src/app/ingest/page.tsx,frontend/src/lib/epcis-upload.ts, and three tests underfrontend/src/__tests__/pages/.Note
Low Risk
Ingest UI and error-display logic only; no API or auth behavior changes beyond clearer messaging and submit ordering.
Overview
Rejected EPCIS batch uploads now show a summary line plus one
Event N:line per failed event, for both atomic (detail.errors) and partial (top-levelerrors) 400 responses. Single-event failures still show one combined message with no per-event prefix.epcisErrorEventMessagesinepcis-upload.tsparses those backend shapes; the ingest page stores them inepcisErrorEventsand renders them under the Ingestion Failed callout.Submit flow:
prepareSubmitclears prior CSV/EPCIS/URL results and mutation state before saving a changed API key, so a failed cookie write does not leave old batch error text on screen. URL-tab API-key failures use dedicatedurlErrorstate (with Ingestion Failed) instead of job status error.Tests cover URL-tab API-key errors, atomic/partial batch listing, single-event behavior, and clearing stale EPCIS lines on API-key save failure.
Reviewed by Cursor Bugbot for commit 3e200d0. Bugbot is set up for automated code reviews on this repo. Configure here.