EcoTrack Unified

Vercel + Supabase migration workspace

CSV workflow

Donation CSV uploads are now handled in the unified app.

Uploads are parsed and validated against Supabase Postgres, stored in Supabase Storage, and can be approved into transactions from the same codebase.

Upload and approval

Workflow

ValidationPOST the file to /api/csv/process-donation-csv to validate users, schools, item types, sizes, and drives.
StorageValidated and failed uploads are stored in Supabase Storage under donation workflow folders.
ApprovalAdmins can POST validated rows to /api/csv/process-donation-csv/approved to create donation transactions and inventory balances.