Skip to content

fix(workflows): preserve CSV values and reject malformed table drafts - #1072

Merged
dovvnloading merged 4 commits into
mainfrom
fix/workflow-table-input-1031
Nov 25, 2026
Merged

dovvnloading merged 4 commits into
mainfrom
fix/workflow-table-input-1031

Conversation

@dovvnloading

Copy link
Copy Markdown
Owner

Summary

  • Preserve quoted text, significant whitespace, leading-zero identifiers, unsafe integer strings and all-empty records in CSV table inputs.
  • Reject malformed quotes and ragged rows with row/column diagnostics instead of silently dropping cells or records.
  • Accept typed table JSON (columns and rows) in both run and preset forms, and serialize existing table drafts as typed JSON to preserve booleans, nulls, empty strings and numeric strings.
  • Add regression tests for both typed run and plain preset request conversion, malformed CSV, CRLF/embedded CR, and typed JSON round trips.

Closes #1031.

Validation

  • Passed 17 isolated JavaScript checks covering the new parser and typed table validation.
  • Extracted parser passed strict TypeScript compilation (TypeScript 5.8.3).
  • Added Vitest regression coverage in workflowApi.test.ts; full repository typecheck, Vitest and browser tests were not run because this environment cannot clone the repository or install its dependencies. CI review is needed before merge.

@dovvnloading dovvnloading left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed all four changed files against #1031 and the workflow table contract. No blocking findings.

  • CSV parsing preserves quoted values, whitespace, leading-zero and unsafe integer identifiers, empty fields/records, escaped quotes and CRLF; malformed quotes and row widths now produce actionable errors.
  • Typed table JSON preserves scalar types through the run and preset form paths. The run editor's existing round-trip guard remains in place, and regression tests cover the original corruption cases.
  • Verified GitHub Actions run https://github.com/dovvnloading/Graphlink/actions/runs/45604883623 for the reviewed head: frontend (schema/typecheck/lint/Vitest/build), Windows Python, POSIX permissions and wheel build/install all succeeded. Playwright boot-smoke was skipped; I did not independently launch the app or run browser tests.
  • Compared the intervening main commit (5667019): it changes the library workspace selection, not these files or the launcher interface. GitHub reports the PR clean/mergeable; branch-protection configuration could not be read by the integration.

Ready for squash merge based on source review and the passing CI jobs. Review recorded as a comment because the connected account is the PR author.

@dovvnloading
dovvnloading merged commit b147196 into main Nov 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(workflows): CSV form silently drops cells/rows and changes string identifiers into numbers

1 participant