project-nomad/admin/inertia/hooks
Chris Sherwood 360e7a0af4 feat(content-updates): show size, surface downloads in Active Downloads
Content Updates had three UX problems that compounded:

1. No size column, so users had to guess how big an update would be before
   clicking Update All. Upstream /api/v1/resources/check-updates doesn't
   return size, so CollectionUpdateService now enriches each update with
   a Content-Length HEAD request in parallel (5s timeout, non-fatal on
   failure — the row just renders an em-dash).

2. Small ZIM updates (1-8 MB) never appeared in Active Downloads. Two
   causes, both fixed: handleApply / handleApplyAll didn't invalidate the
   download-jobs query after dispatching, and useDownloads idled at 30s
   between polls — enough for a fast job to dispatch, download, and get
   cleaned up by removeOnComplete before the next refetch.

3. applyUpdate didn't forward title / totalBytes to RunDownloadJob, so
   any update that did briefly surface in Active Downloads had no label
   and no byte-count progress, just a filename and a percentage. It now
   passes both (matching zim_service's dispatch pattern).

Also parallelized applyAllUpdates so dispatching five updates doesn't
serialize five sequential BullMQ round-trips.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 13:17:07 -07:00
..
useDebounce.ts feat: [wip] custom map and zim downloads 2025-12-02 08:25:09 -08:00
useDiskDisplayData.ts fix(UI): gate NAS Storage label on network filesystem type (#749) 2026-04-20 15:46:46 -07:00
useDownloads.ts feat(content-updates): show size, surface downloads in Active Downloads 2026-05-03 13:17:07 -07:00
useEmbedJobs.ts feat(AI): enable remote AI chat host 2026-04-03 14:26:50 -07:00
useErrorNotification.ts feat: container controls & convienience scripts 2025-08-08 15:07:32 -07:00
useInternetStatus.ts feat: easy setup wizard 2026-01-15 15:54:59 -08:00
useMapMarkers.ts feat(maps): add scale bar and location markers (#636) 2026-04-03 14:26:50 -07:00
useMapRegionFiles.ts feat: [wip] new maps system 2025-11-30 22:29:16 -08:00
useOllamaModelDownloads.ts fix(AI): allow cancelling in-progress model downloads and ensure consistent progress UI (#701) 2026-04-17 14:43:41 -07:00
useServiceInstallationActivity.ts feat: display model download progress 2026-02-06 16:22:23 -08:00
useServiceInstalledStatus.tsx feat(AI): chat suggestions and assistant settings 2026-02-01 07:24:21 +00:00
useSystemInfo.ts fix(CuratedCategories): improve fetching from Github 2026-01-19 14:41:51 -08:00
useSystemSetting.ts feat(AI): chat suggestions and assistant settings 2026-02-01 07:24:21 +00:00
useTheme.ts feat(UI): add Night Ops dark mode with theme toggle 2026-03-20 11:46:10 -07:00
useUpdateAvailable.ts feat: cron job for system update checks 2026-02-06 15:40:30 -08:00