mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
The vectorize tool had a custom processing flow that bypassed the standard useToolProcessor hook -- no progress indication, no server-side batch, and the Download All ZIP relied on a client-side sequential loop. Backend: extract core logic into vectorizeBuffer(), register via registerToolProcessFn() so the /batch endpoint works with p-queue concurrency and SSE progress events. Frontend: replace custom fetch loop with useToolProcessor hook and ProgressCard, giving upload progress, per-file batch status, and automatic Download All ZIP via the existing tool-page infrastructure. Also set image/svg+xml MIME type on SVG blobs during batch ZIP extraction to ensure reliable rendering in <img> tags across browsers.