Skip to content

Add SvelteKit supplier CSV and XLSX intake example - #477

Draft
sdairs wants to merge 3 commits into
mainfrom
codex/supplier-intake
Draft

sdairs wants to merge 3 commits into
mainfrom
codex/supplier-intake

Conversation

@sdairs

@sdairs sdairs commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

Supplier CSV and XLSX uploads need a reviewed column mapping before they become catalog records. This example uses SvelteKit, Superforms, shadcn-svelte/Bits UI and Uppy with Papa Parse and the official SheetJS CE distribution to stage files in ClickHouse Managed Postgres, show row errors and atomically promote a valid batch. File fingerprints, locked reviews and supplier/SKU constraints prevent duplicate or partial imports.

Includes both real file fixtures, explicit clickhousectl setup and cleanup, restricted runtime roles, screenshots and scoped CI.

Validation: clean locked install, four parser tests, typecheck and production build in Ubuntu 24.04 ARM64; actual Postgres 18.6 integration covering concurrent review/read snapshots, upload/promotion replay, rollback, denied grants and wrong-CA/hostname rejection through pg. Chromium exercised both Uppy upload formats, invalid mapping/rows, conflict rollback, replay and persistence after replacing the app process. The owned disposable managed service was deleted and verified absent; the VM is stopped.

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.

1 participant