From f2a97b139fd66ded3c6f3318ccf4e198bc985653 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 10 Nov 2026 05:50:32 +0000 Subject: [PATCH] fix(ui): accept the M5 log steps so versioned uploads don't show as Failed The upload response is validated against a fixed list of log steps, and one unknown step makes zod reject the whole response. M5 (#109) added three steps in the loader (version, schema_check, cross_upload_duplicates) that the schema did not list, so a successful upload would have been reported in the UI as "Failed: Unexpected response shape". The log-step contract test added in #223 caught it, and has been failing the accessibility job on main since #229. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_011T6WqhUfEMZv2Dxerqs2Eq --- csv-table-hub-main/src/lib/csv.functions.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/csv-table-hub-main/src/lib/csv.functions.ts b/csv-table-hub-main/src/lib/csv.functions.ts index 2dbaf4d..54d241a 100644 --- a/csv-table-hub-main/src/lib/csv.functions.ts +++ b/csv-table-hub-main/src/lib/csv.functions.ts @@ -27,6 +27,10 @@ export const processingLogSchema = z.object({ "insert", "register", "overwrite", + // M5 (#109): versioned datasets and the checks against earlier versions. + "version", + "schema_check", + "cross_upload_duplicates", "done", "error", ]),