project-nomad/admin/inertia
chriscrosstalk 4dcf2e9921
feat(downloads): rich progress, friendly names, cancel, and live status (#554)
* feat(downloads): rich progress, friendly names, cancel, and live status

Redesign the Active Downloads UI with four improvements:

- Rich progress: BullMQ jobs now report downloadedBytes/totalBytes instead
  of just a percentage, showing "2.3 GB / 5.1 GB" instead of "78% / 100%"
- Friendly names: dispatch title metadata from curated categories, Content
  Explorer library, Wikipedia selector, and map collections
- Cancel button: Redis-based cross-process abort signal lets users cancel
  active downloads with file cleanup. Confirmation step prevents accidents.
- Live status indicator: green pulsing dot with transfer speed for active
  downloads, orange stall warning after 60s of no data, gray dot for queued

Backward compatible with in-flight jobs that have integer-only progress.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(downloads): fix cancel, dismiss, speed, and retry bugs

- Speed indicator: only set prevBytesRef on first observation to prevent
  intermediate re-renders from inflating the calculated speed
- Cancel: throw UnrecoverableError on abort to prevent BullMQ retries
- Dismiss: remove stale BullMQ lock before job.remove() so cancelled
  jobs can actually be dismissed
- Retry: add getActiveByUrl() helper that checks job state before
  blocking re-download, auto-cleans terminal jobs
- Wikipedia: reset selection status to failed on cancel so the
  "downloading" state doesn't persist

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat(downloads): improve cancellation logic and surface true BullMQ job states

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Jake Turner <jturner@cosmistack.com>
2026-04-01 15:55:13 -07:00
..
app fix(ui): reduce SSE reconnect churn and polling overhead on navigation 2026-03-20 11:46:10 -07:00
components feat(downloads): rich progress, friendly names, cancel, and live status (#554) 2026-04-01 15:55:13 -07:00
context feat: container controls & convienience scripts 2025-08-08 15:07:32 -07:00
css feat(UI): add Night Ops dark mode with theme toggle 2026-03-20 11:46:10 -07:00
hooks feat(AI): enable remote AI chat host 2026-04-01 17:22:30 +00:00
layouts feat: switch all PNG images to WEBP (#575) 2026-04-01 15:06:15 -07:00
lib feat(downloads): rich progress, friendly names, cancel, and live status (#554) 2026-04-01 15:55:13 -07:00
pages feat: switch all PNG images to WEBP (#575) 2026-04-01 15:06:15 -07:00
providers feat(UI): add Night Ops dark mode with theme toggle 2026-03-20 11:46:10 -07:00
tsconfig.json fix(Docs): documentation renderer fixes 2025-12-23 16:00:33 -08:00