Files
Chronos/docs
Alby96 13278710a2 fix(admin): follow jobs on the Library pages, cap the delete list, honest restore tooltip
Review fixes for owner review 2, phase 3 (R6 Library on the web panel):

- Trash: the worker can end an emptying before the browser has read the
  POST's 202, so its jobState arrived while the page did not know the job
  yet; Empty then stayed disabled ("being emptied") and no result showed.
  The page now keeps the last state of the jobs that ended and looks its
  job up there before following it. Any ended job also reloads the list
  (an emptying from another tab or the desktop sends no sequenceChanged),
  and a Restore answered 404 shows the trash as it is now.
- Sequence: thumbnail, proxy, verify and analysis jobs send no
  sequenceChanged, so tiles and the cover stayed placeholders and the
  status chips stale. An ended job now schedules one refresh (not pushed
  back by the next): the sequence is read again and failed images are
  asked for again under a retry address (shared retryImages).
- Library list: Esc, Ctrl+A or unticking every card left the "Select all"
  snapshot in place, hiding Select all and stopping the live refresh from
  pruning the selection. It is dropped once no selected sequence lies
  beyond the loaded rows; Clear filters clears the selection too.
- The sequences' delete dialog lists at most 500 names (blocked ones
  first, with their reasons), like the photos' dialog (shared LISTED).
- Admin.Trash.RestoreSequence.Tip promised a SHA-256 check that a sequence
  restore never makes (it moves the folder back); it now says so and names
  Verify (en, it; no other culture had the key).
- The upload test's name and comments say what it checks: upload.js is
  only imported dynamically, not loaded on click.

Tests pin each change in SystemEndpointTests; the pages were also driven
in a browser against a fake API, where the pre-fix modules fail and the
fixed ones pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 78f66082fd85543d619375574c82cc63a233b7a8)
2026-10-27 12:46:45 +01:00
..