mirror of
https://github.com/penpot/penpot.git
synced 2026-06-02 05:30:19 +00:00
* ♻️ Refactor font upload to process variants sequentially Change the batch upload handler so fonts are uploaded one at a time instead of all concurrently, preventing excessive simultaneous upload requests. Previously `on-upload-all` used `run!` which fired all font variant uploads simultaneously. Now it uses `rx/from` combined with `rx/mapcat` to process each font sequentially. As part of this change, extract the upload logic into a standalone `handle-font-upload` helper for reuse between single and batch upload paths, and remove the separately memoized `on-upload*` hook. Also fix error logging to use `js/console.error` instead of `js/console.log` for consistency with project conventions. Signed-off-by: Andrey Antukh <niwi@niwi.nz> * 📎 Add code comment Signed-off-by: Andrey Antukh <niwi@niwi.nz> --------- Signed-off-by: Andrey Antukh <niwi@niwi.nz>