project-nomad/admin/app/jobs
chriscrosstalk fedee18bd3 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 23:54:16 -07:00
..
check_service_updates_job.ts feat: support for updating services 2026-03-11 14:08:09 -07:00
check_update_job.ts fix: improve type-safety for KVStore values 2026-03-03 20:51:38 -08:00
download_model_job.ts fix(ai): surface model download errors and prevent silent retry loops 2026-03-25 16:30:35 -07:00
embed_file_job.ts feat(AI): enable remote AI chat host 2026-04-01 23:54:16 -07:00
run_benchmark_job.ts feat(Docker): container URL resolution util and networking improvs 2026-01-24 15:27:56 -08:00
run_download_job.ts feat(downloads): rich progress, friendly names, cancel, and live status (#554) 2026-04-01 23:54:16 -07:00